@townco/gui-template 0.1.46 → 0.1.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,48 +0,0 @@
1
- import{b as F,c as hd,r as V,a as md,g as Nl,j as I}from"./react-BNhDTjHq.js";var Si={exports:{}},Ei={};var ja;function gd(){return ja||(ja=1,(function(e){function t(C,P){var S=C.length;C.push(P);e:for(;0<S;){var X=S-1>>>1,g=C[X];if(0<i(g,P))C[X]=P,C[S]=g,S=X;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var P=C[0],S=C.pop();if(S!==P){C[0]=S;e:for(var X=0,g=C.length,xe=g>>>1;X<xe;){var Ae=2*(X+1)-1,m=C[Ae],Q=Ae+1,ae=C[Q];if(0>i(m,S))Q<g&&0>i(ae,m)?(C[X]=ae,C[Q]=S,X=Q):(C[X]=m,C[Ae]=S,X=Ae);else if(Q<g&&0>i(ae,S))C[X]=ae,C[Q]=S,X=Q;else break e}}return P}function i(C,P){var S=C.sortIndex-P.sortIndex;return S!==0?S:C.id-P.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],f=1,c=null,d=3,p=!1,h=!1,v=!1,b=!1,y=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function R(C){for(var P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=C)r(u),P.sortIndex=P.expirationTime,t(l,P);else break;P=n(u)}}function N(C){if(v=!1,R(C),!h)if(n(l)!==null)h=!0,w||(w=!0,j());else{var P=n(u);P!==null&&O(N,P.startTime-C)}}var w=!1,M=-1,z=5,U=-1;function k(){return b?!0:!(e.unstable_now()-U<z)}function $(){if(b=!1,w){var C=e.unstable_now();U=C;var P=!0;try{e:{h=!1,v&&(v=!1,_(M),M=-1),p=!0;var S=d;try{t:{for(R(C),c=n(l);c!==null&&!(c.expirationTime>C&&k());){var X=c.callback;if(typeof X=="function"){c.callback=null,d=c.priorityLevel;var g=X(c.expirationTime<=C);if(C=e.unstable_now(),typeof g=="function"){c.callback=g,R(C),P=!0;break t}c===n(l)&&r(l),R(C)}else r(l);c=n(l)}if(c!==null)P=!0;else{var xe=n(u);xe!==null&&O(N,xe.startTime-C),P=!1}}break e}finally{c=null,d=S,p=!1}P=void 0}}finally{P?j():w=!1}}}var j;if(typeof x=="function")j=function(){x($)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,Z=W.port2;W.port1.onmessage=$,j=function(){Z.postMessage(null)}}else j=function(){y($,0)};function O(C,P){M=y(function(){C(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(C){switch(d){case 1:case 2:case 3:var P=3;break;default:P=d}var S=d;d=P;try{return C()}finally{d=S}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(C,P){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var S=d;d=C;try{return P()}finally{d=S}},e.unstable_scheduleCallback=function(C,P,S){var X=e.unstable_now();switch(typeof S=="object"&&S!==null?(S=S.delay,S=typeof S=="number"&&0<S?X+S:X):S=X,C){case 1:var g=-1;break;case 2:g=250;break;case 5:g=1073741823;break;case 4:g=1e4;break;default:g=5e3}return g=S+g,C={id:f++,callback:P,priorityLevel:C,startTime:S,expirationTime:g,sortIndex:-1},S>X?(C.sortIndex=S,t(u,C),n(l)===null&&C===n(u)&&(v?(_(M),M=-1):v=!0,O(N,S-X))):(C.sortIndex=g,t(l,C),h||p||(h=!0,w||(w=!0,j()))),C},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(C){var P=d;return function(){var S=d;d=P;try{return C.apply(this,arguments)}finally{d=S}}}})(Ei)),Ei}var Da;function sE(){return Da||(Da=1,Si.exports=gd()),Si.exports}var yd=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},nn="1.9.0",La=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function vd(e){var t=new Set([e]),n=new Set,r=e.match(La);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(l){return l===e};function o(s){return n.add(s),!1}function a(s){return t.add(s),!0}return function(l){if(t.has(l))return!0;if(n.has(l))return!1;var u=l.match(La);if(!u)return o(l);var f={major:+u[1],minor:+u[2],patch:+u[3],prerelease:u[4]};return f.prerelease!=null||i.major!==f.major?o(l):i.major===0?i.minor===f.minor&&i.patch<=f.patch?a(l):o(l):i.minor<=f.minor?a(l):o(l)}}var bd=vd(nn),xd=nn.split(".")[0],er=Symbol.for("opentelemetry.js.api."+xd),tr=yd;function fr(e,t,n,r){var i;r===void 0&&(r=!1);var o=tr[er]=(i=tr[er])!==null&&i!==void 0?i:{version:nn};if(!r&&o[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(a.stack||a.message),!1}if(o.version!==nn){var a=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+e+" does not match previously registered API v"+nn);return n.error(a.stack||a.message),!1}return o[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+nn+"."),!0}function rn(e){var t,n,r=(t=tr[er])===null||t===void 0?void 0:t.version;if(!(!r||!bd(r)))return(n=tr[er])===null||n===void 0?void 0:n[e]}function dr(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+nn+".");var n=tr[er];n&&delete n[e]}var wd=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},kd=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},_d=(function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zn("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zn("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zn("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zn("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zn("verbose",this._namespace,t)},e})();function Zn(e,t,n){var r=rn("diag");if(r)return n.unshift(t),r[e].apply(r,kd([],wd(n),!1))}var tt;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(tt||(tt={}));function Cd(e,t){e<tt.NONE?e=tt.NONE:e>tt.ALL&&(e=tt.ALL),t=t||{};function n(r,i){var o=t[r];return typeof o=="function"&&e>=i?o.bind(t):function(){}}return{error:n("error",tt.ERROR),warn:n("warn",tt.WARN),info:n("info",tt.INFO),debug:n("debug",tt.DEBUG),verbose:n("verbose",tt.VERBOSE)}}var Sd=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Ed=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Ad="diag",Ct=(function(){function e(){function t(i){return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=rn("diag");if(s)return s[i].apply(s,Ed([],Sd(o),!1))}}var n=this,r=function(i,o){var a,s,l;if(o===void 0&&(o={logLevel:tt.INFO}),i===n){var u=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((a=u.stack)!==null&&a!==void 0?a:u.message),!1}typeof o=="number"&&(o={logLevel:o});var f=rn("diag"),c=Cd((s=o.logLevel)!==null&&s!==void 0?s:tt.INFO,i);if(f&&!o.suppressOverrideMessage){var d=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";f.warn("Current logger will be overwritten from "+d),c.warn("Current logger will overwrite one already registered from "+d)}return fr("diag",c,n,!0)};n.setLogger=r,n.disable=function(){dr(Ad,n)},n.createComponentLogger=function(i){return new _d(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e})(),Td=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Rd=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Id=(function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var n=this._entries.get(t);if(n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var n=Td(t,2),r=n[0],i=n[1];return[r,i]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new e(this._entries);try{for(var a=Rd(r),s=a.next();!s.done;s=a.next()){var l=s.value;o._entries.delete(l)}}catch(u){t={error:u}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o},e.prototype.clear=function(){return new e},e})();Ct.instance();function Nd(e){return e===void 0&&(e={}),new Id(new Map(Object.entries(e)))}function zl(e){return Symbol.for(e)}var zd=(function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var o=new e(n._currentContext);return o._currentContext.set(r,i),o},n.deleteValue=function(r){var i=new e(n._currentContext);return i._currentContext.delete(r),i}}return e})(),Od=new zd,ln=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),Pd=(function(){function e(){}return e.prototype.createGauge=function(t,n){return Ud},e.prototype.createHistogram=function(t,n){return Hd},e.prototype.createCounter=function(t,n){return Vd},e.prototype.createUpDownCounter=function(t,n){return Wd},e.prototype.createObservableGauge=function(t,n){return Gd},e.prototype.createObservableCounter=function(t,n){return qd},e.prototype.createObservableUpDownCounter=function(t,n){return Jd},e.prototype.addBatchObservableCallback=function(t,n){},e.prototype.removeBatchObservableCallback=function(t){},e})(),oi=(function(){function e(){}return e})(),jd=(function(e){ln(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t})(oi),Dd=(function(e){ln(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t})(oi),Ld=(function(e){ln(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t})(oi),Md=(function(e){ln(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t})(oi),$o=(function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e})(),$d=(function(e){ln(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})($o),Fd=(function(e){ln(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})($o),Zd=(function(e){ln(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})($o),Bd=new Pd,Vd=new jd,Ud=new Ld,Hd=new Md,Wd=new Dd,qd=new $d,Gd=new Fd,Jd=new Zd,Yd={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},Kd={set:function(e,t,n){e!=null&&(e[t]=n)}},Xd=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Qd=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},ep=(function(){function e(){}return e.prototype.active=function(){return Od},e.prototype.with=function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return n.call.apply(n,Qd([r],Xd(i),!1))},e.prototype.bind=function(t,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e})(),tp=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},np=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Ai="context",rp=new ep,ai=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return fr(Ai,t,Ct.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,n,r){for(var i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return(i=this._getContextManager()).with.apply(i,np([t,n,r],tp(o),!1))},e.prototype.bind=function(t,n){return this._getContextManager().bind(t,n)},e.prototype._getContextManager=function(){return rn(Ai)||rp},e.prototype.disable=function(){this._getContextManager().disable(),dr(Ai,Ct.instance())},e})(),ro;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(ro||(ro={}));var Ol="0000000000000000",Pl="00000000000000000000000000000000",ip={traceId:Pl,spanId:Ol,traceFlags:ro.NONE},Yn=(function(){function e(t){t===void 0&&(t=ip),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,n){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,n){},e})(),Fo=zl("OpenTelemetry Context Key SPAN");function Zo(e){return e.getValue(Fo)||void 0}function op(){return Zo(ai.getInstance().active())}function Bo(e,t){return e.setValue(Fo,t)}function ap(e){return e.deleteValue(Fo)}function sp(e,t){return Bo(e,new Yn(t))}function jl(e){var t;return(t=Zo(e))===null||t===void 0?void 0:t.spanContext()}var lp=/^([0-9a-f]{32})$/i,up=/^[0-9a-f]{16}$/i;function cp(e){return lp.test(e)&&e!==Pl}function fp(e){return up.test(e)&&e!==Ol}function Dl(e){return cp(e.traceId)&&fp(e.spanId)}function dp(e){return new Yn(e)}var Ti=ai.getInstance(),Ll=(function(){function e(){}return e.prototype.startSpan=function(t,n,r){r===void 0&&(r=Ti.active());var i=!!n?.root;if(i)return new Yn;var o=r&&jl(r);return pp(o)&&Dl(o)?new Yn(o):new Yn},e.prototype.startActiveSpan=function(t,n,r,i){var o,a,s;if(!(arguments.length<2)){arguments.length===2?s=n:arguments.length===3?(o=n,s=r):(o=n,a=r,s=i);var l=a??Ti.active(),u=this.startSpan(t,o,l),f=Bo(l,u);return Ti.with(f,s,void 0,u)}},e})();function pp(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var hp=new Ll,mp=(function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.startSpan=function(t,n,r){return this._getTracer().startSpan(t,n,r)},e.prototype.startActiveSpan=function(t,n,r,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):hp},e})(),gp=(function(){function e(){}return e.prototype.getTracer=function(t,n,r){return new Ll},e})(),yp=new gp,Ma=(function(){function e(){}return e.prototype.getTracer=function(t,n,r){var i;return(i=this.getDelegateTracer(t,n,r))!==null&&i!==void 0?i:new mp(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:yp},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,n,r)},e})(),lE=ai.getInstance();Ct.instance();var vp=(function(){function e(){}return e.prototype.getMeter=function(t,n,r){return Bd},e})(),bp=new vp,Ri="metrics",xp=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return fr(Ri,t,Ct.instance())},e.prototype.getMeterProvider=function(){return rn(Ri)||bp},e.prototype.getMeter=function(t,n,r){return this.getMeterProvider().getMeter(t,n,r)},e.prototype.disable=function(){dr(Ri,Ct.instance())},e})();xp.getInstance();var wp=(function(){function e(){}return e.prototype.inject=function(t,n){},e.prototype.extract=function(t,n){return t},e.prototype.fields=function(){return[]},e})(),Vo=zl("OpenTelemetry Baggage Key");function Ml(e){return e.getValue(Vo)||void 0}function kp(){return Ml(ai.getInstance().active())}function _p(e,t){return e.setValue(Vo,t)}function Cp(e){return e.deleteValue(Vo)}var Ii="propagation",Sp=new wp,Ep=(function(){function e(){this.createBaggage=Nd,this.getBaggage=Ml,this.getActiveBaggage=kp,this.setBaggage=_p,this.deleteBaggage=Cp}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return fr(Ii,t,Ct.instance())},e.prototype.inject=function(t,n,r){return r===void 0&&(r=Kd),this._getGlobalPropagator().inject(t,n,r)},e.prototype.extract=function(t,n,r){return r===void 0&&(r=Yd),this._getGlobalPropagator().extract(t,n,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){dr(Ii,Ct.instance())},e.prototype._getGlobalPropagator=function(){return rn(Ii)||Sp},e})();Ep.getInstance();var Ni="trace",Ap=(function(){function e(){this._proxyTracerProvider=new Ma,this.wrapSpanContext=dp,this.isSpanContextValid=Dl,this.deleteSpan=ap,this.getSpan=Zo,this.getActiveSpan=op,this.getSpanContext=jl,this.setSpan=Bo,this.setSpanContext=sp}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var n=fr(Ni,this._proxyTracerProvider,Ct.instance());return n&&this._proxyTracerProvider.setDelegate(t),n},e.prototype.getTracerProvider=function(){return rn(Ni)||this._proxyTracerProvider},e.prototype.getTracer=function(t,n){return this.getTracerProvider().getTracer(t,n)},e.prototype.disable=function(){dr(Ni,Ct.instance()),this._proxyTracerProvider=new Ma},e})(),uE=Ap.getInstance(),$a;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TRACE=1]="TRACE",e[e.TRACE2=2]="TRACE2",e[e.TRACE3=3]="TRACE3",e[e.TRACE4=4]="TRACE4",e[e.DEBUG=5]="DEBUG",e[e.DEBUG2=6]="DEBUG2",e[e.DEBUG3=7]="DEBUG3",e[e.DEBUG4=8]="DEBUG4",e[e.INFO=9]="INFO",e[e.INFO2=10]="INFO2",e[e.INFO3=11]="INFO3",e[e.INFO4=12]="INFO4",e[e.WARN=13]="WARN",e[e.WARN2=14]="WARN2",e[e.WARN3=15]="WARN3",e[e.WARN4=16]="WARN4",e[e.ERROR=17]="ERROR",e[e.ERROR2=18]="ERROR2",e[e.ERROR3=19]="ERROR3",e[e.ERROR4=20]="ERROR4",e[e.FATAL=21]="FATAL",e[e.FATAL2=22]="FATAL2",e[e.FATAL3=23]="FATAL3",e[e.FATAL4=24]="FATAL4"})($a||($a={}));var $l=(function(){function e(){}return e.prototype.emit=function(t){},e})(),Tp=new $l,Rp=(function(){function e(){}return e.prototype.getLogger=function(t,n,r){return new $l},e})(),Fl=new Rp,Ip=(function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.emit=function(t){this._getLogger().emit(t)},e.prototype._getLogger=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Tp},e})(),Fa=(function(){function e(){}return e.prototype.getLogger=function(t,n,r){var i;return(i=this.getDelegateLogger(t,n,r))!==null&&i!==void 0?i:new Ip(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Fl},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateLogger=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(t,n,r)},e})(),Np=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},_r=Symbol.for("io.opentelemetry.js.api.logs"),Bn=Np;function zp(e,t,n){return function(r){return r===e?t:n}}var Za=1,Op=(function(){function e(){this._proxyLoggerProvider=new Fa}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(t){return Bn[_r]?this.getLoggerProvider():(Bn[_r]=zp(Za,t,Fl),this._proxyLoggerProvider.setDelegate(t),t)},e.prototype.getLoggerProvider=function(){var t,n;return(n=(t=Bn[_r])===null||t===void 0?void 0:t.call(Bn,Za))!==null&&n!==void 0?n:this._proxyLoggerProvider},e.prototype.getLogger=function(t,n,r){return this.getLoggerProvider().getLogger(t,n,r)},e.prototype.disable=function(){delete Bn[_r],this._proxyLoggerProvider=new Fa},e})(),cE=Op.getInstance(),ye;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const a of i)o[a]=a;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),a={};for(const s of o)a[s]=i[s];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&o.push(a);return o},e.find=(i,o)=>{for(const a of i)if(o(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(ye||(ye={}));var Ba;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Ba||(Ba={}));const J=ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Bt=e=>{switch(typeof e){case"undefined":return J.undefined;case"string":return J.string;case"number":return Number.isNaN(e)?J.nan:J.number;case"boolean":return J.boolean;case"function":return J.function;case"bigint":return J.bigint;case"symbol":return J.symbol;case"object":return Array.isArray(e)?J.array:e===null?J.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?J.promise:typeof Map<"u"&&e instanceof Map?J.map:typeof Set<"u"&&e instanceof Set?J.set:typeof Date<"u"&&e instanceof Date?J.date:J.object;default:return J.unknown}},L=ye.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class It extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let s=r,l=0;for(;l<a.path.length;){const u=a.path[l];l===a.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(a))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return i(this),r}static assert(t){if(!(t instanceof It))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const o=i.path[0];n[o]=n[o]||[],n[o].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}It.create=e=>new It(e);const io=(e,t)=>{let n;switch(e.code){case L.invalid_type:e.received===J.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case L.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ye.jsonStringifyReplacer)}`;break;case L.unrecognized_keys:n=`Unrecognized key(s) in object: ${ye.joinValues(e.keys,", ")}`;break;case L.invalid_union:n="Invalid input";break;case L.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ye.joinValues(e.options)}`;break;case L.invalid_enum_value:n=`Invalid enum value. Expected ${ye.joinValues(e.options)}, received '${e.received}'`;break;case L.invalid_arguments:n="Invalid function arguments";break;case L.invalid_return_type:n="Invalid function return type";break;case L.invalid_date:n="Invalid date";break;case L.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ye.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case L.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case L.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case L.custom:n="Invalid input";break;case L.invalid_intersection_types:n="Intersection results could not be merged";break;case L.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case L.not_finite:n="Number must be finite";break;default:n=t.defaultError,ye.assertNever(e)}return{message:n}};let Pp=io;function jp(){return Pp}const Dp=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let s="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)s=u(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function H(e,t){const n=jp(),r=Dp({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===io?void 0:io].filter(i=>!!i)});e.common.issues.push(r)}class Be{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return re;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const o=await i.key,a=await i.value;r.push({key:o,value:a})}return Be.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:a}=i;if(o.status==="aborted"||a.status==="aborted")return re;o.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(r[o.value]=a.value)}return{status:t.value,value:r}}}const re=Object.freeze({status:"aborted"}),Gn=e=>({status:"dirty",value:e}),ut=e=>({status:"valid",value:e}),Va=e=>e.status==="aborted",Ua=e=>e.status==="dirty",Cn=e=>e.status==="valid",Zr=e=>typeof Promise<"u"&&e instanceof Promise;var Y;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Y||(Y={}));class St{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Ha=(e,t)=>{if(Cn(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new It(e.common.issues);return this._error=n,this._error}}};function se(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(a,s)=>{const{message:l}=e;return a.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??r??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:l??n??s.defaultError}},description:i}}let de=class{get description(){return this._def.description}_getType(t){return Bt(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Bt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Be,ctx:{common:t.parent.common,data:t.data,parsedType:Bt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Zr(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Bt(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Ha(r,i)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Bt(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return Cn(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>Cn(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Bt(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(Zr(i)?i:Promise.resolve(i));return Ha(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const a=t(i),s=()=>o.addIssue({code:L.custom,...r(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new En({schema:this,typeName:ne.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Vt.create(this,this._def)}nullable(){return An.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Sn.create(this)}promise(){return Wr.create(this,this._def)}or(t){return Ur.create([this,t],this._def)}and(t){return Hr.create(this,t,this._def)}transform(t){return new En({...se(this._def),schema:this,typeName:ne.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new mo({...se(this._def),innerType:this,defaultValue:n,typeName:ne.ZodDefault})}brand(){return new ah({typeName:ne.ZodBranded,type:this,...se(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new go({...se(this._def),innerType:this,catchValue:n,typeName:ne.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ho.create(this,t)}readonly(){return yo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};const Lp=/^c[^\s-]{8,}$/i,Mp=/^[0-9a-z]+$/,$p=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Fp=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Zp=/^[a-z0-9_-]{21}$/i,Bp=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Vp=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Up=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Hp="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let zi;const Wp=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,qp=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Gp=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Jp=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Yp=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Kp=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Zl="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Xp=new RegExp(`^${Zl}$`);function Bl(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Qp(e){return new RegExp(`^${Bl(e)}$`)}function eh(e){let t=`${Zl}T${Bl(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function th(e,t){return!!((t==="v4"||!t)&&Wp.test(e)||(t==="v6"||!t)&&Gp.test(e))}function nh(e,t){if(!Bp.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function rh(e,t){return!!((t==="v4"||!t)&&qp.test(e)||(t==="v6"||!t)&&Jp.test(e))}let Br=class Jn extends de{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==J.string){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_type,expected:J.string,received:o.parsedType}),re}const r=new Be;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const a=t.data.length>o.value,s=t.data.length<o.value;(a||s)&&(i=this._getOrReturnCtx(t,i),a?H(i,{code:L.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&H(i,{code:L.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Up.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"email",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")zi||(zi=new RegExp(Hp,"u")),zi.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"emoji",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Fp.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"uuid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")Zp.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"nanoid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Lp.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cuid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Mp.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cuid2",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")$p.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"ulid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),H(i,{validation:"url",code:L.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"regex",code:L.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?eh(o).test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?Xp.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?Qp(o).test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?Vp.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"duration",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?th(t.data,o.version)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"ip",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?nh(t.data,o.alg)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"jwt",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?rh(t.data,o.version)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cidr",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?Yp.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"base64",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?Kp.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"base64url",code:L.invalid_string,message:o.message}),r.dirty()):ye.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:L.invalid_string,...Y.errToObj(r)})}_addCheck(t){return new Jn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Y.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Y.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Y.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Y.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Y.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Y.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Y.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Y.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Y.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Y.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Y.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Y.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Y.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Y.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Y.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Y.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Y.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...Y.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Y.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Y.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Y.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Y.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Y.errToObj(n)})}nonempty(t){return this.min(1,Y.errToObj(t))}trim(){return new Jn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Jn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Jn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Br.create=e=>new Br({checks:[],typeName:ne.ZodString,coerce:e?.coerce??!1,...se(e)});function ih(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(t.toFixed(i).replace(".",""));return o%a/10**i}let oo=class ao extends de{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==J.number){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_type,expected:J.number,received:o.parsedType}),re}let r;const i=new Be;for(const o of this._def.checks)o.kind==="int"?ye.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),H(r,{code:L.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?ih(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_finite,message:o.message}),i.dirty()):ye.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Y.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Y.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Y.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Y.toString(n))}setLimit(t,n,r,i){return new ao({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Y.toString(i)}]})}_addCheck(t){return new ao({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Y.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Y.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Y.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Y.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Y.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Y.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ye.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};oo.create=e=>new oo({checks:[],typeName:ne.ZodNumber,coerce:e?.coerce||!1,...se(e)});class nr extends de{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==J.bigint)return this._getInvalidInput(t);let r;const i=new Be;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):ye.assertNever(o);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return H(n,{code:L.invalid_type,expected:J.bigint,received:n.parsedType}),re}gte(t,n){return this.setLimit("min",t,!0,Y.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Y.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Y.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Y.toString(n))}setLimit(t,n,r,i){return new nr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Y.toString(i)}]})}_addCheck(t){return new nr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Y.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Y.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}nr.create=e=>new nr({checks:[],typeName:ne.ZodBigInt,coerce:e?.coerce??!1,...se(e)});let so=class extends de{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==J.boolean){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:J.boolean,received:r.parsedType}),re}return ut(t.data)}};so.create=e=>new so({typeName:ne.ZodBoolean,coerce:e?.coerce||!1,...se(e)});class Vr extends de{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==J.date){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_type,expected:J.date,received:o.parsedType}),re}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_date}),re}const r=new Be;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):ye.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Vr({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Y.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Y.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Vr.create=e=>new Vr({checks:[],coerce:e?.coerce||!1,typeName:ne.ZodDate,...se(e)});class Wa extends de{_parse(t){if(this._getType(t)!==J.symbol){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:J.symbol,received:r.parsedType}),re}return ut(t.data)}}Wa.create=e=>new Wa({typeName:ne.ZodSymbol,...se(e)});class qa extends de{_parse(t){if(this._getType(t)!==J.undefined){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:J.undefined,received:r.parsedType}),re}return ut(t.data)}}qa.create=e=>new qa({typeName:ne.ZodUndefined,...se(e)});class lo extends de{_parse(t){if(this._getType(t)!==J.null){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:J.null,received:r.parsedType}),re}return ut(t.data)}}lo.create=e=>new lo({typeName:ne.ZodNull,...se(e)});let Ga=class extends de{constructor(){super(...arguments),this._any=!0}_parse(t){return ut(t.data)}};Ga.create=e=>new Ga({typeName:ne.ZodAny,...se(e)});let uo=class extends de{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ut(t.data)}};uo.create=e=>new uo({typeName:ne.ZodUnknown,...se(e)});let Ut=class extends de{_parse(t){const n=this._getOrReturnCtx(t);return H(n,{code:L.invalid_type,expected:J.never,received:n.parsedType}),re}};Ut.create=e=>new Ut({typeName:ne.ZodNever,...se(e)});class Ja extends de{_parse(t){if(this._getType(t)!==J.undefined){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:J.void,received:r.parsedType}),re}return ut(t.data)}}Ja.create=e=>new Ja({typeName:ne.ZodVoid,...se(e)});let Sn=class Mr extends de{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==J.array)return H(n,{code:L.invalid_type,expected:J.array,received:n.parsedType}),re;if(i.exactLength!==null){const a=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(a||s)&&(H(n,{code:a?L.too_big:L.too_small,minimum:s?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(H(n,{code:L.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(H(n,{code:L.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=>i.type._parseAsync(new St(n,a,n.path,s)))).then(a=>Be.mergeArray(r,a));const o=[...n.data].map((a,s)=>i.type._parseSync(new St(n,a,n.path,s)));return Be.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Mr({...this._def,minLength:{value:t,message:Y.toString(n)}})}max(t,n){return new Mr({...this._def,maxLength:{value:t,message:Y.toString(n)}})}length(t,n){return new Mr({...this._def,exactLength:{value:t,message:Y.toString(n)}})}nonempty(t){return this.min(1,t)}};Sn.create=(e,t)=>new Sn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ne.ZodArray,...se(t)});function yn(e){if(e instanceof Nt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Vt.create(yn(r))}return new Nt({...e._def,shape:()=>t})}else return e instanceof Sn?new Sn({...e._def,type:yn(e.element)}):e instanceof Vt?Vt.create(yn(e.unwrap())):e instanceof An?An.create(yn(e.unwrap())):e instanceof on?on.create(e.items.map(t=>yn(t))):e}let Nt=class mt extends de{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ye.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==J.object){const u=this._getOrReturnCtx(t);return H(u,{code:L.invalid_type,expected:J.object,received:u.parsedType}),re}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof Ut&&this._def.unknownKeys==="strip"))for(const u in i.data)a.includes(u)||s.push(u);const l=[];for(const u of a){const f=o[u],c=i.data[u];l.push({key:{status:"valid",value:u},value:f._parse(new St(i,c,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof Ut){const u=this._def.unknownKeys;if(u==="passthrough")for(const f of s)l.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(u==="strict")s.length>0&&(H(i,{code:L.unrecognized_keys,keys:s}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const f of s){const c=i.data[f];l.push({key:{status:"valid",value:f},value:u._parse(new St(i,c,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const f of l){const c=await f.key,d=await f.value;u.push({key:c,value:d,alwaysSet:f.alwaysSet})}return u}).then(u=>Be.mergeObjectSync(r,u)):Be.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return Y.errToObj,new mt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{const i=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:Y.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new mt({...this._def,unknownKeys:"strip"})}passthrough(){return new mt({...this._def,unknownKeys:"passthrough"})}extend(t){return new mt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new mt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ne.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new mt({...this._def,catchall:t})}pick(t){const n={};for(const r of ye.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new mt({...this._def,shape:()=>n})}omit(t){const n={};for(const r of ye.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new mt({...this._def,shape:()=>n})}deepPartial(){return yn(this)}partial(t){const n={};for(const r of ye.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new mt({...this._def,shape:()=>n})}required(t){const n={};for(const r of ye.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Vt;)o=o._def.innerType;n[r]=o}return new mt({...this._def,shape:()=>n})}keyof(){return Vl(ye.objectKeys(this.shape))}};Nt.create=(e,t)=>new Nt({shape:()=>e,unknownKeys:"strip",catchall:Ut.create(),typeName:ne.ZodObject,...se(t)});Nt.strictCreate=(e,t)=>new Nt({shape:()=>e,unknownKeys:"strict",catchall:Ut.create(),typeName:ne.ZodObject,...se(t)});Nt.lazycreate=(e,t)=>new Nt({shape:e,unknownKeys:"strip",catchall:Ut.create(),typeName:ne.ZodObject,...se(t)});let Ur=class extends de{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const s of o)if(s.result.status==="valid")return s.result;for(const s of o)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const a=o.map(s=>new It(s.ctx.common.issues));return H(n,{code:L.invalid_union,unionErrors:a}),re}if(n.common.async)return Promise.all(r.map(async o=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(i);{let o;const a=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},f=l._parseSync({data:n.data,path:n.path,parent:u});if(f.status==="valid")return f;f.status==="dirty"&&!o&&(o={result:f,ctx:u}),u.common.issues.length&&a.push(u.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(l=>new It(l));return H(n,{code:L.invalid_union,unionErrors:s}),re}}get options(){return this._def.options}};Ur.create=(e,t)=>new Ur({options:e,typeName:ne.ZodUnion,...se(t)});function co(e,t){const n=Bt(e),r=Bt(t);if(e===t)return{valid:!0,data:e};if(n===J.object&&r===J.object){const i=ye.objectKeys(t),o=ye.objectKeys(e).filter(s=>i.indexOf(s)!==-1),a={...e,...t};for(const s of o){const l=co(e[s],t[s]);if(!l.valid)return{valid:!1};a[s]=l.data}return{valid:!0,data:a}}else if(n===J.array&&r===J.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const a=e[o],s=t[o],l=co(a,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===J.date&&r===J.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}let Hr=class extends de{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,a)=>{if(Va(o)||Va(a))return re;const s=co(o.value,a.value);return s.valid?((Ua(o)||Ua(a))&&n.dirty(),{status:n.value,value:s.data}):(H(r,{code:L.invalid_intersection_types}),re)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,a])=>i(o,a)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};Hr.create=(e,t,n)=>new Hr({left:e,right:t,typeName:ne.ZodIntersection,...se(n)});class on extends de{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==J.array)return H(r,{code:L.invalid_type,expected:J.array,received:r.parsedType}),re;if(r.data.length<this._def.items.length)return H(r,{code:L.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),re;!this._def.rest&&r.data.length>this._def.items.length&&(H(r,{code:L.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((a,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new St(r,a,r.path,s)):null}).filter(a=>!!a);return r.common.async?Promise.all(o).then(a=>Be.mergeArray(n,a)):Be.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new on({...this._def,rest:t})}}on.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new on({items:e,typeName:ne.ZodTuple,rest:null,...se(t)})};let oh=class fo extends de{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==J.object)return H(r,{code:L.invalid_type,expected:J.object,received:r.parsedType}),re;const i=[],o=this._def.keyType,a=this._def.valueType;for(const s in r.data)i.push({key:o._parse(new St(r,s,r.path,s)),value:a._parse(new St(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Be.mergeObjectAsync(n,i):Be.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof de?new fo({keyType:t,valueType:n,typeName:ne.ZodRecord,...se(r)}):new fo({keyType:Br.create(),valueType:t,typeName:ne.ZodRecord,...se(n)})}};class Ya extends de{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==J.map)return H(r,{code:L.invalid_type,expected:J.map,received:r.parsedType}),re;const i=this._def.keyType,o=this._def.valueType,a=[...r.data.entries()].map(([s,l],u)=>({key:i._parse(new St(r,s,r.path,[u,"key"])),value:o._parse(new St(r,l,r.path,[u,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of a){const u=await l.key,f=await l.value;if(u.status==="aborted"||f.status==="aborted")return re;(u.status==="dirty"||f.status==="dirty")&&n.dirty(),s.set(u.value,f.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of a){const u=l.key,f=l.value;if(u.status==="aborted"||f.status==="aborted")return re;(u.status==="dirty"||f.status==="dirty")&&n.dirty(),s.set(u.value,f.value)}return{status:n.value,value:s}}}}Ya.create=(e,t,n)=>new Ya({valueType:t,keyType:e,typeName:ne.ZodMap,...se(n)});class rr extends de{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==J.set)return H(r,{code:L.invalid_type,expected:J.set,received:r.parsedType}),re;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(H(r,{code:L.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(H(r,{code:L.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function a(l){const u=new Set;for(const f of l){if(f.status==="aborted")return re;f.status==="dirty"&&n.dirty(),u.add(f.value)}return{status:n.value,value:u}}const s=[...r.data.values()].map((l,u)=>o._parse(new St(r,l,r.path,u)));return r.common.async?Promise.all(s).then(l=>a(l)):a(s)}min(t,n){return new rr({...this._def,minSize:{value:t,message:Y.toString(n)}})}max(t,n){return new rr({...this._def,maxSize:{value:t,message:Y.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}rr.create=(e,t)=>new rr({valueType:e,minSize:null,maxSize:null,typeName:ne.ZodSet,...se(t)});class Ka extends de{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Ka.create=(e,t)=>new Ka({getter:e,typeName:ne.ZodLazy,...se(t)});let po=class extends de{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return H(n,{received:n.data,code:L.invalid_literal,expected:this._def.value}),re}return{status:"valid",value:t.data}}get value(){return this._def.value}};po.create=(e,t)=>new po({value:e,typeName:ne.ZodLiteral,...se(t)});function Vl(e,t){return new Uo({values:e,typeName:ne.ZodEnum,...se(t)})}let Uo=class ho extends de{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return H(n,{expected:ye.joinValues(r),received:n.parsedType,code:L.invalid_type}),re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return H(n,{received:n.data,code:L.invalid_enum_value,options:r}),re}return ut(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return ho.create(t,{...this._def,...n})}exclude(t,n=this._def){return ho.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};Uo.create=Vl;class Xa extends de{_parse(t){const n=ye.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==J.string&&r.parsedType!==J.number){const i=ye.objectValues(n);return H(r,{expected:ye.joinValues(i),received:r.parsedType,code:L.invalid_type}),re}if(this._cache||(this._cache=new Set(ye.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=ye.objectValues(n);return H(r,{received:r.data,code:L.invalid_enum_value,options:i}),re}return ut(t.data)}get enum(){return this._def.values}}Xa.create=(e,t)=>new Xa({values:e,typeName:ne.ZodNativeEnum,...se(t)});class Wr extends de{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==J.promise&&n.common.async===!1)return H(n,{code:L.invalid_type,expected:J.promise,received:n.parsedType}),re;const r=n.parsedType===J.promise?n.data:Promise.resolve(n.data);return ut(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Wr.create=(e,t)=>new Wr({type:e,typeName:ne.ZodPromise,...se(t)});class En extends de{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ne.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:a=>{H(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const a=i.transform(r.data,o);if(r.common.async)return Promise.resolve(a).then(async s=>{if(n.value==="aborted")return re;const l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?re:l.status==="dirty"||n.value==="dirty"?Gn(l.value):l});{if(n.value==="aborted")return re;const s=this._def.schema._parseSync({data:a,path:r.path,parent:r});return s.status==="aborted"?re:s.status==="dirty"||n.value==="dirty"?Gn(s.value):s}}if(i.type==="refinement"){const a=s=>{const l=i.refinement(s,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?re:(s.status==="dirty"&&n.dirty(),a(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?re:(s.status==="dirty"&&n.dirty(),a(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Cn(a))return re;const s=i.transform(a.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>Cn(a)?Promise.resolve(i.transform(a.value,o)).then(s=>({status:n.value,value:s})):re);ye.assertNever(i)}}En.create=(e,t,n)=>new En({schema:e,typeName:ne.ZodEffects,effect:t,...se(n)});En.createWithPreprocess=(e,t,n)=>new En({schema:t,effect:{type:"preprocess",transform:e},typeName:ne.ZodEffects,...se(n)});let Vt=class extends de{_parse(t){return this._getType(t)===J.undefined?ut(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Vt.create=(e,t)=>new Vt({innerType:e,typeName:ne.ZodOptional,...se(t)});let An=class extends de{_parse(t){return this._getType(t)===J.null?ut(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};An.create=(e,t)=>new An({innerType:e,typeName:ne.ZodNullable,...se(t)});let mo=class extends de{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===J.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};mo.create=(e,t)=>new mo({innerType:e,typeName:ne.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...se(t)});let go=class extends de{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Zr(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new It(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new It(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};go.create=(e,t)=>new go({innerType:e,typeName:ne.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...se(t)});class Qa extends de{_parse(t){if(this._getType(t)!==J.nan){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:J.nan,received:r.parsedType}),re}return{status:"valid",value:t.data}}}Qa.create=e=>new Qa({typeName:ne.ZodNaN,...se(e)});class ah extends de{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ho extends de{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?re:o.status==="dirty"?(n.dirty(),Gn(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?re:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new Ho({in:t,out:n,typeName:ne.ZodPipeline})}}let yo=class extends de{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Cn(i)&&(i.value=Object.freeze(i.value)),i);return Zr(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}};yo.create=(e,t)=>new yo({innerType:e,typeName:ne.ZodReadonly,...se(t)});var ne;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ne||(ne={}));const CE=Br.create,SE=oo.create,EE=so.create,AE=lo.create,TE=uo.create;Ut.create;const RE=Sn.create,IE=Nt.create,NE=Ur.create;Hr.create;on.create;const zE=oh.create,OE=po.create;Uo.create;Wr.create;Vt.create;An.create;const es=e=>{let t;const n=new Set,r=(u,f)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const d=t;t=f??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(p=>p(t,d))}},i=()=>t,s={setState:r,getState:i,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u))},l=t=e(r,i,s);return s},sh=(e=>e?es(e):es),lh=e=>e;function uh(e,t=lh){const n=F.useSyncExternalStore(e.subscribe,F.useCallback(()=>t(e.getState()),[e,t]),F.useCallback(()=>t(e.getInitialState()),[e,t]));return F.useDebugValue(n),n}const ts=e=>{const t=sh(e),n=r=>uh(t,r);return Object.assign(n,t),n},PE=(e=>e?ts(e):ts);function T(e,t,n){function r(s,l){var u;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(u=s._zod).traits??(u.traits=new Set),s._zod.traits.add(e),t(s,l);for(const f in a.prototype)f in s||Object.defineProperty(s,f,{value:a.prototype[f].bind(s)});s._zod.constr=a,s._zod.def=l}const i=n?.Parent??Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function a(s){var l;const u=n?.Parent?new o:this;r(u,s),(l=u._zod).deferred??(l.deferred=[]);for(const f of u._zod.deferred)f();return u}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class wn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ul extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Hl={};function Ht(e){return Hl}function ch(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function vo(e,t){return typeof t=="bigint"?t.toString():t}function si(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Wo(e){return e==null}function qo(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function fh(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const l=r.match(/\d?e-(\d?)/);l?.[1]&&(i=Number.parseInt(l[1]))}const o=n>i?n:i,a=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return a%s/10**o}const ns=Symbol("evaluating");function we(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==ns)return r===void 0&&(r=ns,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function un(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function cn(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function rs(e){return JSON.stringify(e)}const Wl="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ir(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const dh=si(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Tn(e){if(ir(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(ir(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function ql(e){return Tn(e)?{...e}:Array.isArray(e)?[...e]:e}const ph=new Set(["string","number","symbol"]);function Rn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Jt(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function K(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function hh(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const mh={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function gh(e,t){const n=e._zod.def,r=cn(e._zod.def,{get shape(){const i={};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(i[o]=n.shape[o])}return un(this,"shape",i),i},checks:[]});return Jt(e,r)}function yh(e,t){const n=e._zod.def,r=cn(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete i[o]}return un(this,"shape",i),i},checks:[]});return Jt(e,r)}function vh(e,t){if(!Tn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=cn(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return un(this,"shape",o),o},checks:[]});return Jt(e,i)}function bh(e,t){if(!Tn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return un(this,"shape",r),r},checks:e._zod.def.checks};return Jt(e,n)}function xh(e,t){const n=cn(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return un(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Jt(e,n)}function wh(e,t,n){const r=cn(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=e?new e({type:"optional",innerType:i[a]}):i[a])}else for(const a in i)o[a]=e?new e({type:"optional",innerType:i[a]}):i[a];return un(this,"shape",o),o},checks:[]});return Jt(t,r)}function kh(e,t,n){const r=cn(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(n)for(const a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:i[a]}))}else for(const a in i)o[a]=new e({type:"nonoptional",innerType:i[a]});return un(this,"shape",o),o},checks:[]});return Jt(t,r)}function bn(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function xn(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Cr(e){return typeof e=="string"?e:e?.message}function Wt(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=Cr(e.inst?._zod.def?.error?.(e))??Cr(t?.error?.(e))??Cr(n.customError?.(e))??Cr(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Go(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function or(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Gl=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,vo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Jl=T("$ZodError",Gl),Yl=T("$ZodError",Gl,{Parent:Error});function _h(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Ch(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>r({issues:a}));else if(o.code==="invalid_key")r({issues:o.issues});else if(o.code==="invalid_element")r({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let a=n,s=0;for(;s<o.path.length;){const l=o.path[s];s===o.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(o))):a[l]=a[l]||{_errors:[]},a=a[l],s++}}};return r(e),n}const Jo=e=>(t,n,r,i)=>{const o=r?Object.assign(r,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new wn;if(a.issues.length){const s=new(i?.Err??e)(a.issues.map(l=>Wt(l,o,Ht())));throw Wl(s,i?.callee),s}return a.value},Yo=e=>async(t,n,r,i)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){const s=new(i?.Err??e)(a.issues.map(l=>Wt(l,o,Ht())));throw Wl(s,i?.callee),s}return a.value},li=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new wn;return o.issues.length?{success:!1,error:new(e??Jl)(o.issues.map(a=>Wt(a,i,Ht())))}:{success:!0,data:o.value}},Sh=li(Yl),ui=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>Wt(a,i,Ht())))}:{success:!0,data:o.value}},Eh=ui(Yl),Ah=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Jo(e)(t,n,i)},Th=e=>(t,n,r)=>Jo(e)(t,n,r),Rh=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Yo(e)(t,n,i)},Ih=e=>async(t,n,r)=>Yo(e)(t,n,r),Nh=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return li(e)(t,n,i)},zh=e=>(t,n,r)=>li(e)(t,n,r),Oh=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ui(e)(t,n,i)},Ph=e=>async(t,n,r)=>ui(e)(t,n,r),jh=/^[cC][^\s-]{8,}$/,Dh=/^[0-9a-z]+$/,Lh=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Mh=/^[0-9a-vA-V]{20}$/,$h=/^[A-Za-z0-9]{27}$/,Fh=/^[a-zA-Z0-9_-]{21}$/,Zh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Bh=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,is=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Vh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Uh="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Hh(){return new RegExp(Uh,"u")}const Wh=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,qh=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Gh=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Jh=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Yh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Kl=/^[A-Za-z0-9_-]*$/,Kh=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Xh=/^\+(?:[0-9]){6,14}[0-9]$/,Xl="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Qh=new RegExp(`^${Xl}$`);function Ql(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function em(e){return new RegExp(`^${Ql(e)}$`)}function tm(e){const t=Ql({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Xl}T(?:${r})$`)}const nm=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},rm=/^-?\d+$/,im=/^-?\d+(?:\.\d+)?/,om=/^(?:true|false)$/i,am=/^[^A-Z]*$/,sm=/^[^a-z]*$/,qe=T("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),eu={number:"number",bigint:"bigint",object:"date"},tu=T("$ZodCheckLessThan",(e,t)=>{qe.init(e,t);const n=eu[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),nu=T("$ZodCheckGreaterThan",(e,t)=>{qe.init(e,t);const n=eu[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),lm=T("$ZodCheckMultipleOf",(e,t)=>{qe.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):fh(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),um=T("$ZodCheckNumberFormat",(e,t)=>{qe.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,o]=mh[t.format];e._zod.onattach.push(a=>{const s=a._zod.bag;s.format=t.format,s.minimum=i,s.maximum=o,n&&(s.pattern=rm)}),e._zod.check=a=>{const s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}s<i&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inst:e})}}),cm=T("$ZodCheckMaxLength",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Wo(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const a=Go(i);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),fm=T("$ZodCheckMinLength",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Wo(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const a=Go(i);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),dm=T("$ZodCheckLengthEquals",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Wo(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,o=i.length;if(o===t.length)return;const a=Go(i),s=o>t.length;r.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ci=T("$ZodCheckStringFormat",(e,t)=>{var n,r;qe.init(e,t),e._zod.onattach.push(i=>{const o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),pm=T("$ZodCheckRegex",(e,t)=>{ci.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),hm=T("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=am),ci.init(e,t)}),mm=T("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=sm),ci.init(e,t)}),gm=T("$ZodCheckIncludes",(e,t)=>{qe.init(e,t);const n=Rn(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),ym=T("$ZodCheckStartsWith",(e,t)=>{qe.init(e,t);const n=new RegExp(`^${Rn(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),vm=T("$ZodCheckEndsWith",(e,t)=>{qe.init(e,t);const n=new RegExp(`.*${Rn(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),bm=T("$ZodCheckOverwrite",(e,t)=>{qe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class xm{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
2
- `).filter(a=>a),i=Math.min(...r.map(a=>a.length-a.trimStart().length)),o=r.map(a=>a.slice(i)).map(a=>" ".repeat(this.indent*2)+a);for(const a of o)this.content.push(a)}compile(){const t=Function,n=this?.args,i=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,i.join(`
3
- `))}}const wm={major:4,minor:1,patch:12},Se=T("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=wm;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const o of i._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(a,s,l)=>{let u=bn(a),f;for(const c of s){if(c._zod.def.when){if(!c._zod.def.when(a))continue}else if(u)continue;const d=a.issues.length,p=c._zod.check(a);if(p instanceof Promise&&l?.async===!1)throw new wn;if(f||p instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await p,a.issues.length!==d&&(u||(u=bn(a,d)))});else{if(a.issues.length===d)continue;u||(u=bn(a,d))}}return f?f.then(()=>a):a},o=(a,s,l)=>{if(bn(a))return a.aborted=!0,a;const u=i(s,r,l);if(u instanceof Promise){if(l.async===!1)throw new wn;return u.then(f=>e._zod.parse(f,l))}return e._zod.parse(u,l)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){const u=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(f=>o(f,a,s)):o(u,a,s)}const l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new wn;return l.then(u=>i(u,r,s))}return i(l,r,s)}}e["~standard"]={validate:i=>{try{const o=Sh(e,i);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Eh(e,i).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Ko=T("$ZodString",(e,t)=>{Se.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??nm(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Ee=T("$ZodStringFormat",(e,t)=>{ci.init(e,t),Ko.init(e,t)}),km=T("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Bh),Ee.init(e,t)}),_m=T("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=is(r))}else t.pattern??(t.pattern=is());Ee.init(e,t)}),Cm=T("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Vh),Ee.init(e,t)}),Sm=T("$ZodURL",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Kh.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Em=T("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Hh()),Ee.init(e,t)}),Am=T("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Fh),Ee.init(e,t)}),Tm=T("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=jh),Ee.init(e,t)}),Rm=T("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Dh),Ee.init(e,t)}),Im=T("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Lh),Ee.init(e,t)}),Nm=T("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Mh),Ee.init(e,t)}),zm=T("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=$h),Ee.init(e,t)}),Om=T("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=tm(t)),Ee.init(e,t)}),Pm=T("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Qh),Ee.init(e,t)}),jm=T("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=em(t)),Ee.init(e,t)}),Dm=T("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Zh),Ee.init(e,t)}),Lm=T("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Wh),Ee.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),Mm=T("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=qh),Ee.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),$m=T("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Gh),Ee.init(e,t)}),Fm=T("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Jh),Ee.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,o]=r;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ru(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Zm=T("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Yh),Ee.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{ru(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Bm(e){if(!Kl.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ru(n)}const Vm=T("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Kl),Ee.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{Bm(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Um=T("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Xh),Ee.init(e,t)});function Hm(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const Wm=T("$ZodJWT",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{Hm(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),iu=T("$ZodNumber",(e,t)=>{Se.init(e,t),e._zod.pattern=e._zod.bag.pattern??im,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),qm=T("$ZodNumber",(e,t)=>{um.init(e,t),iu.init(e,t)}),Gm=T("$ZodBoolean",(e,t)=>{Se.init(e,t),e._zod.pattern=om,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),Jm=T("$ZodAny",(e,t)=>{Se.init(e,t),e._zod.parse=n=>n}),Ym=T("$ZodUnknown",(e,t)=>{Se.init(e,t),e._zod.parse=n=>n}),Km=T("$ZodNever",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function os(e,t,n){e.issues.length&&t.issues.push(...xn(n,e.issues)),t.value[n]=e.value}const Xm=T("$ZodArray",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const o=[];for(let a=0;a<i.length;a++){const s=i[a],l=t.element._zod.run({value:s,issues:[]},r);l instanceof Promise?o.push(l.then(u=>os(u,n,a))):os(l,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function qr(e,t,n,r){e.issues.length&&t.issues.push(...xn(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function ou(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=hh(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function au(e,t,n,r,i,o){const a=[],s=i.keySet,l=i.catchall._zod,u=l.def.type;for(const f of Object.keys(t)){if(s.has(f))continue;if(u==="never"){a.push(f);continue}const c=l.run({value:t[f],issues:[]},r);c instanceof Promise?e.push(c.then(d=>qr(d,n,f,t))):qr(c,n,f,t)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const Qm=T("$ZodObject",(e,t)=>{if(Se.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}const r=si(()=>ou(t));we(e._zod,"propValues",()=>{const s=t.shape,l={};for(const u in s){const f=s[u]._zod;if(f.values){l[u]??(l[u]=new Set);for(const c of f.values)l[u].add(c)}}return l});const i=ir,o=t.catchall;let a;e._zod.parse=(s,l)=>{a??(a=r.value);const u=s.value;if(!i(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};const f=[],c=a.shape;for(const d of a.keys){const h=c[d]._zod.run({value:u[d],issues:[]},l);h instanceof Promise?f.push(h.then(v=>qr(v,s,d,u))):qr(h,s,d,u)}return o?au(f,u,s,l,r.value,e):f.length?Promise.all(f).then(()=>s):s}}),eg=T("$ZodObjectJIT",(e,t)=>{Qm.init(e,t);const n=e._zod.parse,r=si(()=>ou(t)),i=d=>{const p=new xm(["shape","payload","ctx"]),h=r.value,v=x=>{const R=rs(x);return`shape[${R}]._zod.run({ value: input[${R}], issues: [] }, ctx)`};p.write("const input = payload.value;");const b=Object.create(null);let y=0;for(const x of h.keys)b[x]=`key_${y++}`;p.write("const newResult = {};");for(const x of h.keys){const R=b[x],N=rs(x);p.write(`const ${R} = ${v(x)};`),p.write(`
4
- if (${R}.issues.length) {
5
- payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
6
- ...iss,
7
- path: iss.path ? [${N}, ...iss.path] : [${N}]
8
- })));
9
- }
10
-
11
-
12
- if (${R}.value === undefined) {
13
- if (${N} in input) {
14
- newResult[${N}] = undefined;
15
- }
16
- } else {
17
- newResult[${N}] = ${R}.value;
18
- }
19
-
20
- `)}p.write("payload.value = newResult;"),p.write("return payload;");const _=p.compile();return(x,R)=>_(d,x,R)};let o;const a=ir,s=!Hl.jitless,u=s&&dh.value,f=t.catchall;let c;e._zod.parse=(d,p)=>{c??(c=r.value);const h=d.value;return a(h)?s&&u&&p?.async===!1&&p.jitless!==!0?(o||(o=i(t.shape)),d=o(d,p),f?au([],h,d,p,c,e):d):n(d,p):(d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d)}});function as(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const i=e.filter(o=>!bn(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>Wt(a,r,Ht())))}),t)}const su=T("$ZodUnion",(e,t)=>{Se.init(e,t),we(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),we(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),we(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),we(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>qo(o.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(n)return r(i,o);let a=!1;const s=[];for(const l of t.options){const u=l._zod.run({value:i.value,issues:[]},o);if(u instanceof Promise)s.push(u),a=!0;else{if(u.issues.length===0)return u;s.push(u)}}return a?Promise.all(s).then(l=>as(l,i,e,o)):as(s,i,e,o)}}),tg=T("$ZodDiscriminatedUnion",(e,t)=>{su.init(e,t);const n=e._zod.parse;we(e._zod,"propValues",()=>{const i={};for(const o of t.options){const a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const[s,l]of Object.entries(a)){i[s]||(i[s]=new Set);for(const u of l)i[s].add(u)}}return i});const r=si(()=>{const i=t.options,o=new Map;for(const a of i){const s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const l of s){if(o.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);o.set(l,a)}}return o});e._zod.parse=(i,o)=>{const a=i.value;if(!ir(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;const s=r.value.get(a?.[t.discriminator]);return s?s._zod.run(i,o):t.unionFallback?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),i)}}),ng=T("$ZodIntersection",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,o=t.left._zod.run({value:i,issues:[]},r),a=t.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([l,u])=>ss(n,l,u)):ss(n,o,a)}});function bo(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Tn(e)&&Tn(t)){const n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};for(const o of r){const a=bo(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};i[o]=a.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],o=t[r],a=bo(i,o);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ss(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),bn(e))return e;const r=bo(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const rg=T("$ZodRecord",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Tn(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;const o=[];if(t.keyType._zod.values){const a=t.keyType._zod.values;n.value={};for(const l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){const u=t.valueType._zod.run({value:i[l],issues:[]},r);u instanceof Promise?o.push(u.then(f=>{f.issues.length&&n.issues.push(...xn(l,f.issues)),n.value[l]=f.value})):(u.issues.length&&n.issues.push(...xn(l,u.issues)),n.value[l]=u.value)}let s;for(const l in i)a.has(l)||(s=s??[],s.push(l));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else{n.value={};for(const a of Reflect.ownKeys(i)){if(a==="__proto__")continue;const s=t.keyType._zod.run({value:a,issues:[]},r);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(u=>Wt(u,r,Ht())),input:a,path:[a],inst:e}),n.value[s.value]=s.value;continue}const l=t.valueType._zod.run({value:i[a],issues:[]},r);l instanceof Promise?o.push(l.then(u=>{u.issues.length&&n.issues.push(...xn(a,u.issues)),n.value[s.value]=u.value})):(l.issues.length&&n.issues.push(...xn(a,l.issues)),n.value[s.value]=l.value)}}return o.length?Promise.all(o).then(()=>n):n}}),ig=T("$ZodEnum",(e,t)=>{Se.init(e,t);const n=ch(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>ph.has(typeof i)).map(i=>typeof i=="string"?Rn(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{const a=i.value;return r.has(a)||i.issues.push({code:"invalid_value",values:n,input:a,inst:e}),i}}),og=T("$ZodLiteral",(e,t)=>{if(Se.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Rn(n):n?Rn(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{const i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),ag=T("$ZodTransform",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ul(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(n.value=a,n));if(i instanceof Promise)throw new wn;return n.value=i,n}});function ls(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const sg=T("$ZodOptional",(e,t)=>{Se.init(e,t),e._zod.optin="optional",e._zod.optout="optional",we(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),we(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${qo(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>ls(o,n.value)):ls(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),lg=T("$ZodNullable",(e,t)=>{Se.init(e,t),we(e._zod,"optin",()=>t.innerType._zod.optin),we(e._zod,"optout",()=>t.innerType._zod.optout),we(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${qo(n.source)}|null)$`):void 0}),we(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),ug=T("$ZodDefault",(e,t)=>{Se.init(e,t),e._zod.optin="optional",we(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>us(o,t)):us(i,t)}});function us(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const cg=T("$ZodPrefault",(e,t)=>{Se.init(e,t),e._zod.optin="optional",we(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),fg=T("$ZodNonOptional",(e,t)=>{Se.init(e,t),we(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>cs(o,e)):cs(i,e)}});function cs(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const dg=T("$ZodCatch",(e,t)=>{Se.init(e,t),we(e._zod,"optin",()=>t.innerType._zod.optin),we(e._zod,"optout",()=>t.innerType._zod.optout),we(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>Wt(a,r,Ht()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(o=>Wt(o,r,Ht()))},input:n.value}),n.issues=[]),n)}}),pg=T("$ZodPipe",(e,t)=>{Se.init(e,t),we(e._zod,"values",()=>t.in._zod.values),we(e._zod,"optin",()=>t.in._zod.optin),we(e._zod,"optout",()=>t.out._zod.optout),we(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=t.out._zod.run(n,r);return o instanceof Promise?o.then(a=>Sr(a,t.in,r)):Sr(o,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(o=>Sr(o,t.out,r)):Sr(i,t.out,r)}});function Sr(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const hg=T("$ZodReadonly",(e,t)=>{Se.init(e,t),we(e._zod,"propValues",()=>t.innerType._zod.propValues),we(e._zod,"values",()=>t.innerType._zod.values),we(e._zod,"optin",()=>t.innerType._zod.optin),we(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(fs):fs(i)}});function fs(e){return e.value=Object.freeze(e.value),e}const mg=T("$ZodCustom",(e,t)=>{qe.init(e,t),Se.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(o=>ds(o,n,r,e));ds(i,n,r,e)}});function ds(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(or(i))}}class gg{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function yg(){return new gg}const Er=yg();function vg(e,t){return new e({type:"string",...K(t)})}function bg(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...K(t)})}function ps(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...K(t)})}function xg(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...K(t)})}function wg(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...K(t)})}function kg(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...K(t)})}function _g(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...K(t)})}function Cg(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...K(t)})}function Sg(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...K(t)})}function Eg(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...K(t)})}function Ag(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...K(t)})}function Tg(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...K(t)})}function Rg(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...K(t)})}function Ig(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...K(t)})}function Ng(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...K(t)})}function zg(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...K(t)})}function Og(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...K(t)})}function Pg(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...K(t)})}function jg(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...K(t)})}function Dg(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...K(t)})}function Lg(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...K(t)})}function Mg(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...K(t)})}function $g(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...K(t)})}function Fg(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...K(t)})}function Zg(e,t){return new e({type:"string",format:"date",check:"string_format",...K(t)})}function Bg(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...K(t)})}function Vg(e,t){return new e({type:"string",format:"duration",check:"string_format",...K(t)})}function Ug(e,t){return new e({type:"number",checks:[],...K(t)})}function Hg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...K(t)})}function Wg(e,t){return new e({type:"boolean",...K(t)})}function qg(e){return new e({type:"any"})}function Gg(e){return new e({type:"unknown"})}function Jg(e,t){return new e({type:"never",...K(t)})}function hs(e,t){return new tu({check:"less_than",...K(t),value:e,inclusive:!1})}function Oi(e,t){return new tu({check:"less_than",...K(t),value:e,inclusive:!0})}function ms(e,t){return new nu({check:"greater_than",...K(t),value:e,inclusive:!1})}function Pi(e,t){return new nu({check:"greater_than",...K(t),value:e,inclusive:!0})}function gs(e,t){return new lm({check:"multiple_of",...K(t),value:e})}function lu(e,t){return new cm({check:"max_length",...K(t),maximum:e})}function Gr(e,t){return new fm({check:"min_length",...K(t),minimum:e})}function uu(e,t){return new dm({check:"length_equals",...K(t),length:e})}function Yg(e,t){return new pm({check:"string_format",format:"regex",...K(t),pattern:e})}function Kg(e){return new hm({check:"string_format",format:"lowercase",...K(e)})}function Xg(e){return new mm({check:"string_format",format:"uppercase",...K(e)})}function Qg(e,t){return new gm({check:"string_format",format:"includes",...K(t),includes:e})}function ey(e,t){return new ym({check:"string_format",format:"starts_with",...K(t),prefix:e})}function ty(e,t){return new vm({check:"string_format",format:"ends_with",...K(t),suffix:e})}function pr(e){return new bm({check:"overwrite",tx:e})}function ny(e){return pr(t=>t.normalize(e))}function ry(){return pr(e=>e.trim())}function iy(){return pr(e=>e.toLowerCase())}function oy(){return pr(e=>e.toUpperCase())}function ay(e,t,n){return new e({type:"array",element:t,...K(n)})}function sy(e,t,n){return new e({type:"custom",check:"custom",fn:t,...K(n)})}function ly(e){const t=uy(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(or(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(or(i))}},e(n.value,n)));return t}function uy(e,t){const n=new qe({check:"custom",...K(t)});return n._zod.check=e,n}const cy=T("ZodISODateTime",(e,t)=>{Om.init(e,t),Re.init(e,t)});function fy(e){return Fg(cy,e)}const dy=T("ZodISODate",(e,t)=>{Pm.init(e,t),Re.init(e,t)});function py(e){return Zg(dy,e)}const hy=T("ZodISOTime",(e,t)=>{jm.init(e,t),Re.init(e,t)});function my(e){return Bg(hy,e)}const gy=T("ZodISODuration",(e,t)=>{Dm.init(e,t),Re.init(e,t)});function yy(e){return Vg(gy,e)}const vy=(e,t)=>{Jl.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Ch(e,n)},flatten:{value:n=>_h(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,vo,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,vo,2)}},isEmpty:{get(){return e.issues.length===0}}})},ct=T("ZodError",vy,{Parent:Error}),by=Jo(ct),xy=Yo(ct),wy=li(ct),ky=ui(ct),_y=Ah(ct),Cy=Th(ct),Sy=Rh(ct),Ey=Ih(ct),Ay=Nh(ct),Ty=zh(ct),Ry=Oh(ct),Iy=Ph(ct),Te=T("ZodType",(e,t)=>(Se.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(cn(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(n,r)=>Jt(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>by(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>wy(e,n,r),e.parseAsync=async(n,r)=>xy(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>ky(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>_y(e,n,r),e.decode=(n,r)=>Cy(e,n,r),e.encodeAsync=async(n,r)=>Sy(e,n,r),e.decodeAsync=async(n,r)=>Ey(e,n,r),e.safeEncode=(n,r)=>Ay(e,n,r),e.safeDecode=(n,r)=>Ty(e,n,r),e.safeEncodeAsync=async(n,r)=>Ry(e,n,r),e.safeDecodeAsync=async(n,r)=>Iy(e,n,r),e.refine=(n,r)=>e.check(Sv(n,r)),e.superRefine=n=>e.check(Ev(n)),e.overwrite=n=>e.check(pr(n)),e.optional=()=>xs(e),e.nullable=()=>ws(e),e.nullish=()=>xs(ws(e)),e.nonoptional=n=>vv(e,n),e.array=()=>nv(e),e.or=n=>iv([e,n]),e.and=n=>sv(e,n),e.transform=n=>ks(e,dv(n)),e.default=n=>mv(e,n),e.prefault=n=>yv(e,n),e.catch=n=>xv(e,n),e.pipe=n=>ks(e,n),e.readonly=()=>_v(e),e.describe=n=>{const r=e.clone();return Er.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return Er.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Er.get(e);const r=e.clone();return Er.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),cu=T("_ZodString",(e,t)=>{Ko.init(e,t),Te.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(Yg(...r)),e.includes=(...r)=>e.check(Qg(...r)),e.startsWith=(...r)=>e.check(ey(...r)),e.endsWith=(...r)=>e.check(ty(...r)),e.min=(...r)=>e.check(Gr(...r)),e.max=(...r)=>e.check(lu(...r)),e.length=(...r)=>e.check(uu(...r)),e.nonempty=(...r)=>e.check(Gr(1,...r)),e.lowercase=r=>e.check(Kg(r)),e.uppercase=r=>e.check(Xg(r)),e.trim=()=>e.check(ry()),e.normalize=(...r)=>e.check(ny(...r)),e.toLowerCase=()=>e.check(iy()),e.toUpperCase=()=>e.check(oy())}),Ny=T("ZodString",(e,t)=>{Ko.init(e,t),cu.init(e,t),e.email=n=>e.check(bg(zy,n)),e.url=n=>e.check(Cg(Oy,n)),e.jwt=n=>e.check($g(Gy,n)),e.emoji=n=>e.check(Sg(Py,n)),e.guid=n=>e.check(ps(ys,n)),e.uuid=n=>e.check(xg(Ar,n)),e.uuidv4=n=>e.check(wg(Ar,n)),e.uuidv6=n=>e.check(kg(Ar,n)),e.uuidv7=n=>e.check(_g(Ar,n)),e.nanoid=n=>e.check(Eg(jy,n)),e.guid=n=>e.check(ps(ys,n)),e.cuid=n=>e.check(Ag(Dy,n)),e.cuid2=n=>e.check(Tg(Ly,n)),e.ulid=n=>e.check(Rg(My,n)),e.base64=n=>e.check(Dg(Hy,n)),e.base64url=n=>e.check(Lg(Wy,n)),e.xid=n=>e.check(Ig($y,n)),e.ksuid=n=>e.check(Ng(Fy,n)),e.ipv4=n=>e.check(zg(Zy,n)),e.ipv6=n=>e.check(Og(By,n)),e.cidrv4=n=>e.check(Pg(Vy,n)),e.cidrv6=n=>e.check(jg(Uy,n)),e.e164=n=>e.check(Mg(qy,n)),e.datetime=n=>e.check(fy(n)),e.date=n=>e.check(py(n)),e.time=n=>e.check(my(n)),e.duration=n=>e.check(yy(n))});function jE(e){return vg(Ny,e)}const Re=T("ZodStringFormat",(e,t)=>{Ee.init(e,t),cu.init(e,t)}),zy=T("ZodEmail",(e,t)=>{Cm.init(e,t),Re.init(e,t)}),ys=T("ZodGUID",(e,t)=>{km.init(e,t),Re.init(e,t)}),Ar=T("ZodUUID",(e,t)=>{_m.init(e,t),Re.init(e,t)}),Oy=T("ZodURL",(e,t)=>{Sm.init(e,t),Re.init(e,t)}),Py=T("ZodEmoji",(e,t)=>{Em.init(e,t),Re.init(e,t)}),jy=T("ZodNanoID",(e,t)=>{Am.init(e,t),Re.init(e,t)}),Dy=T("ZodCUID",(e,t)=>{Tm.init(e,t),Re.init(e,t)}),Ly=T("ZodCUID2",(e,t)=>{Rm.init(e,t),Re.init(e,t)}),My=T("ZodULID",(e,t)=>{Im.init(e,t),Re.init(e,t)}),$y=T("ZodXID",(e,t)=>{Nm.init(e,t),Re.init(e,t)}),Fy=T("ZodKSUID",(e,t)=>{zm.init(e,t),Re.init(e,t)}),Zy=T("ZodIPv4",(e,t)=>{Lm.init(e,t),Re.init(e,t)}),By=T("ZodIPv6",(e,t)=>{Mm.init(e,t),Re.init(e,t)}),Vy=T("ZodCIDRv4",(e,t)=>{$m.init(e,t),Re.init(e,t)}),Uy=T("ZodCIDRv6",(e,t)=>{Fm.init(e,t),Re.init(e,t)}),Hy=T("ZodBase64",(e,t)=>{Zm.init(e,t),Re.init(e,t)}),Wy=T("ZodBase64URL",(e,t)=>{Vm.init(e,t),Re.init(e,t)}),qy=T("ZodE164",(e,t)=>{Um.init(e,t),Re.init(e,t)}),Gy=T("ZodJWT",(e,t)=>{Wm.init(e,t),Re.init(e,t)}),fu=T("ZodNumber",(e,t)=>{iu.init(e,t),Te.init(e,t),e.gt=(r,i)=>e.check(ms(r,i)),e.gte=(r,i)=>e.check(Pi(r,i)),e.min=(r,i)=>e.check(Pi(r,i)),e.lt=(r,i)=>e.check(hs(r,i)),e.lte=(r,i)=>e.check(Oi(r,i)),e.max=(r,i)=>e.check(Oi(r,i)),e.int=r=>e.check(vs(r)),e.safe=r=>e.check(vs(r)),e.positive=r=>e.check(ms(0,r)),e.nonnegative=r=>e.check(Pi(0,r)),e.negative=r=>e.check(hs(0,r)),e.nonpositive=r=>e.check(Oi(0,r)),e.multipleOf=(r,i)=>e.check(gs(r,i)),e.step=(r,i)=>e.check(gs(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function DE(e){return Ug(fu,e)}const Jy=T("ZodNumberFormat",(e,t)=>{qm.init(e,t),fu.init(e,t)});function vs(e){return Hg(Jy,e)}const Yy=T("ZodBoolean",(e,t)=>{Gm.init(e,t),Te.init(e,t)});function LE(e){return Wg(Yy,e)}const Ky=T("ZodAny",(e,t)=>{Jm.init(e,t),Te.init(e,t)});function ME(){return qg(Ky)}const Xy=T("ZodUnknown",(e,t)=>{Ym.init(e,t),Te.init(e,t)});function bs(){return Gg(Xy)}const Qy=T("ZodNever",(e,t)=>{Km.init(e,t),Te.init(e,t)});function ev(e){return Jg(Qy,e)}const tv=T("ZodArray",(e,t)=>{Xm.init(e,t),Te.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(Gr(n,r)),e.nonempty=n=>e.check(Gr(1,n)),e.max=(n,r)=>e.check(lu(n,r)),e.length=(n,r)=>e.check(uu(n,r)),e.unwrap=()=>e.element});function nv(e,t){return ay(tv,e,t)}const rv=T("ZodObject",(e,t)=>{eg.init(e,t),Te.init(e,t),we(e,"shape",()=>t.shape),e.keyof=()=>uv(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:bs()}),e.loose=()=>e.clone({...e._zod.def,catchall:bs()}),e.strict=()=>e.clone({...e._zod.def,catchall:ev()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>vh(e,n),e.safeExtend=n=>bh(e,n),e.merge=n=>xh(e,n),e.pick=n=>gh(e,n),e.omit=n=>yh(e,n),e.partial=(...n)=>wh(pu,e,n[0]),e.required=(...n)=>kh(hu,e,n[0])});function $E(e,t){const n={type:"object",shape:e??{},...K(t)};return new rv(n)}const du=T("ZodUnion",(e,t)=>{su.init(e,t),Te.init(e,t),e.options=t.options});function iv(e,t){return new du({type:"union",options:e,...K(t)})}const ov=T("ZodDiscriminatedUnion",(e,t)=>{du.init(e,t),tg.init(e,t)});function FE(e,t,n){return new ov({type:"union",options:t,discriminator:e,...K(n)})}const av=T("ZodIntersection",(e,t)=>{ng.init(e,t),Te.init(e,t)});function sv(e,t){return new av({type:"intersection",left:e,right:t})}const lv=T("ZodRecord",(e,t)=>{rg.init(e,t),Te.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function ZE(e,t,n){return new lv({type:"record",keyType:e,valueType:t,...K(n)})}const xo=T("ZodEnum",(e,t)=>{ig.init(e,t),Te.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const o={};for(const a of r)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new xo({...t,checks:[],...K(i),entries:o})},e.exclude=(r,i)=>{const o={...t.entries};for(const a of r)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new xo({...t,checks:[],...K(i),entries:o})}});function uv(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new xo({type:"enum",entries:n,...K(t)})}const cv=T("ZodLiteral",(e,t)=>{og.init(e,t),Te.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function BE(e,t){return new cv({type:"literal",values:Array.isArray(e)?e:[e],...K(t)})}const fv=T("ZodTransform",(e,t)=>{ag.init(e,t),Te.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ul(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(or(o,n.value,t));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(or(a))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function dv(e){return new fv({type:"transform",transform:e})}const pu=T("ZodOptional",(e,t)=>{sg.init(e,t),Te.init(e,t),e.unwrap=()=>e._zod.def.innerType});function xs(e){return new pu({type:"optional",innerType:e})}const pv=T("ZodNullable",(e,t)=>{lg.init(e,t),Te.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ws(e){return new pv({type:"nullable",innerType:e})}const hv=T("ZodDefault",(e,t)=>{ug.init(e,t),Te.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function mv(e,t){return new hv({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ql(t)}})}const gv=T("ZodPrefault",(e,t)=>{cg.init(e,t),Te.init(e,t),e.unwrap=()=>e._zod.def.innerType});function yv(e,t){return new gv({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ql(t)}})}const hu=T("ZodNonOptional",(e,t)=>{fg.init(e,t),Te.init(e,t),e.unwrap=()=>e._zod.def.innerType});function vv(e,t){return new hu({type:"nonoptional",innerType:e,...K(t)})}const bv=T("ZodCatch",(e,t)=>{dg.init(e,t),Te.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function xv(e,t){return new bv({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const wv=T("ZodPipe",(e,t)=>{pg.init(e,t),Te.init(e,t),e.in=t.in,e.out=t.out});function ks(e,t){return new wv({type:"pipe",in:e,out:t})}const kv=T("ZodReadonly",(e,t)=>{hg.init(e,t),Te.init(e,t),e.unwrap=()=>e._zod.def.innerType});function _v(e){return new kv({type:"readonly",innerType:e})}const Cv=T("ZodCustom",(e,t)=>{mg.init(e,t),Te.init(e,t)});function Sv(e,t={}){return sy(Cv,e,t)}function Ev(e){return ly(e)}function Av(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Tv=e=>{switch(e){case"success":return Nv;case"info":return Ov;case"warning":return zv;case"error":return Pv;default:return null}},Rv=Array(12).fill(0),Iv=({visible:e,className:t})=>F.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},F.createElement("div",{className:"sonner-spinner"},Rv.map((n,r)=>F.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Nv=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),zv=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Ov=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Pv=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),jv=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Dv=()=>{const[e,t]=F.useState(document.hidden);return F.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let wo=1;class Lv{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,o=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:wo++,a=this.toasts.find(l=>l.id===o),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...t,id:o,title:r}),{...l,...t,id:o,dismissible:s,title:r}):l):this.addToast({title:r,...i,dismissible:s,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,a;const s=i.then(async u=>{if(a=["resolve",u],F.isValidElement(u))o=!1,this.create({id:r,type:"default",message:u});else if($v(u)&&!u.ok){o=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,d=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,h=typeof c=="object"&&!F.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:d,...h})}else if(u instanceof Error){o=!1;const c=typeof n.error=="function"?await n.error(u):n.error,d=typeof n.description=="function"?await n.description(u):n.description,h=typeof c=="object"&&!F.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:d,...h})}else if(n.success!==void 0){o=!1;const c=typeof n.success=="function"?await n.success(u):n.success,d=typeof n.description=="function"?await n.description(u):n.description,h=typeof c=="object"&&!F.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:d,...h})}}).catch(async u=>{if(a=["reject",u],n.error!==void 0){o=!1;const f=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,p=typeof f=="object"&&!F.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:c,...p})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,f)=>s.then(()=>a[0]==="reject"?f(a[1]):u(a[1])).catch(f));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||wo++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const We=new Lv,Mv=(e,t)=>{const n=t?.id||wo++;return We.addToast({title:e,...t,id:n}),n},$v=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Fv=Mv,Zv=()=>We.toasts,Bv=()=>We.getActiveToasts();Object.assign(Fv,{success:We.success,info:We.info,warning:We.warning,error:We.error,custom:We.custom,message:We.message,promise:We.promise,dismiss:We.dismiss,loading:We.loading},{getHistory:Zv,getToasts:Bv});Av("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Tr(e){return e.label!==void 0}const Vv=3,Uv="24px",Hv="16px",_s=4e3,Wv=356,qv=14,Gv=45,Jv=200;function xt(...e){return e.filter(Boolean).join(" ")}function Yv(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Kv=e=>{var t,n,r,i,o,a,s,l,u;const{invert:f,toast:c,unstyled:d,interacting:p,setHeights:h,visibleToasts:v,heights:b,index:y,toasts:_,expanded:x,removeToast:R,defaultRichColors:N,closeButton:w,style:M,cancelButtonStyle:z,actionButtonStyle:U,className:k="",descriptionClassName:$="",duration:j,position:W,gap:Z,expandByDefault:O,classNames:C,icons:P,closeButtonAriaLabel:S="Close toast"}=e,[X,g]=F.useState(null),[xe,Ae]=F.useState(null),[m,Q]=F.useState(!1),[ae,ge]=F.useState(!1),[ve,fe]=F.useState(!1),[ze,je]=F.useState(!1),[Ye,Ke]=F.useState(!1),[wi,$n]=F.useState(0),[vr,Fn]=F.useState(0),jt=F.useRef(c.duration||j||_s),br=F.useRef(null),at=F.useRef(null),xr=y===0,ki=y+1<=v,Fe=c.type,Dt=c.dismissible!==!1,_i=c.className||"",Ci=c.descriptionClassName||"",A=F.useMemo(()=>b.findIndex(ie=>ie.toastId===c.id)||0,[b,c.id]),B=F.useMemo(()=>{var ie;return(ie=c.closeButton)!=null?ie:w},[c.closeButton,w]),te=F.useMemo(()=>c.duration||j||_s,[c.duration,j]),le=F.useRef(0),he=F.useRef(0),Ve=F.useRef(0),Ue=F.useRef(null),[dt,Xt]=W.split("-"),Lt=F.useMemo(()=>b.reduce((ie,Oe,Le)=>Le>=A?ie:ie+Oe.height,0),[b,A]),De=Dv(),Mt=c.invert||f,Xe=Fe==="loading";he.current=F.useMemo(()=>A*Z+Lt,[A,Lt]),F.useEffect(()=>{jt.current=te},[te]),F.useEffect(()=>{Q(!0)},[]),F.useEffect(()=>{const ie=at.current;if(ie){const Oe=ie.getBoundingClientRect().height;return Fn(Oe),h(Le=>[{toastId:c.id,height:Oe,position:c.position},...Le]),()=>h(Le=>Le.filter(Qe=>Qe.toastId!==c.id))}},[h,c.id]),F.useLayoutEffect(()=>{if(!m)return;const ie=at.current,Oe=ie.style.height;ie.style.height="auto";const Le=ie.getBoundingClientRect().height;ie.style.height=Oe,Fn(Le),h(Qe=>Qe.find(Pe=>Pe.toastId===c.id)?Qe.map(Pe=>Pe.toastId===c.id?{...Pe,height:Le}:Pe):[{toastId:c.id,height:Le,position:c.position},...Qe])},[m,c.title,c.description,h,c.id,c.jsx,c.action,c.cancel]);const $t=F.useCallback(()=>{ge(!0),$n(he.current),h(ie=>ie.filter(Oe=>Oe.toastId!==c.id)),setTimeout(()=>{R(c)},Jv)},[c,R,h,he]);F.useEffect(()=>{if(c.promise&&Fe==="loading"||c.duration===1/0||c.type==="loading")return;let ie;return x||p||De?(()=>{if(Ve.current<le.current){const Qe=new Date().getTime()-le.current;jt.current=jt.current-Qe}Ve.current=new Date().getTime()})():(()=>{jt.current!==1/0&&(le.current=new Date().getTime(),ie=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),$t()},jt.current))})(),()=>clearTimeout(ie)},[x,p,c,Fe,De,$t]),F.useEffect(()=>{c.delete&&($t(),c.onDismiss==null||c.onDismiss.call(c,c))},[$t,c.delete]);function dd(){var ie;if(P?.loading){var Oe;return F.createElement("div",{className:xt(C?.loader,c==null||(Oe=c.classNames)==null?void 0:Oe.loader,"sonner-loader"),"data-visible":Fe==="loading"},P.loading)}return F.createElement(Iv,{className:xt(C?.loader,c==null||(ie=c.classNames)==null?void 0:ie.loader),visible:Fe==="loading"})}const pd=c.icon||P?.[Fe]||Tv(Fe);var za,Oa;return F.createElement("li",{tabIndex:0,ref:at,className:xt(k,_i,C?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,C?.default,C?.[Fe],c==null||(n=c.classNames)==null?void 0:n[Fe]),"data-sonner-toast":"","data-rich-colors":(za=c.richColors)!=null?za:N,"data-styled":!(c.jsx||c.unstyled||d),"data-mounted":m,"data-promise":!!c.promise,"data-swiped":Ye,"data-removed":ae,"data-visible":ki,"data-y-position":dt,"data-x-position":Xt,"data-index":y,"data-front":xr,"data-swiping":ve,"data-dismissible":Dt,"data-type":Fe,"data-invert":Mt,"data-swipe-out":ze,"data-swipe-direction":xe,"data-expanded":!!(x||O&&m),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":_.length-y,"--offset":`${ae?wi:he.current}px`,"--initial-height":O?"auto":`${vr}px`,...M,...c.style},onDragEnd:()=>{fe(!1),g(null),Ue.current=null},onPointerDown:ie=>{ie.button!==2&&(Xe||!Dt||(br.current=new Date,$n(he.current),ie.target.setPointerCapture(ie.pointerId),ie.target.tagName!=="BUTTON"&&(fe(!0),Ue.current={x:ie.clientX,y:ie.clientY})))},onPointerUp:()=>{var ie,Oe,Le;if(ze||!Dt)return;Ue.current=null;const Qe=Number(((ie=at.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),wr=Number(((Oe=at.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Pe=new Date().getTime()-((Le=br.current)==null?void 0:Le.getTime()),st=X==="x"?Qe:wr,kr=Math.abs(st)/Pe;if(Math.abs(st)>=Gv||kr>.11){$n(he.current),c.onDismiss==null||c.onDismiss.call(c,c),Ae(X==="x"?Qe>0?"right":"left":wr>0?"down":"up"),$t(),je(!0);return}else{var pt,ht;(pt=at.current)==null||pt.style.setProperty("--swipe-amount-x","0px"),(ht=at.current)==null||ht.style.setProperty("--swipe-amount-y","0px")}Ke(!1),fe(!1),g(null)},onPointerMove:ie=>{var Oe,Le,Qe;if(!Ue.current||!Dt||((Oe=window.getSelection())==null?void 0:Oe.toString().length)>0)return;const Pe=ie.clientY-Ue.current.y,st=ie.clientX-Ue.current.x;var kr;const pt=(kr=e.swipeDirections)!=null?kr:Yv(W);!X&&(Math.abs(st)>1||Math.abs(Pe)>1)&&g(Math.abs(st)>Math.abs(Pe)?"x":"y");let ht={x:0,y:0};const Pa=Qt=>1/(1.5+Math.abs(Qt)/20);if(X==="y"){if(pt.includes("top")||pt.includes("bottom"))if(pt.includes("top")&&Pe<0||pt.includes("bottom")&&Pe>0)ht.y=Pe;else{const Qt=Pe*Pa(Pe);ht.y=Math.abs(Qt)<Math.abs(Pe)?Qt:Pe}}else if(X==="x"&&(pt.includes("left")||pt.includes("right")))if(pt.includes("left")&&st<0||pt.includes("right")&&st>0)ht.x=st;else{const Qt=st*Pa(st);ht.x=Math.abs(Qt)<Math.abs(st)?Qt:st}(Math.abs(ht.x)>0||Math.abs(ht.y)>0)&&Ke(!0),(Le=at.current)==null||Le.style.setProperty("--swipe-amount-x",`${ht.x}px`),(Qe=at.current)==null||Qe.style.setProperty("--swipe-amount-y",`${ht.y}px`)}},B&&!c.jsx&&Fe!=="loading"?F.createElement("button",{"aria-label":S,"data-disabled":Xe,"data-close-button":!0,onClick:Xe||!Dt?()=>{}:()=>{$t(),c.onDismiss==null||c.onDismiss.call(c,c)},className:xt(C?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Oa=P?.close)!=null?Oa:jv):null,(Fe||c.icon||c.promise)&&c.icon!==null&&(P?.[Fe]!==null||c.icon)?F.createElement("div",{"data-icon":"",className:xt(C?.icon,c==null||(i=c.classNames)==null?void 0:i.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||dd():null,c.type!=="loading"?pd:null):null,F.createElement("div",{"data-content":"",className:xt(C?.content,c==null||(o=c.classNames)==null?void 0:o.content)},F.createElement("div",{"data-title":"",className:xt(C?.title,c==null||(a=c.classNames)==null?void 0:a.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?F.createElement("div",{"data-description":"",className:xt($,Ci,C?.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),F.isValidElement(c.cancel)?c.cancel:c.cancel&&Tr(c.cancel)?F.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||z,onClick:ie=>{Tr(c.cancel)&&Dt&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ie),$t())},className:xt(C?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,F.isValidElement(c.action)?c.action:c.action&&Tr(c.action)?F.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||U,onClick:ie=>{Tr(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ie),!ie.defaultPrevented&&$t())},className:xt(C?.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Cs(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Xv(e,t){const n={};return[e,t].forEach((r,i)=>{const o=i===1,a=o?"--mobile-offset":"--offset",s=o?Hv:Uv;function l(u){["top","right","bottom","left"].forEach(f=>{n[`${a}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${a}-${u}`]=s:n[`${a}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}const VE=F.forwardRef(function(t,n){const{id:r,invert:i,position:o="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:f,mobileOffset:c,theme:d="light",richColors:p,duration:h,style:v,visibleToasts:b=Vv,toastOptions:y,dir:_=Cs(),gap:x=qv,icons:R,containerAriaLabel:N="Notifications"}=t,[w,M]=F.useState([]),z=F.useMemo(()=>r?w.filter(m=>m.toasterId===r):w.filter(m=>!m.toasterId),[w,r]),U=F.useMemo(()=>Array.from(new Set([o].concat(z.filter(m=>m.position).map(m=>m.position)))),[z,o]),[k,$]=F.useState([]),[j,W]=F.useState(!1),[Z,O]=F.useState(!1),[C,P]=F.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),S=F.useRef(null),X=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=F.useRef(null),xe=F.useRef(!1),Ae=F.useCallback(m=>{M(Q=>{var ae;return(ae=Q.find(ge=>ge.id===m.id))!=null&&ae.delete||We.dismiss(m.id),Q.filter(({id:ge})=>ge!==m.id)})},[]);return F.useEffect(()=>We.subscribe(m=>{if(m.dismiss){requestAnimationFrame(()=>{M(Q=>Q.map(ae=>ae.id===m.id?{...ae,delete:!0}:ae))});return}setTimeout(()=>{hd.flushSync(()=>{M(Q=>{const ae=Q.findIndex(ge=>ge.id===m.id);return ae!==-1?[...Q.slice(0,ae),{...Q[ae],...m},...Q.slice(ae+1)]:[m,...Q]})})})}),[w]),F.useEffect(()=>{if(d!=="system"){P(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?P("dark"):P("light")),typeof window>"u")return;const m=window.matchMedia("(prefers-color-scheme: dark)");try{m.addEventListener("change",({matches:Q})=>{P(Q?"dark":"light")})}catch{m.addListener(({matches:ae})=>{try{P(ae?"dark":"light")}catch(ge){console.error(ge)}})}},[d]),F.useEffect(()=>{w.length<=1&&W(!1)},[w]),F.useEffect(()=>{const m=Q=>{var ae;if(a.every(fe=>Q[fe]||Q.code===fe)){var ve;W(!0),(ve=S.current)==null||ve.focus()}Q.code==="Escape"&&(document.activeElement===S.current||(ae=S.current)!=null&&ae.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[a]),F.useEffect(()=>{if(S.current)return()=>{g.current&&(g.current.focus({preventScroll:!0}),g.current=null,xe.current=!1)}},[S.current]),F.createElement("section",{ref:n,"aria-label":`${N} ${X}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},U.map((m,Q)=>{var ae;const[ge,ve]=m.split("-");return z.length?F.createElement("ol",{key:m,dir:_==="auto"?Cs():_,tabIndex:-1,ref:S,className:u,"data-sonner-toaster":!0,"data-sonner-theme":C,"data-y-position":ge,"data-x-position":ve,style:{"--front-toast-height":`${((ae=k[0])==null?void 0:ae.height)||0}px`,"--width":`${Wv}px`,"--gap":`${x}px`,...v,...Xv(f,c)},onBlur:fe=>{xe.current&&!fe.currentTarget.contains(fe.relatedTarget)&&(xe.current=!1,g.current&&(g.current.focus({preventScroll:!0}),g.current=null))},onFocus:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||xe.current||(xe.current=!0,g.current=fe.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{Z||W(!1)},onDragEnd:()=>W(!1),onPointerDown:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||O(!0)},onPointerUp:()=>O(!1)},z.filter(fe=>!fe.position&&Q===0||fe.position===m).map((fe,ze)=>{var je,Ye;return F.createElement(Kv,{key:fe.id,icons:R,index:ze,toast:fe,defaultRichColors:p,duration:(je=y?.duration)!=null?je:h,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:i,visibleToasts:b,closeButton:(Ye=y?.closeButton)!=null?Ye:l,interacting:Z,position:m,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:Ae,toasts:z.filter(Ke=>Ke.position==fe.position),heights:k.filter(Ke=>Ke.position==fe.position),setHeights:$,expandByDefault:s,gap:x,expanded:j,swipeDirections:t.swipeDirections})})):null}))});function mu(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=mu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Qv(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=mu(e))&&(r&&(r+=" "),r+=t);return r}const Ss=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Es=Qv,UE=(e,t)=>n=>{var r;if(t?.variants==null)return Es(e,n?.class,n?.className);const{variants:i,defaultVariants:o}=t,a=Object.keys(i).map(u=>{const f=n?.[u],c=o?.[u];if(f===null)return null;const d=Ss(f)||Ss(c);return i[u][d]}),s=n&&Object.entries(n).reduce((u,f)=>{let[c,d]=f;return d===void 0||(u[c]=d),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:d,...p}=f;return Object.entries(p).every(h=>{let[v,b]=h;return Array.isArray(b)?b.includes({...o,...s}[v]):{...o,...s}[v]===b})?[...u,c,d]:u},[]);return Es(e,a,l,n?.class,n?.className)},eb=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},tb=(e,t)=>({classGroupId:e,validator:t}),gu=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Jr="-",As=[],nb="arbitrary..",rb=e=>{const t=ob(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return ib(a);const s=a.split(Jr),l=s[0]===""&&s.length>1?1:0;return yu(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=r[a],u=n[a];return l?u?eb(u,l):l:u||As}return n[a]||As}}},yu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const u=yu(e,t+1,o);if(u)return u}const a=n.validators;if(a===null)return;const s=t===0?e.join(Jr):e.slice(t).join(Jr),l=a.length;for(let u=0;u<l;u++){const f=a[u];if(f.validator(s))return f.classGroupId}},ib=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?nb+r:void 0})(),ob=e=>{const{theme:t,classGroups:n}=e;return ab(n,t)},ab=(e,t)=>{const n=gu();for(const r in e){const i=e[r];Xo(i,n,r,t)}return n},Xo=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const a=e[o];sb(a,t,n,r)}},sb=(e,t,n,r)=>{if(typeof e=="string"){lb(e,t,n);return}if(typeof e=="function"){ub(e,t,n,r);return}cb(e,t,n,r)},lb=(e,t,n)=>{const r=e===""?t:vu(t,e);r.classGroupId=n},ub=(e,t,n,r)=>{if(fb(e)){Xo(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(tb(n,e))},cb=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let a=0;a<o;a++){const[s,l]=i[a];Xo(l,vu(t,s),n,r)}},vu=(e,t)=>{let n=e;const r=t.split(Jr),i=r.length;for(let o=0;o<i;o++){const a=r[o];let s=n.nextPart.get(a);s||(s=gu(),n.nextPart.set(a,s)),n=s}return n},fb=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,db=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,a)=>{n[o]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let a=n[o];if(a!==void 0)return a;if((a=r[o])!==void 0)return i(o,a),a},set(o,a){o in n?n[o]=a:i(o,a)}}},ko="!",Ts=":",pb=[],Rs=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),hb=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let a=0,s=0,l=0,u;const f=i.length;for(let v=0;v<f;v++){const b=i[v];if(a===0&&s===0){if(b===Ts){o.push(i.slice(l,v)),l=v+1;continue}if(b==="/"){u=v;continue}}b==="["?a++:b==="]"?a--:b==="("?s++:b===")"&&s--}const c=o.length===0?i:i.slice(l);let d=c,p=!1;c.endsWith(ko)?(d=c.slice(0,-1),p=!0):c.startsWith(ko)&&(d=c.slice(1),p=!0);const h=u&&u>l?u-l:void 0;return Rs(o,p,d,h)};if(t){const i=t+Ts,o=r;r=a=>a.startsWith(i)?o(a.slice(i.length)):Rs(pb,!1,a,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},mb=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const a=n[o],s=a[0]==="[",l=t.has(a);s||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(a)):i.push(a)}return i.length>0&&(i.sort(),r.push(...i)),r}},gb=e=>({cache:db(e.cacheSize),parseClassName:hb(e),sortModifiers:mb(e),...rb(e)}),yb=/\s+/,vb=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],s=e.trim().split(yb);let l="";for(let u=s.length-1;u>=0;u-=1){const f=s[u],{isExternal:c,modifiers:d,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:v}=n(f);if(c){l=f+(l.length>0?" "+l:l);continue}let b=!!v,y=r(b?h.substring(0,v):h);if(!y){if(!b){l=f+(l.length>0?" "+l:l);continue}if(y=r(h),!y){l=f+(l.length>0?" "+l:l);continue}b=!1}const _=d.length===0?"":d.length===1?d[0]:o(d).join(":"),x=p?_+ko:_,R=x+y;if(a.indexOf(R)>-1)continue;a.push(R);const N=i(y,b);for(let w=0;w<N.length;++w){const M=N[w];a.push(x+M)}l=f+(l.length>0?" "+l:l)}return l},bb=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=bu(n))&&(i&&(i+=" "),i+=r);return i},bu=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=bu(e[r]))&&(n&&(n+=" "),n+=t);return n},xb=(e,...t)=>{let n,r,i,o;const a=l=>{const u=t.reduce((f,c)=>c(f),e());return n=gb(u),r=n.cache.get,i=n.cache.set,o=s,s(l)},s=l=>{const u=r(l);if(u)return u;const f=vb(l,n);return i(l,f),f};return o=a,(...l)=>o(bb(...l))},wb=[],Ne=e=>{const t=n=>n[e]||wb;return t.isThemeGetter=!0,t},xu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kb=/^\d+\/\d+$/,_b=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Cb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Sb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Eb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ab=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pn=e=>kb.test(e),ue=e=>!!e&&!Number.isNaN(Number(e)),Ft=e=>!!e&&Number.isInteger(Number(e)),ji=e=>e.endsWith("%")&&ue(e.slice(0,-1)),Rt=e=>_b.test(e),Tb=()=>!0,Rb=e=>Cb.test(e)&&!Sb.test(e),ku=()=>!1,Ib=e=>Eb.test(e),Nb=e=>Ab.test(e),zb=e=>!q(e)&&!G(e),Ob=e=>zn(e,Su,ku),q=e=>xu.test(e),en=e=>zn(e,Eu,Rb),Di=e=>zn(e,Mb,ue),Is=e=>zn(e,_u,ku),Pb=e=>zn(e,Cu,Nb),Rr=e=>zn(e,Au,Ib),G=e=>wu.test(e),Vn=e=>On(e,Eu),jb=e=>On(e,$b),Ns=e=>On(e,_u),Db=e=>On(e,Su),Lb=e=>On(e,Cu),Ir=e=>On(e,Au,!0),zn=(e,t,n)=>{const r=xu.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},On=(e,t,n=!1)=>{const r=wu.exec(e);return r?r[1]?t(r[1]):n:!1},_u=e=>e==="position"||e==="percentage",Cu=e=>e==="image"||e==="url",Su=e=>e==="length"||e==="size"||e==="bg-size",Eu=e=>e==="length",Mb=e=>e==="number",$b=e=>e==="family-name",Au=e=>e==="shadow",Fb=()=>{const e=Ne("color"),t=Ne("font"),n=Ne("text"),r=Ne("font-weight"),i=Ne("tracking"),o=Ne("leading"),a=Ne("breakpoint"),s=Ne("container"),l=Ne("spacing"),u=Ne("radius"),f=Ne("shadow"),c=Ne("inset-shadow"),d=Ne("text-shadow"),p=Ne("drop-shadow"),h=Ne("blur"),v=Ne("perspective"),b=Ne("aspect"),y=Ne("ease"),_=Ne("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...R(),G,q],w=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],z=()=>[G,q,l],U=()=>[pn,"full","auto",...z()],k=()=>[Ft,"none","subgrid",G,q],$=()=>["auto",{span:["full",Ft,G,q]},Ft,G,q],j=()=>[Ft,"auto",G,q],W=()=>["auto","min","max","fr",G,q],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...z()],P=()=>[pn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],S=()=>[e,G,q],X=()=>[...R(),Ns,Is,{position:[G,q]}],g=()=>["no-repeat",{repeat:["","x","y","space","round"]}],xe=()=>["auto","cover","contain",Db,Ob,{size:[G,q]}],Ae=()=>[ji,Vn,en],m=()=>["","none","full",u,G,q],Q=()=>["",ue,Vn,en],ae=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[ue,ji,Ns,Is],fe=()=>["","none",h,G,q],ze=()=>["none",ue,G,q],je=()=>["none",ue,G,q],Ye=()=>[ue,G,q],Ke=()=>[pn,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Rt],breakpoint:[Rt],color:[Tb],container:[Rt],"drop-shadow":[Rt],ease:["in","out","in-out"],font:[zb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Rt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Rt],shadow:[Rt],spacing:["px",ue],text:[Rt],"text-shadow":[Rt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pn,q,G,b]}],container:["container"],columns:[{columns:[ue,q,G,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[Ft,"auto",G,q]}],basis:[{basis:[pn,"full","auto",s,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ue,pn,"auto","initial","none",q]}],grow:[{grow:["",ue,G,q]}],shrink:[{shrink:["",ue,G,q]}],order:[{order:[Ft,"first","last","none",G,q]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[s,"screen",...P()]}],"min-w":[{"min-w":[s,"screen","none",...P()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",n,Vn,en]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,G,Di]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ji,q]}],"font-family":[{font:[jb,q,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,G,q]}],"line-clamp":[{"line-clamp":[ue,"none",G,Di]}],leading:[{leading:[o,...z()]}],"list-image":[{"list-image":["none",G,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",G,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[ue,"from-font","auto",G,en]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[ue,"auto",G,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G,q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:g()}],"bg-size":[{bg:xe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ft,G,q],radial:["",G,q],conic:[Ft,G,q]},Lb,Pb]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:Ae()}],"gradient-via-pos":[{via:Ae()}],"gradient-to-pos":[{to:Ae()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:m()}],"rounded-s":[{"rounded-s":m()}],"rounded-e":[{"rounded-e":m()}],"rounded-t":[{"rounded-t":m()}],"rounded-r":[{"rounded-r":m()}],"rounded-b":[{"rounded-b":m()}],"rounded-l":[{"rounded-l":m()}],"rounded-ss":[{"rounded-ss":m()}],"rounded-se":[{"rounded-se":m()}],"rounded-ee":[{"rounded-ee":m()}],"rounded-es":[{"rounded-es":m()}],"rounded-tl":[{"rounded-tl":m()}],"rounded-tr":[{"rounded-tr":m()}],"rounded-br":[{"rounded-br":m()}],"rounded-bl":[{"rounded-bl":m()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ue,G,q]}],"outline-w":[{outline:["",ue,Vn,en]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",f,Ir,Rr]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",c,Ir,Rr]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[ue,en]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",d,Ir,Rr]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[ue,G,q]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ue]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[G,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[ue]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:g()}],"mask-size":[{mask:xe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",G,q]}],filter:[{filter:["","none",G,q]}],blur:[{blur:fe()}],brightness:[{brightness:[ue,G,q]}],contrast:[{contrast:[ue,G,q]}],"drop-shadow":[{"drop-shadow":["","none",p,Ir,Rr]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",ue,G,q]}],"hue-rotate":[{"hue-rotate":[ue,G,q]}],invert:[{invert:["",ue,G,q]}],saturate:[{saturate:[ue,G,q]}],sepia:[{sepia:["",ue,G,q]}],"backdrop-filter":[{"backdrop-filter":["","none",G,q]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[ue,G,q]}],"backdrop-contrast":[{"backdrop-contrast":[ue,G,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ue,G,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ue,G,q]}],"backdrop-invert":[{"backdrop-invert":["",ue,G,q]}],"backdrop-opacity":[{"backdrop-opacity":[ue,G,q]}],"backdrop-saturate":[{"backdrop-saturate":[ue,G,q]}],"backdrop-sepia":[{"backdrop-sepia":["",ue,G,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",G,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ue,"initial",G,q]}],ease:[{ease:["linear","initial",y,G,q]}],delay:[{delay:[ue,G,q]}],animate:[{animate:["none",_,G,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,G,q]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:ze()}],"rotate-x":[{"rotate-x":ze()}],"rotate-y":[{"rotate-y":ze()}],"rotate-z":[{"rotate-z":ze()}],scale:[{scale:je()}],"scale-x":[{"scale-x":je()}],"scale-y":[{"scale-y":je()}],"scale-z":[{"scale-z":je()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[G,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ke()}],"translate-x":[{"translate-x":Ke()}],"translate-y":[{"translate-y":Ke()}],"translate-z":[{"translate-z":Ke()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G,q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G,q]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[ue,Vn,en,Di]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},HE=xb(Fb),Zb=["top","right","bottom","left"],qt=Math.min,nt=Math.max,Yr=Math.round,Nr=Math.floor,_t=e=>({x:e,y:e}),Bb={left:"right",right:"left",bottom:"top",top:"bottom"},Vb={start:"end",end:"start"};function _o(e,t,n){return nt(e,qt(t,n))}function zt(e,t){return typeof e=="function"?e(t):e}function Ot(e){return e.split("-")[0]}function Pn(e){return e.split("-")[1]}function Qo(e){return e==="x"?"y":"x"}function ea(e){return e==="y"?"height":"width"}const Ub=new Set(["top","bottom"]);function kt(e){return Ub.has(Ot(e))?"y":"x"}function ta(e){return Qo(kt(e))}function Hb(e,t,n){n===void 0&&(n=!1);const r=Pn(e),i=ta(e),o=ea(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Kr(a)),[a,Kr(a)]}function Wb(e){const t=Kr(e);return[Co(e),t,Co(t)]}function Co(e){return e.replace(/start|end/g,t=>Vb[t])}const zs=["left","right"],Os=["right","left"],qb=["top","bottom"],Gb=["bottom","top"];function Jb(e,t,n){switch(e){case"top":case"bottom":return n?t?Os:zs:t?zs:Os;case"left":case"right":return t?qb:Gb;default:return[]}}function Yb(e,t,n,r){const i=Pn(e);let o=Jb(Ot(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Co)))),o}function Kr(e){return e.replace(/left|right|bottom|top/g,t=>Bb[t])}function Kb(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tu(e){return typeof e!="number"?Kb(e):{top:e,right:e,bottom:e,left:e}}function Xr(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ps(e,t,n){let{reference:r,floating:i}=e;const o=kt(t),a=ta(t),s=ea(a),l=Ot(t),u=o==="y",f=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,d=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:f,y:r.y-i.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-i.width,y:c};break;default:p={x:r.x,y:r.y}}switch(Pn(t)){case"start":p[a]-=d*(n&&u?-1:1);break;case"end":p[a]+=d*(n&&u?-1:1);break}return p}const Xb=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:c}=Ps(u,r,l),d=r,p={},h=0;for(let v=0;v<s.length;v++){const{name:b,fn:y}=s[v],{x:_,y:x,data:R,reset:N}=await y({x:f,y:c,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});f=_??f,c=x??c,p={...p,[b]:{...p[b],...R}},N&&h<=50&&(h++,typeof N=="object"&&(N.placement&&(d=N.placement),N.rects&&(u=N.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):N.rects),{x:f,y:c}=Ps(u,d,l)),v=-1)}return{x:f,y:c,placement:d,strategy:i,middlewareData:p}};async function ar(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:d=!1,padding:p=0}=zt(t,e),h=Tu(p),b=s[d?c==="floating"?"reference":"floating":c],y=Xr(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:l})),_=c==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),R=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},N=Xr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:x,strategy:l}):_);return{top:(y.top-N.top+h.top)/R.y,bottom:(N.bottom-y.bottom+h.bottom)/R.y,left:(y.left-N.left+h.left)/R.x,right:(N.right-y.right+h.right)/R.x}}const Qb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:f=0}=zt(e,t)||{};if(u==null)return{};const c=Tu(f),d={x:n,y:r},p=ta(i),h=ea(p),v=await a.getDimensions(u),b=p==="y",y=b?"top":"left",_=b?"bottom":"right",x=b?"clientHeight":"clientWidth",R=o.reference[h]+o.reference[p]-d[p]-o.floating[h],N=d[p]-o.reference[p],w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let M=w?w[x]:0;(!M||!await(a.isElement==null?void 0:a.isElement(w)))&&(M=s.floating[x]||o.floating[h]);const z=R/2-N/2,U=M/2-v[h]/2-1,k=qt(c[y],U),$=qt(c[_],U),j=k,W=M-v[h]-$,Z=M/2-v[h]/2+z,O=_o(j,Z,W),C=!l.arrow&&Pn(i)!=null&&Z!==O&&o.reference[h]/2-(Z<j?k:$)-v[h]/2<0,P=C?Z<j?Z-j:Z-W:0;return{[p]:d[p]+P,data:{[p]:O,centerOffset:Z-O-P,...C&&{alignmentOffset:P}},reset:C}}}),ex=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...b}=zt(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=Ot(i),_=kt(s),x=Ot(s)===s,R=await(l.isRTL==null?void 0:l.isRTL(u.floating)),N=d||(x||!v?[Kr(s)]:Wb(s)),w=h!=="none";!d&&w&&N.push(...Yb(s,v,h,R));const M=[s,...N],z=await ar(t,b),U=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&U.push(z[y]),c){const Z=Hb(i,a,R);U.push(z[Z[0]],z[Z[1]])}if(k=[...k,{placement:i,overflows:U}],!U.every(Z=>Z<=0)){var $,j;const Z=((($=o.flip)==null?void 0:$.index)||0)+1,O=M[Z];if(O&&(!(c==="alignment"?_!==kt(O):!1)||k.every(S=>kt(S.placement)===_?S.overflows[0]>0:!0)))return{data:{index:Z,overflows:k},reset:{placement:O}};let C=(j=k.filter(P=>P.overflows[0]<=0).sort((P,S)=>P.overflows[1]-S.overflows[1])[0])==null?void 0:j.placement;if(!C)switch(p){case"bestFit":{var W;const P=(W=k.filter(S=>{if(w){const X=kt(S.placement);return X===_||X==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(X=>X>0).reduce((X,g)=>X+g,0)]).sort((S,X)=>S[1]-X[1])[0])==null?void 0:W[0];P&&(C=P);break}case"initialPlacement":C=s;break}if(i!==C)return{reset:{placement:C}}}return{}}}};function js(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ds(e){return Zb.some(t=>e[t]>=0)}const tx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=zt(e,t);switch(r){case"referenceHidden":{const o=await ar(t,{...i,elementContext:"reference"}),a=js(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ds(a)}}}case"escaped":{const o=await ar(t,{...i,altBoundary:!0}),a=js(o,n.floating);return{data:{escapedOffsets:a,escaped:Ds(a)}}}default:return{}}}}},Ru=new Set(["left","top"]);async function nx(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ot(n),s=Pn(n),l=kt(n)==="y",u=Ru.has(a)?-1:1,f=o&&l?-1:1,c=zt(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*f,y:d*u}:{x:d*u,y:p*f}}const rx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await nx(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},ix=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:y,y:_}=b;return{x:y,y:_}}},...l}=zt(e,t),u={x:n,y:r},f=await ar(t,l),c=kt(Ot(i)),d=Qo(c);let p=u[d],h=u[c];if(o){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",_=p+f[b],x=p-f[y];p=_o(_,p,x)}if(a){const b=c==="y"?"top":"left",y=c==="y"?"bottom":"right",_=h+f[b],x=h-f[y];h=_o(_,h,x)}const v=s.fn({...t,[d]:p,[c]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:o,[c]:a}}}}}},ox=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=zt(e,t),f={x:n,y:r},c=kt(i),d=Qo(c);let p=f[d],h=f[c];const v=zt(s,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const x=d==="y"?"height":"width",R=o.reference[d]-o.floating[x]+b.mainAxis,N=o.reference[d]+o.reference[x]-b.mainAxis;p<R?p=R:p>N&&(p=N)}if(u){var y,_;const x=d==="y"?"width":"height",R=Ru.has(Ot(i)),N=o.reference[c]-o.floating[x]+(R&&((y=a.offset)==null?void 0:y[c])||0)+(R?0:b.crossAxis),w=o.reference[c]+o.reference[x]+(R?0:((_=a.offset)==null?void 0:_[c])||0)-(R?b.crossAxis:0);h<N?h=N:h>w&&(h=w)}return{[d]:p,[c]:h}}}},ax=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...u}=zt(e,t),f=await ar(t,u),c=Ot(i),d=Pn(i),p=kt(i)==="y",{width:h,height:v}=o.floating;let b,y;c==="top"||c==="bottom"?(b=c,y=d===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,b=d==="end"?"top":"bottom");const _=v-f.top-f.bottom,x=h-f.left-f.right,R=qt(v-f[b],_),N=qt(h-f[y],x),w=!t.middlewareData.shift;let M=R,z=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(z=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=_),w&&!d){const k=nt(f.left,0),$=nt(f.right,0),j=nt(f.top,0),W=nt(f.bottom,0);p?z=h-2*(k!==0||$!==0?k+$:nt(f.left,f.right)):M=v-2*(j!==0||W!==0?j+W:nt(f.top,f.bottom))}await l({...t,availableWidth:z,availableHeight:M});const U=await a.getDimensions(s.floating);return h!==U.width||v!==U.height?{reset:{rects:!0}}:{}}}};function fi(){return typeof window<"u"}function jn(e){return Iu(e)?(e.nodeName||"").toLowerCase():"#document"}function rt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function At(e){var t;return(t=(Iu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Iu(e){return fi()?e instanceof Node||e instanceof rt(e).Node:!1}function yt(e){return fi()?e instanceof Element||e instanceof rt(e).Element:!1}function Et(e){return fi()?e instanceof HTMLElement||e instanceof rt(e).HTMLElement:!1}function Ls(e){return!fi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rt(e).ShadowRoot}const sx=new Set(["inline","contents"]);function hr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!sx.has(i)}const lx=new Set(["table","td","th"]);function ux(e){return lx.has(jn(e))}const cx=[":popover-open",":modal"];function di(e){return cx.some(t=>{try{return e.matches(t)}catch{return!1}})}const fx=["transform","translate","scale","rotate","perspective"],dx=["transform","translate","scale","rotate","perspective","filter"],px=["paint","layout","strict","content"];function na(e){const t=ra(),n=yt(e)?vt(e):e;return fx.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||dx.some(r=>(n.willChange||"").includes(r))||px.some(r=>(n.contain||"").includes(r))}function hx(e){let t=Gt(e);for(;Et(t)&&!In(t);){if(na(t))return t;if(di(t))return null;t=Gt(t)}return null}function ra(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mx=new Set(["html","body","#document"]);function In(e){return mx.has(jn(e))}function vt(e){return rt(e).getComputedStyle(e)}function pi(e){return yt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gt(e){if(jn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ls(e)&&e.host||At(e);return Ls(t)?t.host:t}function Nu(e){const t=Gt(e);return In(t)?e.ownerDocument?e.ownerDocument.body:e.body:Et(t)&&hr(t)?t:Nu(t)}function sr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Nu(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=rt(i);if(o){const s=So(a);return t.concat(a,a.visualViewport||[],hr(i)?i:[],s&&n?sr(s):[])}return t.concat(i,sr(i,[],n))}function So(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zu(e){const t=vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Et(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Yr(n)!==o||Yr(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function ia(e){return yt(e)?e:e.contextElement}function kn(e){const t=ia(e);if(!Et(t))return _t(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=zu(t);let a=(o?Yr(n.width):n.width)/r,s=(o?Yr(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const gx=_t(0);function Ou(e){const t=rt(e);return!ra()||!t.visualViewport?gx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yx(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==rt(e)?!1:t}function an(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=ia(e);let a=_t(1);t&&(r?yt(r)&&(a=kn(r)):a=kn(e));const s=yx(o,n,r)?Ou(o):_t(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,f=i.width/a.x,c=i.height/a.y;if(o){const d=rt(o),p=r&&yt(r)?rt(r):r;let h=d,v=So(h);for(;v&&r&&p!==h;){const b=kn(v),y=v.getBoundingClientRect(),_=vt(v),x=y.left+(v.clientLeft+parseFloat(_.paddingLeft))*b.x,R=y.top+(v.clientTop+parseFloat(_.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,c*=b.y,l+=x,u+=R,h=rt(v),v=So(h)}}return Xr({width:f,height:c,x:l,y:u})}function hi(e,t){const n=pi(e).scrollLeft;return t?t.left+n:an(At(e)).left+n}function Pu(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-hi(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function vx(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=At(r),s=t?di(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=_t(1);const f=_t(0),c=Et(r);if((c||!c&&!o)&&((jn(r)!=="body"||hr(a))&&(l=pi(r)),Et(r))){const p=an(r);u=kn(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}const d=a&&!c&&!o?Pu(a,l):_t(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+d.x,y:n.y*u.y-l.scrollTop*u.y+f.y+d.y}}function bx(e){return Array.from(e.getClientRects())}function xx(e){const t=At(e),n=pi(e),r=e.ownerDocument.body,i=nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+hi(e);const s=-n.scrollTop;return vt(r).direction==="rtl"&&(a+=nt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}const Ms=25;function wx(e,t){const n=rt(e),r=At(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const f=ra();(!f||f&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const u=hi(r);if(u<=0){const f=r.ownerDocument,c=f.body,d=getComputedStyle(c),p=f.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(r.clientWidth-c.clientWidth-p);h<=Ms&&(o-=h)}else u<=Ms&&(o+=u);return{width:o,height:a,x:s,y:l}}const kx=new Set(["absolute","fixed"]);function _x(e,t){const n=an(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Et(e)?kn(e):_t(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:a,height:s,x:l,y:u}}function $s(e,t,n){let r;if(t==="viewport")r=wx(e,n);else if(t==="document")r=xx(At(e));else if(yt(t))r=_x(t,n);else{const i=Ou(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Xr(r)}function ju(e,t){const n=Gt(e);return n===t||!yt(n)||In(n)?!1:vt(n).position==="fixed"||ju(n,t)}function Cx(e,t){const n=t.get(e);if(n)return n;let r=sr(e,[],!1).filter(s=>yt(s)&&jn(s)!=="body"),i=null;const o=vt(e).position==="fixed";let a=o?Gt(e):e;for(;yt(a)&&!In(a);){const s=vt(a),l=na(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&kx.has(i.position)||hr(a)&&!l&&ju(e,a))?r=r.filter(f=>f!==a):i=s,a=Gt(a)}return t.set(e,r),r}function Sx(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?di(t)?[]:Cx(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,f)=>{const c=$s(t,f,i);return u.top=nt(c.top,u.top),u.right=qt(c.right,u.right),u.bottom=qt(c.bottom,u.bottom),u.left=nt(c.left,u.left),u},$s(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ex(e){const{width:t,height:n}=zu(e);return{width:t,height:n}}function Ax(e,t,n){const r=Et(t),i=At(t),o=n==="fixed",a=an(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=_t(0);function u(){l.x=hi(i)}if(r||!r&&!o)if((jn(t)!=="body"||hr(i))&&(s=pi(t)),r){const p=an(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&u();o&&!r&&i&&u();const f=i&&!r&&!o?Pu(i,s):_t(0),c=a.left+s.scrollLeft-l.x-f.x,d=a.top+s.scrollTop-l.y-f.y;return{x:c,y:d,width:a.width,height:a.height}}function Li(e){return vt(e).position==="static"}function Fs(e,t){if(!Et(e)||vt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return At(e)===n&&(n=n.ownerDocument.body),n}function Du(e,t){const n=rt(e);if(di(e))return n;if(!Et(e)){let i=Gt(e);for(;i&&!In(i);){if(yt(i)&&!Li(i))return i;i=Gt(i)}return n}let r=Fs(e,t);for(;r&&ux(r)&&Li(r);)r=Fs(r,t);return r&&In(r)&&Li(r)&&!na(r)?n:r||hx(e)||n}const Tx=async function(e){const t=this.getOffsetParent||Du,n=this.getDimensions,r=await n(e.floating);return{reference:Ax(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Rx(e){return vt(e).direction==="rtl"}const Ix={convertOffsetParentRelativeRectToViewportRelativeRect:vx,getDocumentElement:At,getClippingRect:Sx,getOffsetParent:Du,getElementRects:Tx,getClientRects:bx,getDimensions:Ex,getScale:kn,isElement:yt,isRTL:Rx};function Lu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Nx(e,t){let n=null,r;const i=At(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:f,top:c,width:d,height:p}=u;if(s||t(),!d||!p)return;const h=Nr(c),v=Nr(i.clientWidth-(f+d)),b=Nr(i.clientHeight-(c+p)),y=Nr(f),x={rootMargin:-h+"px "+-v+"px "+-b+"px "+-y+"px",threshold:nt(0,qt(1,l))||1};let R=!0;function N(w){const M=w[0].intersectionRatio;if(M!==l){if(!R)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}M===1&&!Lu(u,e.getBoundingClientRect())&&a(),R=!1}try{n=new IntersectionObserver(N,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(N,x)}n.observe(e)}return a(!0),o}function WE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=ia(e),f=i||o?[...u?sr(u):[],...sr(t)]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const c=u&&s?Nx(u,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(y=>{let[_]=y;_&&_.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let h,v=l?an(e):null;l&&b();function b(){const y=an(e);v&&!Lu(v,y)&&n(),v=y,h=requestAnimationFrame(b)}return n(),()=>{var y;f.forEach(_=>{i&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),c?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const zx=rx,Ox=ix,Px=ex,jx=ax,Dx=tx,Zs=Qb,Lx=ox,Mx=(e,t,n)=>{const r=new Map,i={platform:Ix,...n},o={...i.platform,_c:r};return Xb(e,t,{...i,platform:o})};var $x=typeof document<"u",Fx=function(){},$r=$x?V.useLayoutEffect:Fx;function Qr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Qr(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Qr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Mu(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bs(e,t){const n=Mu(e);return Math.round(t*n)/n}function Mi(e){const t=V.useRef(e);return $r(()=>{t.current=e}),t}function qE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[f,c]=V.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=V.useState(r);Qr(d,r)||p(r);const[h,v]=V.useState(null),[b,y]=V.useState(null),_=V.useCallback(S=>{S!==w.current&&(w.current=S,v(S))},[]),x=V.useCallback(S=>{S!==M.current&&(M.current=S,y(S))},[]),R=o||h,N=a||b,w=V.useRef(null),M=V.useRef(null),z=V.useRef(f),U=l!=null,k=Mi(l),$=Mi(i),j=Mi(u),W=V.useCallback(()=>{if(!w.current||!M.current)return;const S={placement:t,strategy:n,middleware:d};$.current&&(S.platform=$.current),Mx(w.current,M.current,S).then(X=>{const g={...X,isPositioned:j.current!==!1};Z.current&&!Qr(z.current,g)&&(z.current=g,md.flushSync(()=>{c(g)}))})},[d,t,n,$,j]);$r(()=>{u===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,c(S=>({...S,isPositioned:!1})))},[u]);const Z=V.useRef(!1);$r(()=>(Z.current=!0,()=>{Z.current=!1}),[]),$r(()=>{if(R&&(w.current=R),N&&(M.current=N),R&&N){if(k.current)return k.current(R,N,W);W()}},[R,N,W,k,U]);const O=V.useMemo(()=>({reference:w,floating:M,setReference:_,setFloating:x}),[_,x]),C=V.useMemo(()=>({reference:R,floating:N}),[R,N]),P=V.useMemo(()=>{const S={position:n,left:0,top:0};if(!C.floating)return S;const X=Bs(C.floating,f.x),g=Bs(C.floating,f.y);return s?{...S,transform:"translate("+X+"px, "+g+"px)",...Mu(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:g}},[n,s,C.floating,f.x,f.y]);return V.useMemo(()=>({...f,update:W,refs:O,elements:C,floatingStyles:P}),[f,W,O,C,P])}const Zx=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Zs({element:r.current,padding:i}).fn(n):{}:r?Zs({element:r,padding:i}).fn(n):{}}}},GE=(e,t)=>({...zx(e),options:[e,t]}),JE=(e,t)=>({...Ox(e),options:[e,t]}),YE=(e,t)=>({...Lx(e),options:[e,t]}),KE=(e,t)=>({...Px(e),options:[e,t]}),XE=(e,t)=>({...jx(e),options:[e,t]}),QE=(e,t)=>({...Dx(e),options:[e,t]}),eA=(e,t)=>({...Zx(e),options:[e,t]});var Bx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},hn=new WeakMap,zr=new WeakMap,Or={},$i=0,$u=function(e){return e&&(e.host||$u(e.parentNode))},Vx=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=$u(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ux=function(e,t,n,r){var i=Vx(t,Array.isArray(e)?e:[e]);Or[n]||(Or[n]=new WeakMap);var o=Or[n],a=[],s=new Set,l=new Set(i),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};i.forEach(u);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(d){if(s.has(d))f(d);else try{var p=d.getAttribute(r),h=p!==null&&p!=="false",v=(hn.get(d)||0)+1,b=(o.get(d)||0)+1;hn.set(d,v),o.set(d,b),a.push(d),v===1&&h&&zr.set(d,!0),b===1&&d.setAttribute(n,"true"),h||d.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return f(t),s.clear(),$i++,function(){a.forEach(function(c){var d=hn.get(c)-1,p=o.get(c)-1;hn.set(c,d),o.set(c,p),d||(zr.has(c)||c.removeAttribute(r),zr.delete(c)),p||c.removeAttribute(n)}),$i--,$i||(hn=new WeakMap,hn=new WeakMap,zr=new WeakMap,Or={})}},tA=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=Bx(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),Ux(r,i,n,"aria-hidden")):function(){return null}},ei=function(){return ei=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ei.apply(this,arguments)};function Hx(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function nA(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Fi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Wx(e,t){var n=V.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var qx=typeof window<"u"?V.useLayoutEffect:V.useEffect,Vs=new WeakMap;function rA(e,t){var n=Wx(null,function(r){return e.forEach(function(i){return Fi(i,r)})});return qx(function(){var r=Vs.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(s){o.has(s)||Fi(s,null)}),o.forEach(function(s){i.has(s)||Fi(s,a)})}Vs.set(n,e)},[e]),n}function Gx(e){return e}function Jx(e,t){t===void 0&&(t=Gx);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(s){return o(s)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(o),a=n}var l=function(){var f=a;a=[],f.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return i}function iA(e){e===void 0&&(e={});var t=Jx(null);return t.options=ei({async:!0,ssr:!1},e),t}var Fu=function(e){var t=e.sideCar,n=Hx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return V.createElement(r,ei({},n))};Fu.isSideCarExport=!0;function oA(e,t){return e.useMedium(t),Fu}var aA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function sA(){}function Yx(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Kx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qx={};function Us(e,t){return(Qx.jsx?Xx:Kx).test(e)}const ew=/[ \t\n\f\r]/g;function tw(e){return typeof e=="object"?e.type==="text"?Hs(e.value):!1:Hs(e)}function Hs(e){return e.replace(ew,"")===""}class mr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}mr.prototype.normal={};mr.prototype.property={};mr.prototype.space=void 0;function Zu(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new mr(n,r,t)}function Eo(e){return e.toLowerCase()}class Ge{constructor(t,n){this.attribute=n,this.property=t}}Ge.prototype.attribute="";Ge.prototype.booleanish=!1;Ge.prototype.boolean=!1;Ge.prototype.commaOrSpaceSeparated=!1;Ge.prototype.commaSeparated=!1;Ge.prototype.defined=!1;Ge.prototype.mustUseProperty=!1;Ge.prototype.number=!1;Ge.prototype.overloadedBoolean=!1;Ge.prototype.property="";Ge.prototype.spaceSeparated=!1;Ge.prototype.space=void 0;let nw=0;const oe=fn(),Ie=fn(),Ao=fn(),D=fn(),_e=fn(),_n=fn(),et=fn();function fn(){return 2**++nw}const To=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:Ie,commaOrSpaceSeparated:et,commaSeparated:_n,number:D,overloadedBoolean:Ao,spaceSeparated:_e},Symbol.toStringTag,{value:"Module"})),Zi=Object.keys(To);class oa extends Ge{constructor(t,n,r,i){let o=-1;if(super(t,n),Ws(this,"space",i),typeof r=="number")for(;++o<Zi.length;){const a=Zi[o];Ws(this,Zi[o],(r&To[a])===To[a])}}}oa.prototype.defined=!0;function Ws(e,t,n){n&&(e[t]=n)}function Dn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new oa(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Eo(r)]=r,n[Eo(o.attribute)]=r}return new mr(t,n,e.space)}const Bu=Dn({properties:{ariaActiveDescendant:null,ariaAtomic:Ie,ariaAutoComplete:null,ariaBusy:Ie,ariaChecked:Ie,ariaColCount:D,ariaColIndex:D,ariaColSpan:D,ariaControls:_e,ariaCurrent:null,ariaDescribedBy:_e,ariaDetails:null,ariaDisabled:Ie,ariaDropEffect:_e,ariaErrorMessage:null,ariaExpanded:Ie,ariaFlowTo:_e,ariaGrabbed:Ie,ariaHasPopup:null,ariaHidden:Ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_e,ariaLevel:D,ariaLive:null,ariaModal:Ie,ariaMultiLine:Ie,ariaMultiSelectable:Ie,ariaOrientation:null,ariaOwns:_e,ariaPlaceholder:null,ariaPosInSet:D,ariaPressed:Ie,ariaReadOnly:Ie,ariaRelevant:null,ariaRequired:Ie,ariaRoleDescription:_e,ariaRowCount:D,ariaRowIndex:D,ariaRowSpan:D,ariaSelected:Ie,ariaSetSize:D,ariaSort:null,ariaValueMax:D,ariaValueMin:D,ariaValueNow:D,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Vu(e,t){return t in e?e[t]:t}function Uu(e,t){return Vu(e,t.toLowerCase())}const rw=Dn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_n,acceptCharset:_e,accessKey:_e,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:_e,autoFocus:oe,autoPlay:oe,blocking:_e,capture:null,charSet:null,checked:oe,cite:null,className:_e,cols:D,colSpan:null,content:null,contentEditable:Ie,controls:oe,controlsList:_e,coords:D|_n,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:Ao,draggable:Ie,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:_e,height:D,hidden:Ao,high:D,href:null,hrefLang:null,htmlFor:_e,httpEquiv:_e,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:_e,itemRef:_e,itemScope:oe,itemType:_e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:D,manifest:null,max:null,maxLength:D,media:null,method:null,min:null,minLength:D,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:oe,optimum:D,pattern:null,ping:_e,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:_e,required:oe,reversed:oe,rows:D,rowSpan:D,sandbox:_e,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootClonable:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:D,sizes:null,slot:null,span:D,spellCheck:Ie,src:null,srcDoc:null,srcLang:null,srcSet:null,start:D,step:null,style:null,tabIndex:D,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:Ie,width:D,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_e,axis:null,background:null,bgColor:null,border:D,borderColor:null,bottomMargin:D,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:D,leftMargin:D,link:null,longDesc:null,lowSrc:null,marginHeight:D,marginWidth:D,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:D,rules:null,scheme:null,scrolling:Ie,standby:null,summary:null,text:null,topMargin:D,valueType:null,version:null,vAlign:null,vLink:null,vSpace:D,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:D,security:null,unselectable:null},space:"html",transform:Uu}),iw=Dn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:et,accentHeight:D,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:D,amplitude:D,arabicForm:null,ascent:D,attributeName:null,attributeType:null,azimuth:D,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:D,by:null,calcMode:null,capHeight:D,className:_e,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:D,diffuseConstant:D,direction:null,display:null,dur:null,divisor:D,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:D,enableBackground:null,end:null,event:null,exponent:D,externalResourcesRequired:null,fill:null,fillOpacity:D,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:_n,g2:_n,glyphName:_n,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:D,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:D,horizOriginX:D,horizOriginY:D,id:null,ideographic:D,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:D,k:D,k1:D,k2:D,k3:D,k4:D,kernelMatrix:et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:D,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:D,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:D,overlineThickness:D,paintOrder:null,panose1:null,path:null,pathLength:D,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:D,pointsAtY:D,pointsAtZ:D,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:et,rev:et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:et,requiredFeatures:et,requiredFonts:et,requiredFormats:et,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:D,specularExponent:D,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:D,strikethroughThickness:D,string:null,stroke:null,strokeDashArray:et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:D,strokeOpacity:D,strokeWidth:null,style:null,surfaceScale:D,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:et,tabIndex:D,tableValues:null,target:null,targetX:D,targetY:D,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:D,underlineThickness:D,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:D,values:null,vAlphabetic:D,vMathematical:D,vectorEffect:null,vHanging:D,vIdeographic:D,version:null,vertAdvY:D,vertOriginX:D,vertOriginY:D,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:D,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Vu}),Hu=Dn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Wu=Dn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Uu}),qu=Dn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ow={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},aw=/[A-Z]/g,qs=/-[a-z]/g,sw=/^data[-\w.:]+$/i;function lw(e,t){const n=Eo(t);let r=t,i=Ge;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&sw.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(qs,cw);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!qs.test(o)){let a=o.replace(aw,uw);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=oa}return new i(r,t)}function uw(e){return"-"+e.toLowerCase()}function cw(e){return e.charAt(1).toUpperCase()}const fw=Zu([Bu,rw,Hu,Wu,qu],"html"),aa=Zu([Bu,iw,Hu,Wu,qu],"svg");function dw(e){return e.join(" ").trim()}var mn={},Bi,Gs;function pw(){if(Gs)return Bi;Gs=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
21
- `,u="/",f="*",c="",d="comment",p="declaration";function h(b,y){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];y=y||{};var _=1,x=1;function R(Z){var O=Z.match(t);O&&(_+=O.length);var C=Z.lastIndexOf(l);x=~C?Z.length-C:x+Z.length}function N(){var Z={line:_,column:x};return function(O){return O.position=new w(Z),U(),O}}function w(Z){this.start=Z,this.end={line:_,column:x},this.source=y.source}w.prototype.content=b;function M(Z){var O=new Error(y.source+":"+_+":"+x+": "+Z);if(O.reason=Z,O.filename=y.source,O.line=_,O.column=x,O.source=b,!y.silent)throw O}function z(Z){var O=Z.exec(b);if(O){var C=O[0];return R(C),b=b.slice(C.length),O}}function U(){z(n)}function k(Z){var O;for(Z=Z||[];O=$();)O!==!1&&Z.push(O);return Z}function $(){var Z=N();if(!(u!=b.charAt(0)||f!=b.charAt(1))){for(var O=2;c!=b.charAt(O)&&(f!=b.charAt(O)||u!=b.charAt(O+1));)++O;if(O+=2,c===b.charAt(O-1))return M("End of comment missing");var C=b.slice(2,O-2);return x+=2,R(C),b=b.slice(O),x+=2,Z({type:d,comment:C})}}function j(){var Z=N(),O=z(r);if(O){if($(),!z(i))return M("property missing ':'");var C=z(o),P=Z({type:p,property:v(O[0].replace(e,c)),value:C?v(C[0].replace(e,c)):c});return z(a),P}}function W(){var Z=[];k(Z);for(var O;O=j();)O!==!1&&(Z.push(O),k(Z));return Z}return U(),W()}function v(b){return b?b.replace(s,c):c}return Bi=h,Bi}var Js;function hw(){if(Js)return mn;Js=1;var e=mn&&mn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(mn,"__esModule",{value:!0}),mn.default=n;const t=e(pw());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const a=(0,t.default)(r),s=typeof i=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:f}=l;s?i(u,f,l):f&&(o=o||{},o[u]=f)}),o}return mn}var Un={},Ys;function mw(){if(Ys)return Un;Ys=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||n.test(u)||e.test(u)},a=function(u,f){return f.toUpperCase()},s=function(u,f){return"".concat(f,"-")},l=function(u,f){return f===void 0&&(f={}),o(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,s):u=u.replace(r,s),u.replace(t,a))};return Un.camelCase=l,Un}var Hn,Ks;function gw(){if(Ks)return Hn;Ks=1;var e=Hn&&Hn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(hw()),n=mw();function r(i,o){var a={};return!i||typeof i!="string"||(0,t.default)(i,function(s,l){s&&l&&(a[(0,n.camelCase)(s,o)]=l)}),a}return r.default=r,Hn=r,Hn}var yw=gw();const vw=Nl(yw),Gu=Ju("end"),sa=Ju("start");function Ju(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function bw(e){const t=sa(e),n=Gu(e);if(t&&n)return{start:t,end:n}}function Kn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Xs(e.position):"start"in e||"end"in e?Xs(e):"line"in e||"column"in e?Ro(e):""}function Ro(e){return Qs(e&&e.line)+":"+Qs(e&&e.column)}function Xs(e){return Ro(e&&e.start)+"-"+Ro(e&&e.end)}function Qs(e){return e&&typeof e=="number"?e:1}class $e extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=Kn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$e.prototype.file="";$e.prototype.name="";$e.prototype.reason="";$e.prototype.message="";$e.prototype.stack="";$e.prototype.column=void 0;$e.prototype.line=void 0;$e.prototype.ancestors=void 0;$e.prototype.cause=void 0;$e.prototype.fatal=void 0;$e.prototype.place=void 0;$e.prototype.ruleId=void 0;$e.prototype.source=void 0;const la={}.hasOwnProperty,xw=new Map,ww=/[A-Z]/g,kw=new Set(["table","tbody","thead","tfoot","tr"]),_w=new Set(["td","th"]),Yu="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function lA(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Nw(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Iw(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?aa:fw,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Ku(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Ku(e,t,n){if(t.type==="element")return Cw(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Sw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Aw(e,t,n);if(t.type==="mdxjsEsm")return Ew(e,t);if(t.type==="root")return Tw(e,t,n);if(t.type==="text")return Rw(e,t)}function Cw(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=aa,e.schema=i),e.ancestors.push(t);const o=Qu(e,t.tagName,!1),a=zw(e,t);let s=ca(e,t);return kw.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!tw(l):!0})),Xu(e,a,o,t),ua(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function Sw(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}lr(e,t.position)}function Ew(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);lr(e,t.position)}function Aw(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=aa,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Qu(e,t.name,!0),a=Ow(e,t),s=ca(e,t);return Xu(e,a,o,t),ua(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function Tw(e,t,n){const r={};return ua(r,ca(e,t)),e.create(t,e.Fragment,r,n)}function Rw(e,t){return t.value}function Xu(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ua(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Iw(e,t,n){return r;function r(i,o,a,s){const u=Array.isArray(a.children)?n:t;return s?u(o,a,s):u(o,a)}}function Nw(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=sa(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function zw(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&la.call(t.properties,i)){const o=Pw(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&_w.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Ow(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else lr(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else lr(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function ca(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:xw;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=i.get(l)||0;a=l+"-"+u,i.set(l,u+1)}}const s=Ku(e,o,a);s!==void 0&&n.push(s)}return n}function Pw(e,t,n){const r=lw(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Yx(n):dw(n)),r.property==="style"){let i=typeof n=="object"?n:jw(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Dw(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ow[r.property]||r.property:r.attribute,n]}}function jw(e,t){try{return vw(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new $e("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Yu+"#cannot-parse-style-attribute",i}}function Qu(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const s=Us(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=a}else r=Us(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return la.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);lr(e)}function lr(e,t){const n=new $e("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Yu+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Dw(e){const t={};let n;for(n in e)la.call(e,n)&&(t[Lw(n)]=e[n]);return t}function Lw(e){let t=e.replace(ww,Mw);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Mw(e){return"-"+e.toLowerCase()}const uA={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},$w={};function fa(e,t){const n=$w,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ec(e,r,i)}function ec(e,t,n){if(Fw(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return el(e.children,t,n)}return Array.isArray(e)?el(e,t,n):""}function el(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=ec(e[i],t,n);return r.join("")}function Fw(e){return!!(e&&typeof e=="object")}const tl=document.createElement("i");function da(e){const t="&"+e+";";tl.innerHTML=t;const n=tl.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function it(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function lt(e,t){return e.length>0?(it(e,e.length,0,t),e):t}const nl={}.hasOwnProperty;function tc(e){const t={};let n=-1;for(;++n<e.length;)Zw(t,e[n]);return t}function Zw(e,t){let n;for(n in t){const i=(nl.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){nl.call(i,a)||(i[a]=[]);const s=o[a];Bw(i[a],Array.isArray(s)?s:s?[s]:[])}}}function Bw(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);it(e,0,0,r)}function nc(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function gt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ze=Yt(/[A-Za-z]/),Me=Yt(/[\dA-Za-z]/),Vw=Yt(/[#-'*+\--9=?A-Z^-~]/);function ti(e){return e!==null&&(e<32||e===127)}const Io=Yt(/\d/),Uw=Yt(/[\dA-Fa-f]/),Hw=Yt(/[!-/:-@[-`{-~]/);function ee(e){return e!==null&&e<-2}function ke(e){return e!==null&&(e<0||e===32)}function ce(e){return e===-2||e===-1||e===32}const mi=Yt(new RegExp("\\p{P}|\\p{S}","u")),sn=Yt(/\s/);function Yt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ln(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&Me(e.charCodeAt(n+1))&&Me(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function me(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return ce(l)?(e.enter(n),s(l)):t(l)}function s(l){return ce(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const Ww={tokenize:qw};function qw(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),me(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return ee(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const Gw={tokenize:Jw},rl={tokenize:Yw};function Jw(e){const t=this,n=[];let r=0,i,o,a;return s;function s(x){if(r<n.length){const R=n[r];return t.containerState=R[1],e.attempt(R[0].continuation,l,u)(x)}return u(x)}function l(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&_();const R=t.events.length;let N=R,w;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){w=t.events[N][1].end;break}y(r);let M=R;for(;M<t.events.length;)t.events[M][1].end={...w},M++;return it(t.events,N+1,0,t.events.slice(R)),t.events.length=M,u(x)}return s(x)}function u(x){if(r===n.length){if(!i)return d(x);if(i.currentConstruct&&i.currentConstruct.concrete)return h(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(rl,f,c)(x)}function f(x){return i&&_(),y(r),d(x)}function c(x){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,h(x)}function d(x){return t.containerState={},e.attempt(rl,p,h)(x)}function p(x){return r++,n.push([t.currentConstruct,t.containerState]),d(x)}function h(x){if(x===null){i&&_(),y(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),v(x)}function v(x){if(x===null){b(e.exit("chunkFlow"),!0),y(0),e.consume(x);return}return ee(x)?(e.consume(x),b(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(x),v)}function b(x,R){const N=t.sliceStream(x);if(R&&N.push(null),x.previous=o,o&&(o.next=x),o=x,i.defineSkip(x.start),i.write(N),t.parser.lazy[x.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<a&&(!i.events[w][1].end||i.events[w][1].end.offset>a))return;const M=t.events.length;let z=M,U,k;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(U){k=t.events[z][1].end;break}U=!0}for(y(r),w=M;w<t.events.length;)t.events[w][1].end={...k},w++;it(t.events,z+1,0,t.events.slice(M)),t.events.length=w}}function y(x){let R=n.length;for(;R-- >x;){const N=n[R];t.containerState=N[1],N[0].exit.call(t,e)}n.length=x}function _(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Yw(e,t,n){return me(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Nn(e){if(e===null||ke(e)||sn(e))return 1;if(mi(e))return 2}function gi(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const No={name:"attention",resolveAll:Kw,tokenize:Xw};function Kw(e,t){let n=-1,r,i,o,a,s,l,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},d={...e[n][1].start};il(c,-l),il(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=lt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=lt(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=lt(u,gi(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=lt(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=lt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,it(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Xw(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Nn(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const u=e.exit("attentionSequence"),f=Nn(l),c=!f||f===2&&i||n.includes(l),d=!i||i===2&&f||n.includes(r);return u._open=!!(o===42?c:c&&(i||!d)),u._close=!!(o===42?d:d&&(f||!c)),t(l)}}function il(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Qw={name:"autolink",tokenize:ek};function ek(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return Ze(p)?(e.consume(p),a):p===64?n(p):u(p)}function a(p){return p===43||p===45||p===46||Me(p)?(r=1,s(p)):u(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||Me(p))&&r++<32?(e.consume(p),s):(r=0,u(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||ti(p)?n(p):(e.consume(p),l)}function u(p){return p===64?(e.consume(p),f):Vw(p)?(e.consume(p),u):n(p)}function f(p){return Me(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):d(p)}function d(p){if((p===45||Me(p))&&r++<63){const h=p===45?d:c;return e.consume(p),h}return n(p)}}const gr={partial:!0,tokenize:tk};function tk(e,t,n){return r;function r(o){return ce(o)?me(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||ee(o)?t(o):n(o)}}const rc={continuation:{tokenize:rk},exit:ik,name:"blockQuote",tokenize:nk};function nk(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return ce(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function rk(e,t,n){const r=this;return i;function i(a){return ce(a)?me(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(rc,t,n)(a)}}function ik(e){e.exit("blockQuote")}const ic={name:"characterEscape",tokenize:ok};function ok(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Hw(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const oc={name:"characterReference",tokenize:ak};function ak(e,t,n){const r=this;let i=0,o,a;return s;function s(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,a=Me,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=Uw,f):(e.enter("characterReferenceValue"),o=7,a=Io,f(c))}function f(c){if(c===59&&i){const d=e.exit("characterReferenceValue");return a===Me&&!da(r.sliceSerialize(d))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(c)&&i++<o?(e.consume(c),f):n(c)}}const ol={partial:!0,tokenize:lk},al={concrete:!0,name:"codeFenced",tokenize:sk};function sk(e,t,n){const r=this,i={partial:!0,tokenize:N};let o=0,a=0,s;return l;function l(w){return u(w)}function u(w){const M=r.events[r.events.length-1];return o=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,s=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===s?(a++,e.consume(w),f):a<3?n(w):(e.exit("codeFencedFenceSequence"),ce(w)?me(e,c,"whitespace")(w):c(w))}function c(w){return w===null||ee(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(ol,v,R)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(w))}function d(w){return w===null||ee(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):ce(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),me(e,p,"whitespace")(w)):w===96&&w===s?n(w):(e.consume(w),d)}function p(w){return w===null||ee(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||ee(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===s?n(w):(e.consume(w),h)}function v(w){return e.attempt(i,R,b)(w)}function b(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return o>0&&ce(w)?me(e,_,"linePrefix",o+1)(w):_(w)}function _(w){return w===null||ee(w)?e.check(ol,v,R)(w):(e.enter("codeFlowValue"),x(w))}function x(w){return w===null||ee(w)?(e.exit("codeFlowValue"),_(w)):(e.consume(w),x)}function R(w){return e.exit("codeFenced"),t(w)}function N(w,M,z){let U=0;return k;function k(O){return w.enter("lineEnding"),w.consume(O),w.exit("lineEnding"),$}function $(O){return w.enter("codeFencedFence"),ce(O)?me(w,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):j(O)}function j(O){return O===s?(w.enter("codeFencedFenceSequence"),W(O)):z(O)}function W(O){return O===s?(U++,w.consume(O),W):U>=a?(w.exit("codeFencedFenceSequence"),ce(O)?me(w,Z,"whitespace")(O):Z(O)):z(O)}function Z(O){return O===null||ee(O)?(w.exit("codeFencedFence"),M(O)):z(O)}}}function lk(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const Vi={name:"codeIndented",tokenize:ck},uk={partial:!0,tokenize:fk};function ck(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),me(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):ee(u)?e.attempt(uk,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||ee(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function fk(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):ee(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):me(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):ee(a)?i(a):n(a)}}const dk={name:"codeText",previous:hk,resolve:pk,tokenize:mk};function pk(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function hk(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function mk(e,t,n){let r=0,i,o;return a;function a(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)}function s(c){return c===96?(e.consume(c),r++,s):(e.exit("codeTextSequence"),l(c))}function l(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),l):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):ee(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||ee(c)?(e.exit("codeTextData"),l(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",u(c))}}class gk{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Wn(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Wn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Wn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Wn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Wn(this.left,n.reverse())}}}function Wn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ac(e){const t={};let n=-1,r,i,o,a,s,l,u;const f=new gk(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,yk(f,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=f.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},s=f.slice(i,n),s.unshift(r),f.splice(i,n-i+1,s))}}return it(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function yk(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],u={};let f,c,d=-1,p=n,h=0,v=0;const b=[v];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(v=d+1,b.push(v),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):b.pop(),d=b.length;d--;){const y=s.slice(b[d],b[d+1]),_=o.pop();l.push([_,_+y.length-1]),e.splice(_,2,y)}for(l.reverse(),d=-1;++d<l.length;)u[h+l[d][0]]=h+l[d][1],h+=l[d][1]-l[d][0]-1;return u}const vk={resolve:xk,tokenize:wk},bk={partial:!0,tokenize:kk};function xk(e){return ac(e),e}function wk(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):ee(s)?e.check(bk,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function kk(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),me(e,o,"linePrefix")}function o(a){if(a===null||ee(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function sc(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),d):y===null||y===32||y===41||ti(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(y))}function d(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(s),d(y)):y===null||y===60||ee(y)?n(y):(e.consume(y),y===92?h:p)}function h(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function v(y){return!f&&(y===null||y===41||ke(y))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):f<u&&y===40?(e.consume(y),f++,v):y===41?(e.consume(y),f--,v):y===null||y===32||y===40||ti(y)?n(y):(e.consume(y),y===92?b:v)}function b(y){return y===40||y===41||y===92?(e.consume(y),v):v(y)}}function lc(e,t,n,r,i,o){const a=this;let s=0,l;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),f}function f(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ee(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||ee(p)||s++>999?(e.exit("chunkString"),f(p)):(e.consume(p),l||(l=!ce(p)),p===92?d:c)}function d(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}}function uc(e,t,n,r,i,o){let a;return s;function s(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),a=d===40?41:d,l):n(d)}function l(d){return d===a?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(o),u(d))}function u(d){return d===a?(e.exit(o),l(a)):d===null?n(d):ee(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),me(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===a||d===null||ee(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?c:f)}function c(d){return d===a||d===92?(e.consume(d),f):f(d)}}function Xn(e,t){let n;return r;function r(i){return ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ce(i)?me(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const _k={name:"definition",tokenize:Sk},Ck={partial:!0,tokenize:Ek};function Sk(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),a(p)}function a(p){return lc.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=gt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return ke(p)?Xn(e,u)(p):u(p)}function u(p){return sc(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(Ck,c,c)(p)}function c(p){return ce(p)?me(e,d,"whitespace")(p):d(p)}function d(p){return p===null||ee(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function Ek(e,t,n){return r;function r(s){return ke(s)?Xn(e,i)(s):n(s)}function i(s){return uc(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return ce(s)?me(e,a,"whitespace")(s):a(s)}function a(s){return s===null||ee(s)?t(s):n(s)}}const Ak={name:"hardBreakEscape",tokenize:Tk};function Tk(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return ee(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Rk={name:"headingAtx",resolve:Ik,tokenize:Nk};function Ik(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},it(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Nk(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&r++<6?(e.consume(f),a):f===null||ke(f)?(e.exit("atxHeadingSequence"),s(f)):n(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||ee(f)?(e.exit("atxHeading"),t(f)):ce(f)?me(e,s,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),s(f))}function u(f){return f===null||f===35||ke(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),u)}}const zk=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],sl=["pre","script","style","textarea"],Ok={concrete:!0,name:"htmlFlow",resolveTo:Dk,tokenize:Lk},Pk={partial:!0,tokenize:$k},jk={partial:!0,tokenize:Mk};function Dk(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Lk(e,t,n){const r=this;let i,o,a,s,l;return u;function u(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),d):m===47?(e.consume(m),o=!0,v):m===63?(e.consume(m),i=3,r.interrupt?t:g):Ze(m)?(e.consume(m),a=String.fromCharCode(m),b):n(m)}function d(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,s=0,h):Ze(m)?(e.consume(m),i=4,r.interrupt?t:g):n(m)}function p(m){return m===45?(e.consume(m),r.interrupt?t:g):n(m)}function h(m){const Q="CDATA[";return m===Q.charCodeAt(s++)?(e.consume(m),s===Q.length?r.interrupt?t:j:h):n(m)}function v(m){return Ze(m)?(e.consume(m),a=String.fromCharCode(m),b):n(m)}function b(m){if(m===null||m===47||m===62||ke(m)){const Q=m===47,ae=a.toLowerCase();return!Q&&!o&&sl.includes(ae)?(i=1,r.interrupt?t(m):j(m)):zk.includes(a.toLowerCase())?(i=6,Q?(e.consume(m),y):r.interrupt?t(m):j(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(m):o?_(m):x(m))}return m===45||Me(m)?(e.consume(m),a+=String.fromCharCode(m),b):n(m)}function y(m){return m===62?(e.consume(m),r.interrupt?t:j):n(m)}function _(m){return ce(m)?(e.consume(m),_):k(m)}function x(m){return m===47?(e.consume(m),k):m===58||m===95||Ze(m)?(e.consume(m),R):ce(m)?(e.consume(m),x):k(m)}function R(m){return m===45||m===46||m===58||m===95||Me(m)?(e.consume(m),R):N(m)}function N(m){return m===61?(e.consume(m),w):ce(m)?(e.consume(m),N):x(m)}function w(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),l=m,M):ce(m)?(e.consume(m),w):z(m)}function M(m){return m===l?(e.consume(m),l=null,U):m===null||ee(m)?n(m):(e.consume(m),M)}function z(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||ke(m)?N(m):(e.consume(m),z)}function U(m){return m===47||m===62||ce(m)?x(m):n(m)}function k(m){return m===62?(e.consume(m),$):n(m)}function $(m){return m===null||ee(m)?j(m):ce(m)?(e.consume(m),$):n(m)}function j(m){return m===45&&i===2?(e.consume(m),C):m===60&&i===1?(e.consume(m),P):m===62&&i===4?(e.consume(m),xe):m===63&&i===3?(e.consume(m),g):m===93&&i===5?(e.consume(m),X):ee(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Pk,Ae,W)(m)):m===null||ee(m)?(e.exit("htmlFlowData"),W(m)):(e.consume(m),j)}function W(m){return e.check(jk,Z,Ae)(m)}function Z(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),O}function O(m){return m===null||ee(m)?W(m):(e.enter("htmlFlowData"),j(m))}function C(m){return m===45?(e.consume(m),g):j(m)}function P(m){return m===47?(e.consume(m),a="",S):j(m)}function S(m){if(m===62){const Q=a.toLowerCase();return sl.includes(Q)?(e.consume(m),xe):j(m)}return Ze(m)&&a.length<8?(e.consume(m),a+=String.fromCharCode(m),S):j(m)}function X(m){return m===93?(e.consume(m),g):j(m)}function g(m){return m===62?(e.consume(m),xe):m===45&&i===2?(e.consume(m),g):j(m)}function xe(m){return m===null||ee(m)?(e.exit("htmlFlowData"),Ae(m)):(e.consume(m),xe)}function Ae(m){return e.exit("htmlFlow"),t(m)}}function Mk(e,t,n){const r=this;return i;function i(a){return ee(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function $k(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(gr,t,n)}}const Fk={name:"htmlText",tokenize:Zk};function Zk(e,t,n){const r=this;let i,o,a;return s;function s(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),l}function l(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),N):g===63?(e.consume(g),x):Ze(g)?(e.consume(g),z):n(g)}function u(g){return g===45?(e.consume(g),f):g===91?(e.consume(g),o=0,h):Ze(g)?(e.consume(g),_):n(g)}function f(g){return g===45?(e.consume(g),p):n(g)}function c(g){return g===null?n(g):g===45?(e.consume(g),d):ee(g)?(a=c,P(g)):(e.consume(g),c)}function d(g){return g===45?(e.consume(g),p):c(g)}function p(g){return g===62?C(g):g===45?d(g):c(g)}function h(g){const xe="CDATA[";return g===xe.charCodeAt(o++)?(e.consume(g),o===xe.length?v:h):n(g)}function v(g){return g===null?n(g):g===93?(e.consume(g),b):ee(g)?(a=v,P(g)):(e.consume(g),v)}function b(g){return g===93?(e.consume(g),y):v(g)}function y(g){return g===62?C(g):g===93?(e.consume(g),y):v(g)}function _(g){return g===null||g===62?C(g):ee(g)?(a=_,P(g)):(e.consume(g),_)}function x(g){return g===null?n(g):g===63?(e.consume(g),R):ee(g)?(a=x,P(g)):(e.consume(g),x)}function R(g){return g===62?C(g):x(g)}function N(g){return Ze(g)?(e.consume(g),w):n(g)}function w(g){return g===45||Me(g)?(e.consume(g),w):M(g)}function M(g){return ee(g)?(a=M,P(g)):ce(g)?(e.consume(g),M):C(g)}function z(g){return g===45||Me(g)?(e.consume(g),z):g===47||g===62||ke(g)?U(g):n(g)}function U(g){return g===47?(e.consume(g),C):g===58||g===95||Ze(g)?(e.consume(g),k):ee(g)?(a=U,P(g)):ce(g)?(e.consume(g),U):C(g)}function k(g){return g===45||g===46||g===58||g===95||Me(g)?(e.consume(g),k):$(g)}function $(g){return g===61?(e.consume(g),j):ee(g)?(a=$,P(g)):ce(g)?(e.consume(g),$):U(g)}function j(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),i=g,W):ee(g)?(a=j,P(g)):ce(g)?(e.consume(g),j):(e.consume(g),Z)}function W(g){return g===i?(e.consume(g),i=void 0,O):g===null?n(g):ee(g)?(a=W,P(g)):(e.consume(g),W)}function Z(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||ke(g)?U(g):(e.consume(g),Z)}function O(g){return g===47||g===62||ke(g)?U(g):n(g)}function C(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function P(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),S}function S(g){return ce(g)?me(e,X,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):X(g)}function X(g){return e.enter("htmlTextData"),a(g)}}const pa={name:"labelEnd",resolveAll:Hk,resolveTo:Wk,tokenize:qk},Bk={tokenize:Gk},Vk={tokenize:Jk},Uk={tokenize:Yk};function Hk(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&it(e,0,e.length,n),e}function Wk(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=lt(s,e.slice(o+1,o+r+3)),s=lt(s,[["enter",f,t]]),s=lt(s,gi(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=lt(s,[["exit",f,t],e[a-2],e[a-1],["exit",u,t]]),s=lt(s,e.slice(a+1)),s=lt(s,[["exit",l,t]]),it(e,o,e.length,s),e}function qk(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(d){return o?o._inactive?c(d):(a=r.parser.defined.includes(gt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):n(d)}function l(d){return d===40?e.attempt(Bk,f,a?f:c)(d):d===91?e.attempt(Vk,f,a?u:c)(d):a?f(d):c(d)}function u(d){return e.attempt(Uk,f,c)(d)}function f(d){return t(d)}function c(d){return o._balanced=!0,n(d)}}function Gk(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return ke(c)?Xn(e,o)(c):o(c)}function o(c){return c===41?f(c):sc(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function a(c){return ke(c)?Xn(e,l)(c):f(c)}function s(c){return n(c)}function l(c){return c===34||c===39||c===40?uc(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return ke(c)?Xn(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function Jk(e,t,n){const r=this;return i;function i(s){return lc.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(gt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function Yk(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Kk={name:"labelStartImage",resolveAll:pa.resolveAll,tokenize:Xk};function Xk(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Qk={name:"labelStartLink",resolveAll:pa.resolveAll,tokenize:e0};function e0(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Ui={name:"lineEnding",tokenize:t0};function t0(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),me(e,t,"linePrefix")}}const Fr={name:"thematicBreak",tokenize:n0};function n0(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),a(u)}function a(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||ee(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),ce(u)?me(e,s,"whitespace")(u):s(u))}}const He={continuation:{tokenize:a0},exit:l0,name:"list",tokenize:o0},r0={partial:!0,tokenize:u0},i0={partial:!0,tokenize:s0};function o0(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Io(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Fr,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return Io(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(gr,r.interrupt?n:f,e.attempt(r0,d,c))}function f(p){return r.containerState.initialBlankLine=!0,o++,d(p)}function c(p){return ce(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):n(p)}function d(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function a0(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(gr,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,me(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!ce(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(i0,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,me(e,e.attempt(He,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function s0(e,t,n){const r=this;return me(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function l0(e){e.exit(this.containerState.type)}function u0(e,t,n){const r=this;return me(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!ce(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const ll={name:"setextUnderline",resolveTo:c0,tokenize:f0};function c0(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function f0(e,t,n){const r=this;let i;return o;function o(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),ce(u)?me(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ee(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const d0={tokenize:p0};function p0(e){const t=this,n=e.attempt(gr,r,e.attempt(this.parser.constructs.flowInitial,i,me(e,e.attempt(this.parser.constructs.flow,i,e.attempt(vk,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const h0={resolveAll:fc()},m0=cc("string"),g0=cc("text");function cc(e){return{resolveAll:fc(e==="text"?y0:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(f){return u(f)?o(f):s(f)}function s(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return u(f)?(n.exit("data"),o(f)):(n.consume(f),l)}function u(f){if(f===null)return!0;const c=i[f];let d=-1;if(c)for(;++d<c.length;){const p=c[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function fc(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function y0(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(u===-2)l=!0,s++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const v0={42:He,43:He,45:He,48:He,49:He,50:He,51:He,52:He,53:He,54:He,55:He,56:He,57:He,62:rc},b0={91:_k},x0={[-2]:Vi,[-1]:Vi,32:Vi},w0={35:Rk,42:Fr,45:[ll,Fr],60:Ok,61:ll,95:Fr,96:al,126:al},k0={38:oc,92:ic},_0={[-5]:Ui,[-4]:Ui,[-3]:Ui,33:Kk,38:oc,42:No,60:[Qw,Fk],91:Qk,92:[Ak,ic],93:pa,95:No,96:dk},C0={null:[No,h0]},S0={null:[42,95]},E0={null:[]},A0=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:S0,contentInitial:b0,disable:E0,document:v0,flow:w0,flowInitial:x0,insideSpan:C0,string:k0,text:_0},Symbol.toStringTag,{value:"Module"}));function T0(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[];const l={attempt:M(N),check:M(w),consume:_,enter:x,exit:R,interrupt:M(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:v,events:[],now:h,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:c};let f=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function c($){return a=lt(a,$),b(),a[a.length-1]!==null?[]:(z(t,0),u.events=gi(o,u.events,u),u.events)}function d($,j){return I0(p($),j)}function p($){return R0(a,$)}function h(){const{_bufferIndex:$,_index:j,line:W,column:Z,offset:O}=r;return{_bufferIndex:$,_index:j,line:W,column:Z,offset:O}}function v($){i[$.line]=$.column,k()}function b(){let $;for(;r._index<a.length;){const j=a[r._index];if(typeof j=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<j.length;)y(j.charCodeAt(r._bufferIndex));else y(j)}}function y($){f=f($)}function _($){ee($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,k()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=$}function x($,j){const W=j||{};return W.type=$,W.start=h(),u.events.push(["enter",W,u]),s.push(W),W}function R($){const j=s.pop();return j.end=h(),u.events.push(["exit",j,u]),j}function N($,j){z($,j.from)}function w($,j){j.restore()}function M($,j){return W;function W(Z,O,C){let P,S,X,g;return Array.isArray(Z)?Ae(Z):"tokenize"in Z?Ae([Z]):xe(Z);function xe(ge){return ve;function ve(fe){const ze=fe!==null&&ge[fe],je=fe!==null&&ge.null,Ye=[...Array.isArray(ze)?ze:ze?[ze]:[],...Array.isArray(je)?je:je?[je]:[]];return Ae(Ye)(fe)}}function Ae(ge){return P=ge,S=0,ge.length===0?C:m(ge[S])}function m(ge){return ve;function ve(fe){return g=U(),X=ge,ge.partial||(u.currentConstruct=ge),ge.name&&u.parser.constructs.disable.null.includes(ge.name)?ae():ge.tokenize.call(j?Object.assign(Object.create(u),j):u,l,Q,ae)(fe)}}function Q(ge){return $(X,g),O}function ae(ge){return g.restore(),++S<P.length?m(P[S]):C}}}function z($,j){$.resolveAll&&!o.includes($)&&o.push($),$.resolve&&it(u.events,j,u.events.length-j,$.resolve(u.events.slice(j),u)),$.resolveTo&&(u.events=$.resolveTo(u.events,u))}function U(){const $=h(),j=u.previous,W=u.currentConstruct,Z=u.events.length,O=Array.from(s);return{from:Z,restore:C};function C(){r=$,u.previous=j,u.currentConstruct=W,u.events.length=Z,s=O,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function R0(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function I0(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
22
- `;break}case-3:{a=`\r
23
- `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function N0(e){const r={constructs:tc([A0,...(e||{}).extensions||[]]),content:i(Ww),defined:[],document:i(Gw),flow:i(d0),lazy:{},string:i(m0),text:i(g0)};return r;function i(o){return a;function a(s){return T0(r,o,s)}}}function z0(e){for(;!ac(e););return e}const ul=/[\0\t\n\r]/g;function O0(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let u,f,c,d,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(ul.lastIndex=c,u=ul.exec(o),d=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(d),!u){t=o.slice(c);break}if(p===10&&c===d&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),c<d&&(l.push(o.slice(c,d)),e+=d-c),p){case 0:{l.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,l.push(-2);e++<f;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}c=d+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const P0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function j0(e){return e.replace(P0,D0)}function D0(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return nc(n.slice(o?2:1),o?16:10)}return da(n)||e}const dc={}.hasOwnProperty;function L0(e,t,n){return typeof t!="string"&&(n=t,t=void 0),M0(n)(z0(N0(n).document().write(O0()(e,t,!0))))}function M0(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(at),autolinkProtocol:U,autolinkEmail:U,atxHeading:o(vr),blockQuote:o(je),characterEscape:U,characterReference:U,codeFenced:o(Ye),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(Ye,a),codeText:o(Ke,a),codeTextData:U,data:U,codeFlowValue:U,definition:o(wi),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o($n),hardBreakEscape:o(Fn),hardBreakTrailing:o(Fn),htmlFlow:o(jt,a),htmlFlowData:U,htmlText:o(jt,a),htmlTextData:U,image:o(br),label:a,link:o(at),listItem:o(ki),listItemValue:d,listOrdered:o(xr,c),listUnordered:o(xr),paragraph:o(Fe),reference:m,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(vr),strong:o(Dt),thematicBreak:o(Ci)},exit:{atxHeading:l(),atxHeadingSequence:N,autolink:l(),autolinkEmail:ze,autolinkProtocol:fe,blockQuote:l(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:ge,characterReference:ve,codeFenced:l(b),codeFencedFence:v,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:k,codeIndented:l(y),codeText:l(O),codeTextData:k,data:k,definition:l(),definitionDestinationString:R,definitionLabelString:_,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(j),hardBreakTrailing:l(j),htmlFlow:l(W),htmlFlowData:k,htmlText:l(Z),htmlTextData:k,image:l(P),label:X,labelText:S,lineEnding:$,link:l(C),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Q,resourceDestinationString:g,resourceTitleString:xe,resource:Ae,setextHeading:l(z),setextHeadingLineSequence:M,setextHeadingText:w,strong:l(),thematicBreak:l()}};pc(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(A){let B={type:"root",children:[]};const te={stack:[B],tokenStack:[],config:t,enter:s,exit:u,buffer:a,resume:f,data:n},le=[];let he=-1;for(;++he<A.length;)if(A[he][1].type==="listOrdered"||A[he][1].type==="listUnordered")if(A[he][0]==="enter")le.push(he);else{const Ve=le.pop();he=i(A,Ve,he)}for(he=-1;++he<A.length;){const Ve=t[A[he][0]];dc.call(Ve,A[he][1].type)&&Ve[A[he][1].type].call(Object.assign({sliceSerialize:A[he][2].sliceSerialize},te),A[he][1])}if(te.tokenStack.length>0){const Ve=te.tokenStack[te.tokenStack.length-1];(Ve[1]||cl).call(te,void 0,Ve[0])}for(B.position={start:Zt(A.length>0?A[0][1].start:{line:1,column:1,offset:0}),end:Zt(A.length>0?A[A.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he<t.transforms.length;)B=t.transforms[he](B)||B;return B}function i(A,B,te){let le=B-1,he=-1,Ve=!1,Ue,dt,Xt,Lt;for(;++le<=te;){const De=A[le];switch(De[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{De[0]==="enter"?he++:he--,Lt=void 0;break}case"lineEndingBlank":{De[0]==="enter"&&(Ue&&!Lt&&!he&&!Xt&&(Xt=le),Lt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Lt=void 0}if(!he&&De[0]==="enter"&&De[1].type==="listItemPrefix"||he===-1&&De[0]==="exit"&&(De[1].type==="listUnordered"||De[1].type==="listOrdered")){if(Ue){let Mt=le;for(dt=void 0;Mt--;){const Xe=A[Mt];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;dt&&(A[dt][1].type="lineEndingBlank",Ve=!0),Xe[1].type="lineEnding",dt=Mt}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}Xt&&(!dt||Xt<dt)&&(Ue._spread=!0),Ue.end=Object.assign({},dt?A[dt][1].start:De[1].end),A.splice(dt||le,0,["exit",Ue,De[2]]),le++,te++}if(De[1].type==="listItemPrefix"){const Mt={type:"listItem",_spread:!1,start:Object.assign({},De[1].start),end:void 0};Ue=Mt,A.splice(le,0,["enter",Mt,De[2]]),le++,te++,Xt=void 0,Lt=!0}}}return A[B][1]._spread=Ve,te}function o(A,B){return te;function te(le){s.call(this,A(le),le),B&&B.call(this,le)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(A,B,te){this.stack[this.stack.length-1].children.push(A),this.stack.push(A),this.tokenStack.push([B,te||void 0]),A.position={start:Zt(B.start),end:void 0}}function l(A){return B;function B(te){A&&A.call(this,te),u.call(this,te)}}function u(A,B){const te=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==A.type&&(B?B.call(this,A,le[0]):(le[1]||cl).call(this,A,le[0]));else throw new Error("Cannot close `"+A.type+"` ("+Kn({start:A.start,end:A.end})+"): it’s not open");te.position.end=Zt(A.end)}function f(){return fa(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(A){if(this.data.expectingFirstListItemValue){const B=this.stack[this.stack.length-2];B.start=Number.parseInt(this.sliceSerialize(A),10),this.data.expectingFirstListItemValue=void 0}}function p(){const A=this.resume(),B=this.stack[this.stack.length-1];B.lang=A}function h(){const A=this.resume(),B=this.stack[this.stack.length-1];B.meta=A}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const A=this.resume(),B=this.stack[this.stack.length-1];B.value=A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const A=this.resume(),B=this.stack[this.stack.length-1];B.value=A.replace(/(\r?\n|\r)$/g,"")}function _(A){const B=this.resume(),te=this.stack[this.stack.length-1];te.label=B,te.identifier=gt(this.sliceSerialize(A)).toLowerCase()}function x(){const A=this.resume(),B=this.stack[this.stack.length-1];B.title=A}function R(){const A=this.resume(),B=this.stack[this.stack.length-1];B.url=A}function N(A){const B=this.stack[this.stack.length-1];if(!B.depth){const te=this.sliceSerialize(A).length;B.depth=te}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function M(A){const B=this.stack[this.stack.length-1];B.depth=this.sliceSerialize(A).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function U(A){const te=this.stack[this.stack.length-1].children;let le=te[te.length-1];(!le||le.type!=="text")&&(le=_i(),le.position={start:Zt(A.start),end:void 0},te.push(le)),this.stack.push(le)}function k(A){const B=this.stack.pop();B.value+=this.sliceSerialize(A),B.position.end=Zt(A.end)}function $(A){const B=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=B.children[B.children.length-1];te.position.end=Zt(A.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(B.type)&&(U.call(this,A),k.call(this,A))}function j(){this.data.atHardBreak=!0}function W(){const A=this.resume(),B=this.stack[this.stack.length-1];B.value=A}function Z(){const A=this.resume(),B=this.stack[this.stack.length-1];B.value=A}function O(){const A=this.resume(),B=this.stack[this.stack.length-1];B.value=A}function C(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=B,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function P(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=B,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function S(A){const B=this.sliceSerialize(A),te=this.stack[this.stack.length-2];te.label=j0(B),te.identifier=gt(B).toLowerCase()}function X(){const A=this.stack[this.stack.length-1],B=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){const le=A.children;te.children=le}else te.alt=B}function g(){const A=this.resume(),B=this.stack[this.stack.length-1];B.url=A}function xe(){const A=this.resume(),B=this.stack[this.stack.length-1];B.title=A}function Ae(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function Q(A){const B=this.resume(),te=this.stack[this.stack.length-1];te.label=B,te.identifier=gt(this.sliceSerialize(A)).toLowerCase(),this.data.referenceType="full"}function ae(A){this.data.characterReferenceType=A.type}function ge(A){const B=this.sliceSerialize(A),te=this.data.characterReferenceType;let le;te?(le=nc(B,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=da(B);const he=this.stack[this.stack.length-1];he.value+=le}function ve(A){const B=this.stack.pop();B.position.end=Zt(A.end)}function fe(A){k.call(this,A);const B=this.stack[this.stack.length-1];B.url=this.sliceSerialize(A)}function ze(A){k.call(this,A);const B=this.stack[this.stack.length-1];B.url="mailto:"+this.sliceSerialize(A)}function je(){return{type:"blockquote",children:[]}}function Ye(){return{type:"code",lang:null,meta:null,value:""}}function Ke(){return{type:"inlineCode",value:""}}function wi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $n(){return{type:"emphasis",children:[]}}function vr(){return{type:"heading",depth:0,children:[]}}function Fn(){return{type:"break"}}function jt(){return{type:"html",value:""}}function br(){return{type:"image",title:null,url:"",alt:null}}function at(){return{type:"link",title:null,url:"",children:[]}}function xr(A){return{type:"list",ordered:A.type==="listOrdered",start:null,spread:A._spread,children:[]}}function ki(A){return{type:"listItem",spread:A._spread,checked:null,children:[]}}function Fe(){return{type:"paragraph",children:[]}}function Dt(){return{type:"strong",children:[]}}function _i(){return{type:"text",value:""}}function Ci(){return{type:"thematicBreak"}}}function Zt(e){return{line:e.line,column:e.column,offset:e.offset}}function pc(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?pc(e,r):$0(e,r)}}function $0(e,t){let n;for(n in t)if(dc.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function cl(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Kn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Kn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Kn({start:t.start,end:t.end})+") is still open")}function cA(e){const t=this;t.parser=n;function n(r){return L0(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function F0(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Z0(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
24
- `}]}function B0(e,t){const n=t.value?t.value+`
25
- `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function V0(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function U0(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function H0(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Ln(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function W0(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function q0(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function hc(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function G0(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return hc(e,t);const i={src:Ln(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function J0(e,t){const n={src:Ln(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Y0(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function K0(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return hc(e,t);const i={href:Ln(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function X0(e,t){const n={href:Ln(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Q0(e,t,n){const r=e.all(t),i=n?e_(n):mc(t),o={},a=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const f=r[s];(i||s!==0||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:`
26
- `}),f.type==="element"&&f.tagName==="p"&&!i?a.push(...f.children):a.push(f)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
27
- `});const u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)}function e_(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=mc(n[r])}return t}function mc(e){const t=e.spread;return t??e.children.length>1}function t_(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function n_(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function r_(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function i_(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function o_(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=sa(t.children[1]),l=Gu(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function a_(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const c=t.children[l],d={},p=a?a[l]:void 0;p&&(d.align=p);let h={type:"element",tagName:o,properties:d,children:[]};c&&(h.children=e.all(c),e.patch(c,h),h=e.applyData(c,h)),u.push(h)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function s_(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const fl=9,dl=32;function l_(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(pl(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(pl(t.slice(i),i>0,!1)),o.join("")}function pl(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===fl||o===dl;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===fl||o===dl;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function u_(e,t){const n={type:"text",value:l_(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function c_(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const f_={blockquote:F0,break:Z0,code:B0,delete:V0,emphasis:U0,footnoteReference:H0,heading:W0,html:q0,imageReference:G0,image:J0,inlineCode:Y0,linkReference:K0,link:X0,listItem:Q0,list:t_,paragraph:n_,root:r_,strong:i_,table:o_,tableCell:s_,tableRow:a_,text:u_,thematicBreak:c_,toml:Pr,yaml:Pr,definition:Pr,footnoteDefinition:Pr};function Pr(){}const gc=-1,yi=0,Qn=1,ni=2,ha=3,ma=4,ga=5,ya=6,yc=7,vc=8,hl=typeof self=="object"?self:globalThis,d_=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case yi:case gc:return n(a,i);case Qn:{const s=n([],i);for(const l of a)s.push(r(l));return s}case ni:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case ha:return n(new Date(a),i);case ma:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case ga:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case ya:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case yc:{const{name:s,message:l}=a;return n(new hl[s](l),i)}case vc:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:s}=new Uint8Array(a);return n(new DataView(s),a)}}return n(new hl[o](a),i)};return r},ml=e=>d_(new Map,e)(0),gn="",{toString:p_}={},{keys:h_}=Object,qn=e=>{const t=typeof e;if(t!=="object"||!e)return[yi,t];const n=p_.call(e).slice(8,-1);switch(n){case"Array":return[Qn,gn];case"Object":return[ni,gn];case"Date":return[ha,gn];case"RegExp":return[ma,gn];case"Map":return[ga,gn];case"Set":return[ya,gn];case"DataView":return[Qn,n]}return n.includes("Array")?[Qn,n]:n.includes("Error")?[yc,n]:[ni,n]},jr=([e,t])=>e===yi&&(t==="function"||t==="symbol"),m_=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=qn(a);switch(s){case yi:{let f=a;switch(l){case"bigint":s=vc,f=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);f=null;break;case"undefined":return i([gc],a)}return i([s,f],a)}case Qn:{if(l){let d=a;return l==="DataView"?d=new Uint8Array(a.buffer):l==="ArrayBuffer"&&(d=new Uint8Array(a)),i([l,[...d]],a)}const f=[],c=i([s,f],a);for(const d of a)f.push(o(d));return c}case ni:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const f=[],c=i([s,f],a);for(const d of h_(a))(e||!jr(qn(a[d])))&&f.push([o(d),o(a[d])]);return c}case ha:return i([s,a.toISOString()],a);case ma:{const{source:f,flags:c}=a;return i([s,{source:f,flags:c}],a)}case ga:{const f=[],c=i([s,f],a);for(const[d,p]of a)(e||!(jr(qn(d))||jr(qn(p))))&&f.push([o(d),o(p)]);return c}case ya:{const f=[],c=i([s,f],a);for(const d of a)(e||!jr(qn(d)))&&f.push(o(d));return c}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},gl=(e,{json:t,lossy:n}={})=>{const r=[];return m_(!(t||n),!!t,new Map,r)(e),r},ri=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ml(gl(e,t)):structuredClone(e):(e,t)=>ml(gl(e,t));function g_(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function y_(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function v_(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||g_,r=e.options.footnoteBackLabel||y_,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),d=Ln(c.toLowerCase());let p=0;const h=[],v=e.footnoteCounts.get(c);for(;v!==void 0&&++p<=v;){h.length>0&&h.push({type:"text",value:" "});let _=typeof n=="string"?n:n(l,p);typeof _=="string"&&(_={type:"text",value:_}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(_)?_:[_]})}const b=f[f.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const _=b.children[b.children.length-1];_&&_.type==="text"?_.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...h)}else f.push(...h);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(f,!0)};e.patch(u,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ri(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
28
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
29
- `}]}}const vi=(function(e){if(e==null)return k_;if(typeof e=="function")return bi(e);if(typeof e=="object")return Array.isArray(e)?b_(e):x_(e);if(typeof e=="string")return w_(e);throw new Error("Expected function, string, or object as test")});function b_(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=vi(e[n]);return bi(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function x_(e){const t=e;return bi(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function w_(e){return bi(t);function t(n){return n&&n.type===e}}function bi(e){return t;function t(n,r,i){return!!(__(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function k_(){return!0}function __(e){return e!==null&&typeof e=="object"&&"type"in e}const bc=[],C_=!0,zo=!1,S_="skip";function xc(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=vi(i),a=r?-1:1;s(e,void 0,[])();function s(l,u,f){const c=l&&typeof l=="object"?l:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=bc,h,v,b;if((!t||o(l,u,f[f.length-1]||void 0))&&(p=E_(n(l,f)),p[0]===zo))return p;if("children"in l&&l.children){const y=l;if(y.children&&p[0]!==S_)for(v=(r?y.children.length:-1)+a,b=f.concat(y);v>-1&&v<y.children.length;){const _=y.children[v];if(h=s(_,v,b)(),h[0]===zo)return h;v=typeof h[1]=="number"?h[1]:v+a}}return p}}}function E_(e){return Array.isArray(e)?e:typeof e=="number"?[C_,e]:e==null?bc:[e]}function wc(e,t,n,r){let i,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,i=n):(o=t,a=n,i=r),xc(e,o,s,i);function s(l,u){const f=u[u.length-1],c=f?f.children.indexOf(l):void 0;return a(l,c,f)}}const Oo={}.hasOwnProperty,A_={};function T_(e,t){const n=t||A_,r=new Map,i=new Map,o=new Map,a={...f_,...n.handlers},s={all:u,applyData:I_,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:l,options:n,patch:R_,wrap:z_};return wc(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,d=String(f.identifier).toUpperCase();c.has(d)||c.set(d,f)}}),s;function l(f,c){const d=f.type,p=s.handlers[d];if(Oo.call(s.handlers,d)&&p)return p(s,f,c);if(s.options.passThrough&&s.options.passThrough.includes(d)){if("children"in f){const{children:v,...b}=f,y=ri(b);return y.children=s.all(f),y}return ri(f)}return(s.options.unknownHandler||N_)(s,f,c)}function u(f){const c=[];if("children"in f){const d=f.children;let p=-1;for(;++p<d.length;){const h=s.one(d[p],f);if(h){if(p&&d[p-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=yl(h.value)),!Array.isArray(h)&&h.type==="element")){const v=h.children[0];v&&v.type==="text"&&(v.value=yl(v.value))}Array.isArray(h)?c.push(...h):c.push(h)}}}return c}}function R_(e,t){e.position&&(t.position=bw(e))}function I_(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&o&&Object.assign(n.properties,ri(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function N_(e,t){const n=t.data||{},r="value"in t&&!(Oo.call(n,"hProperties")||Oo.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function z_(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
30
- `});++r<e.length;)r&&n.push({type:"text",value:`
31
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
32
- `}),n}function yl(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function vl(e,t){const n=T_(e,t),r=n.one(e,void 0),i=v_(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
33
- `},i),o}function fA(e,t){return e&&"run"in e?async function(n,r){const i=vl(n,{file:r,...t});await e.run(i,r)}:function(n,r){return vl(n,{file:r,...e||t})}}function bl(e){if(e)throw e}var Hi,xl;function O_(){if(xl)return Hi;xl=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},o=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!c)return!1;var d;for(d in u);return typeof d>"u"||e.call(u,d)},a=function(u,f){n&&f.name==="__proto__"?n(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},s=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return Hi=function l(){var u,f,c,d,p,h,v=arguments[0],b=1,y=arguments.length,_=!1;for(typeof v=="boolean"&&(_=v,v=arguments[1]||{},b=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});b<y;++b)if(u=arguments[b],u!=null)for(f in u)c=s(v,f),d=s(u,f),v!==d&&(_&&d&&(o(d)||(p=i(d)))?(p?(p=!1,h=c&&i(c)?c:[]):h=c&&o(c)?c:{},a(v,{name:f,newValue:l(_,h,d)})):typeof d<"u"&&a(v,{name:f,newValue:d}));return v},Hi}var P_=O_();const Wi=Nl(P_);function Po(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function j_(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...u){const f=e[++o];let c=-1;if(l){a(l);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?D_(f,s)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function D_(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const f=u;if(s&&n)throw f;return i(f)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const wt={basename:L_,dirname:M_,extname:$_,join:F_,sep:"/"};function L_(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');yr(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function M_(e){if(yr(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function $_(e){yr(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function F_(...e){let t=-1,n;for(;++t<e.length;)yr(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Z_(n)}function Z_(e){yr(e);const t=e.codePointAt(0)===47;let n=B_(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function B_(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.codePointAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function yr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const V_={cwd:U_};function U_(){return"/"}function jo(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function H_(e){if(typeof e=="string")e=new URL(e);else if(!jo(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return W_(e)}function W_(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const qi=["history","path","basename","stem","extname","dirname"];class q_{constructor(t){let n;t?jo(t)?n={path:t}:typeof t=="string"||G_(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":V_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<qi.length;){const o=qi[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)qi.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?wt.basename(this.path):void 0}set basename(t){Ji(t,"basename"),Gi(t,"basename"),this.path=wt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?wt.dirname(this.path):void 0}set dirname(t){wl(this.basename,"dirname"),this.path=wt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?wt.extname(this.path):void 0}set extname(t){if(Gi(t,"extname"),wl(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=wt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){jo(t)&&(t=H_(t)),Ji(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?wt.basename(this.path,this.extname):void 0}set stem(t){Ji(t,"stem"),Gi(t,"stem"),this.path=wt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new $e(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Gi(e,t){if(e&&e.includes(wt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+wt.sep+"`")}function Ji(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function wl(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function G_(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const J_=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Y_={}.hasOwnProperty;class va extends J_{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=j_()}copy(){const t=new va;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Wi(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Xi("data",this.frozen),this.namespace[t]=n,this):Y_.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Xi("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Dr(t),r=this.parser||this.Parser;return Yi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Yi("process",this.parser||this.Parser),Ki("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){const s=Dr(t),l=r.parse(s);r.run(l,s,function(f,c,d){if(f||!c||!d)return u(f);const p=c,h=r.stringify(p,d);X_(h)?d.value=h:d.result=h,u(f,d)});function u(f,c){f||!c?a(f):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Yi("processSync",this.parser||this.Parser),Ki("processSync",this.compiler||this.Compiler),this.process(t,i),_l("processSync","process",n),r;function i(o,a){n=!0,bl(o),r=a}}run(t,n,r){kl(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,s){const l=Dr(n);i.run(t,l,u);function u(f,c,d){const p=c||t;f?s(f):a?a(p):r(void 0,p,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),_l("runSync","run",r),i;function o(a,s){bl(a),i=s,r=!0}}stringify(t,n){this.freeze();const r=Dr(n),i=this.compiler||this.Compiler;return Ki("stringify",i),kl(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Xi("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;l(f,c)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(i.settings=Wi(!0,i.settings,u.settings))}function s(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,f){let c=-1,d=-1;for(;++c<r.length;)if(r[c][0]===u){d=c;break}if(d===-1)r.push([u,...f]);else if(f.length>0){let[p,...h]=f;const v=r[d][1];Po(v)&&Po(p)&&(p=Wi(!0,v,p)),r[d]=[u,p,...h]}}}}const dA=new va().freeze();function Yi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ki(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Xi(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function kl(e){if(!Po(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _l(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Dr(e){return K_(e)?e:new q_(e)}function K_(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function X_(e){return typeof e=="string"||Q_(e)}function Q_(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Cl(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function e1(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function t1(e,t,n){const i=vi((n||{}).ignore||[]),o=n1(t);let a=-1;for(;++a<o.length;)xc(e,"text",s);function s(u,f){let c=-1,d;for(;++c<f.length;){const p=f[c],h=d?d.children:void 0;if(i(p,h?h.indexOf(p):void 0,d))return;d=p}if(d)return l(u,f)}function l(u,f){const c=f[f.length-1],d=o[a][0],p=o[a][1];let h=0;const b=c.children.indexOf(u);let y=!1,_=[];d.lastIndex=0;let x=d.exec(u.value);for(;x;){const R=x.index,N={index:x.index,input:x.input,stack:[...f,u]};let w=p(...x,N);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?d.lastIndex=R+1:(h!==R&&_.push({type:"text",value:u.value.slice(h,R)}),Array.isArray(w)?_.push(...w):w&&_.push(w),h=R+x[0].length,y=!0),!d.global)break;x=d.exec(u.value)}return y?(h<u.value.length&&_.push({type:"text",value:u.value.slice(h)}),c.children.splice(b,1,..._)):_=[u],b+_.length}}function n1(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([r1(i[0]),i1(i[1])])}return t}function r1(e){return typeof e=="string"?new RegExp(e1(e),"g"):e}function i1(e){return typeof e=="function"?e:function(){return e}}const Qi="phrasing",eo=["autolink","link","image","label"];function o1(){return{transforms:[d1],enter:{literalAutolink:s1,literalAutolinkEmail:to,literalAutolinkHttp:to,literalAutolinkWww:to},exit:{literalAutolink:f1,literalAutolinkEmail:c1,literalAutolinkHttp:l1,literalAutolinkWww:u1}}}function a1(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Qi,notInConstruct:eo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Qi,notInConstruct:eo},{character:":",before:"[ps]",after:"\\/",inConstruct:Qi,notInConstruct:eo}]}}function s1(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function to(e){this.config.enter.autolinkProtocol.call(this,e)}function l1(e){this.config.exit.autolinkProtocol.call(this,e)}function u1(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function c1(e){this.config.exit.autolinkEmail.call(this,e)}function f1(e){this.exit(e)}function d1(e){t1(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,p1],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),h1]],{ignore:["link","linkReference"]})}function p1(e,t,n,r,i){let o="";if(!kc(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!m1(n)))return!1;const a=g1(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function h1(e,t,n,r){return!kc(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function m1(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function g1(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Cl(e,"(");let o=Cl(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function kc(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||sn(n)||mi(n))&&(!t||n!==47)}_c.peek=S1;function y1(){this.buffer()}function v1(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function b1(){this.buffer()}function x1(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function w1(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=gt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function k1(e){this.exit(e)}function _1(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=gt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function C1(e){this.exit(e)}function S1(){return"["}function _c(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),a(),o+=i.move("]"),o}function E1(){return{enter:{gfmFootnoteCallString:y1,gfmFootnoteCall:v1,gfmFootnoteDefinitionLabelString:b1,gfmFootnoteDefinition:x1},exit:{gfmFootnoteCallString:w1,gfmFootnoteCall:k1,gfmFootnoteDefinitionLabelString:_1,gfmFootnoteDefinition:C1}}}function A1(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:_c},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,a){const s=o.createTracker(a);let l=s.move("[^");const u=o.enter("footnoteDefinition"),f=o.enter("label");return l+=s.move(o.safe(o.associationId(r),{before:l,after:"]"})),f(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
34
- `:" ")+o.indentLines(o.containerFlow(r,s.current()),t?Cc:T1))),u(),l}}function T1(e,t,n){return t===0?e:Cc(e,t,n)}function Cc(e,t,n){return(n?"":" ")+e}const R1=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Sc.peek=P1;function I1(){return{canContainEols:["delete"],enter:{strikethrough:z1},exit:{strikethrough:O1}}}function N1(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:R1}],handlers:{delete:Sc}}}function z1(e){this.enter({type:"delete",children:[]},e)}function O1(e){this.exit(e)}function Sc(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function P1(){return"~"}function j1(e){return e.length}function D1(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||j1,o=[],a=[],s=[],l=[];let u=0,f=-1;for(;++f<e.length;){const v=[],b=[];let y=-1;for(e[f].length>u&&(u=e[f].length);++y<e[f].length;){const _=L1(e[f][y]);if(n.alignDelimiters!==!1){const x=i(_);b[y]=x,(l[y]===void 0||x>l[y])&&(l[y]=x)}v.push(_)}a[f]=v,s[f]=b}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)o[c]=Sl(r[c]);else{const v=Sl(r);for(;++c<u;)o[c]=v}c=-1;const d=[],p=[];for(;++c<u;){const v=o[c];let b="",y="";v===99?(b=":",y=":"):v===108?b=":":v===114&&(y=":");let _=n.alignDelimiters===!1?1:Math.max(1,l[c]-b.length-y.length);const x=b+"-".repeat(_)+y;n.alignDelimiters!==!1&&(_=b.length+_+y.length,_>l[c]&&(l[c]=_),p[c]=_),d[c]=x}a.splice(1,0,d),s.splice(1,0,p),f=-1;const h=[];for(;++f<a.length;){const v=a[f],b=s[f];c=-1;const y=[];for(;++c<u;){const _=v[c]||"";let x="",R="";if(n.alignDelimiters!==!1){const N=l[c]-(b[c]||0),w=o[c];w===114?x=" ".repeat(N):w===99?N%2?(x=" ".repeat(N/2+.5),R=" ".repeat(N/2-.5)):(x=" ".repeat(N/2),R=x):R=" ".repeat(N)}n.delimiterStart!==!1&&!c&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&_==="")&&(n.delimiterStart!==!1||c)&&y.push(" "),n.alignDelimiters!==!1&&y.push(x),y.push(_),n.alignDelimiters!==!1&&y.push(R),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&y.push("|")}h.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return h.join(`
35
- `)}function L1(e){return e==null?"":String(e)}function Sl(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function M1(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),$1);return i(),a}function $1(e,t,n){return">"+(n?"":" ")+e}function F1(e,t){return El(e,t.inConstruct,!0)&&!El(e,t.notInConstruct,!1)}function El(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Al(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
36
- `&&F1(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
37
- `}function Z1(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function B1(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function V1(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function U1(e,t,n,r){const i=V1(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(B1(e,n)){const c=n.enter("codeIndented"),d=n.indentLines(o,H1);return c(),d}const s=n.createTracker(r),l=i.repeat(Math.max(Z1(o,i)+1,3)),u=n.enter("codeFenced");let f=s.move(l);if(e.lang){const c=n.enter(`codeFencedLang${a}`);f+=s.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...s.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${a}`);f+=s.move(" "),f+=s.move(n.safe(e.meta,{before:f,after:`
38
- `,encode:["`"],...s.current()})),c()}return f+=s.move(`
39
- `),o&&(f+=s.move(o+`
40
- `)),f+=s.move(l),u(),f}function H1(e,t,n){return(n?"":" ")+e}function ba(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function W1(e,t,n,r){const i=ba(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
41
- `,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u}function q1(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ur(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ii(e,t,n){const r=Nn(e),i=Nn(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ec.peek=G1;function Ec(e,t,n,r){const i=q1(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const u=l.charCodeAt(0),f=ii(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(l=ur(u)+l.slice(1));const c=l.charCodeAt(l.length-1),d=ii(r.after.charCodeAt(0),c,i);d.inside&&(l=l.slice(0,-1)+ur(c));const p=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},s+l+p}function G1(e,t,n){return n.options.emphasis||"*"}function J1(e,t){let n=!1;return wc(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,zo}),!!((!e.depth||e.depth<3)&&fa(e)&&(t.options.setext||n))}function Y1(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(J1(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),d=n.containerPhrasing(e,{...o.current(),before:`
42
- `,after:`
43
- `});return c(),f(),d+`
44
- `+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
45
- `))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
46
- `,...o.current()});return/^[\t ]/.test(u)&&(u=ur(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u}Ac.peek=K1;function Ac(e){return e.value||""}function K1(){return"<"}Tc.peek=X1;function Tc(e,t,n,r){const i=ba(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function X1(){return"!"}Rc.peek=Q1;function Rc(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const f=n.stack;n.stack=[],a=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=f,o(),i==="full"||!u||u!==c?l+=s.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Q1(){return"!"}Ic.peek=eC;function Ic(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const a=n.unsafe[o],s=n.compilePattern(a);let l;if(a.atBreak)for(;l=s.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function eC(){return"`"}function Nc(e,t){const n=fa(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}zc.peek=tC;function zc(e,t,n,r){const i=ba(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(Nc(e,n)){const f=n.stack;n.stack=[],s=n.enter("autolink");let c=a.move("<");return c+=a.move(n.containerPhrasing(e,{before:c,after:">",...a.current()})),c+=a.move(">"),s(),n.stack=f,c}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function tC(e,t,n){return Nc(e,n)?"<":"["}Oc.peek=nC;function Oc(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const f=n.stack;n.stack=[],a=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=f,o(),i==="full"||!u||u!==c?l+=s.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function nC(){return"["}function xa(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function rC(e){const t=xa(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function iC(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Pc(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function oC(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?iC(n):xa(n);const s=e.ordered?a==="."?")":".":rC(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Pc(n)===a&&f){let c=-1;for(;++c<e.children.length;){const d=e.children[c];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const u=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),u}function aC(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function sC(e,t,n,r){const i=aC(n);let o=n.bulletCurrent||xa(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),f);return l(),u;function f(c,d,p){return d?(p?"":" ".repeat(a))+c:(p?o:o+" ".repeat(a-o.length))+c}}function lC(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const uC=vi(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function cC(e,t,n,r){return(e.children.some(function(a){return uC(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function fC(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}jc.peek=dC;function jc(e,t,n,r){const i=fC(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const u=l.charCodeAt(0),f=ii(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(l=ur(u)+l.slice(1));const c=l.charCodeAt(l.length-1),d=ii(r.after.charCodeAt(0),c,i);d.inside&&(l=l.slice(0,-1)+ur(c));const p=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},s+l+p}function dC(e,t,n){return n.options.strong||"*"}function pC(e,t,n,r){return n.safe(e.value,r)}function hC(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function mC(e,t,n){const r=(Pc(n)+(n.options.ruleSpaces?" ":"")).repeat(hC(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Dc={blockquote:M1,break:Al,code:U1,definition:W1,emphasis:Ec,hardBreak:Al,heading:Y1,html:Ac,image:Tc,imageReference:Rc,inlineCode:Ic,link:zc,linkReference:Oc,list:oC,listItem:sC,paragraph:lC,root:cC,strong:jc,text:pC,thematicBreak:mC};function gC(){return{enter:{table:yC,tableData:Tl,tableHeader:Tl,tableRow:bC},exit:{codeText:xC,table:vC,tableData:no,tableHeader:no,tableRow:no}}}function yC(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function vC(e){this.exit(e),this.data.inTable=void 0}function bC(e){this.enter({type:"tableRow",children:[]},e)}function no(e){this.exit(e)}function Tl(e){this.enter({type:"tableCell",children:[]},e)}function xC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,wC));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function wC(e,t){return t==="|"?t:e}function kC(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
47
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:a,tableCell:l,tableRow:s}};function a(p,h,v,b){return u(f(p,v,b),p.align)}function s(p,h,v,b){const y=c(p,v,b),_=u([y]);return _.slice(0,_.indexOf(`
48
- `))}function l(p,h,v,b){const y=v.enter("tableCell"),_=v.enter("phrasing"),x=v.containerPhrasing(p,{...b,before:o,after:o});return _(),y(),x}function u(p,h){return D1(p,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function f(p,h,v){const b=p.children;let y=-1;const _=[],x=h.enter("table");for(;++y<b.length;)_[y]=c(b[y],h,v);return x(),_}function c(p,h,v){const b=p.children;let y=-1;const _=[],x=h.enter("tableRow");for(;++y<b.length;)_[y]=l(b[y],p,h,v);return x(),_}function d(p,h,v){let b=Dc.inlineCode(p,h,v);return v.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function _C(){return{exit:{taskListCheckValueChecked:Rl,taskListCheckValueUnchecked:Rl,paragraph:SC}}}function CC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:EC}}}function Rl(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function SC(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o<i.length;){const s=i[o];if(s.type==="paragraph"){a=s;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function EC(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=Dc.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(f){return f+a}}function pA(){return[o1(),E1(),I1(),gC(),_C()]}function hA(e){return{extensions:[a1(),A1(e),N1(),kC(e),CC()]}}const AC={tokenize:OC,partial:!0},Lc={tokenize:PC,partial:!0},Mc={tokenize:jC,partial:!0},$c={tokenize:DC,partial:!0},TC={tokenize:LC,partial:!0},Fc={name:"wwwAutolink",tokenize:NC,previous:Bc},Zc={name:"protocolAutolink",tokenize:zC,previous:Vc},Pt={name:"emailAutolink",tokenize:IC,previous:Uc},Tt={};function RC(){return{text:Tt}}let tn=48;for(;tn<123;)Tt[tn]=Pt,tn++,tn===58?tn=65:tn===91&&(tn=97);Tt[43]=Pt;Tt[45]=Pt;Tt[46]=Pt;Tt[95]=Pt;Tt[72]=[Pt,Zc];Tt[104]=[Pt,Zc];Tt[87]=[Pt,Fc];Tt[119]=[Pt,Fc];function IC(e,t,n){const r=this;let i,o;return a;function a(c){return!Do(c)||!Uc.call(r,r.previous)||wa(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return Do(c)?(e.consume(c),s):c===64?(e.consume(c),l):n(c)}function l(c){return c===46?e.check(TC,f,u)(c):c===45||c===95||Me(c)?(o=!0,e.consume(c),l):f(c)}function u(c){return e.consume(c),i=!0,l}function f(c){return o&&i&&Ze(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function NC(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!Bc.call(r,r.previous)||wa(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(AC,e.attempt(Lc,e.attempt(Mc,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function zC(e,t,n){const r=this;let i="",o=!1;return a;function a(c){return(c===72||c===104)&&Vc.call(r,r.previous)&&!wa(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),s):n(c)}function s(c){if(Ze(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),s;if(c===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(c),l}return n(c)}function l(c){return c===47?(e.consume(c),o?u:(o=!0,l)):n(c)}function u(c){return c===null||ti(c)||ke(c)||sn(c)||mi(c)?n(c):e.attempt(Lc,e.attempt(Mc,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function OC(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function PC(e,t,n){let r,i,o;return a;function a(u){return u===46||u===95?e.check($c,l,s)(u):u===null||ke(u)||sn(u)||u!==45&&mi(u)?l(u):(o=!0,e.consume(u),a)}function s(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),a}function l(u){return i||r||!o?n(u):t(u)}}function jC(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check($c,t,o)(a):a===null||ke(a)||sn(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function DC(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),o):s===93?(e.consume(s),i):s===60||s===null||ke(s)||sn(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||ke(s)||sn(s)?t(s):r(s)}function o(s){return Ze(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):Ze(s)?(e.consume(s),a):n(s)}}function LC(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Me(o)?n(o):t(o)}}function Bc(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ke(e)}function Vc(e){return!Ze(e)}function Uc(e){return!(e===47||Do(e))}function Do(e){return e===43||e===45||e===46||e===95||Me(e)}function wa(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const MC={tokenize:WC,partial:!0};function $C(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:VC,continuation:{tokenize:UC},exit:HC}},text:{91:{name:"gfmFootnoteCall",tokenize:BC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:FC,resolveTo:ZC}}}}function FC(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=gt(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function ZC(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function BC(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(o>999||c===93&&!a||c===null||c===91||ke(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(gt(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ke(c)||(a=!0),o++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function VC(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(h)}function f(h){if(a>999||h===93&&!s||h===null||h===91||ke(h))return n(h);if(h===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=gt(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ke(h)||(s=!0),a++,e.consume(h),h===92?c:f}function c(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}function d(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),me(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function UC(e,t,n){return e.check(gr,t,e.attempt(MC,t,n))}function HC(e){e.exit("gfmFootnoteDefinition")}function WC(e,t,n){const r=this;return me(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function qC(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let u=l;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[l][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[l][1].end)},c={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[l][1].start)},d=[["enter",f,s],["enter",a[u][1],s],["exit",a[u][1],s],["enter",c,s]],p=s.parser.constructs.insideSpan.null;p&&it(d,d.length,0,gi(p,a.slice(u+1,l),s)),it(d,d.length,0,[["exit",c,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",f,s]]),it(a,u-1,l-u+3,d),l=u+d.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const u=this.previous,f=this.events;let c=0;return d;function d(h){return u===126&&f[f.length-1][1].type!=="characterEscape"?l(h):(a.enter("strikethroughSequenceTemporary"),p(h))}function p(h){const v=Nn(u);if(h===126)return c>1?l(h):(a.consume(h),c++,p);if(c<2&&!n)return l(h);const b=a.exit("strikethroughSequenceTemporary"),y=Nn(h);return b._open=!y||y===2&&!!v,b._close=!v||v===2&&!!y,s(h)}}}class GC{constructor(){this.map=[]}add(t,n,r){JC(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function JC(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function YC(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function KC(){return{flow:{null:{name:"table",tokenize:XC,resolveAll:QC}}}}function XC(e,t,n){const r=this;let i=0,o=0,a;return s;function s(k){let $=r.events.length-1;for(;$>-1;){const Z=r.events[$][1].type;if(Z==="lineEnding"||Z==="linePrefix")$--;else break}const j=$>-1?r.events[$][1].type:null,W=j==="tableHead"||j==="tableRow"?w:l;return W===w&&r.parser.lazy[r.now().line]?n(k):W(k)}function l(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(a=!0,o+=1),f(k)}function f(k){return k===null?n(k):ee(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),p):n(k):ce(k)?me(e,f,"whitespace")(k):(o+=1,a&&(a=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),a=!0,f):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||ke(k)?(e.exit("data"),f(k)):(e.consume(k),k===92?d:c)}function d(k){return k===92||k===124?(e.consume(k),c):c(k)}function p(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),a=!1,ce(k)?me(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):h(k))}function h(k){return k===45||k===58?b(k):k===124?(a=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),v):N(k)}function v(k){return ce(k)?me(e,b,"whitespace")(k):b(k)}function b(k){return k===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),y):k===45?(o+=1,y(k)):k===null||ee(k)?R(k):N(k)}function y(k){return k===45?(e.enter("tableDelimiterFiller"),_(k)):N(k)}function _(k){return k===45?(e.consume(k),_):k===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(k))}function x(k){return ce(k)?me(e,R,"whitespace")(k):R(k)}function R(k){return k===124?h(k):k===null||ee(k)?!a||i!==o?N(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):N(k)}function N(k){return n(k)}function w(k){return e.enter("tableRow"),M(k)}function M(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),M):k===null||ee(k)?(e.exit("tableRow"),t(k)):ce(k)?me(e,M,"whitespace")(k):(e.enter("data"),z(k))}function z(k){return k===null||k===124||ke(k)?(e.exit("data"),M(k)):(e.consume(k),k===92?U:z)}function U(k){return k===92||k===124?(e.consume(k),z):z(k)}}function QC(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,f,c;const d=new GC;for(;++n<e.length;){const p=e[n],h=p[1];p[0]==="enter"?h.type==="tableHead"?(s=!1,l!==0&&(Il(d,t,l,u,f),f=void 0,l=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},d.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,f={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},d.add(n,0,[["enter",f,t]])),i=h.type==="tableDelimiterRow"?2:f?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],c=Lr(d,t,o,i,void 0,c),o=[0,0,0,0]),a[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],c=Lr(d,t,o,i,void 0,c)),o=a,a=[o[1],n,0,0])):h.type==="tableHead"?(s=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,o[1]!==0?(a[0]=a[1],c=Lr(d,t,o,i,n,c)):a[1]!==0&&(c=Lr(d,t,a,i,n,c)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&Il(d,t,l,u,f),d.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=YC(t.events,n))}return e}function Lr(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},vn(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=vn(t.events,n[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=vn(t.events,n[2]),f=vn(t.events,n[3]),c={type:s,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const d=t.events[n[2]],p=t.events[n[3]];if(d[1].end=Object.assign({},p[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,v=n[3]-n[2]-1;e.add(h,v,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},vn(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Il(e,t,n,r,i){const o=[],a=vn(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function vn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const eS={name:"tasklistCheck",tokenize:nS};function tS(){return{text:{91:eS}}}function nS(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return ke(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return ee(l)?t(l):ce(l)?e.check({tokenize:rS},t,n)(l):n(l)}}function rS(e,t,n){return me(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function mA(e){return tc([RC(),$C(),qC(e),KC(),tS()])}function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(null,arguments)}function pe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Hc={},Wc=V.createContext(Hc),iS=(e,t)=>E({},e,t),oS=()=>V.useContext(Wc),ka=V.createContext(()=>{});ka.displayName="JVR.DispatchShowTools";function aS(){return V.useReducer(iS,Hc)}function qc(){return V.useContext(ka)}var Gc=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(Wc.Provider,{value:t,children:I.jsx(ka.Provider,{value:n,children:r})})};Gc.displayName="JVR.ShowTools";var Jc={},Yc=V.createContext(Jc),sS=(e,t)=>E({},e,t),xi=()=>V.useContext(Yc),_a=V.createContext(()=>{});_a.displayName="JVR.DispatchExpands";function lS(){return V.useReducer(sS,Jc)}function uS(){return V.useContext(_a)}var Kc=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(Yc.Provider,{value:t,children:I.jsx(_a.Provider,{value:n,children:r})})};Kc.displayName="JVR.Expands";var Xc={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Qc=V.createContext(Xc),cS=(e,t)=>E({},e,t),Ce=()=>V.useContext(Qc),Ca=V.createContext(()=>{});Ca.displayName="JVR.DispatchTypes";function fS(){return V.useReducer(cS,Xc)}function dS(){return V.useContext(Ca)}function ef(e){var{initial:t,dispatch:n,children:r}=e;return I.jsx(Qc.Provider,{value:t,children:I.jsx(Ca.Provider,{value:n,children:r})})}ef.displayName="JVR.Types";var pS=["style"];function tf(e){var{style:t}=e,n=pe(e,pS),r=E({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return I.jsx("svg",E({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:r},n,{children:I.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}tf.displayName="JVR.TriangleArrow";var nf={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:I.jsx(tf,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},rf=V.createContext(nf),hS=(e,t)=>E({},e,t),Je=()=>V.useContext(rf),Sa=V.createContext(()=>{});Sa.displayName="JVR.DispatchSymbols";function mS(){return V.useReducer(hS,nf)}function gS(){return V.useContext(Sa)}var of=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(rf.Provider,{value:t,children:I.jsx(Sa.Provider,{value:n,children:r})})};of.displayName="JVR.Symbols";var af={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},sf=V.createContext(af),yS=(e,t)=>E({},e,t),ft=()=>V.useContext(sf),Ea=V.createContext(()=>{});Ea.displayName="JVR.DispatchSection";function vS(){return V.useReducer(yS,af)}function bS(){return V.useContext(Ea)}var lf=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(sf.Provider,{value:t,children:I.jsx(Ea.Provider,{value:n,children:r})})};lf.displayName="JVR.Section";var uf={objectSortKeys:!1,indentWidth:15},Aa=V.createContext(uf);Aa.displayName="JVR.Context";var cf=V.createContext(()=>{});cf.displayName="JVR.DispatchContext";function xS(e,t){return E({},e,t)}var dn=()=>V.useContext(Aa),ff=e=>{var{children:t,initialState:n,initialTypes:r}=e,[i,o]=V.useReducer(xS,Object.assign({},uf,n)),[a,s]=aS(),[l,u]=lS(),[f,c]=fS(),[d,p]=mS(),[h,v]=vS();return V.useEffect(()=>o(E({},n)),[n]),I.jsx(Aa.Provider,{value:i,children:I.jsx(cf.Provider,{value:o,children:I.jsx(Gc,{initial:a,dispatch:s,children:I.jsx(Kc,{initial:l,dispatch:u,children:I.jsx(ef,{initial:E({},f,r),dispatch:c,children:I.jsx(of,{initial:d,dispatch:p,children:I.jsx(lf,{initial:h,dispatch:v,children:t})})})})})})})};ff.displayName="JVR.Provider";function wS(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var kS=["isNumber","value","parentValue","keyName","keys"],_S=["as","render"],CS=["as","render"],SS=["as","render"],ES=["as","style","render"],AS=["as","render"],TS=["as","render"],RS=["as","render"],IS=["as","render"],Lo=e=>{var{Quote:t={}}=Je(),{isNumber:n,value:r,parentValue:i,keyName:o,keys:a}=e,s=pe(e,kS);if(n)return null;var{as:l,render:u}=t,f=pe(t,_S),c=l||"span",d=E({},s,f),p={value:r,parentValue:i,keyName:o,keys:a||(o?[o]:[])},h=u&&typeof u=="function"&&u(d,p);return h||I.jsx(c,E({},d))};Lo.displayName="JVR.Quote";var cr=e=>{var{ValueQuote:t={}}=Je(),n=E({},(wS(e),e)),{as:r,render:i}=t,o=pe(t,CS),a=r||"span",s=E({},n,o),l=i&&typeof i=="function"&&i(s,{});return l||I.jsx(a,E({},s))};cr.displayName="JVR.ValueQuote";var df=e=>{var{value:t,parentValue:n,keyName:r,keys:i}=e,{Colon:o={}}=Je(),{as:a,render:s}=o,l=pe(o,SS),u=a||"span",f=s&&typeof s=="function"&&s(l,{value:t,parentValue:n,keyName:r,keys:i||(r?[r]:[])});return f||I.jsx(u,E({},l))};df.displayName="JVR.Colon";var pf=e=>{var{Arrow:t={}}=Je(),n=xi(),{expandKey:r,style:i,value:o,parentValue:a,keyName:s,keys:l}=e,u=!!n[r],{as:f,style:c,render:d}=t,p=pe(t,ES),h=f||"span",v=d&&typeof d=="function",b=E({},p,{"data-expanded":u,style:E({},c,i)}),y={value:o,parentValue:a,keyName:s,keys:l||(s?[s]:[])},_=v&&d(b,y);return _||I.jsx(h,E({},p,{style:E({},c,i)}))};pf.displayName="JVR.Arrow";var hf=e=>{var{isBrackets:t,value:n,parentValue:r,keyName:i,keys:o}=e,{BracketsLeft:a={},BraceLeft:s={}}=Je(),l={value:n,parentValue:r,keyName:i,keys:o||(i?[i]:[])};if(t){var{as:u,render:f}=a,c=pe(a,AS),d=u||"span",p=f&&typeof f=="function"&&f(c,l);return p||I.jsx(d,E({},c))}var{as:h,render:v}=s,b=pe(s,TS),y=h||"span",_=v&&typeof v=="function"&&v(b,l);return _||I.jsx(y,E({},b))};hf.displayName="JVR.BracketsOpen";var Ta=e=>{var{isBrackets:t,isVisiable:n,value:r,parentValue:i,keyName:o,keys:a}=e,s={value:r,parentValue:i,keyName:o,keys:a||(o?[o]:[])};if(!n)return null;var{BracketsRight:l={},BraceRight:u={}}=Je();if(t){var{as:f,render:c}=l,d=pe(l,RS),p=f||"span",h=c&&typeof c=="function"&&c(d,s);return h||I.jsx(p,E({},d))}var{as:v,render:b}=u,y=pe(u,IS),_=v||"span",x=b&&typeof b=="function"&&b(y,s);return x||I.jsx(_,E({},y))};Ta.displayName="JVR.BracketsClose";var mf=e=>{var t,{keyName:n,value:r,expandKey:i,parentValue:o,level:a,keys:s=[]}=e,l=xi(),{collapsed:u,shouldExpandNodeInitially:f}=dn(),c=typeof u=="boolean"?u:typeof u=="number"?a>u:!1,d=(t=l[i])!=null?t:f?!1:c,p=f&&f(!d,{value:r,keys:s,level:a,keyName:n,parentValue:o});if(l[i]===void 0&&!p)return null;var h=Object.keys(r).length;if(d||h===0)return null;var v={paddingLeft:4},b={keyName:n,value:r,keys:s,parentValue:o},y=Array.isArray(r),_=r instanceof Set;return I.jsx("div",{style:v,children:I.jsx(Ta,E({isBrackets:y||_},b,{isVisiable:!0}))})};mf.displayName="JVR.NestedClose";var NS=["as","render"],zS=["as","render"],OS=["as","render"],PS=["as","render"],jS=["as","render"],DS=["as","render"],LS=["as","render"],MS=["as","render"],$S=["as","render"],FS=["as","render"],ZS=["as","render"],BS=["as","render"],VS=["as","render"],Mo=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},gf=e=>{var{value:t,keyName:n}=e,{Set:r={},displayDataTypes:i}=Ce(),o=t instanceof Set;if(!o||!i)return null;var{as:a,render:s}=r,l=pe(r,NS),u=s&&typeof s=="function",f=u&&s(l,{type:"type",value:t,keyName:n});if(f)return f;var c=a||"span";return I.jsx(c,E({},l))};gf.displayName="JVR.SetComp";var yf=e=>{var{value:t,keyName:n}=e,{Map:r={},displayDataTypes:i}=Ce(),o=t instanceof Map;if(!o||!i)return null;var{as:a,render:s}=r,l=pe(r,zS),u=s&&typeof s=="function",f=u&&s(l,{type:"type",value:t,keyName:n});if(f)return f;var c=a||"span";return I.jsx(c,E({},l))};yf.displayName="JVR.MapComp";var bt={opacity:.75,paddingRight:4},vf=e=>{var{children:t="",keyName:n,keys:r}=e,{Str:i={},displayDataTypes:o}=Ce(),{shortenTextAfterLength:a=30,stringEllipsis:s="..."}=dn(),{as:l,render:u}=i,f=pe(i,OS),c=t,[d,p]=V.useState(a&&c.length>a);V.useEffect(()=>p(a&&c.length>a),[a]);var h=l||"span",v=E({},bt,i.style||{});a>0&&(f.style=E({},f.style,{cursor:c.length<=a?"initial":"pointer"}),c.length>a&&(f.onClick=()=>{p(!d)}));var b=d?""+c.slice(0,a)+s:c,y=u&&typeof u=="function",_=y&&u(E({},f,{style:v}),{type:"type",value:t,keyName:n,keys:r}),x=d?"w-rjv-value w-rjv-value-short":"w-rjv-value",R=y&&u(E({},f,{children:b,className:x}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(_||I.jsx(h,E({},f,{style:v}))),R||I.jsxs(V.Fragment,{children:[I.jsx(cr,{}),I.jsx(h,E({},f,{className:x,children:b})),I.jsx(cr,{})]})]})};vf.displayName="JVR.TypeString";var bf=e=>{var{children:t,keyName:n,keys:r}=e,{True:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,PS),u=a||"span",f=E({},bt,i.style||{}),c=s&&typeof s=="function",d=c&&s(E({},l,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(d||I.jsx(u,E({},l,{style:f}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:t?.toString()}))]})};bf.displayName="JVR.TypeTrue";var xf=e=>{var{children:t,keyName:n,keys:r}=e,{False:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,jS),u=a||"span",f=E({},bt,i.style||{}),c=s&&typeof s=="function",d=c&&s(E({},l,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(d||I.jsx(u,E({},l,{style:f}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:t?.toString()}))]})};xf.displayName="JVR.TypeFalse";var wf=e=>{var{children:t,keyName:n,keys:r}=e,{Float:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,DS),u=a||"span",f=E({},bt,i.style||{}),c=s&&typeof s=="function",d=c&&s(E({},l,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(d||I.jsx(u,E({},l,{style:f}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:t?.toString()}))]})};wf.displayName="JVR.TypeFloat";var kf=e=>{var{children:t,keyName:n,keys:r}=e,{Int:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,LS),u=a||"span",f=E({},bt,i.style||{}),c=s&&typeof s=="function",d=c&&s(E({},l,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(d||I.jsx(u,E({},l,{style:f}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:t?.toString()}))]})};kf.displayName="JVR.TypeInt";var _f=e=>{var{children:t,keyName:n,keys:r}=e,{Bigint:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,MS),u=a||"span",f=E({},bt,i.style||{}),c=s&&typeof s=="function",d=c&&s(E({},l,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(d||I.jsx(u,E({},l,{style:f}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:Mo(t?.toString())}))]})};_f.displayName="JVR.TypeFloat";var Cf=e=>{var{children:t,keyName:n,keys:r}=e,{Url:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,$S),u=a||"span",f=E({},bt,i.style),c=s&&typeof s=="function",d=c&&s(E({},l,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t?.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(d||I.jsx(u,E({},l,{style:f}))),p||I.jsxs("a",E({href:t?.href,target:"_blank"},l,{className:"w-rjv-value",children:[I.jsx(cr,{}),t?.href,I.jsx(cr,{})]}))]})};Cf.displayName="JVR.TypeUrl";var Sf=e=>{var{children:t,keyName:n,keys:r}=e,{Date:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,FS),u=a||"span",f=E({},bt,i.style||{}),c=s&&typeof s=="function",d=c&&s(E({},l,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=t instanceof Date?t.toLocaleString():t,h=c&&s(E({},l,{children:p,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(d||I.jsx(u,E({},l,{style:f}))),h||I.jsx(u,E({},l,{className:"w-rjv-value",children:p}))]})};Sf.displayName="JVR.TypeDate";var Ef=e=>{var{children:t,keyName:n,keys:r}=e,{Undefined:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,ZS),u=a||"span",f=E({},bt,i.style||{}),c=s&&typeof s=="function",d=c&&s(E({},l,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(d||I.jsx(u,E({},l,{style:f}))),p]})};Ef.displayName="JVR.TypeUndefined";var Af=e=>{var{children:t,keyName:n,keys:r}=e,{Null:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,BS),u=a||"span",f=E({},bt,i.style||{}),c=s&&typeof s=="function",d=c&&s(E({},l,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(d||I.jsx(u,E({},l,{style:f}))),p]})};Af.displayName="JVR.TypeNull";var Tf=e=>{var{children:t,keyName:n,keys:r}=e,{Nan:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,VS),u=a||"span",f=E({},bt,i.style||{}),c=s&&typeof s=="function",d=c&&s(E({},l,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t?.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(d||I.jsx(u,E({},l,{style:f}))),p]})};Tf.displayName="JVR.TypeNan";var US=e=>Number(e)===e&&e%1!==0||isNaN(e),Rf=e=>{var{value:t,keyName:n,keys:r}=e,i={keyName:n,keys:r};return t instanceof URL?I.jsx(Cf,E({},i,{children:t})):typeof t=="string"?I.jsx(vf,E({},i,{children:t})):t===!0?I.jsx(bf,E({},i,{children:t})):t===!1?I.jsx(xf,E({},i,{children:t})):t===null?I.jsx(Af,E({},i,{children:t})):t===void 0?I.jsx(Ef,E({},i,{children:t})):t instanceof Date?I.jsx(Sf,E({},i,{children:t})):typeof t=="number"&&isNaN(t)?I.jsx(Tf,E({},i,{children:t})):typeof t=="number"&&US(t)?I.jsx(wf,E({},i,{children:t})):typeof t=="bigint"?I.jsx(_f,E({},i,{children:t})):typeof t=="number"?I.jsx(kf,E({},i,{children:t})):null};Rf.displayName="JVR.Value";function Kt(e,t,n){var r=gS(),i=[e.className,t.className].filter(Boolean).join(" "),o=E({},e,t,{className:i,style:E({},e.style,t.style),children:t.children||e.children});V.useEffect(()=>r({[n]:o}),[t])}function ot(e,t,n){var r=dS(),i=[e.className,t.className].filter(Boolean).join(" "),o=E({},e,t,{className:i,style:E({},e.style,t.style),children:t.children||e.children});V.useEffect(()=>r({[n]:o}),[t])}function Mn(e,t,n){var r=bS(),i=[e.className,t.className].filter(Boolean).join(" "),o=E({},e,t,{className:i,style:E({},e.style,t.style),children:t.children||e.children});V.useEffect(()=>r({[n]:o}),[t])}var HS=["as","render"],If=e=>{var{KeyName:t={}}=ft();return Mn(t,e,"KeyName"),null};If.displayName="JVR.KeyName";var Nf=e=>{var{children:t,value:n,parentValue:r,keyName:i,keys:o}=e,a=typeof t=="number",s={color:a?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:l={}}=ft(),{as:u,render:f}=l,c=pe(l,HS);c.style=E({},c.style,s);var d=u||"span",p=f&&typeof f=="function"&&f(E({},c,{children:t}),{value:n,parentValue:r,keyName:i,keys:o||(i?[i]:[])});return p||I.jsx(d,E({},c,{children:t}))};Nf.displayName="JVR.KeyNameComp";var WS=["children","value","parentValue","keyName","keys"],qS=["as","render","children"],zf=e=>{var{Row:t={}}=ft();return Mn(t,e,"Row"),null};zf.displayName="JVR.Row";var Of=e=>{var{children:t,value:n,parentValue:r,keyName:i,keys:o}=e,a=pe(e,WS),{Row:s={}}=ft(),{as:l,render:u}=s,f=pe(s,qS),c=l||"div",d=u&&typeof u=="function"&&u(E({},a,f,{children:t}),{value:n,keyName:i,parentValue:r,keys:o});return d||I.jsx(c,E({},a,f,{children:t}))};Of.displayName="JVR.RowComp";function GS(e){var t=V.useRef();return V.useEffect(()=>{t.current=e}),t.current}function JS(e){var{value:t,highlightUpdates:n,highlightContainer:r}=e,i=GS(t),o=V.useMemo(()=>{if(!n||i===void 0)return!1;if(typeof t!=typeof i)return!0;if(typeof t=="number")return isNaN(t)&&isNaN(i)?!1:t!==i;if(Array.isArray(t)!==Array.isArray(i))return!0;if(typeof t=="object"||typeof t=="function")return!1;if(t!==i)return!0},[n,t]);V.useEffect(()=>{r&&r.current&&o&&"animate"in r.current&&r.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[o,t,r])}var YS=["keyName","value","parentValue","expandKey","keys","beforeCopy"],KS=["as","render"],Ra=e=>{var{keyName:t,value:n,parentValue:r,expandKey:i,keys:o,beforeCopy:a}=e,s=pe(e,YS),{onCopied:l,enableClipboard:u,beforeCopy:f}=dn(),c=oS(),d=c[i],[p,h]=V.useState(!1),{Copied:v={}}=ft(),b=v?.beforeCopy;if(u===!1||!d)return null;var y=z=>{z.stopPropagation();var U="";typeof n=="number"&&n===1/0?U="Infinity":typeof n=="number"&&isNaN(n)?U="NaN":typeof n=="bigint"?U=Mo(n):n instanceof Date?U=n.toLocaleString():U=JSON.stringify(n,(j,W)=>typeof W=="bigint"?Mo(W):W,2);var k=a||b||f;k&&typeof k=="function"&&(U=k(U,t,n,r,i,o)),l&&l(U,n),h(!0);var $=navigator.clipboard||{writeText(j){return new Promise((W,Z)=>{var O=document.createElement("textarea");O.style.position="absolute",O.style.opacity="0",O.style.left="-99999999px",O.value=j,document.body.appendChild(O),O.select(),document.execCommand("copy")?W():Z(),O.remove()})}};$.writeText(U).then(()=>{var j=setTimeout(()=>{h(!1),clearTimeout(j)},3e3)}).catch(j=>{})},_={style:{display:"inline-flex"},fill:p?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:y},{render:x}=v,R=pe(v,KS),N=E({},R,s,_,{style:E({},R.style,s.style,_.style)}),w=x&&typeof x=="function",M=w&&x(E({},N,{"data-copied":p}),{value:n,keyName:t,keys:o,parentValue:r});return M||(p?I.jsx("svg",E({viewBox:"0 0 32 36"},N,{children:I.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):I.jsx("svg",E({viewBox:"0 0 32 36"},N,{children:I.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};Ra.displayName="JVR.Copied";function Pf(){var e=V.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var jf=e=>{var t,{keyName:n,value:r,expandKey:i="",level:o,keys:a=[],parentValue:s}=e,l=xi(),{objectSortKeys:u,indentWidth:f,collapsed:c,shouldExpandNodeInitially:d}=dn(),p=typeof c=="boolean"?c:typeof c=="number"?o>c:!1,h=(t=l[i])!=null?t:d?!1:p,v=d&&d(!h,{value:r,keys:a,level:o,keyName:n,parentValue:s});if(l[i]===void 0&&!v||h)return null;var b=Array.isArray(r),y=b?Object.entries(r).map(x=>[Number(x[0]),x[1]]):Object.entries(r);u&&(y=u===!0?y.sort((x,R)=>{var[N]=x,[w]=R;return typeof N=="string"&&typeof w=="string"?N.localeCompare(w):0}):y.sort((x,R)=>{var[N,w]=x,[M,z]=R;return typeof N=="string"&&typeof M=="string"?u(N,M,w,z):0}));var _={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:f,marginLeft:6};return I.jsx("div",{className:"w-rjv-wrap",style:_,children:y.map((x,R)=>{var[N,w]=x;return I.jsx(Df,{parentValue:r,keyName:N,keys:[...a,N],value:w,level:o},R)})})};jf.displayName="JVR.KeyValues";var Ia=e=>{var{keyName:t,parentValue:n,keys:r,value:i}=e,{highlightUpdates:o}=dn(),a=typeof t=="number",s=V.useRef(null);JS({value:i,highlightUpdates:o,highlightContainer:s});var l={keyName:t,value:i,keys:r,parentValue:n};return I.jsxs(V.Fragment,{children:[I.jsxs("span",{ref:s,children:[I.jsx(Lo,E({isNumber:a,"data-placement":"left"},l)),I.jsx(Nf,E({},l,{children:t})),I.jsx(Lo,E({isNumber:a,"data-placement":"right"},l))]}),I.jsx(df,E({},l))]})};Ia.displayName="JVR.KayName";var Df=e=>{var{keyName:t,value:n,parentValue:r,level:i=0,keys:o=[]}=e,a=qc(),s=Pf(),l=Array.isArray(n),u=n instanceof Set,f=n instanceof Map,c=n instanceof Date,d=n instanceof URL,p=n&&typeof n=="object"&&!l&&!u&&!f&&!c&&!d,h=p||l||u||f;if(h){var v=u?Array.from(n):f?Object.fromEntries(n):n;return I.jsx(Na,{keyName:t,value:v,parentValue:r,initialValue:n,keys:o,level:i+1})}var b={onMouseEnter:()=>a({[s]:!0}),onMouseLeave:()=>a({[s]:!1})};return I.jsxs(Of,E({className:"w-rjv-line",value:n,keyName:t,keys:o,parentValue:r},b,{children:[I.jsx(Ia,{keyName:t,value:n,keys:o,parentValue:r}),I.jsx(Rf,{keyName:t,value:n,keys:o}),I.jsx(Ra,{keyName:t,value:n,keys:o,parentValue:r,expandKey:s})]}))};Df.displayName="JVR.KeyValuesItem";var XS=["value","keyName"],QS=["as","render"],Lf=e=>{var{CountInfoExtra:t={}}=ft();return Mn(t,e,"CountInfoExtra"),null};Lf.displayName="JVR.CountInfoExtra";var Mf=e=>{var{value:t={},keyName:n}=e,r=pe(e,XS),{CountInfoExtra:i={}}=ft(),{as:o,render:a}=i,s=pe(i,QS);if(!a&&!s.children)return null;var l=o||"span",u=a&&typeof a=="function",f=E({},s,r),c=u&&a(f,{value:t,keyName:n});return c||I.jsx(l,E({},f))};Mf.displayName="JVR.CountInfoExtraComps";var eE=["value","keyName"],tE=["as","render"],$f=e=>{var{CountInfo:t={}}=ft();return Mn(t,e,"CountInfo"),null};$f.displayName="JVR.CountInfo";var Ff=e=>{var{value:t={},keyName:n}=e,r=pe(e,eE),{displayObjectSize:i}=dn(),{CountInfo:o={}}=ft();if(!i)return null;var{as:a,render:s}=o,l=pe(o,tE),u=a||"span";l.style=E({},l.style,e.style);var f=Object.keys(t).length;l.children||(l.children=f+" item"+(f===1?"":"s"));var c=E({},l,r),d=s&&typeof s=="function",p=d&&s(E({},c,{"data-length":f}),{value:t,keyName:n});return p||I.jsx(u,E({},c))};Ff.displayName="JVR.CountInfoComp";var nE=["as","render"],Zf=e=>{var{Ellipsis:t={}}=ft();return Mn(t,e,"Ellipsis"),null};Zf.displayName="JVR.Ellipsis";var Bf=e=>{var{isExpanded:t,value:n,keyName:r}=e,{Ellipsis:i={}}=ft(),{as:o,render:a}=i,s=pe(i,nE),l=o||"span",u=a&&typeof a=="function"&&a(E({},s,{"data-expanded":t}),{value:n,keyName:r});return u||(!t||typeof n=="object"&&Object.keys(n).length==0?null:I.jsx(l,E({},s)))};Bf.displayName="JVR.EllipsisComp";var Vf=e=>{var t,{keyName:n,expandKey:r,keys:i=[],initialValue:o,value:a,parentValue:s,level:l}=e,u=xi(),f=uS(),{onExpand:c,collapsed:d,shouldExpandNodeInitially:p}=dn(),h=typeof d=="boolean"?d:typeof d=="number"?l>d:!1,v=(t=u[r])!=null?t:p?!1:h,b=p&&p(!v,{value:a,keys:i,level:l,keyName:n,parentValue:s});u[r]===void 0&&p&&(v=!b);var y=()=>{var $={expand:!v,value:a,keyid:r,keyName:n};c&&c($),f({[r]:$.expand})},_={display:"inline-flex",alignItems:"center"},x={transform:"rotate("+(v?"-90":"0")+"deg)",transition:"all 0.3s"},R=Object.keys(a).length,N=typeof a=="object",w=Array.isArray(a),M=a instanceof Set,z=R!==0&&(w||M||N),U={style:_};z&&(U.onClick=y);var k={keyName:n,value:a,keys:i,parentValue:s};return I.jsxs("span",E({},U,{children:[z&&I.jsx(pf,E({style:x,expandKey:r},k)),(n||typeof n=="number")&&I.jsx(Ia,E({},k)),I.jsx(gf,{value:o,keyName:n}),I.jsx(yf,{value:o,keyName:n}),I.jsx(hf,E({isBrackets:w||M},k)),I.jsx(Bf,{keyName:n,value:a,isExpanded:v}),I.jsx(Ta,E({isVisiable:v||!z,isBrackets:w||M},k)),I.jsx(Ff,{value:a,keyName:n}),I.jsx(Mf,{value:a,keyName:n}),I.jsx(Ra,{keyName:n,value:a,expandKey:r,parentValue:s,keys:i})]}))};Vf.displayName="JVR.NestedOpen";var rE=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Na=V.forwardRef((e,t)=>{var{className:n="",parentValue:r,level:i=1,value:o,initialValue:a,keys:s,keyName:l}=e,u=pe(e,rE),f=qc(),c=Pf(),d=[n,"w-rjv-inner"].filter(Boolean).join(" "),p={onMouseEnter:()=>f({[c]:!0}),onMouseLeave:()=>f({[c]:!1})};return I.jsxs("div",E({className:d,ref:t},u,p,{children:[I.jsx(Vf,{expandKey:c,value:o,level:i,keys:s,parentValue:r,keyName:l,initialValue:a}),I.jsx(jf,{expandKey:c,value:o,level:i,keys:s,parentValue:r,keyName:l}),I.jsx(mf,{expandKey:c,value:o,level:i,keys:s,parentValue:r,keyName:l})]}))});Na.displayName="JVR.Container";var Uf=e=>{var{BraceLeft:t={}}=Je();return Kt(t,e,"BraceLeft"),null};Uf.displayName="JVR.BraceLeft";var Hf=e=>{var{BraceRight:t={}}=Je();return Kt(t,e,"BraceRight"),null};Hf.displayName="JVR.BraceRight";var Wf=e=>{var{BracketsLeft:t={}}=Je();return Kt(t,e,"BracketsLeft"),null};Wf.displayName="JVR.BracketsLeft";var qf=e=>{var{BracketsRight:t={}}=Je();return Kt(t,e,"BracketsRight"),null};qf.displayName="JVR.BracketsRight";var Gf=e=>{var{Arrow:t={}}=Je();return Kt(t,e,"Arrow"),null};Gf.displayName="JVR.Arrow";var Jf=e=>{var{Colon:t={}}=Je();return Kt(t,e,"Colon"),null};Jf.displayName="JVR.Colon";var Yf=e=>{var{Quote:t={}}=Je();return Kt(t,e,"Quote"),null};Yf.displayName="JVR.Quote";var Kf=e=>{var{ValueQuote:t={}}=Je();return Kt(t,e,"ValueQuote"),null};Kf.displayName="JVR.ValueQuote";var Xf=e=>{var{Bigint:t={}}=Ce();return ot(t,e,"Bigint"),null};Xf.displayName="JVR.Bigint";var Qf=e=>{var{Date:t={}}=Ce();return ot(t,e,"Date"),null};Qf.displayName="JVR.Date";var ed=e=>{var{False:t={}}=Ce();return ot(t,e,"False"),null};ed.displayName="JVR.False";var td=e=>{var{Float:t={}}=Ce();return ot(t,e,"Float"),null};td.displayName="JVR.Float";var nd=e=>{var{Int:t={}}=Ce();return ot(t,e,"Int"),null};nd.displayName="JVR.Int";var rd=e=>{var{Map:t={}}=Ce();return ot(t,e,"Map"),null};rd.displayName="JVR.Map";var id=e=>{var{Nan:t={}}=Ce();return ot(t,e,"Nan"),null};id.displayName="JVR.Nan";var od=e=>{var{Null:t={}}=Ce();return ot(t,e,"Null"),null};od.displayName="JVR.Null";var ad=e=>{var{Set:t={}}=Ce();return ot(t,e,"Set"),null};ad.displayName="JVR.Set";var sd=e=>{var{Str:t={}}=Ce();return ot(t,e,"Str"),null};sd.displayName="JVR.StringText";var ld=e=>{var{True:t={}}=Ce();return ot(t,e,"True"),null};ld.displayName="JVR.True";var ud=e=>{var{Undefined:t={}}=Ce();return ot(t,e,"Undefined"),null};ud.displayName="JVR.Undefined";var cd=e=>{var{Url:t={}}=Ce();return ot(t,e,"Url"),null};cd.displayName="JVR.Url";var fd=e=>{var{Copied:t={}}=ft();return Mn(t,e,"Copied"),null};fd.displayName="JVR.Copied";var iE=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],be=V.forwardRef((e,t)=>{var{className:n="",style:r,value:i,children:o,collapsed:a=!1,shouldExpandNodeInitially:s=()=>!0,indentWidth:l=15,displayObjectSize:u=!0,shortenTextAfterLength:f=30,stringEllipsis:c,highlightUpdates:d=!0,enableClipboard:p=!0,displayDataTypes:h=!0,objectSortKeys:v=!1,onExpand:b,onCopied:y,beforeCopy:_}=e,x=pe(e,iE),R=E({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},r),N=["w-json-view-container","w-rjv",n].filter(Boolean).join(" ");return I.jsxs(ff,{initialState:{value:i,objectSortKeys:v,indentWidth:l,shouldExpandNodeInitially:a===!1?s:()=>!1,displayObjectSize:u,collapsed:a,enableClipboard:p,shortenTextAfterLength:f,stringEllipsis:c,highlightUpdates:d,onCopied:y,onExpand:b,beforeCopy:_},initialTypes:{displayDataTypes:h},children:[I.jsx(Na,E({value:i},x,{ref:t,className:N,style:R})),o]})});be.Bigint=Xf;be.Date=Qf;be.False=ed;be.Float=td;be.Int=nd;be.Map=rd;be.Nan=id;be.Null=od;be.Set=ad;be.String=sd;be.True=ld;be.Undefined=ud;be.Url=cd;be.ValueQuote=Kf;be.Arrow=Gf;be.Colon=Jf;be.Quote=Yf;be.Ellipsis=Zf;be.BraceLeft=Uf;be.BraceRight=Hf;be.BracketsLeft=Wf;be.BracketsRight=qf;be.Copied=fd;be.CountInfo=$f;be.CountInfoExtra=Lf;be.KeyName=If;be.Row=zf;be.displayName="JVR.JsonView";export{LE as $,ei as A,aA as B,nA as C,oA as D,dA as E,cA as F,fA as G,sA as H,wc as I,lA as J,uA as K,cE as L,uE as M,lE as N,uv as O,$E as P,DE as Q,jE as R,$a as S,FE as T,BE as U,q_ as V,nv as W,ZE as X,bs as Y,PE as Z,Hx as _,SE as a,fy as a0,ME as a1,iv as a2,HE as a3,Qv as a4,UE as a5,VE as a6,be as a7,NE as b,RE as c,EE as d,pA as e,hA as f,mA as g,qE as h,GE as i,JE as j,KE as k,OE as l,XE as m,AE as n,IE as o,eA as p,QE as q,zE as r,CE as s,YE as t,TE as u,WE as v,tA as w,sE as x,iA as y,rA as z};