@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.
- package/dist/assets/{acp-sdk-Dkgjnioq.js → acp-sdk-Btq2qqk7.js} +1 -1
- package/dist/assets/icons-BE9GSQ2_.js +1 -0
- package/dist/assets/index-BgQ9tTxy.css +1 -0
- package/dist/assets/index-DSMqeTk1.js +6 -0
- package/dist/assets/{markdown-B17SHLT-.js → markdown-CZVs0Ikp.js} +1 -1
- package/dist/assets/{radix-C_VWc-Gz.js → radix-BxefruW5.js} +1 -1
- package/dist/assets/react-Rokds9qL.js +52 -0
- package/dist/assets/vendor-BrF4o6BL.js +48 -0
- package/dist/index.html +8 -8
- package/package.json +4 -4
- package/vite.config.ts +7 -0
- package/dist/assets/icons-DnvAZOSE.js +0 -1
- package/dist/assets/index-Bu11KnLt.css +0 -1
- package/dist/assets/index-CFPxv5KS.js +0 -6
- package/dist/assets/react-BNhDTjHq.js +0 -49
- package/dist/assets/vendor-C8TUcKlD.js +0 -48
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import{e as xs,b as V,c as Qp,r as U,a as eh,g as th,f as So,j as D}from"./react-Rokds9qL.js";var oa={exports:{}},sa={};var ks;function nh(){return ks||(ks=1,(function(e){function t(E,j){var A=E.length;E.push(j);e:for(;0<A;){var ne=A-1>>>1,x=E[ne];if(0<i(x,j))E[ne]=j,E[A]=x,A=ne;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var j=E[0],A=E.pop();if(A!==j){E[0]=A;e:for(var ne=0,x=E.length,we=x>>>1;ne<we;){var Ne=2*(ne+1)-1,b=E[Ne],re=Ne+1,fe=E[re];if(0>i(b,A))re<x&&0>i(fe,b)?(E[ne]=fe,E[re]=A,ne=re):(E[ne]=b,E[Ne]=A,ne=Ne);else if(re<x&&0>i(fe,A))E[ne]=fe,E[re]=A,ne=re;else break e}}return j}function i(E,j){var A=E.sortIndex-j.sortIndex;return A!==0?A:E.id-j.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],d=1,c=null,f=3,p=!1,g=!1,y=!1,k=!1,v=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function P(E){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=E)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function O(E){if(y=!1,P(E),!g)if(n(l)!==null)g=!0,S||(S=!0,J());else{var j=n(u);j!==null&&G(O,j.startTime-E)}}var S=!1,q=-1,M=5,H=-1;function C(){return k?!0:!(e.unstable_now()-H<M)}function ae(){if(k=!1,S){var E=e.unstable_now();H=E;var j=!0;try{e:{g=!1,y&&(y=!1,T(q),q=-1),p=!0;var A=f;try{t:{for(P(E),c=n(l);c!==null&&!(c.expirationTime>E&&C());){var ne=c.callback;if(typeof ne=="function"){c.callback=null,f=c.priorityLevel;var x=ne(c.expirationTime<=E);if(E=e.unstable_now(),typeof x=="function"){c.callback=x,P(E),j=!0;break t}c===n(l)&&r(l),P(E)}else r(l);c=n(l)}if(c!==null)j=!0;else{var we=n(u);we!==null&&G(O,we.startTime-E),j=!1}}break e}finally{c=null,f=A,p=!1}j=void 0}}finally{j?J():S=!1}}}var J;if(typeof _=="function")J=function(){_(ae)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,Z=z.port2;z.port1.onmessage=ae,J=function(){Z.postMessage(null)}}else J=function(){v(ae,0)};function G(E,j){q=v(function(){E(e.unstable_now())},j)}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(E){E.callback=null},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(E){switch(f){case 1:case 2:case 3:var j=3;break;default:j=f}var A=f;f=j;try{return E()}finally{f=A}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(E,j){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var A=f;f=E;try{return j()}finally{f=A}},e.unstable_scheduleCallback=function(E,j,A){var ne=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?ne+A:ne):A=ne,E){case 1:var x=-1;break;case 2:x=250;break;case 5:x=1073741823;break;case 4:x=1e4;break;default:x=5e3}return x=A+x,E={id:d++,callback:j,priorityLevel:E,startTime:A,expirationTime:x,sortIndex:-1},A>ne?(E.sortIndex=A,t(u,E),n(l)===null&&E===n(u)&&(y?(T(q),q=-1):y=!0,G(O,A-ne))):(E.sortIndex=x,t(l,E),g||p||(g=!0,S||(S=!0,J()))),E},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(E){var j=f;return function(){var A=f;f=j;try{return E.apply(this,arguments)}finally{f=A}}}})(sa)),sa}var ws;function NE(){return ws||(ws=1,oa.exports=nh()),oa.exports}var la={},ln={},rr={},ir={},Dt={},un={},ar={},_s;function rh(){return _s||(_s=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar._globalThis=void 0,ar._globalThis=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof xs=="object"?xs:{}),ar}var Ss;function ih(){return Ss||(Ss=1,(function(e){var t=un&&un.__createBinding||(Object.create?(function(r,i,a,o){o===void 0&&(o=a),Object.defineProperty(r,o,{enumerable:!0,get:function(){return i[a]}})}):(function(r,i,a,o){o===void 0&&(o=a),r[o]=i[a]})),n=un&&un.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(rh(),e)})(un)),un}var or={},Cs;function pc(){return Cs||(Cs=1,Object.defineProperty(or,"__esModule",{value:!0}),or.VERSION=void 0,or.VERSION="1.9.0"),or}var cn={},Ts;function ah(){if(Ts)return cn;Ts=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.isCompatible=cn._makeCompatibilityCheck=void 0;const e=pc(),t=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function n(r){const i=new Set([r]),a=new Set,o=r.match(t);if(!o)return()=>!1;const s={major:+o[1],minor:+o[2],patch:+o[3],prerelease:o[4]};if(s.prerelease!=null)return function(c){return c===r};function l(d){return a.add(d),!1}function u(d){return i.add(d),!0}return function(c){if(i.has(c))return!0;if(a.has(c))return!1;const f=c.match(t);if(!f)return l(c);const p={major:+f[1],minor:+f[2],patch:+f[3],prerelease:f[4]};return p.prerelease!=null||s.major!==p.major?l(c):s.major===0?s.minor===p.minor&&s.patch<=p.patch?u(c):l(c):s.minor<=p.minor?u(c):l(c)}}return cn._makeCompatibilityCheck=n,cn.isCompatible=n(e.VERSION),cn}var Es;function $n(){if(Es)return Dt;Es=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.unregisterGlobal=Dt.getGlobal=Dt.registerGlobal=void 0;const e=ih(),t=pc(),n=ah(),r=t.VERSION.split(".")[0],i=Symbol.for(`opentelemetry.js.api.${r}`),a=e._globalThis;function o(u,d,c,f=!1){var p;const g=a[i]=(p=a[i])!==null&&p!==void 0?p:{version:t.VERSION};if(!f&&g[u]){const y=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${u}`);return c.error(y.stack||y.message),!1}if(g.version!==t.VERSION){const y=new Error(`@opentelemetry/api: Registration of version v${g.version} for ${u} does not match previously registered API v${t.VERSION}`);return c.error(y.stack||y.message),!1}return g[u]=d,c.debug(`@opentelemetry/api: Registered a global for ${u} v${t.VERSION}.`),!0}Dt.registerGlobal=o;function s(u){var d,c;const f=(d=a[i])===null||d===void 0?void 0:d.version;if(!(!f||!(0,n.isCompatible)(f)))return(c=a[i])===null||c===void 0?void 0:c[u]}Dt.getGlobal=s;function l(u,d){d.debug(`@opentelemetry/api: Unregistering a global for ${u} v${t.VERSION}.`);const c=a[i];c&&delete c[u]}return Dt.unregisterGlobal=l,Dt}var As;function oh(){if(As)return ir;As=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.DiagComponentLogger=void 0;const e=$n();class t{constructor(i){this._namespace=i.namespace||"DiagComponentLogger"}debug(...i){return n("debug",this._namespace,i)}error(...i){return n("error",this._namespace,i)}info(...i){return n("info",this._namespace,i)}warn(...i){return n("warn",this._namespace,i)}verbose(...i){return n("verbose",this._namespace,i)}}ir.DiagComponentLogger=t;function n(r,i,a){const o=(0,e.getGlobal)("diag");if(o)return a.unshift(i),o[r](...a)}return ir}var sr={},ua={},Rs;function Co(){return Rs||(Rs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiagLogLevel=void 0,(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(e.DiagLogLevel||(e.DiagLogLevel={}))})(ua)),ua}var Ns;function sh(){if(Ns)return sr;Ns=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.createLogLevelDiagLogger=void 0;const e=Co();function t(n,r){n<e.DiagLogLevel.NONE?n=e.DiagLogLevel.NONE:n>e.DiagLogLevel.ALL&&(n=e.DiagLogLevel.ALL),r=r||{};function i(a,o){const s=r[a];return typeof s=="function"&&n>=o?s.bind(r):function(){}}return{error:i("error",e.DiagLogLevel.ERROR),warn:i("warn",e.DiagLogLevel.WARN),info:i("info",e.DiagLogLevel.INFO),debug:i("debug",e.DiagLogLevel.DEBUG),verbose:i("verbose",e.DiagLogLevel.VERBOSE)}}return sr.createLogLevelDiagLogger=t,sr}var Is;function Un(){if(Is)return rr;Is=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.DiagAPI=void 0;const e=oh(),t=sh(),n=Co(),r=$n(),i="diag";class a{constructor(){function s(d){return function(...c){const f=(0,r.getGlobal)("diag");if(f)return f[d](...c)}}const l=this,u=(d,c={logLevel:n.DiagLogLevel.INFO})=>{var f,p,g;if(d===l){const v=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return l.error((f=v.stack)!==null&&f!==void 0?f:v.message),!1}typeof c=="number"&&(c={logLevel:c});const y=(0,r.getGlobal)("diag"),k=(0,t.createLogLevelDiagLogger)((p=c.logLevel)!==null&&p!==void 0?p:n.DiagLogLevel.INFO,d);if(y&&!c.suppressOverrideMessage){const v=(g=new Error().stack)!==null&&g!==void 0?g:"<failed to generate stacktrace>";y.warn(`Current logger will be overwritten from ${v}`),k.warn(`Current logger will overwrite one already registered from ${v}`)}return(0,r.registerGlobal)("diag",k,l,!0)};l.setLogger=u,l.disable=()=>{(0,r.unregisterGlobal)(i,l)},l.createComponentLogger=d=>new e.DiagComponentLogger(d),l.verbose=s("verbose"),l.debug=s("debug"),l.info=s("info"),l.warn=s("warn"),l.error=s("error")}static instance(){return this._instance||(this._instance=new a),this._instance}}return rr.DiagAPI=a,rr}var lr={},Ps;function lh(){if(Ps)return lr;Ps=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.BaggageImpl=void 0;class e{constructor(n){this._entries=n?new Map(n):new Map}getEntry(n){const r=this._entries.get(n);if(r)return Object.assign({},r)}getAllEntries(){return Array.from(this._entries.entries()).map(([n,r])=>[n,r])}setEntry(n,r){const i=new e(this._entries);return i._entries.set(n,r),i}removeEntry(n){const r=new e(this._entries);return r._entries.delete(n),r}removeEntries(...n){const r=new e(this._entries);for(const i of n)r._entries.delete(i);return r}clear(){return new e}}return lr.BaggageImpl=e,lr}var ur={},Os;function uh(){return Os||(Os=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.baggageEntryMetadataSymbol=void 0,ur.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")),ur}var Ls;function hc(){if(Ls)return ln;Ls=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.baggageEntryMetadataFromString=ln.createBaggage=void 0;const e=Un(),t=lh(),n=uh(),r=e.DiagAPI.instance();function i(o={}){return new t.BaggageImpl(new Map(Object.entries(o)))}ln.createBaggage=i;function a(o){return typeof o!="string"&&(r.error(`Cannot create baggage metadata from unknown type: ${typeof o}`),o=""),{__TYPE__:n.baggageEntryMetadataSymbol,toString(){return o}}}return ln.baggageEntryMetadataFromString=a,ln}var dn={},Ds;function qi(){if(Ds)return dn;Ds=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.ROOT_CONTEXT=dn.createContextKey=void 0;function e(n){return Symbol.for(n)}dn.createContextKey=e;class t{constructor(r){const i=this;i._currentContext=r?new Map(r):new Map,i.getValue=a=>i._currentContext.get(a),i.setValue=(a,o)=>{const s=new t(i._currentContext);return s._currentContext.set(a,o),s},i.deleteValue=a=>{const o=new t(i._currentContext);return o._currentContext.delete(a),o}}}return dn.ROOT_CONTEXT=new t,dn}var cr={},zs;function ch(){if(zs)return cr;zs=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.DiagConsoleLogger=void 0;const e=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class t{constructor(){function r(i){return function(...a){if(console){let o=console[i];if(typeof o!="function"&&(o=console.log),typeof o=="function")return o.apply(console,a)}}}for(let i=0;i<e.length;i++)this[e[i].n]=r(e[i].c)}}return cr.DiagConsoleLogger=t,cr}var ca={},Ms;function mc(){return Ms||(Ms=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createNoopMeter=e.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=e.NOOP_OBSERVABLE_GAUGE_METRIC=e.NOOP_OBSERVABLE_COUNTER_METRIC=e.NOOP_UP_DOWN_COUNTER_METRIC=e.NOOP_HISTOGRAM_METRIC=e.NOOP_GAUGE_METRIC=e.NOOP_COUNTER_METRIC=e.NOOP_METER=e.NoopObservableUpDownCounterMetric=e.NoopObservableGaugeMetric=e.NoopObservableCounterMetric=e.NoopObservableMetric=e.NoopHistogramMetric=e.NoopGaugeMetric=e.NoopUpDownCounterMetric=e.NoopCounterMetric=e.NoopMetric=e.NoopMeter=void 0;class t{constructor(){}createGauge(p,g){return e.NOOP_GAUGE_METRIC}createHistogram(p,g){return e.NOOP_HISTOGRAM_METRIC}createCounter(p,g){return e.NOOP_COUNTER_METRIC}createUpDownCounter(p,g){return e.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(p,g){return e.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(p,g){return e.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(p,g){return e.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(p,g){}removeBatchObservableCallback(p){}}e.NoopMeter=t;class n{}e.NoopMetric=n;class r extends n{add(p,g){}}e.NoopCounterMetric=r;class i extends n{add(p,g){}}e.NoopUpDownCounterMetric=i;class a extends n{record(p,g){}}e.NoopGaugeMetric=a;class o extends n{record(p,g){}}e.NoopHistogramMetric=o;class s{addCallback(p){}removeCallback(p){}}e.NoopObservableMetric=s;class l extends s{}e.NoopObservableCounterMetric=l;class u extends s{}e.NoopObservableGaugeMetric=u;class d extends s{}e.NoopObservableUpDownCounterMetric=d,e.NOOP_METER=new t,e.NOOP_COUNTER_METRIC=new r,e.NOOP_GAUGE_METRIC=new a,e.NOOP_HISTOGRAM_METRIC=new o,e.NOOP_UP_DOWN_COUNTER_METRIC=new i,e.NOOP_OBSERVABLE_COUNTER_METRIC=new l,e.NOOP_OBSERVABLE_GAUGE_METRIC=new u,e.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new d;function c(){return e.NOOP_METER}e.createNoopMeter=c})(ca)),ca}var da={},js;function dh(){return js||(js=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueType=void 0,(function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"})(e.ValueType||(e.ValueType={}))})(da)),da}var fn={},Fs;function gc(){return Fs||(Fs=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.defaultTextMapSetter=fn.defaultTextMapGetter=void 0,fn.defaultTextMapGetter={get(e,t){if(e!=null)return e[t]},keys(e){return e==null?[]:Object.keys(e)}},fn.defaultTextMapSetter={set(e,t,n){e!=null&&(e[t]=n)}}),fn}var dr={},fr={},pr={},hr={},Bs;function fh(){if(Bs)return hr;Bs=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.NoopContextManager=void 0;const e=qi();let t=class{active(){return e.ROOT_CONTEXT}with(r,i,a,...o){return i.call(a,...o)}bind(r,i){return i}enable(){return this}disable(){return this}};return hr.NoopContextManager=t,hr}var qs;function Vi(){if(qs)return pr;qs=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.ContextAPI=void 0;const e=fh(),t=$n(),n=Un(),r="context",i=new e.NoopContextManager;class a{constructor(){}static getInstance(){return this._instance||(this._instance=new a),this._instance}setGlobalContextManager(s){return(0,t.registerGlobal)(r,s,n.DiagAPI.instance())}active(){return this._getContextManager().active()}with(s,l,u,...d){return this._getContextManager().with(s,l,u,...d)}bind(s,l){return this._getContextManager().bind(s,l)}_getContextManager(){return(0,t.getGlobal)(r)||i}disable(){this._getContextManager().disable(),(0,t.unregisterGlobal)(r,n.DiagAPI.instance())}}return pr.ContextAPI=a,pr}var We={},mr={},fa={},pa={},Vs;function yc(){return Vs||(Vs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TraceFlags=void 0,(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(e.TraceFlags||(e.TraceFlags={}))})(pa)),pa}var Zs;function To(){return Zs||(Zs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.INVALID_SPAN_CONTEXT=e.INVALID_TRACEID=e.INVALID_SPANID=void 0;const t=yc();e.INVALID_SPANID="0000000000000000",e.INVALID_TRACEID="00000000000000000000000000000000",e.INVALID_SPAN_CONTEXT={traceId:e.INVALID_TRACEID,spanId:e.INVALID_SPANID,traceFlags:t.TraceFlags.NONE}})(fa)),fa}var $s;function Eo(){if($s)return mr;$s=1,Object.defineProperty(mr,"__esModule",{value:!0}),mr.NonRecordingSpan=void 0;const e=To();let t=class{constructor(r=e.INVALID_SPAN_CONTEXT){this._spanContext=r}spanContext(){return this._spanContext}setAttribute(r,i){return this}setAttributes(r){return this}addEvent(r,i){return this}addLink(r){return this}addLinks(r){return this}setStatus(r){return this}updateName(r){return this}end(r){}isRecording(){return!1}recordException(r,i){}};return mr.NonRecordingSpan=t,mr}var Us;function vc(){if(Us)return We;Us=1,Object.defineProperty(We,"__esModule",{value:!0}),We.getSpanContext=We.setSpanContext=We.deleteSpan=We.setSpan=We.getActiveSpan=We.getSpan=void 0;const e=qi(),t=Eo(),n=Vi(),r=(0,e.createContextKey)("OpenTelemetry Context Key SPAN");function i(d){return d.getValue(r)||void 0}We.getSpan=i;function a(){return i(n.ContextAPI.getInstance().active())}We.getActiveSpan=a;function o(d,c){return d.setValue(r,c)}We.setSpan=o;function s(d){return d.deleteValue(r)}We.deleteSpan=s;function l(d,c){return o(d,new t.NonRecordingSpan(c))}We.setSpanContext=l;function u(d){var c;return(c=i(d))===null||c===void 0?void 0:c.spanContext()}return We.getSpanContext=u,We}var bt={},Hs;function Ao(){if(Hs)return bt;Hs=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.wrapSpanContext=bt.isSpanContextValid=bt.isValidSpanId=bt.isValidTraceId=void 0;const e=To(),t=Eo(),n=/^([0-9a-f]{32})$/i,r=/^[0-9a-f]{16}$/i;function i(l){return n.test(l)&&l!==e.INVALID_TRACEID}bt.isValidTraceId=i;function a(l){return r.test(l)&&l!==e.INVALID_SPANID}bt.isValidSpanId=a;function o(l){return i(l.traceId)&&a(l.spanId)}bt.isSpanContextValid=o;function s(l){return new t.NonRecordingSpan(l)}return bt.wrapSpanContext=s,bt}var Gs;function bc(){if(Gs)return fr;Gs=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.NoopTracer=void 0;const e=Vi(),t=vc(),n=Eo(),r=Ao(),i=e.ContextAPI.getInstance();let a=class{startSpan(l,u,d=i.active()){if(!!u?.root)return new n.NonRecordingSpan;const f=d&&(0,t.getSpanContext)(d);return o(f)&&(0,r.isSpanContextValid)(f)?new n.NonRecordingSpan(f):new n.NonRecordingSpan}startActiveSpan(l,u,d,c){let f,p,g;if(arguments.length<2)return;arguments.length===2?g=u:arguments.length===3?(f=u,g=d):(f=u,p=d,g=c);const y=p??i.active(),k=this.startSpan(l,f,y),v=(0,t.setSpan)(y,k);return i.with(v,g,void 0,k)}};fr.NoopTracer=a;function o(s){return typeof s=="object"&&typeof s.spanId=="string"&&typeof s.traceId=="string"&&typeof s.traceFlags=="number"}return fr}var Ws;function xc(){if(Ws)return dr;Ws=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.ProxyTracer=void 0;const e=bc(),t=new e.NoopTracer;let n=class{constructor(i,a,o,s){this._provider=i,this.name=a,this.version=o,this.options=s}startSpan(i,a,o){return this._getTracer().startSpan(i,a,o)}startActiveSpan(i,a,o,s){const l=this._getTracer();return Reflect.apply(l.startActiveSpan,l,arguments)}_getTracer(){if(this._delegate)return this._delegate;const i=this._provider.getDelegateTracer(this.name,this.version,this.options);return i?(this._delegate=i,this._delegate):t}};return dr.ProxyTracer=n,dr}var gr={},yr={},Js;function ph(){if(Js)return yr;Js=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.NoopTracerProvider=void 0;const e=bc();let t=class{getTracer(r,i,a){return new e.NoopTracer}};return yr.NoopTracerProvider=t,yr}var Ks;function kc(){if(Ks)return gr;Ks=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.ProxyTracerProvider=void 0;const e=xc(),t=ph(),n=new t.NoopTracerProvider;let r=class{getTracer(a,o,s){var l;return(l=this.getDelegateTracer(a,o,s))!==null&&l!==void 0?l:new e.ProxyTracer(this,a,o,s)}getDelegate(){var a;return(a=this._delegate)!==null&&a!==void 0?a:n}setDelegate(a){this._delegate=a}getDelegateTracer(a,o,s){var l;return(l=this._delegate)===null||l===void 0?void 0:l.getTracer(a,o,s)}};return gr.ProxyTracerProvider=r,gr}var ha={},Ys;function hh(){return Ys||(Ys=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SamplingDecision=void 0,(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(e.SamplingDecision||(e.SamplingDecision={}))})(ha)),ha}var ma={},Xs;function mh(){return Xs||(Xs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpanKind=void 0,(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(e.SpanKind||(e.SpanKind={}))})(ma)),ma}var ga={},Qs;function gh(){return Qs||(Qs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpanStatusCode=void 0,(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(e.SpanStatusCode||(e.SpanStatusCode={}))})(ga)),ga}var vr={},br={},pn={},el;function yh(){if(el)return pn;el=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.validateValue=pn.validateKey=void 0;const e="[_0-9a-z-*/]",t=`[a-z]${e}{0,255}`,n=`[a-z0-9]${e}{0,240}@[a-z]${e}{0,13}`,r=new RegExp(`^(?:${t}|${n})$`),i=/^[ -~]{0,255}[!-~]$/,a=/,|=/;function o(l){return r.test(l)}pn.validateKey=o;function s(l){return i.test(l)&&!a.test(l)}return pn.validateValue=s,pn}var tl;function vh(){if(tl)return br;tl=1,Object.defineProperty(br,"__esModule",{value:!0}),br.TraceStateImpl=void 0;const e=yh(),t=32,n=512,r=",",i="=";class a{constructor(s){this._internalState=new Map,s&&this._parse(s)}set(s,l){const u=this._clone();return u._internalState.has(s)&&u._internalState.delete(s),u._internalState.set(s,l),u}unset(s){const l=this._clone();return l._internalState.delete(s),l}get(s){return this._internalState.get(s)}serialize(){return this._keys().reduce((s,l)=>(s.push(l+i+this.get(l)),s),[]).join(r)}_parse(s){s.length>n||(this._internalState=s.split(r).reverse().reduce((l,u)=>{const d=u.trim(),c=d.indexOf(i);if(c!==-1){const f=d.slice(0,c),p=d.slice(c+1,u.length);(0,e.validateKey)(f)&&(0,e.validateValue)(p)&&l.set(f,p)}return l},new Map),this._internalState.size>t&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,t))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const s=new a;return s._internalState=new Map(this._internalState),s}}return br.TraceStateImpl=a,br}var nl;function bh(){if(nl)return vr;nl=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.createTraceState=void 0;const e=vh();function t(n){return new e.TraceStateImpl(n)}return vr.createTraceState=t,vr}var xr={},rl;function xh(){if(rl)return xr;rl=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.context=void 0;const e=Vi();return xr.context=e.ContextAPI.getInstance(),xr}var kr={},il;function kh(){if(il)return kr;il=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.diag=void 0;const e=Un();return kr.diag=e.DiagAPI.instance(),kr}var wr={},_r={},hn={},al;function wh(){if(al)return hn;al=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.NOOP_METER_PROVIDER=hn.NoopMeterProvider=void 0;const e=mc();let t=class{getMeter(r,i,a){return e.NOOP_METER}};return hn.NoopMeterProvider=t,hn.NOOP_METER_PROVIDER=new t,hn}var ol;function _h(){if(ol)return _r;ol=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.MetricsAPI=void 0;const e=wh(),t=$n(),n=Un(),r="metrics";class i{constructor(){}static getInstance(){return this._instance||(this._instance=new i),this._instance}setGlobalMeterProvider(o){return(0,t.registerGlobal)(r,o,n.DiagAPI.instance())}getMeterProvider(){return(0,t.getGlobal)(r)||e.NOOP_METER_PROVIDER}getMeter(o,s,l){return this.getMeterProvider().getMeter(o,s,l)}disable(){(0,t.unregisterGlobal)(r,n.DiagAPI.instance())}}return _r.MetricsAPI=i,_r}var sl;function Sh(){if(sl)return wr;sl=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.metrics=void 0;const e=_h();return wr.metrics=e.MetricsAPI.getInstance(),wr}var Sr={},Cr={},Tr={},ll;function Ch(){if(ll)return Tr;ll=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.NoopTextMapPropagator=void 0;let e=class{inject(n,r){}extract(n,r){return n}fields(){return[]}};return Tr.NoopTextMapPropagator=e,Tr}var xt={},ul;function Th(){if(ul)return xt;ul=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.deleteBaggage=xt.setBaggage=xt.getActiveBaggage=xt.getBaggage=void 0;const e=Vi(),n=(0,qi().createContextKey)("OpenTelemetry Baggage Key");function r(s){return s.getValue(n)||void 0}xt.getBaggage=r;function i(){return r(e.ContextAPI.getInstance().active())}xt.getActiveBaggage=i;function a(s,l){return s.setValue(n,l)}xt.setBaggage=a;function o(s){return s.deleteValue(n)}return xt.deleteBaggage=o,xt}var cl;function Eh(){if(cl)return Cr;cl=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.PropagationAPI=void 0;const e=$n(),t=Ch(),n=gc(),r=Th(),i=hc(),a=Un(),o="propagation",s=new t.NoopTextMapPropagator;class l{constructor(){this.createBaggage=i.createBaggage,this.getBaggage=r.getBaggage,this.getActiveBaggage=r.getActiveBaggage,this.setBaggage=r.setBaggage,this.deleteBaggage=r.deleteBaggage}static getInstance(){return this._instance||(this._instance=new l),this._instance}setGlobalPropagator(d){return(0,e.registerGlobal)(o,d,a.DiagAPI.instance())}inject(d,c,f=n.defaultTextMapSetter){return this._getGlobalPropagator().inject(d,c,f)}extract(d,c,f=n.defaultTextMapGetter){return this._getGlobalPropagator().extract(d,c,f)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,e.unregisterGlobal)(o,a.DiagAPI.instance())}_getGlobalPropagator(){return(0,e.getGlobal)(o)||s}}return Cr.PropagationAPI=l,Cr}var dl;function Ah(){if(dl)return Sr;dl=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.propagation=void 0;const e=Eh();return Sr.propagation=e.PropagationAPI.getInstance(),Sr}var Er={},Ar={},fl;function Rh(){if(fl)return Ar;fl=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.TraceAPI=void 0;const e=$n(),t=kc(),n=Ao(),r=vc(),i=Un(),a="trace";class o{constructor(){this._proxyTracerProvider=new t.ProxyTracerProvider,this.wrapSpanContext=n.wrapSpanContext,this.isSpanContextValid=n.isSpanContextValid,this.deleteSpan=r.deleteSpan,this.getSpan=r.getSpan,this.getActiveSpan=r.getActiveSpan,this.getSpanContext=r.getSpanContext,this.setSpan=r.setSpan,this.setSpanContext=r.setSpanContext}static getInstance(){return this._instance||(this._instance=new o),this._instance}setGlobalTracerProvider(l){const u=(0,e.registerGlobal)(a,this._proxyTracerProvider,i.DiagAPI.instance());return u&&this._proxyTracerProvider.setDelegate(l),u}getTracerProvider(){return(0,e.getGlobal)(a)||this._proxyTracerProvider}getTracer(l,u){return this.getTracerProvider().getTracer(l,u)}disable(){(0,e.unregisterGlobal)(a,i.DiagAPI.instance()),this._proxyTracerProvider=new t.ProxyTracerProvider}}return Ar.TraceAPI=o,Ar}var pl;function Nh(){if(pl)return Er;pl=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.trace=void 0;const e=Rh();return Er.trace=e.TraceAPI.getInstance(),Er}var hl;function Ih(){return hl||(hl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.trace=e.propagation=e.metrics=e.diag=e.context=e.INVALID_SPAN_CONTEXT=e.INVALID_TRACEID=e.INVALID_SPANID=e.isValidSpanId=e.isValidTraceId=e.isSpanContextValid=e.createTraceState=e.TraceFlags=e.SpanStatusCode=e.SpanKind=e.SamplingDecision=e.ProxyTracerProvider=e.ProxyTracer=e.defaultTextMapSetter=e.defaultTextMapGetter=e.ValueType=e.createNoopMeter=e.DiagLogLevel=e.DiagConsoleLogger=e.ROOT_CONTEXT=e.createContextKey=e.baggageEntryMetadataFromString=void 0;var t=hc();Object.defineProperty(e,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return t.baggageEntryMetadataFromString}});var n=qi();Object.defineProperty(e,"createContextKey",{enumerable:!0,get:function(){return n.createContextKey}}),Object.defineProperty(e,"ROOT_CONTEXT",{enumerable:!0,get:function(){return n.ROOT_CONTEXT}});var r=ch();Object.defineProperty(e,"DiagConsoleLogger",{enumerable:!0,get:function(){return r.DiagConsoleLogger}});var i=Co();Object.defineProperty(e,"DiagLogLevel",{enumerable:!0,get:function(){return i.DiagLogLevel}});var a=mc();Object.defineProperty(e,"createNoopMeter",{enumerable:!0,get:function(){return a.createNoopMeter}});var o=dh();Object.defineProperty(e,"ValueType",{enumerable:!0,get:function(){return o.ValueType}});var s=gc();Object.defineProperty(e,"defaultTextMapGetter",{enumerable:!0,get:function(){return s.defaultTextMapGetter}}),Object.defineProperty(e,"defaultTextMapSetter",{enumerable:!0,get:function(){return s.defaultTextMapSetter}});var l=xc();Object.defineProperty(e,"ProxyTracer",{enumerable:!0,get:function(){return l.ProxyTracer}});var u=kc();Object.defineProperty(e,"ProxyTracerProvider",{enumerable:!0,get:function(){return u.ProxyTracerProvider}});var d=hh();Object.defineProperty(e,"SamplingDecision",{enumerable:!0,get:function(){return d.SamplingDecision}});var c=mh();Object.defineProperty(e,"SpanKind",{enumerable:!0,get:function(){return c.SpanKind}});var f=gh();Object.defineProperty(e,"SpanStatusCode",{enumerable:!0,get:function(){return f.SpanStatusCode}});var p=yc();Object.defineProperty(e,"TraceFlags",{enumerable:!0,get:function(){return p.TraceFlags}});var g=bh();Object.defineProperty(e,"createTraceState",{enumerable:!0,get:function(){return g.createTraceState}});var y=Ao();Object.defineProperty(e,"isSpanContextValid",{enumerable:!0,get:function(){return y.isSpanContextValid}}),Object.defineProperty(e,"isValidTraceId",{enumerable:!0,get:function(){return y.isValidTraceId}}),Object.defineProperty(e,"isValidSpanId",{enumerable:!0,get:function(){return y.isValidSpanId}});var k=To();Object.defineProperty(e,"INVALID_SPANID",{enumerable:!0,get:function(){return k.INVALID_SPANID}}),Object.defineProperty(e,"INVALID_TRACEID",{enumerable:!0,get:function(){return k.INVALID_TRACEID}}),Object.defineProperty(e,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return k.INVALID_SPAN_CONTEXT}});const v=xh();Object.defineProperty(e,"context",{enumerable:!0,get:function(){return v.context}});const T=kh();Object.defineProperty(e,"diag",{enumerable:!0,get:function(){return T.diag}});const _=Sh();Object.defineProperty(e,"metrics",{enumerable:!0,get:function(){return _.metrics}});const P=Ah();Object.defineProperty(e,"propagation",{enumerable:!0,get:function(){return P.propagation}});const O=Nh();Object.defineProperty(e,"trace",{enumerable:!0,get:function(){return O.trace}}),e.default={context:v.context,diag:T.diag,metrics:_.metrics,propagation:P.propagation,trace:O.trace}})(la)),la}var FE=Ih(),ml;(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"})(ml||(ml={}));var wc=(function(){function e(){}return e.prototype.emit=function(t){},e})(),Ph=new wc,Oh=(function(){function e(){}return e.prototype.getLogger=function(t,n,r){return new wc},e})(),_c=new Oh,Lh=(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):Ph},e})(),gl=(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 Lh(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:_c},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})(),Dh=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},ii=Symbol.for("io.opentelemetry.js.api.logs"),Rr=Dh;function zh(e,t,n){return function(r){return r===e?t:n}}var yl=1,Mh=(function(){function e(){this._proxyLoggerProvider=new gl}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(t){return Rr[ii]?this.getLoggerProvider():(Rr[ii]=zh(yl,t,_c),this._proxyLoggerProvider.setDelegate(t),t)},e.prototype.getLoggerProvider=function(){var t,n;return(n=(t=Rr[ii])===null||t===void 0?void 0:t.call(Rr,yl))!==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 Rr[ii],this._proxyLoggerProvider=new gl},e})(),BE=Mh.getInstance(),xe;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(xe||(xe={}));var vl;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(vl||(vl={}));const ee=xe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Jt=e=>{switch(typeof e){case"undefined":return ee.undefined;case"string":return ee.string;case"number":return Number.isNaN(e)?ee.nan:ee.number;case"boolean":return ee.boolean;case"function":return ee.function;case"bigint":return ee.bigint;case"symbol":return ee.symbol;case"object":return Array.isArray(e)?ee.array:e===null?ee.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ee.promise:typeof Map<"u"&&e instanceof Map?ee.map:typeof Set<"u"&&e instanceof Set?ee.set:typeof Date<"u"&&e instanceof Date?ee.date:ee.object;default:return ee.unknown}},B=xe.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 Mt 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(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,l=0;for(;l<o.path.length;){const u=o.path[l];l===o.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(o))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return i(this),r}static assert(t){if(!(t instanceof Mt))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,xe.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 a=i.path[0];n[a]=n[a]||[],n[a].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Mt.create=e=>new Mt(e);const Za=(e,t)=>{let n;switch(e.code){case B.invalid_type:e.received===ee.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case B.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,xe.jsonStringifyReplacer)}`;break;case B.unrecognized_keys:n=`Unrecognized key(s) in object: ${xe.joinValues(e.keys,", ")}`;break;case B.invalid_union:n="Invalid input";break;case B.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${xe.joinValues(e.options)}`;break;case B.invalid_enum_value:n=`Invalid enum value. Expected ${xe.joinValues(e.options)}, received '${e.received}'`;break;case B.invalid_arguments:n="Invalid function arguments";break;case B.invalid_return_type:n="Invalid function return type";break;case B.invalid_date:n="Invalid date";break;case B.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}"`:xe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case B.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 B.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 B.custom:n="Invalid input";break;case B.invalid_intersection_types:n="Intersection results could not be merged";break;case B.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case B.not_finite:n="Number must be finite";break;default:n=t.defaultError,xe.assertNever(e)}return{message:n}};let jh=Za;function Fh(){return jh}const Bh=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)s=u(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function W(e,t){const n=Fh(),r=Bh({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Za?void 0:Za].filter(i=>!!i)});e.common.issues.push(r)}class Ke{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 le;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 a=await i.key,o=await i.value;r.push({key:a,value:o})}return Ke.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return le;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:t.value,value:r}}}const le=Object.freeze({status:"aborted"}),Dr=e=>({status:"dirty",value:e}),pt=e=>({status:"valid",value:e}),bl=e=>e.status==="aborted",xl=e=>e.status==="dirty",zn=e=>e.status==="valid",_i=e=>typeof Promise<"u"&&e instanceof Promise;var te;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(te||(te={}));class It{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 kl=(e,t)=>{if(zn(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 Mt(e.common.issues);return this._error=n,this._error}}};function pe(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:(o,s)=>{const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??r??s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:l??n??s.defaultError}},description:i}}let ye=class{get description(){return this._def.description}_getType(t){return Jt(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Jt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ke,ctx:{common:t.parent.common,data:t.data,parsedType:Jt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(_i(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:Jt(t)},i=this._parseSync({data:t,path:r.path,parent:r});return kl(r,i)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Jt(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return zn(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=>zn(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:Jt(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(_i(i)?i:Promise.resolve(i));return kl(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const o=t(i),s=()=>a.addIssue({code:B.custom,...r(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!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 jn({schema:this,typeName:se.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 Kt.create(this,this._def)}nullable(){return Fn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Mn.create(this)}promise(){return Ai.create(this,this._def)}or(t){return Ti.create([this,t],this._def)}and(t){return Ei.create(this,t,this._def)}transform(t){return new jn({...pe(this._def),schema:this,typeName:se.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Qa({...pe(this._def),innerType:this,defaultValue:n,typeName:se.ZodDefault})}brand(){return new cm({typeName:se.ZodBranded,type:this,...pe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new eo({...pe(this._def),innerType:this,catchValue:n,typeName:se.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return No.create(this,t)}readonly(){return to.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};const qh=/^c[^\s-]{8,}$/i,Vh=/^[0-9a-z]+$/,Zh=/^[0-9A-HJKMNP-TV-Z]{26}$/i,$h=/^[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,Uh=/^[a-z0-9_-]{21}$/i,Hh=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Gh=/^[-+]?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)?)??$/,Wh=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Jh="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ya;const Kh=/^(?:(?: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])$/,Yh=/^(?:(?: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])$/,Xh=/^(([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]))$/,Qh=/^(([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])$/,em=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,tm=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Sc="((\\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])))",nm=new RegExp(`^${Sc}$`);function Cc(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 rm(e){return new RegExp(`^${Cc(e)}$`)}function im(e){let t=`${Sc}T${Cc(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 am(e,t){return!!((t==="v4"||!t)&&Kh.test(e)||(t==="v6"||!t)&&Xh.test(e))}function om(e,t){if(!Hh.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 sm(e,t){return!!((t==="v4"||!t)&&Yh.test(e)||(t==="v6"||!t)&&Qh.test(e))}let Si=class zr extends ye{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ee.string){const a=this._getOrReturnCtx(t);return W(a,{code:B.invalid_type,expected:ee.string,received:a.parsedType}),le}const r=new Ke;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),W(i,{code:B.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),W(i,{code:B.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,s=t.data.length<a.value;(o||s)&&(i=this._getOrReturnCtx(t,i),o?W(i,{code:B.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&W(i,{code:B.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")Wh.test(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{validation:"email",code:B.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")ya||(ya=new RegExp(Jh,"u")),ya.test(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{validation:"emoji",code:B.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")$h.test(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{validation:"uuid",code:B.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")Uh.test(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{validation:"nanoid",code:B.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")qh.test(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{validation:"cuid",code:B.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")Vh.test(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{validation:"cuid2",code:B.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")Zh.test(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{validation:"ulid",code:B.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),W(i,{validation:"url",code:B.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{validation:"regex",code:B.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),W(i,{code:B.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),W(i,{code:B.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),W(i,{code:B.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?im(a).test(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{code:B.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?nm.test(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{code:B.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?rm(a).test(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{code:B.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?Gh.test(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{validation:"duration",code:B.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?am(t.data,a.version)||(i=this._getOrReturnCtx(t,i),W(i,{validation:"ip",code:B.invalid_string,message:a.message}),r.dirty()):a.kind==="jwt"?om(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),W(i,{validation:"jwt",code:B.invalid_string,message:a.message}),r.dirty()):a.kind==="cidr"?sm(t.data,a.version)||(i=this._getOrReturnCtx(t,i),W(i,{validation:"cidr",code:B.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?em.test(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{validation:"base64",code:B.invalid_string,message:a.message}),r.dirty()):a.kind==="base64url"?tm.test(t.data)||(i=this._getOrReturnCtx(t,i),W(i,{validation:"base64url",code:B.invalid_string,message:a.message}),r.dirty()):xe.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:B.invalid_string,...te.errToObj(r)})}_addCheck(t){return new zr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...te.errToObj(t)})}url(t){return this._addCheck({kind:"url",...te.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...te.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...te.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...te.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...te.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...te.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...te.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...te.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...te.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...te.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...te.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...te.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,...te.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,...te.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...te.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...te.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...te.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...te.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...te.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...te.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...te.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...te.errToObj(n)})}nonempty(t){return this.min(1,te.errToObj(t))}trim(){return new zr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new zr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new zr({...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}};Si.create=e=>new Si({checks:[],typeName:se.ZodString,coerce:e?.coerce??!1,...pe(e)});function lm(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),o=Number.parseInt(t.toFixed(i).replace(".",""));return a%o/10**i}let $a=class Ua extends ye{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)!==ee.number){const a=this._getOrReturnCtx(t);return W(a,{code:B.invalid_type,expected:ee.number,received:a.parsedType}),le}let r;const i=new Ke;for(const a of this._def.checks)a.kind==="int"?xe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:B.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?lm(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:B.not_finite,message:a.message}),i.dirty()):xe.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,te.toString(n))}gt(t,n){return this.setLimit("min",t,!1,te.toString(n))}lte(t,n){return this.setLimit("max",t,!0,te.toString(n))}lt(t,n){return this.setLimit("max",t,!1,te.toString(n))}setLimit(t,n,r,i){return new Ua({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:te.toString(i)}]})}_addCheck(t){return new Ua({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:te.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:te.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:te.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:te.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:te.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:te.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"&&xe.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)}};$a.create=e=>new $a({checks:[],typeName:se.ZodNumber,coerce:e?.coerce||!1,...pe(e)});class Br extends ye{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)!==ee.bigint)return this._getInvalidInput(t);let r;const i=new Ke;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):xe.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return W(n,{code:B.invalid_type,expected:ee.bigint,received:n.parsedType}),le}gte(t,n){return this.setLimit("min",t,!0,te.toString(n))}gt(t,n){return this.setLimit("min",t,!1,te.toString(n))}lte(t,n){return this.setLimit("max",t,!0,te.toString(n))}lt(t,n){return this.setLimit("max",t,!1,te.toString(n))}setLimit(t,n,r,i){return new Br({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:te.toString(i)}]})}_addCheck(t){return new Br({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:te.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:te.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}}Br.create=e=>new Br({checks:[],typeName:se.ZodBigInt,coerce:e?.coerce??!1,...pe(e)});let Ha=class extends ye{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ee.boolean){const r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:ee.boolean,received:r.parsedType}),le}return pt(t.data)}};Ha.create=e=>new Ha({typeName:se.ZodBoolean,coerce:e?.coerce||!1,...pe(e)});class Ci extends ye{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ee.date){const a=this._getOrReturnCtx(t);return W(a,{code:B.invalid_type,expected:ee.date,received:a.parsedType}),le}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return W(a,{code:B.invalid_date}),le}const r=new Ke;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),W(i,{code:B.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),W(i,{code:B.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):xe.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ci({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:te.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:te.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}}Ci.create=e=>new Ci({checks:[],coerce:e?.coerce||!1,typeName:se.ZodDate,...pe(e)});class wl extends ye{_parse(t){if(this._getType(t)!==ee.symbol){const r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:ee.symbol,received:r.parsedType}),le}return pt(t.data)}}wl.create=e=>new wl({typeName:se.ZodSymbol,...pe(e)});class _l extends ye{_parse(t){if(this._getType(t)!==ee.undefined){const r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:ee.undefined,received:r.parsedType}),le}return pt(t.data)}}_l.create=e=>new _l({typeName:se.ZodUndefined,...pe(e)});class Ga extends ye{_parse(t){if(this._getType(t)!==ee.null){const r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:ee.null,received:r.parsedType}),le}return pt(t.data)}}Ga.create=e=>new Ga({typeName:se.ZodNull,...pe(e)});let Sl=class extends ye{constructor(){super(...arguments),this._any=!0}_parse(t){return pt(t.data)}};Sl.create=e=>new Sl({typeName:se.ZodAny,...pe(e)});let Wa=class extends ye{constructor(){super(...arguments),this._unknown=!0}_parse(t){return pt(t.data)}};Wa.create=e=>new Wa({typeName:se.ZodUnknown,...pe(e)});let Yt=class extends ye{_parse(t){const n=this._getOrReturnCtx(t);return W(n,{code:B.invalid_type,expected:ee.never,received:n.parsedType}),le}};Yt.create=e=>new Yt({typeName:se.ZodNever,...pe(e)});class Cl extends ye{_parse(t){if(this._getType(t)!==ee.undefined){const r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:ee.void,received:r.parsedType}),le}return pt(t.data)}}Cl.create=e=>new Cl({typeName:se.ZodVoid,...pe(e)});let Mn=class xi extends ye{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==ee.array)return W(n,{code:B.invalid_type,expected:ee.array,received:n.parsedType}),le;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(o||s)&&(W(n,{code:o?B.too_big:B.too_small,minimum:s?i.exactLength.value:void 0,maximum:o?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&&(W(n,{code:B.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&&(W(n,{code:B.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((o,s)=>i.type._parseAsync(new It(n,o,n.path,s)))).then(o=>Ke.mergeArray(r,o));const a=[...n.data].map((o,s)=>i.type._parseSync(new It(n,o,n.path,s)));return Ke.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new xi({...this._def,minLength:{value:t,message:te.toString(n)}})}max(t,n){return new xi({...this._def,maxLength:{value:t,message:te.toString(n)}})}length(t,n){return new xi({...this._def,exactLength:{value:t,message:te.toString(n)}})}nonempty(t){return this.min(1,t)}};Mn.create=(e,t)=>new Mn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:se.ZodArray,...pe(t)});function Rn(e){if(e instanceof jt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Kt.create(Rn(r))}return new jt({...e._def,shape:()=>t})}else return e instanceof Mn?new Mn({...e._def,type:Rn(e.element)}):e instanceof Kt?Kt.create(Rn(e.unwrap())):e instanceof Fn?Fn.create(Rn(e.unwrap())):e instanceof bn?bn.create(e.items.map(t=>Rn(t))):e}let jt=class kt extends ye{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=xe.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==ee.object){const u=this._getOrReturnCtx(t);return W(u,{code:B.invalid_type,expected:ee.object,received:u.parsedType}),le}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof Yt&&this._def.unknownKeys==="strip"))for(const u in i.data)o.includes(u)||s.push(u);const l=[];for(const u of o){const d=a[u],c=i.data[u];l.push({key:{status:"valid",value:u},value:d._parse(new It(i,c,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof Yt){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of s)l.push({key:{status:"valid",value:d},value:{status:"valid",value:i.data[d]}});else if(u==="strict")s.length>0&&(W(i,{code:B.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 d of s){const c=i.data[d];l.push({key:{status:"valid",value:d},value:u._parse(new It(i,c,i.path,d)),alwaysSet:d in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of l){const c=await d.key,f=await d.value;u.push({key:c,value:f,alwaysSet:d.alwaysSet})}return u}).then(u=>Ke.mergeObjectSync(r,u)):Ke.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return te.errToObj,new kt({...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:te.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new kt({...this._def,unknownKeys:"strip"})}passthrough(){return new kt({...this._def,unknownKeys:"passthrough"})}extend(t){return new kt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new kt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:se.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new kt({...this._def,catchall:t})}pick(t){const n={};for(const r of xe.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new kt({...this._def,shape:()=>n})}omit(t){const n={};for(const r of xe.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new kt({...this._def,shape:()=>n})}deepPartial(){return Rn(this)}partial(t){const n={};for(const r of xe.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new kt({...this._def,shape:()=>n})}required(t){const n={};for(const r of xe.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Kt;)a=a._def.innerType;n[r]=a}return new kt({...this._def,shape:()=>n})}keyof(){return Tc(xe.objectKeys(this.shape))}};jt.create=(e,t)=>new jt({shape:()=>e,unknownKeys:"strip",catchall:Yt.create(),typeName:se.ZodObject,...pe(t)});jt.strictCreate=(e,t)=>new jt({shape:()=>e,unknownKeys:"strict",catchall:Yt.create(),typeName:se.ZodObject,...pe(t)});jt.lazycreate=(e,t)=>new jt({shape:e,unknownKeys:"strip",catchall:Yt.create(),typeName:se.ZodObject,...pe(t)});let Ti=class extends ye{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(s=>new Mt(s.ctx.common.issues));return W(n,{code:B.invalid_union,unionErrors:o}),le}if(n.common.async)return Promise.all(r.map(async a=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=l._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!a&&(a={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(l=>new Mt(l));return W(n,{code:B.invalid_union,unionErrors:s}),le}}get options(){return this._def.options}};Ti.create=(e,t)=>new Ti({options:e,typeName:se.ZodUnion,...pe(t)});function Ja(e,t){const n=Jt(e),r=Jt(t);if(e===t)return{valid:!0,data:e};if(n===ee.object&&r===ee.object){const i=xe.objectKeys(t),a=xe.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const l=Ja(e[s],t[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(n===ee.array&&r===ee.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const o=e[a],s=t[a],l=Ja(o,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===ee.date&&r===ee.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}let Ei=class extends ye{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,o)=>{if(bl(a)||bl(o))return le;const s=Ja(a.value,o.value);return s.valid?((xl(a)||xl(o))&&n.dirty(),{status:n.value,value:s.data}):(W(r,{code:B.invalid_intersection_types}),le)};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(([a,o])=>i(a,o)):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}))}};Ei.create=(e,t,n)=>new Ei({left:e,right:t,typeName:se.ZodIntersection,...pe(n)});class bn extends ye{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.array)return W(r,{code:B.invalid_type,expected:ee.array,received:r.parsedType}),le;if(r.data.length<this._def.items.length)return W(r,{code:B.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),le;!this._def.rest&&r.data.length>this._def.items.length&&(W(r,{code:B.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((o,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new It(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>Ke.mergeArray(n,o)):Ke.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new bn({...this._def,rest:t})}}bn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new bn({items:e,typeName:se.ZodTuple,rest:null,...pe(t)})};let um=class Ka extends ye{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!==ee.object)return W(r,{code:B.invalid_type,expected:ee.object,received:r.parsedType}),le;const i=[],a=this._def.keyType,o=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new It(r,s,r.path,s)),value:o._parse(new It(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Ke.mergeObjectAsync(n,i):Ke.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ye?new Ka({keyType:t,valueType:n,typeName:se.ZodRecord,...pe(r)}):new Ka({keyType:Si.create(),valueType:t,typeName:se.ZodRecord,...pe(n)})}};class Tl extends ye{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!==ee.map)return W(r,{code:B.invalid_type,expected:ee.map,received:r.parsedType}),le;const i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,l],u)=>({key:i._parse(new It(r,s,r.path,[u,"key"])),value:a._parse(new It(r,l,r.path,[u,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of o){const u=await l.key,d=await l.value;if(u.status==="aborted"||d.status==="aborted")return le;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),s.set(u.value,d.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of o){const u=l.key,d=l.value;if(u.status==="aborted"||d.status==="aborted")return le;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),s.set(u.value,d.value)}return{status:n.value,value:s}}}}Tl.create=(e,t,n)=>new Tl({valueType:t,keyType:e,typeName:se.ZodMap,...pe(n)});class qr extends ye{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.set)return W(r,{code:B.invalid_type,expected:ee.set,received:r.parsedType}),le;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(W(r,{code:B.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&&(W(r,{code:B.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function o(l){const u=new Set;for(const d of l){if(d.status==="aborted")return le;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const s=[...r.data.values()].map((l,u)=>a._parse(new It(r,l,r.path,u)));return r.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(t,n){return new qr({...this._def,minSize:{value:t,message:te.toString(n)}})}max(t,n){return new qr({...this._def,maxSize:{value:t,message:te.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}qr.create=(e,t)=>new qr({valueType:e,minSize:null,maxSize:null,typeName:se.ZodSet,...pe(t)});class El extends ye{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})}}El.create=(e,t)=>new El({getter:e,typeName:se.ZodLazy,...pe(t)});let Ya=class extends ye{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return W(n,{received:n.data,code:B.invalid_literal,expected:this._def.value}),le}return{status:"valid",value:t.data}}get value(){return this._def.value}};Ya.create=(e,t)=>new Ya({value:e,typeName:se.ZodLiteral,...pe(t)});function Tc(e,t){return new Ro({values:e,typeName:se.ZodEnum,...pe(t)})}let Ro=class Xa extends ye{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return W(n,{expected:xe.joinValues(r),received:n.parsedType,code:B.invalid_type}),le}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 W(n,{received:n.data,code:B.invalid_enum_value,options:r}),le}return pt(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 Xa.create(t,{...this._def,...n})}exclude(t,n=this._def){return Xa.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};Ro.create=Tc;class Al extends ye{_parse(t){const n=xe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ee.string&&r.parsedType!==ee.number){const i=xe.objectValues(n);return W(r,{expected:xe.joinValues(i),received:r.parsedType,code:B.invalid_type}),le}if(this._cache||(this._cache=new Set(xe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=xe.objectValues(n);return W(r,{received:r.data,code:B.invalid_enum_value,options:i}),le}return pt(t.data)}get enum(){return this._def.values}}Al.create=(e,t)=>new Al({values:e,typeName:se.ZodNativeEnum,...pe(t)});class Ai extends ye{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.promise&&n.common.async===!1)return W(n,{code:B.invalid_type,expected:ee.promise,received:n.parsedType}),le;const r=n.parsedType===ee.promise?n.data:Promise.resolve(n.data);return pt(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ai.create=(e,t)=>new Ai({type:e,typeName:se.ZodPromise,...pe(t)});class jn extends ye{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:o=>{W(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(r.data,a);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return le;const l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?le:l.status==="dirty"||n.value==="dirty"?Dr(l.value):l});{if(n.value==="aborted")return le;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?le:s.status==="dirty"||n.value==="dirty"?Dr(s.value):s}}if(i.type==="refinement"){const o=s=>{const l=i.refinement(s,a);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"?le:(s.status==="dirty"&&n.dirty(),o(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"?le:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!zn(o))return le;const s=i.transform(o.value,a);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(o=>zn(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):le);xe.assertNever(i)}}jn.create=(e,t,n)=>new jn({schema:e,typeName:se.ZodEffects,effect:t,...pe(n)});jn.createWithPreprocess=(e,t,n)=>new jn({schema:t,effect:{type:"preprocess",transform:e},typeName:se.ZodEffects,...pe(n)});let Kt=class extends ye{_parse(t){return this._getType(t)===ee.undefined?pt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Kt.create=(e,t)=>new Kt({innerType:e,typeName:se.ZodOptional,...pe(t)});let Fn=class extends ye{_parse(t){return this._getType(t)===ee.null?pt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Fn.create=(e,t)=>new Fn({innerType:e,typeName:se.ZodNullable,...pe(t)});let Qa=class extends ye{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ee.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Qa.create=(e,t)=>new Qa({innerType:e,typeName:se.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...pe(t)});let eo=class extends ye{_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 _i(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Mt(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Mt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};eo.create=(e,t)=>new eo({innerType:e,typeName:se.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...pe(t)});class Rl extends ye{_parse(t){if(this._getType(t)!==ee.nan){const r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:ee.nan,received:r.parsedType}),le}return{status:"valid",value:t.data}}}Rl.create=e=>new Rl({typeName:se.ZodNaN,...pe(e)});class cm extends ye{_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 No extends ye{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?le:a.status==="dirty"?(n.dirty(),Dr(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?le: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 No({in:t,out:n,typeName:se.ZodPipeline})}}let to=class extends ye{_parse(t){const n=this._def.innerType._parse(t),r=i=>(zn(i)&&(i.value=Object.freeze(i.value)),i);return _i(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}};to.create=(e,t)=>new to({innerType:e,typeName:se.ZodReadonly,...pe(t)});var se;(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"})(se||(se={}));const eA=Si.create,tA=$a.create,nA=Ha.create,rA=Ga.create,iA=Wa.create;Yt.create;const aA=Mn.create,oA=jt.create,sA=Ti.create;Ei.create;bn.create;const lA=um.create,uA=Ya.create;Ro.create;Ai.create;Kt.create;Fn.create;const Nl=e=>{let t;const n=new Set,r=(u,d)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const f=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(p=>p(t,f))}},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},dm=(e=>e?Nl(e):Nl),fm=e=>e;function pm(e,t=fm){const n=V.useSyncExternalStore(e.subscribe,V.useCallback(()=>t(e.getState()),[e,t]),V.useCallback(()=>t(e.getInitialState()),[e,t]));return V.useDebugValue(n),n}const Il=e=>{const t=dm(e),n=r=>pm(t,r);return Object.assign(n,t),n},cA=(e=>e?Il(e):Il);function L(e,t,n){function r(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:o,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);const u=o.prototype,d=Object.keys(u);for(let c=0;c<d.length;c++){const f=d[c];f in s||(s[f]=u[f].bind(s))}}const i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(s){var l;const u=n?.Parent?new a:this;r(u,s),(l=u._zod).deferred??(l.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}class On extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ec extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Ac={};function Xt(e){return Ac}function hm(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 no(e,t){return typeof t=="bigint"?t.toString():t}function Zi(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Io(e){return e==null}function Po(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function mm(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 a=n>i?n:i,o=Number.parseInt(e.toFixed(a).replace(".","")),s=Number.parseInt(t.toFixed(a).replace(".",""));return o%s/10**a}const Pl=Symbol("evaluating");function Se(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Pl)return r===void 0&&(r=Pl,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function wn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function _n(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Ol(e){return JSON.stringify(e)}function gm(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Rc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Vr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ym=Zi(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Bn(e){if(Vr(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Vr(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Nc(e){return Bn(e)?{...e}:Array.isArray(e)?[...e]:e}const vm=new Set(["string","number","symbol"]);function qn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function nn(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function ie(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 bm(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const xm={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 km(e,t){const n=e._zod.def,r=_n(e._zod.def,{get shape(){const i={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=n.shape[a])}return wn(this,"shape",i),i},checks:[]});return nn(e,r)}function wm(e,t){const n=e._zod.def,r=_n(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a]}return wn(this,"shape",i),i},checks:[]});return nn(e,r)}function _m(e,t){if(!Bn(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=_n(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return wn(this,"shape",a),a},checks:[]});return nn(e,i)}function Sm(e,t){if(!Bn(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 wn(this,"shape",r),r},checks:e._zod.def.checks};return nn(e,n)}function Cm(e,t){const n=_n(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return wn(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return nn(e,n)}function Tm(e,t,n){const r=_n(t._zod.def,{get shape(){const i=t._zod.def.shape,a={...i};if(n)for(const o in n){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(a[o]=e?new e({type:"optional",innerType:i[o]}):i[o])}else for(const o in i)a[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return wn(this,"shape",a),a},checks:[]});return nn(t,r)}function Em(e,t,n){const r=_n(t._zod.def,{get shape(){const i=t._zod.def.shape,a={...i};if(n)for(const o in n){if(!(o in a))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(a[o]=new e({type:"nonoptional",innerType:i[o]}))}else for(const o in i)a[o]=new e({type:"nonoptional",innerType:i[o]});return wn(this,"shape",a),a},checks:[]});return nn(t,r)}function In(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 Pn(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function ai(e){return typeof e=="string"?e:e?.message}function Qt(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=ai(e.inst?._zod.def?.error?.(e))??ai(t?.error?.(e))??ai(n.customError?.(e))??ai(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Oo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Zr(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Ic=(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,no,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Pc=L("$ZodError",Ic),Oc=L("$ZodError",Ic,{Parent:Error});function Am(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 Rm(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(o=>r({issues:o}));else if(a.code==="invalid_key")r({issues:a.issues});else if(a.code==="invalid_element")r({issues:a.issues});else if(a.path.length===0)n._errors.push(t(a));else{let o=n,s=0;for(;s<a.path.length;){const l=a.path[s];s===a.path.length-1?(o[l]=o[l]||{_errors:[]},o[l]._errors.push(t(a))):o[l]=o[l]||{_errors:[]},o=o[l],s++}}};return r(e),n}const Lo=e=>(t,n,r,i)=>{const a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new On;if(o.issues.length){const s=new(i?.Err??e)(o.issues.map(l=>Qt(l,a,Xt())));throw Rc(s,i?.callee),s}return o.value},Do=e=>async(t,n,r,i)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){const s=new(i?.Err??e)(o.issues.map(l=>Qt(l,a,Xt())));throw Rc(s,i?.callee),s}return o.value},$i=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new On;return a.issues.length?{success:!1,error:new(e??Pc)(a.issues.map(o=>Qt(o,i,Xt())))}:{success:!0,data:a.value}},Nm=$i(Oc),Ui=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(o=>Qt(o,i,Xt())))}:{success:!0,data:a.value}},Im=Ui(Oc),Pm=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Lo(e)(t,n,i)},Om=e=>(t,n,r)=>Lo(e)(t,n,r),Lm=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Do(e)(t,n,i)},Dm=e=>async(t,n,r)=>Do(e)(t,n,r),zm=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return $i(e)(t,n,i)},Mm=e=>(t,n,r)=>$i(e)(t,n,r),jm=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ui(e)(t,n,i)},Fm=e=>async(t,n,r)=>Ui(e)(t,n,r),Bm=/^[cC][^\s-]{8,}$/,qm=/^[0-9a-z]+$/,Vm=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Zm=/^[0-9a-vA-V]{20}$/,$m=/^[A-Za-z0-9]{27}$/,Um=/^[a-zA-Z0-9_-]{21}$/,Hm=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Gm=/^([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})$/,Ll=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)$/,Wm=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Jm="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Km(){return new RegExp(Jm,"u")}const Ym=/^(?:(?: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])$/,Xm=/^(([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}|:))$/,Qm=/^((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])$/,eg=/^(([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])$/,tg=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Lc=/^[A-Za-z0-9_-]*$/,ng=/^\+(?:[0-9]){6,14}[0-9]$/,Dc="(?:(?:\\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])))",rg=new RegExp(`^${Dc}$`);function zc(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 ig(e){return new RegExp(`^${zc(e)}$`)}function ag(e){const t=zc({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(`^${Dc}T(?:${r})$`)}const og=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},sg=/^-?\d+$/,lg=/^-?\d+(?:\.\d+)?/,ug=/^(?:true|false)$/i,cg=/^[^A-Z]*$/,dg=/^[^a-z]*$/,et=L("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Mc={number:"number",bigint:"bigint",object:"date"},jc=L("$ZodCheckLessThan",(e,t)=>{et.init(e,t);const n=Mc[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,a=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(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})}}),Fc=L("$ZodCheckGreaterThan",(e,t)=>{et.init(e,t);const n=Mc[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,a=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(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})}}),fg=L("$ZodCheckMultipleOf",(e,t)=>{et.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):mm(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})}}),pg=L("$ZodCheckNumberFormat",(e,t)=>{et.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,a]=xm[t.format];e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,s.minimum=i,s.maximum=a,n&&(s.pattern=sg)}),e._zod.check=o=>{const s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.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}):o.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&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inst:e})}}),hg=L("$ZodCheckMaxLength",(e,t)=>{var n;et.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Io(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 o=Oo(i);r.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),mg=L("$ZodCheckMinLength",(e,t)=>{var n;et.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Io(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 o=Oo(i);r.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),gg=L("$ZodCheckLengthEquals",(e,t)=>{var n;et.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Io(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,a=i.length;if(a===t.length)return;const o=Oo(i),s=a>t.length;r.issues.push({origin:o,...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})}}),Hi=L("$ZodCheckStringFormat",(e,t)=>{var n,r;et.init(e,t),e._zod.onattach.push(i=>{const a=i._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.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=()=>{})}),yg=L("$ZodCheckRegex",(e,t)=>{Hi.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})}}),vg=L("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=cg),Hi.init(e,t)}),bg=L("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=dg),Hi.init(e,t)}),xg=L("$ZodCheckIncludes",(e,t)=>{et.init(e,t);const n=qn(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.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})}}),kg=L("$ZodCheckStartsWith",(e,t)=>{et.init(e,t);const n=new RegExp(`^${qn(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})}}),wg=L("$ZodCheckEndsWith",(e,t)=>{et.init(e,t);const n=new RegExp(`.*${qn(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})}}),_g=L("$ZodCheckOverwrite",(e,t)=>{et.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Sg{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(o=>o),i=Math.min(...r.map(o=>o.length-o.trimStart().length)),a=r.map(o=>o.slice(i)).map(o=>" ".repeat(this.indent*2)+o);for(const o of a)this.content.push(o)}compile(){const t=Function,n=this?.args,i=[...(this?.content??[""]).map(a=>` ${a}`)];return new t(...n,i.join(`
|
|
3
|
+
`))}}const Cg={major:4,minor:1,patch:13},Ae=L("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Cg;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const a of i._zod.onattach)a(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(o,s,l)=>{let u=In(o),d;for(const c of s){if(c._zod.def.when){if(!c._zod.def.when(o))continue}else if(u)continue;const f=o.issues.length,p=c._zod.check(o);if(p instanceof Promise&&l?.async===!1)throw new On;if(d||p instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await p,o.issues.length!==f&&(u||(u=In(o,f)))});else{if(o.issues.length===f)continue;u||(u=In(o,f))}}return d?d.then(()=>o):o},a=(o,s,l)=>{if(In(o))return o.aborted=!0,o;const u=i(s,r,l);if(u instanceof Promise){if(l.async===!1)throw new On;return u.then(d=>e._zod.parse(d,l))}return e._zod.parse(u,l)};e._zod.run=(o,s)=>{if(s.skipChecks)return e._zod.parse(o,s);if(s.direction==="backward"){const u=e._zod.parse({value:o.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(d=>a(d,o,s)):a(u,o,s)}const l=e._zod.parse(o,s);if(l instanceof Promise){if(s.async===!1)throw new On;return l.then(u=>i(u,r,s))}return i(l,r,s)}}e["~standard"]={validate:i=>{try{const a=Nm(e,i);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Im(e,i).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1}}),zo=L("$ZodString",(e,t)=>{Ae.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??og(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}}),Re=L("$ZodStringFormat",(e,t)=>{Hi.init(e,t),zo.init(e,t)}),Tg=L("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Gm),Re.init(e,t)}),Eg=L("$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=Ll(r))}else t.pattern??(t.pattern=Ll());Re.init(e,t)}),Ag=L("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Wm),Re.init(e,t)}),Rg=L("$ZodURL",(e,t)=>{Re.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:t.hostname.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})}}}),Ng=L("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Km()),Re.init(e,t)}),Ig=L("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Um),Re.init(e,t)}),Pg=L("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Bm),Re.init(e,t)}),Og=L("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=qm),Re.init(e,t)}),Lg=L("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Vm),Re.init(e,t)}),Dg=L("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Zm),Re.init(e,t)}),zg=L("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=$m),Re.init(e,t)}),Mg=L("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ag(t)),Re.init(e,t)}),jg=L("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=rg),Re.init(e,t)}),Fg=L("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ig(t)),Re.init(e,t)}),Bg=L("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Hm),Re.init(e,t)}),qg=L("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ym),Re.init(e,t),e._zod.bag.format="ipv4"}),Vg=L("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Xm),Re.init(e,t),e._zod.bag.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})}}}),Zg=L("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Qm),Re.init(e,t)}),$g=L("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=eg),Re.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,a]=r;if(!a)throw new Error;const o=Number(a);if(`${o}`!==a)throw new Error;if(o<0||o>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 Bc(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Ug=L("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=tg),Re.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Bc(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Hg(e){if(!Lc.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Bc(n)}const Gg=L("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Lc),Re.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Hg(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Wg=L("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ng),Re.init(e,t)});function Jg(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 Kg=L("$ZodJWT",(e,t)=>{Re.init(e,t),e._zod.check=n=>{Jg(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),qc=L("$ZodNumber",(e,t)=>{Ae.init(e,t),e._zod.pattern=e._zod.bag.pattern??lg,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 a=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,...a?{received:a}:{}}),n}}),Yg=L("$ZodNumberFormat",(e,t)=>{pg.init(e,t),qc.init(e,t)}),Xg=L("$ZodBoolean",(e,t)=>{Ae.init(e,t),e._zod.pattern=ug,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}}),Qg=L("$ZodAny",(e,t)=>{Ae.init(e,t),e._zod.parse=n=>n}),ey=L("$ZodUnknown",(e,t)=>{Ae.init(e,t),e._zod.parse=n=>n}),ty=L("$ZodNever",(e,t)=>{Ae.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Dl(e,t,n){e.issues.length&&t.issues.push(...Pn(n,e.issues)),t.value[n]=e.value}const ny=L("$ZodArray",(e,t)=>{Ae.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 a=[];for(let o=0;o<i.length;o++){const s=i[o],l=t.element._zod.run({value:s,issues:[]},r);l instanceof Promise?a.push(l.then(u=>Dl(u,n,o))):Dl(l,n,o)}return a.length?Promise.all(a).then(()=>n):n}});function Ri(e,t,n,r){e.issues.length&&t.issues.push(...Pn(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Vc(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=bm(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Zc(e,t,n,r,i,a){const o=[],s=i.keySet,l=i.catchall._zod,u=l.def.type;for(const d in t){if(s.has(d))continue;if(u==="never"){o.push(d);continue}const c=l.run({value:t[d],issues:[]},r);c instanceof Promise?e.push(c.then(f=>Ri(f,n,d,t))):Ri(c,n,d,t)}return o.length&&n.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const ry=L("$ZodObject",(e,t)=>{if(Ae.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=Zi(()=>Vc(t));Se(e._zod,"propValues",()=>{const s=t.shape,l={};for(const u in s){const d=s[u]._zod;if(d.values){l[u]??(l[u]=new Set);for(const c of d.values)l[u].add(c)}}return l});const i=Vr,a=t.catchall;let o;e._zod.parse=(s,l)=>{o??(o=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 d=[],c=o.shape;for(const f of o.keys){const g=c[f]._zod.run({value:u[f],issues:[]},l);g instanceof Promise?d.push(g.then(y=>Ri(y,s,f,u))):Ri(g,s,f,u)}return a?Zc(d,u,s,l,r.value,e):d.length?Promise.all(d).then(()=>s):s}}),iy=L("$ZodObjectJIT",(e,t)=>{ry.init(e,t);const n=e._zod.parse,r=Zi(()=>Vc(t)),i=f=>{const p=new Sg(["shape","payload","ctx"]),g=r.value,y=_=>{const P=Ol(_);return`shape[${P}]._zod.run({ value: input[${P}], issues: [] }, ctx)`};p.write("const input = payload.value;");const k=Object.create(null);let v=0;for(const _ of g.keys)k[_]=`key_${v++}`;p.write("const newResult = {};");for(const _ of g.keys){const P=k[_],O=Ol(_);p.write(`const ${P} = ${y(_)};`),p.write(`
|
|
4
|
+
if (${P}.issues.length) {
|
|
5
|
+
payload.issues = payload.issues.concat(${P}.issues.map(iss => ({
|
|
6
|
+
...iss,
|
|
7
|
+
path: iss.path ? [${O}, ...iss.path] : [${O}]
|
|
8
|
+
})));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
if (${P}.value === undefined) {
|
|
13
|
+
if (${O} in input) {
|
|
14
|
+
newResult[${O}] = undefined;
|
|
15
|
+
}
|
|
16
|
+
} else {
|
|
17
|
+
newResult[${O}] = ${P}.value;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
`)}p.write("payload.value = newResult;"),p.write("return payload;");const T=p.compile();return(_,P)=>T(f,_,P)};let a;const o=Vr,s=!Ac.jitless,u=s&&ym.value,d=t.catchall;let c;e._zod.parse=(f,p)=>{c??(c=r.value);const g=f.value;return o(g)?s&&u&&p?.async===!1&&p.jitless!==!0?(a||(a=i(t.shape)),f=a(f,p),d?Zc([],g,f,p,c,e):f):n(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function zl(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const i=e.filter(a=>!In(a));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(a=>a.issues.map(o=>Qt(o,r,Xt())))}),t)}const $c=L("$ZodUnion",(e,t)=>{Ae.init(e,t),Se(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Se(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Se(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Se(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${i.map(a=>Po(a.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1;const s=[];for(const l of t.options){const u=l._zod.run({value:i.value,issues:[]},a);if(u instanceof Promise)s.push(u),o=!0;else{if(u.issues.length===0)return u;s.push(u)}}return o?Promise.all(s).then(l=>zl(l,i,e,a)):zl(s,i,e,a)}}),ay=L("$ZodDiscriminatedUnion",(e,t)=>{$c.init(e,t);const n=e._zod.parse;Se(e._zod,"propValues",()=>{const i={};for(const a of t.options){const o=a._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[s,l]of Object.entries(o)){i[s]||(i[s]=new Set);for(const u of l)i[s].add(u)}}return i});const r=Zi(()=>{const i=t.options,a=new Map;for(const o of i){const s=o._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const l of s){if(a.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);a.set(l,o)}}return a});e._zod.parse=(i,a)=>{const o=i.value;if(!Vr(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),i;const s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),oy=L("$ZodIntersection",(e,t)=>{Ae.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,a=t.left._zod.run({value:i,issues:[]},r),o=t.right._zod.run({value:i,issues:[]},r);return a instanceof Promise||o instanceof Promise?Promise.all([a,o]).then(([l,u])=>Ml(n,l,u)):Ml(n,a,o)}});function ro(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(Bn(e)&&Bn(t)){const n=Object.keys(t),r=Object.keys(e).filter(a=>n.indexOf(a)!==-1),i={...e,...t};for(const a of r){const o=ro(e[a],t[a]);if(!o.valid)return{valid:!1,mergeErrorPath:[a,...o.mergeErrorPath]};i[a]=o.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],a=t[r],o=ro(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ml(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),In(e))return e;const r=ro(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 sy=L("$ZodRecord",(e,t)=>{Ae.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Bn(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;const a=[],o=t.keyType._zod.values;if(o){n.value={};const s=new Set;for(const u of o)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);const d=t.valueType._zod.run({value:i[u],issues:[]},r);d instanceof Promise?a.push(d.then(c=>{c.issues.length&&n.issues.push(...Pn(u,c.issues)),n.value[u]=c.value})):(d.issues.length&&n.issues.push(...Pn(u,d.issues)),n.value[u]=d.value)}let l;for(const u in i)s.has(u)||(l=l??[],l.push(u));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l})}else{n.value={};for(const s of Reflect.ownKeys(i)){if(s==="__proto__")continue;const l=t.keyType._zod.run({value:s,issues:[]},r);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>Qt(d,r,Xt())),input:s,path:[s],inst:e}),n.value[l.value]=l.value;continue}const u=t.valueType._zod.run({value:i[s],issues:[]},r);u instanceof Promise?a.push(u.then(d=>{d.issues.length&&n.issues.push(...Pn(s,d.issues)),n.value[l.value]=d.value})):(u.issues.length&&n.issues.push(...Pn(s,u.issues)),n.value[l.value]=u.value)}}return a.length?Promise.all(a).then(()=>n):n}}),ly=L("$ZodEnum",(e,t)=>{Ae.init(e,t);const n=hm(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>vm.has(typeof i)).map(i=>typeof i=="string"?qn(i):i.toString()).join("|")})$`),e._zod.parse=(i,a)=>{const o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:n,input:o,inst:e}),i}}),uy=L("$ZodLiteral",(e,t)=>{if(Ae.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?qn(r):r?qn(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,i)=>{const a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),r}}),cy=L("$ZodTransform",(e,t)=>{Ae.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ec(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(n.value=o,n));if(i instanceof Promise)throw new On;return n.value=i,n}});function jl(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const dy=L("$ZodOptional",(e,t)=>{Ae.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Se(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Se(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Po(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(a=>jl(a,n.value)):jl(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),fy=L("$ZodNullable",(e,t)=>{Ae.init(e,t),Se(e._zod,"optin",()=>t.innerType._zod.optin),Se(e._zod,"optout",()=>t.innerType._zod.optout),Se(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Po(n.source)}|null)$`):void 0}),Se(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)}),py=L("$ZodDefault",(e,t)=>{Ae.init(e,t),e._zod.optin="optional",Se(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(a=>Fl(a,t)):Fl(i,t)}});function Fl(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const hy=L("$ZodPrefault",(e,t)=>{Ae.init(e,t),e._zod.optin="optional",Se(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))}),my=L("$ZodNonOptional",(e,t)=>{Ae.init(e,t),Se(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(a=>Bl(a,e)):Bl(i,e)}});function Bl(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 gy=L("$ZodCatch",(e,t)=>{Ae.init(e,t),Se(e._zod,"optin",()=>t.innerType._zod.optin),Se(e._zod,"optout",()=>t.innerType._zod.optout),Se(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(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(o=>Qt(o,r,Xt()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>Qt(a,r,Xt()))},input:n.value}),n.issues=[]),n)}}),yy=L("$ZodPipe",(e,t)=>{Ae.init(e,t),Se(e._zod,"values",()=>t.in._zod.values),Se(e._zod,"optin",()=>t.in._zod.optin),Se(e._zod,"optout",()=>t.out._zod.optout),Se(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const a=t.out._zod.run(n,r);return a instanceof Promise?a.then(o=>oi(o,t.in,r)):oi(a,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(a=>oi(a,t.out,r)):oi(i,t.out,r)}});function oi(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const vy=L("$ZodReadonly",(e,t)=>{Ae.init(e,t),Se(e._zod,"propValues",()=>t.innerType._zod.propValues),Se(e._zod,"values",()=>t.innerType._zod.values),Se(e._zod,"optin",()=>t.innerType?._zod?.optin),Se(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(ql):ql(i)}});function ql(e){return e.value=Object.freeze(e.value),e}const by=L("$ZodCustom",(e,t)=>{et.init(e,t),Ae.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(a=>Vl(a,n,r,e));Vl(i,n,r,e)}});function Vl(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(Zr(i))}}var Zl;class xy{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 ky(){return new xy}(Zl=globalThis).__zod_globalRegistry??(Zl.__zod_globalRegistry=ky());const si=globalThis.__zod_globalRegistry;function wy(e,t){return new e({type:"string",...ie(t)})}function _y(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ie(t)})}function $l(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ie(t)})}function Sy(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ie(t)})}function Cy(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ie(t)})}function Ty(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ie(t)})}function Ey(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ie(t)})}function Ay(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ie(t)})}function Ry(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ie(t)})}function Ny(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ie(t)})}function Iy(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ie(t)})}function Py(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ie(t)})}function Oy(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ie(t)})}function Ly(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ie(t)})}function Dy(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ie(t)})}function zy(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ie(t)})}function My(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ie(t)})}function jy(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ie(t)})}function Fy(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ie(t)})}function By(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ie(t)})}function qy(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ie(t)})}function Vy(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ie(t)})}function Zy(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ie(t)})}function $y(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ie(t)})}function Uy(e,t){return new e({type:"string",format:"date",check:"string_format",...ie(t)})}function Hy(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ie(t)})}function Gy(e,t){return new e({type:"string",format:"duration",check:"string_format",...ie(t)})}function Wy(e,t){return new e({type:"number",checks:[],...ie(t)})}function Jy(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ie(t)})}function Ky(e,t){return new e({type:"boolean",...ie(t)})}function Yy(e){return new e({type:"any"})}function Xy(e){return new e({type:"unknown"})}function Qy(e,t){return new e({type:"never",...ie(t)})}function Ul(e,t){return new jc({check:"less_than",...ie(t),value:e,inclusive:!1})}function va(e,t){return new jc({check:"less_than",...ie(t),value:e,inclusive:!0})}function Hl(e,t){return new Fc({check:"greater_than",...ie(t),value:e,inclusive:!1})}function ba(e,t){return new Fc({check:"greater_than",...ie(t),value:e,inclusive:!0})}function Gl(e,t){return new fg({check:"multiple_of",...ie(t),value:e})}function Uc(e,t){return new hg({check:"max_length",...ie(t),maximum:e})}function Ni(e,t){return new mg({check:"min_length",...ie(t),minimum:e})}function Hc(e,t){return new gg({check:"length_equals",...ie(t),length:e})}function ev(e,t){return new yg({check:"string_format",format:"regex",...ie(t),pattern:e})}function tv(e){return new vg({check:"string_format",format:"lowercase",...ie(e)})}function nv(e){return new bg({check:"string_format",format:"uppercase",...ie(e)})}function rv(e,t){return new xg({check:"string_format",format:"includes",...ie(t),includes:e})}function iv(e,t){return new kg({check:"string_format",format:"starts_with",...ie(t),prefix:e})}function av(e,t){return new wg({check:"string_format",format:"ends_with",...ie(t),suffix:e})}function Hn(e){return new _g({check:"overwrite",tx:e})}function ov(e){return Hn(t=>t.normalize(e))}function sv(){return Hn(e=>e.trim())}function lv(){return Hn(e=>e.toLowerCase())}function uv(){return Hn(e=>e.toUpperCase())}function cv(){return Hn(e=>gm(e))}function dv(e,t,n){return new e({type:"array",element:t,...ie(n)})}function fv(e,t,n){return new e({type:"custom",check:"custom",fn:t,...ie(n)})}function pv(e){const t=hv(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Zr(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(Zr(i))}},e(n.value,n)));return t}function hv(e,t){const n=new et({check:"custom",...ie(t)});return n._zod.check=e,n}const mv=L("ZodISODateTime",(e,t)=>{Mg.init(e,t),Pe.init(e,t)});function gv(e){return $y(mv,e)}const yv=L("ZodISODate",(e,t)=>{jg.init(e,t),Pe.init(e,t)});function vv(e){return Uy(yv,e)}const bv=L("ZodISOTime",(e,t)=>{Fg.init(e,t),Pe.init(e,t)});function xv(e){return Hy(bv,e)}const kv=L("ZodISODuration",(e,t)=>{Bg.init(e,t),Pe.init(e,t)});function wv(e){return Gy(kv,e)}const _v=(e,t)=>{Pc.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Rm(e,n)},flatten:{value:n=>Am(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,no,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,no,2)}},isEmpty:{get(){return e.issues.length===0}}})},ht=L("ZodError",_v,{Parent:Error}),Sv=Lo(ht),Cv=Do(ht),Tv=$i(ht),Ev=Ui(ht),Av=Pm(ht),Rv=Om(ht),Nv=Lm(ht),Iv=Dm(ht),Pv=zm(ht),Ov=Mm(ht),Lv=jm(ht),Dv=Fm(ht),Ie=L("ZodType",(e,t)=>(Ae.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(_n(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(n,r)=>nn(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>Sv(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Tv(e,n,r),e.parseAsync=async(n,r)=>Cv(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Ev(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Av(e,n,r),e.decode=(n,r)=>Rv(e,n,r),e.encodeAsync=async(n,r)=>Nv(e,n,r),e.decodeAsync=async(n,r)=>Iv(e,n,r),e.safeEncode=(n,r)=>Pv(e,n,r),e.safeDecode=(n,r)=>Ov(e,n,r),e.safeEncodeAsync=async(n,r)=>Lv(e,n,r),e.safeDecodeAsync=async(n,r)=>Dv(e,n,r),e.refine=(n,r)=>e.check(Nb(n,r)),e.superRefine=n=>e.check(Ib(n)),e.overwrite=n=>e.check(Hn(n)),e.optional=()=>Yl(e),e.nullable=()=>Xl(e),e.nullish=()=>Yl(Xl(e)),e.nonoptional=n=>_b(e,n),e.array=()=>sb(e),e.or=n=>ub([e,n]),e.and=n=>fb(e,n),e.transform=n=>Ql(e,yb(n)),e.default=n=>xb(e,n),e.prefault=n=>wb(e,n),e.catch=n=>Cb(e,n),e.pipe=n=>Ql(e,n),e.readonly=()=>Ab(e),e.describe=n=>{const r=e.clone();return si.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return si.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return si.get(e);const r=e.clone();return si.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Gc=L("_ZodString",(e,t)=>{zo.init(e,t),Ie.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(ev(...r)),e.includes=(...r)=>e.check(rv(...r)),e.startsWith=(...r)=>e.check(iv(...r)),e.endsWith=(...r)=>e.check(av(...r)),e.min=(...r)=>e.check(Ni(...r)),e.max=(...r)=>e.check(Uc(...r)),e.length=(...r)=>e.check(Hc(...r)),e.nonempty=(...r)=>e.check(Ni(1,...r)),e.lowercase=r=>e.check(tv(r)),e.uppercase=r=>e.check(nv(r)),e.trim=()=>e.check(sv()),e.normalize=(...r)=>e.check(ov(...r)),e.toLowerCase=()=>e.check(lv()),e.toUpperCase=()=>e.check(uv()),e.slugify=()=>e.check(cv())}),zv=L("ZodString",(e,t)=>{zo.init(e,t),Gc.init(e,t),e.email=n=>e.check(_y(Mv,n)),e.url=n=>e.check(Ay(jv,n)),e.jwt=n=>e.check(Zy(Qv,n)),e.emoji=n=>e.check(Ry(Fv,n)),e.guid=n=>e.check($l(Wl,n)),e.uuid=n=>e.check(Sy(li,n)),e.uuidv4=n=>e.check(Cy(li,n)),e.uuidv6=n=>e.check(Ty(li,n)),e.uuidv7=n=>e.check(Ey(li,n)),e.nanoid=n=>e.check(Ny(Bv,n)),e.guid=n=>e.check($l(Wl,n)),e.cuid=n=>e.check(Iy(qv,n)),e.cuid2=n=>e.check(Py(Vv,n)),e.ulid=n=>e.check(Oy(Zv,n)),e.base64=n=>e.check(By(Kv,n)),e.base64url=n=>e.check(qy(Yv,n)),e.xid=n=>e.check(Ly($v,n)),e.ksuid=n=>e.check(Dy(Uv,n)),e.ipv4=n=>e.check(zy(Hv,n)),e.ipv6=n=>e.check(My(Gv,n)),e.cidrv4=n=>e.check(jy(Wv,n)),e.cidrv6=n=>e.check(Fy(Jv,n)),e.e164=n=>e.check(Vy(Xv,n)),e.datetime=n=>e.check(gv(n)),e.date=n=>e.check(vv(n)),e.time=n=>e.check(xv(n)),e.duration=n=>e.check(wv(n))});function dA(e){return wy(zv,e)}const Pe=L("ZodStringFormat",(e,t)=>{Re.init(e,t),Gc.init(e,t)}),Mv=L("ZodEmail",(e,t)=>{Ag.init(e,t),Pe.init(e,t)}),Wl=L("ZodGUID",(e,t)=>{Tg.init(e,t),Pe.init(e,t)}),li=L("ZodUUID",(e,t)=>{Eg.init(e,t),Pe.init(e,t)}),jv=L("ZodURL",(e,t)=>{Rg.init(e,t),Pe.init(e,t)}),Fv=L("ZodEmoji",(e,t)=>{Ng.init(e,t),Pe.init(e,t)}),Bv=L("ZodNanoID",(e,t)=>{Ig.init(e,t),Pe.init(e,t)}),qv=L("ZodCUID",(e,t)=>{Pg.init(e,t),Pe.init(e,t)}),Vv=L("ZodCUID2",(e,t)=>{Og.init(e,t),Pe.init(e,t)}),Zv=L("ZodULID",(e,t)=>{Lg.init(e,t),Pe.init(e,t)}),$v=L("ZodXID",(e,t)=>{Dg.init(e,t),Pe.init(e,t)}),Uv=L("ZodKSUID",(e,t)=>{zg.init(e,t),Pe.init(e,t)}),Hv=L("ZodIPv4",(e,t)=>{qg.init(e,t),Pe.init(e,t)}),Gv=L("ZodIPv6",(e,t)=>{Vg.init(e,t),Pe.init(e,t)}),Wv=L("ZodCIDRv4",(e,t)=>{Zg.init(e,t),Pe.init(e,t)}),Jv=L("ZodCIDRv6",(e,t)=>{$g.init(e,t),Pe.init(e,t)}),Kv=L("ZodBase64",(e,t)=>{Ug.init(e,t),Pe.init(e,t)}),Yv=L("ZodBase64URL",(e,t)=>{Gg.init(e,t),Pe.init(e,t)}),Xv=L("ZodE164",(e,t)=>{Wg.init(e,t),Pe.init(e,t)}),Qv=L("ZodJWT",(e,t)=>{Kg.init(e,t),Pe.init(e,t)}),Wc=L("ZodNumber",(e,t)=>{qc.init(e,t),Ie.init(e,t),e.gt=(r,i)=>e.check(Hl(r,i)),e.gte=(r,i)=>e.check(ba(r,i)),e.min=(r,i)=>e.check(ba(r,i)),e.lt=(r,i)=>e.check(Ul(r,i)),e.lte=(r,i)=>e.check(va(r,i)),e.max=(r,i)=>e.check(va(r,i)),e.int=r=>e.check(Jl(r)),e.safe=r=>e.check(Jl(r)),e.positive=r=>e.check(Hl(0,r)),e.nonnegative=r=>e.check(ba(0,r)),e.negative=r=>e.check(Ul(0,r)),e.nonpositive=r=>e.check(va(0,r)),e.multipleOf=(r,i)=>e.check(Gl(r,i)),e.step=(r,i)=>e.check(Gl(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 fA(e){return Wy(Wc,e)}const eb=L("ZodNumberFormat",(e,t)=>{Yg.init(e,t),Wc.init(e,t)});function Jl(e){return Jy(eb,e)}const tb=L("ZodBoolean",(e,t)=>{Xg.init(e,t),Ie.init(e,t)});function pA(e){return Ky(tb,e)}const nb=L("ZodAny",(e,t)=>{Qg.init(e,t),Ie.init(e,t)});function hA(){return Yy(nb)}const rb=L("ZodUnknown",(e,t)=>{ey.init(e,t),Ie.init(e,t)});function Kl(){return Xy(rb)}const ib=L("ZodNever",(e,t)=>{ty.init(e,t),Ie.init(e,t)});function ab(e){return Qy(ib,e)}const ob=L("ZodArray",(e,t)=>{ny.init(e,t),Ie.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(Ni(n,r)),e.nonempty=n=>e.check(Ni(1,n)),e.max=(n,r)=>e.check(Uc(n,r)),e.length=(n,r)=>e.check(Hc(n,r)),e.unwrap=()=>e.element});function sb(e,t){return dv(ob,e,t)}const lb=L("ZodObject",(e,t)=>{iy.init(e,t),Ie.init(e,t),Se(e,"shape",()=>t.shape),e.keyof=()=>hb(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Kl()}),e.loose=()=>e.clone({...e._zod.def,catchall:Kl()}),e.strict=()=>e.clone({...e._zod.def,catchall:ab()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>_m(e,n),e.safeExtend=n=>Sm(e,n),e.merge=n=>Cm(e,n),e.pick=n=>km(e,n),e.omit=n=>wm(e,n),e.partial=(...n)=>Tm(Kc,e,n[0]),e.required=(...n)=>Em(Yc,e,n[0])});function mA(e,t){const n={type:"object",shape:e??{},...ie(t)};return new lb(n)}const Jc=L("ZodUnion",(e,t)=>{$c.init(e,t),Ie.init(e,t),e.options=t.options});function ub(e,t){return new Jc({type:"union",options:e,...ie(t)})}const cb=L("ZodDiscriminatedUnion",(e,t)=>{Jc.init(e,t),ay.init(e,t)});function gA(e,t,n){return new cb({type:"union",options:t,discriminator:e,...ie(n)})}const db=L("ZodIntersection",(e,t)=>{oy.init(e,t),Ie.init(e,t)});function fb(e,t){return new db({type:"intersection",left:e,right:t})}const pb=L("ZodRecord",(e,t)=>{sy.init(e,t),Ie.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function yA(e,t,n){return new pb({type:"record",keyType:e,valueType:t,...ie(n)})}const io=L("ZodEnum",(e,t)=>{ly.init(e,t),Ie.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 a={};for(const o of r)if(n.has(o))a[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new io({...t,checks:[],...ie(i),entries:a})},e.exclude=(r,i)=>{const a={...t.entries};for(const o of r)if(n.has(o))delete a[o];else throw new Error(`Key ${o} not found in enum`);return new io({...t,checks:[],...ie(i),entries:a})}});function hb(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new io({type:"enum",entries:n,...ie(t)})}const mb=L("ZodLiteral",(e,t)=>{uy.init(e,t),Ie.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 vA(e,t){return new mb({type:"literal",values:Array.isArray(e)?e:[e],...ie(t)})}const gb=L("ZodTransform",(e,t)=>{cy.init(e,t),Ie.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ec(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(Zr(a,n.value,t));else{const o=a;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=e),n.issues.push(Zr(o))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(a=>(n.value=a,n)):(n.value=i,n)}});function yb(e){return new gb({type:"transform",transform:e})}const Kc=L("ZodOptional",(e,t)=>{dy.init(e,t),Ie.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Yl(e){return new Kc({type:"optional",innerType:e})}const vb=L("ZodNullable",(e,t)=>{fy.init(e,t),Ie.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Xl(e){return new vb({type:"nullable",innerType:e})}const bb=L("ZodDefault",(e,t)=>{py.init(e,t),Ie.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function xb(e,t){return new bb({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Nc(t)}})}const kb=L("ZodPrefault",(e,t)=>{hy.init(e,t),Ie.init(e,t),e.unwrap=()=>e._zod.def.innerType});function wb(e,t){return new kb({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Nc(t)}})}const Yc=L("ZodNonOptional",(e,t)=>{my.init(e,t),Ie.init(e,t),e.unwrap=()=>e._zod.def.innerType});function _b(e,t){return new Yc({type:"nonoptional",innerType:e,...ie(t)})}const Sb=L("ZodCatch",(e,t)=>{gy.init(e,t),Ie.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Cb(e,t){return new Sb({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Tb=L("ZodPipe",(e,t)=>{yy.init(e,t),Ie.init(e,t),e.in=t.in,e.out=t.out});function Ql(e,t){return new Tb({type:"pipe",in:e,out:t})}const Eb=L("ZodReadonly",(e,t)=>{vy.init(e,t),Ie.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ab(e){return new Eb({type:"readonly",innerType:e})}const Rb=L("ZodCustom",(e,t)=>{by.init(e,t),Ie.init(e,t)});function Nb(e,t={}){return fv(Rb,e,t)}function Ib(e){return pv(e)}function Pb(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 Ob=e=>{switch(e){case"success":return zb;case"info":return jb;case"warning":return Mb;case"error":return Fb;default:return null}},Lb=Array(12).fill(0),Db=({visible:e,className:t})=>V.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},V.createElement("div",{className:"sonner-spinner"},Lb.map((n,r)=>V.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),zb=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.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"})),Mb=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},V.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"})),jb=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.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"})),Fb=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.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"})),Bb=V.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"},V.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),V.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),qb=()=>{const[e,t]=V.useState(document.hidden);return V.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let ao=1;class Vb{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,a=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:ao++,o=this.toasts.find(l=>l.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),o?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...t,id:a,title:r}),{...l,...t,id:a,dismissible:s,title:r}):l):this.addToast({title:r,...i,dismissible:s,id:a}),a},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 a=r!==void 0,o;const s=i.then(async u=>{if(o=["resolve",u],V.isValidElement(u))a=!1,this.create({id:r,type:"default",message:u});else if($b(u)&&!u.ok){a=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,g=typeof c=="object"&&!V.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...g})}else if(u instanceof Error){a=!1;const c=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,g=typeof c=="object"&&!V.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...g})}else if(n.success!==void 0){a=!1;const c=typeof n.success=="function"?await n.success(u):n.success,f=typeof n.description=="function"?await n.description(u):n.description,g=typeof c=="object"&&!V.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:f,...g})}}).catch(async u=>{if(o=["reject",u],n.error!==void 0){a=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,p=typeof d=="object"&&!V.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...p})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,d)=>s.then(()=>o[0]==="reject"?d(o[1]):u(o[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||ao++;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 Qe=new Vb,Zb=(e,t)=>{const n=t?.id||ao++;return Qe.addToast({title:e,...t,id:n}),n},$b=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ub=Zb,Hb=()=>Qe.toasts,Gb=()=>Qe.getActiveToasts();Object.assign(Ub,{success:Qe.success,info:Qe.info,warning:Qe.warning,error:Qe.error,custom:Qe.custom,message:Qe.message,promise:Qe.promise,dismiss:Qe.dismiss,loading:Qe.loading},{getHistory:Hb,getToasts:Gb});Pb("[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 ui(e){return e.label!==void 0}const Wb=3,Jb="24px",Kb="16px",eu=4e3,Yb=356,Xb=14,Qb=45,ex=200;function Tt(...e){return e.filter(Boolean).join(" ")}function tx(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const nx=e=>{var t,n,r,i,a,o,s,l,u;const{invert:d,toast:c,unstyled:f,interacting:p,setHeights:g,visibleToasts:y,heights:k,index:v,toasts:T,expanded:_,removeToast:P,defaultRichColors:O,closeButton:S,style:q,cancelButtonStyle:M,actionButtonStyle:H,className:C="",descriptionClassName:ae="",duration:J,position:z,gap:Z,expandByDefault:G,classNames:E,icons:j,closeButtonAriaLabel:A="Close toast"}=e,[ne,x]=V.useState(null),[we,Ne]=V.useState(null),[b,re]=V.useState(!1),[fe,Le]=V.useState(!1),[ke,oe]=V.useState(!1),[Fe,De]=V.useState(!1),[Ve,Me]=V.useState(!1),[er,tr]=V.useState(0),[Qr,nr]=V.useState(0),Vt=V.useRef(c.duration||J||eu),ei=V.useRef(null),ct=V.useRef(null),ti=v===0,ra=v+1<=y,Ge=c.type,Zt=c.dismissible!==!1,ia=c.className||"",aa=c.descriptionClassName||"",R=V.useMemo(()=>k.findIndex(ce=>ce.toastId===c.id)||0,[k,c.id]),I=V.useMemo(()=>{var ce;return(ce=c.closeButton)!=null?ce:S},[c.closeButton,S]),K=V.useMemo(()=>c.duration||J||eu,[c.duration,J]),ue=V.useRef(0),ge=V.useRef(0),Be=V.useRef(0),Ye=V.useRef(null),[gt,on]=z.split("-"),$t=V.useMemo(()=>k.reduce((ce,je,$e)=>$e>=R?ce:ce+je.height,0),[k,R]),Ze=qb(),Ut=c.invert||d,rt=Ge==="loading";ge.current=V.useMemo(()=>R*Z+$t,[R,$t]),V.useEffect(()=>{Vt.current=K},[K]),V.useEffect(()=>{re(!0)},[]),V.useEffect(()=>{const ce=ct.current;if(ce){const je=ce.getBoundingClientRect().height;return nr(je),g($e=>[{toastId:c.id,height:je,position:c.position},...$e]),()=>g($e=>$e.filter(it=>it.toastId!==c.id))}},[g,c.id]),V.useLayoutEffect(()=>{if(!b)return;const ce=ct.current,je=ce.style.height;ce.style.height="auto";const $e=ce.getBoundingClientRect().height;ce.style.height=je,nr($e),g(it=>it.find(qe=>qe.toastId===c.id)?it.map(qe=>qe.toastId===c.id?{...qe,height:$e}:qe):[{toastId:c.id,height:$e,position:c.position},...it])},[b,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const Ht=V.useCallback(()=>{Le(!0),tr(ge.current),g(ce=>ce.filter(je=>je.toastId!==c.id)),setTimeout(()=>{P(c)},ex)},[c,P,g,ge]);V.useEffect(()=>{if(c.promise&&Ge==="loading"||c.duration===1/0||c.type==="loading")return;let ce;return _||p||Ze?(()=>{if(Be.current<ue.current){const it=new Date().getTime()-ue.current;Vt.current=Vt.current-it}Be.current=new Date().getTime()})():(()=>{Vt.current!==1/0&&(ue.current=new Date().getTime(),ce=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Ht()},Vt.current))})(),()=>clearTimeout(ce)},[_,p,c,Ge,Ze,Ht]),V.useEffect(()=>{c.delete&&(Ht(),c.onDismiss==null||c.onDismiss.call(c,c))},[Ht,c.delete]);function Yp(){var ce;if(j?.loading){var je;return V.createElement("div",{className:Tt(E?.loader,c==null||(je=c.classNames)==null?void 0:je.loader,"sonner-loader"),"data-visible":Ge==="loading"},j.loading)}return V.createElement(Db,{className:Tt(E?.loader,c==null||(ce=c.classNames)==null?void 0:ce.loader),visible:Ge==="loading"})}const Xp=c.icon||j?.[Ge]||Ob(Ge);var ys,vs;return V.createElement("li",{tabIndex:0,ref:ct,className:Tt(C,ia,E?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,E?.default,E?.[Ge],c==null||(n=c.classNames)==null?void 0:n[Ge]),"data-sonner-toast":"","data-rich-colors":(ys=c.richColors)!=null?ys:O,"data-styled":!(c.jsx||c.unstyled||f),"data-mounted":b,"data-promise":!!c.promise,"data-swiped":Ve,"data-removed":fe,"data-visible":ra,"data-y-position":gt,"data-x-position":on,"data-index":v,"data-front":ti,"data-swiping":ke,"data-dismissible":Zt,"data-type":Ge,"data-invert":Ut,"data-swipe-out":Fe,"data-swipe-direction":we,"data-expanded":!!(_||G&&b),"data-testid":c.testId,style:{"--index":v,"--toasts-before":v,"--z-index":T.length-v,"--offset":`${fe?er:ge.current}px`,"--initial-height":G?"auto":`${Qr}px`,...q,...c.style},onDragEnd:()=>{oe(!1),x(null),Ye.current=null},onPointerDown:ce=>{ce.button!==2&&(rt||!Zt||(ei.current=new Date,tr(ge.current),ce.target.setPointerCapture(ce.pointerId),ce.target.tagName!=="BUTTON"&&(oe(!0),Ye.current={x:ce.clientX,y:ce.clientY})))},onPointerUp:()=>{var ce,je,$e;if(Fe||!Zt)return;Ye.current=null;const it=Number(((ce=ct.current)==null?void 0:ce.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ni=Number(((je=ct.current)==null?void 0:je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),qe=new Date().getTime()-(($e=ei.current)==null?void 0:$e.getTime()),dt=ne==="x"?it:ni,ri=Math.abs(dt)/qe;if(Math.abs(dt)>=Qb||ri>.11){tr(ge.current),c.onDismiss==null||c.onDismiss.call(c,c),Ne(ne==="x"?it>0?"right":"left":ni>0?"down":"up"),Ht(),De(!0);return}else{var yt,vt;(yt=ct.current)==null||yt.style.setProperty("--swipe-amount-x","0px"),(vt=ct.current)==null||vt.style.setProperty("--swipe-amount-y","0px")}Me(!1),oe(!1),x(null)},onPointerMove:ce=>{var je,$e,it;if(!Ye.current||!Zt||((je=window.getSelection())==null?void 0:je.toString().length)>0)return;const qe=ce.clientY-Ye.current.y,dt=ce.clientX-Ye.current.x;var ri;const yt=(ri=e.swipeDirections)!=null?ri:tx(z);!ne&&(Math.abs(dt)>1||Math.abs(qe)>1)&&x(Math.abs(dt)>Math.abs(qe)?"x":"y");let vt={x:0,y:0};const bs=sn=>1/(1.5+Math.abs(sn)/20);if(ne==="y"){if(yt.includes("top")||yt.includes("bottom"))if(yt.includes("top")&&qe<0||yt.includes("bottom")&&qe>0)vt.y=qe;else{const sn=qe*bs(qe);vt.y=Math.abs(sn)<Math.abs(qe)?sn:qe}}else if(ne==="x"&&(yt.includes("left")||yt.includes("right")))if(yt.includes("left")&&dt<0||yt.includes("right")&&dt>0)vt.x=dt;else{const sn=dt*bs(dt);vt.x=Math.abs(sn)<Math.abs(dt)?sn:dt}(Math.abs(vt.x)>0||Math.abs(vt.y)>0)&&Me(!0),($e=ct.current)==null||$e.style.setProperty("--swipe-amount-x",`${vt.x}px`),(it=ct.current)==null||it.style.setProperty("--swipe-amount-y",`${vt.y}px`)}},I&&!c.jsx&&Ge!=="loading"?V.createElement("button",{"aria-label":A,"data-disabled":rt,"data-close-button":!0,onClick:rt||!Zt?()=>{}:()=>{Ht(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Tt(E?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(vs=j?.close)!=null?vs:Bb):null,(Ge||c.icon||c.promise)&&c.icon!==null&&(j?.[Ge]!==null||c.icon)?V.createElement("div",{"data-icon":"",className:Tt(E?.icon,c==null||(i=c.classNames)==null?void 0:i.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Yp():null,c.type!=="loading"?Xp:null):null,V.createElement("div",{"data-content":"",className:Tt(E?.content,c==null||(a=c.classNames)==null?void 0:a.content)},V.createElement("div",{"data-title":"",className:Tt(E?.title,c==null||(o=c.classNames)==null?void 0:o.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?V.createElement("div",{"data-description":"",className:Tt(ae,aa,E?.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),V.isValidElement(c.cancel)?c.cancel:c.cancel&&ui(c.cancel)?V.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||M,onClick:ce=>{ui(c.cancel)&&Zt&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ce),Ht())},className:Tt(E?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,V.isValidElement(c.action)?c.action:c.action&&ui(c.action)?V.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||H,onClick:ce=>{ui(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ce),!ce.defaultPrevented&&Ht())},className:Tt(E?.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function tu(){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 rx(e,t){const n={};return[e,t].forEach((r,i)=>{const a=i===1,o=a?"--mobile-offset":"--offset",s=a?Kb:Jb;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=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[`${o}-${u}`]=s:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}const bA=V.forwardRef(function(t,n){const{id:r,invert:i,position:a="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:d,mobileOffset:c,theme:f="light",richColors:p,duration:g,style:y,visibleToasts:k=Wb,toastOptions:v,dir:T=tu(),gap:_=Xb,icons:P,containerAriaLabel:O="Notifications"}=t,[S,q]=V.useState([]),M=V.useMemo(()=>r?S.filter(b=>b.toasterId===r):S.filter(b=>!b.toasterId),[S,r]),H=V.useMemo(()=>Array.from(new Set([a].concat(M.filter(b=>b.position).map(b=>b.position)))),[M,a]),[C,ae]=V.useState([]),[J,z]=V.useState(!1),[Z,G]=V.useState(!1),[E,j]=V.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=V.useRef(null),ne=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=V.useRef(null),we=V.useRef(!1),Ne=V.useCallback(b=>{q(re=>{var fe;return(fe=re.find(Le=>Le.id===b.id))!=null&&fe.delete||Qe.dismiss(b.id),re.filter(({id:Le})=>Le!==b.id)})},[]);return V.useEffect(()=>Qe.subscribe(b=>{if(b.dismiss){requestAnimationFrame(()=>{q(re=>re.map(fe=>fe.id===b.id?{...fe,delete:!0}:fe))});return}setTimeout(()=>{Qp.flushSync(()=>{q(re=>{const fe=re.findIndex(Le=>Le.id===b.id);return fe!==-1?[...re.slice(0,fe),{...re[fe],...b},...re.slice(fe+1)]:[b,...re]})})})}),[S]),V.useEffect(()=>{if(f!=="system"){j(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?j("dark"):j("light")),typeof window>"u")return;const b=window.matchMedia("(prefers-color-scheme: dark)");try{b.addEventListener("change",({matches:re})=>{j(re?"dark":"light")})}catch{b.addListener(({matches:fe})=>{try{j(fe?"dark":"light")}catch(Le){console.error(Le)}})}},[f]),V.useEffect(()=>{S.length<=1&&z(!1)},[S]),V.useEffect(()=>{const b=re=>{var fe;if(o.every(oe=>re[oe]||re.code===oe)){var ke;z(!0),(ke=A.current)==null||ke.focus()}re.code==="Escape"&&(document.activeElement===A.current||(fe=A.current)!=null&&fe.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[o]),V.useEffect(()=>{if(A.current)return()=>{x.current&&(x.current.focus({preventScroll:!0}),x.current=null,we.current=!1)}},[A.current]),V.createElement("section",{ref:n,"aria-label":`${O} ${ne}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},H.map((b,re)=>{var fe;const[Le,ke]=b.split("-");return M.length?V.createElement("ol",{key:b,dir:T==="auto"?tu():T,tabIndex:-1,ref:A,className:u,"data-sonner-toaster":!0,"data-sonner-theme":E,"data-y-position":Le,"data-x-position":ke,style:{"--front-toast-height":`${((fe=C[0])==null?void 0:fe.height)||0}px`,"--width":`${Yb}px`,"--gap":`${_}px`,...y,...rx(d,c)},onBlur:oe=>{we.current&&!oe.currentTarget.contains(oe.relatedTarget)&&(we.current=!1,x.current&&(x.current.focus({preventScroll:!0}),x.current=null))},onFocus:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||we.current||(we.current=!0,x.current=oe.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{Z||z(!1)},onDragEnd:()=>z(!1),onPointerDown:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||G(!0)},onPointerUp:()=>G(!1)},M.filter(oe=>!oe.position&&re===0||oe.position===b).map((oe,Fe)=>{var De,Ve;return V.createElement(nx,{key:oe.id,icons:P,index:Fe,toast:oe,defaultRichColors:p,duration:(De=v?.duration)!=null?De:g,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:i,visibleToasts:k,closeButton:(Ve=v?.closeButton)!=null?Ve:l,interacting:Z,position:b,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:Ne,toasts:M.filter(Me=>Me.position==oe.position),heights:C.filter(Me=>Me.position==oe.position),setHeights:ae,expandByDefault:s,gap:_,expanded:J,swipeDirections:t.swipeDirections})})):null}))});function Xc(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=Xc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ix(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Xc(e))&&(r&&(r+=" "),r+=t);return r}const nu=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ru=ix,xA=(e,t)=>n=>{var r;if(t?.variants==null)return ru(e,n?.class,n?.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(u=>{const d=n?.[u],c=a?.[u];if(d===null)return null;const f=nu(d)||nu(c);return i[u][f]}),s=n&&Object.entries(n).reduce((u,d)=>{let[c,f]=d;return f===void 0||(u[c]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:f,...p}=d;return Object.entries(p).every(g=>{let[y,k]=g;return Array.isArray(k)?k.includes({...a,...s}[y]):{...a,...s}[y]===k})?[...u,c,f]:u},[]);return ru(e,o,l,n?.class,n?.className)},ax=(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},ox=(e,t)=>({classGroupId:e,validator:t}),Qc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ii="-",iu=[],sx="arbitrary..",lx=e=>{const t=cx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return ux(o);const s=o.split(Ii),l=s[0]===""&&s.length>1?1:0;return ed(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=r[o],u=n[o];return l?u?ax(u,l):l:u||iu}return n[o]||iu}}},ed=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const u=ed(e,t+1,a);if(u)return u}const o=n.validators;if(o===null)return;const s=t===0?e.join(Ii):e.slice(t).join(Ii),l=o.length;for(let u=0;u<l;u++){const d=o[u];if(d.validator(s))return d.classGroupId}},ux=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?sx+r:void 0})(),cx=e=>{const{theme:t,classGroups:n}=e;return dx(n,t)},dx=(e,t)=>{const n=Qc();for(const r in e){const i=e[r];Mo(i,n,r,t)}return n},Mo=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const o=e[a];fx(o,t,n,r)}},fx=(e,t,n,r)=>{if(typeof e=="string"){px(e,t,n);return}if(typeof e=="function"){hx(e,t,n,r);return}mx(e,t,n,r)},px=(e,t,n)=>{const r=e===""?t:td(t,e);r.classGroupId=n},hx=(e,t,n,r)=>{if(gx(e)){Mo(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ox(n,e))},mx=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[s,l]=i[o];Mo(l,td(t,s),n,r)}},td=(e,t)=>{let n=e;const r=t.split(Ii),i=r.length;for(let a=0;a<i;a++){const o=r[a];let s=n.nextPart.get(o);s||(s=Qc(),n.nextPart.set(o,s)),n=s}return n},gx=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,yx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,o)=>{n[a]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let o=n[a];if(o!==void 0)return o;if((o=r[a])!==void 0)return i(a,o),o},set(a,o){a in n?n[a]=o:i(a,o)}}},oo="!",au=":",vx=[],ou=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),bx=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let o=0,s=0,l=0,u;const d=i.length;for(let y=0;y<d;y++){const k=i[y];if(o===0&&s===0){if(k===au){a.push(i.slice(l,y)),l=y+1;continue}if(k==="/"){u=y;continue}}k==="["?o++:k==="]"?o--:k==="("?s++:k===")"&&s--}const c=a.length===0?i:i.slice(l);let f=c,p=!1;c.endsWith(oo)?(f=c.slice(0,-1),p=!0):c.startsWith(oo)&&(f=c.slice(1),p=!0);const g=u&&u>l?u-l:void 0;return ou(a,p,f,g)};if(t){const i=t+au,a=r;r=o=>o.startsWith(i)?a(o.slice(i.length)):ou(vx,!1,o,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},xx=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const o=n[a],s=o[0]==="[",l=t.has(o);s||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},kx=e=>({cache:yx(e.cacheSize),parseClassName:bx(e),sortModifiers:xx(e),...lx(e)}),wx=/\s+/,_x=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(wx);let l="";for(let u=s.length-1;u>=0;u-=1){const d=s[u],{isExternal:c,modifiers:f,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:y}=n(d);if(c){l=d+(l.length>0?" "+l:l);continue}let k=!!y,v=r(k?g.substring(0,y):g);if(!v){if(!k){l=d+(l.length>0?" "+l:l);continue}if(v=r(g),!v){l=d+(l.length>0?" "+l:l);continue}k=!1}const T=f.length===0?"":f.length===1?f[0]:a(f).join(":"),_=p?T+oo:T,P=_+v;if(o.indexOf(P)>-1)continue;o.push(P);const O=i(v,k);for(let S=0;S<O.length;++S){const q=O[S];o.push(_+q)}l=d+(l.length>0?" "+l:l)}return l},Sx=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=nd(n))&&(i&&(i+=" "),i+=r);return i},nd=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=nd(e[r]))&&(n&&(n+=" "),n+=t);return n},Cx=(e,...t)=>{let n,r,i,a;const o=l=>{const u=t.reduce((d,c)=>c(d),e());return n=kx(u),r=n.cache.get,i=n.cache.set,a=s,s(l)},s=l=>{const u=r(l);if(u)return u;const d=_x(l,n);return i(l,d),d};return a=o,(...l)=>a(Sx(...l))},Tx=[],ze=e=>{const t=n=>n[e]||Tx;return t.isThemeGetter=!0,t},rd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,id=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ex=/^\d+\/\d+$/,Ax=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rx=/\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$/,Nx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ix=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Px=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=e=>Ex.test(e),he=e=>!!e&&!Number.isNaN(Number(e)),Gt=e=>!!e&&Number.isInteger(Number(e)),xa=e=>e.endsWith("%")&&he(e.slice(0,-1)),zt=e=>Ax.test(e),Ox=()=>!0,Lx=e=>Rx.test(e)&&!Nx.test(e),ad=()=>!1,Dx=e=>Ix.test(e),zx=e=>Px.test(e),Mx=e=>!X(e)&&!Q(e),jx=e=>Gn(e,ld,ad),X=e=>rd.test(e),mn=e=>Gn(e,ud,Lx),ka=e=>Gn(e,Zx,he),su=e=>Gn(e,od,ad),Fx=e=>Gn(e,sd,zx),ci=e=>Gn(e,cd,Dx),Q=e=>id.test(e),Nr=e=>Wn(e,ud),Bx=e=>Wn(e,$x),lu=e=>Wn(e,od),qx=e=>Wn(e,ld),Vx=e=>Wn(e,sd),di=e=>Wn(e,cd,!0),Gn=(e,t,n)=>{const r=rd.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Wn=(e,t,n=!1)=>{const r=id.exec(e);return r?r[1]?t(r[1]):n:!1},od=e=>e==="position"||e==="percentage",sd=e=>e==="image"||e==="url",ld=e=>e==="length"||e==="size"||e==="bg-size",ud=e=>e==="length",Zx=e=>e==="number",$x=e=>e==="family-name",cd=e=>e==="shadow",Ux=()=>{const e=ze("color"),t=ze("font"),n=ze("text"),r=ze("font-weight"),i=ze("tracking"),a=ze("leading"),o=ze("breakpoint"),s=ze("container"),l=ze("spacing"),u=ze("radius"),d=ze("shadow"),c=ze("inset-shadow"),f=ze("text-shadow"),p=ze("drop-shadow"),g=ze("blur"),y=ze("perspective"),k=ze("aspect"),v=ze("ease"),T=ze("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...P(),Q,X],S=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],M=()=>[Q,X,l],H=()=>[Tn,"full","auto",...M()],C=()=>[Gt,"none","subgrid",Q,X],ae=()=>["auto",{span:["full",Gt,Q,X]},Gt,Q,X],J=()=>[Gt,"auto",Q,X],z=()=>["auto","min","max","fr",Q,X],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],E=()=>["auto",...M()],j=()=>[Tn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],A=()=>[e,Q,X],ne=()=>[...P(),lu,su,{position:[Q,X]}],x=()=>["no-repeat",{repeat:["","x","y","space","round"]}],we=()=>["auto","cover","contain",qx,jx,{size:[Q,X]}],Ne=()=>[xa,Nr,mn],b=()=>["","none","full",u,Q,X],re=()=>["",he,Nr,mn],fe=()=>["solid","dashed","dotted","double"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ke=()=>[he,xa,lu,su],oe=()=>["","none",g,Q,X],Fe=()=>["none",he,Q,X],De=()=>["none",he,Q,X],Ve=()=>[he,Q,X],Me=()=>[Tn,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[zt],breakpoint:[zt],color:[Ox],container:[zt],"drop-shadow":[zt],ease:["in","out","in-out"],font:[Mx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[zt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[zt],shadow:[zt],spacing:["px",he],text:[zt],"text-shadow":[zt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Tn,X,Q,k]}],container:["container"],columns:[{columns:[he,X,Q,s]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:O()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{start:H()}],end:[{end:H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[Gt,"auto",Q,X]}],basis:[{basis:[Tn,"full","auto",s,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[he,Tn,"auto","initial","none",X]}],grow:[{grow:["",he,Q,X]}],shrink:[{shrink:["",he,Q,X]}],order:[{order:[Gt,"first","last","none",Q,X]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:ae()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:ae()}],"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":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[s,"screen",...j()]}],"min-w":[{"min-w":[s,"screen","none",...j()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,Nr,mn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Q,ka]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xa,X]}],"font-family":[{font:[Bx,X,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,Q,X]}],"line-clamp":[{"line-clamp":[he,"none",Q,ka]}],leading:[{leading:[a,...M()]}],"list-image":[{"list-image":["none",Q,X]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,X]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[he,"from-font","auto",Q,mn]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[he,"auto",Q,X]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,X]}],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",Q,X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:x()}],"bg-size":[{bg:we()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Gt,Q,X],radial:["",Q,X],conic:[Gt,Q,X]},Vx,Fx]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:Ne()}],"gradient-via-pos":[{via:Ne()}],"gradient-to-pos":[{to:Ne()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:b()}],"rounded-s":[{"rounded-s":b()}],"rounded-e":[{"rounded-e":b()}],"rounded-t":[{"rounded-t":b()}],"rounded-r":[{"rounded-r":b()}],"rounded-b":[{"rounded-b":b()}],"rounded-l":[{"rounded-l":b()}],"rounded-ss":[{"rounded-ss":b()}],"rounded-se":[{"rounded-se":b()}],"rounded-ee":[{"rounded-ee":b()}],"rounded-es":[{"rounded-es":b()}],"rounded-tl":[{"rounded-tl":b()}],"rounded-tr":[{"rounded-tr":b()}],"rounded-br":[{"rounded-br":b()}],"rounded-bl":[{"rounded-bl":b()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[he,Q,X]}],"outline-w":[{outline:["",he,Nr,mn]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",d,di,ci]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",c,di,ci]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[he,mn]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",f,di,ci]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[he,Q,X]}],"mix-blend":[{"mix-blend":[...Le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Le()}],"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":[he]}],"mask-image-linear-from-pos":[{"mask-linear-from":ke()}],"mask-image-linear-to-pos":[{"mask-linear-to":ke()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":ke()}],"mask-image-t-to-pos":[{"mask-t-to":ke()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":ke()}],"mask-image-r-to-pos":[{"mask-r-to":ke()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":ke()}],"mask-image-b-to-pos":[{"mask-b-to":ke()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":ke()}],"mask-image-l-to-pos":[{"mask-l-to":ke()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":ke()}],"mask-image-x-to-pos":[{"mask-x-to":ke()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":ke()}],"mask-image-y-to-pos":[{"mask-y-to":ke()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Q,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":ke()}],"mask-image-radial-to-pos":[{"mask-radial-to":ke()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[he]}],"mask-image-conic-from-pos":[{"mask-conic-from":ke()}],"mask-image-conic-to-pos":[{"mask-conic-to":ke()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:x()}],"mask-size":[{mask:we()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,X]}],filter:[{filter:["","none",Q,X]}],blur:[{blur:oe()}],brightness:[{brightness:[he,Q,X]}],contrast:[{contrast:[he,Q,X]}],"drop-shadow":[{"drop-shadow":["","none",p,di,ci]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",he,Q,X]}],"hue-rotate":[{"hue-rotate":[he,Q,X]}],invert:[{invert:["",he,Q,X]}],saturate:[{saturate:[he,Q,X]}],sepia:[{sepia:["",he,Q,X]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,X]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[he,Q,X]}],"backdrop-contrast":[{"backdrop-contrast":[he,Q,X]}],"backdrop-grayscale":[{"backdrop-grayscale":["",he,Q,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[he,Q,X]}],"backdrop-invert":[{"backdrop-invert":["",he,Q,X]}],"backdrop-opacity":[{"backdrop-opacity":[he,Q,X]}],"backdrop-saturate":[{"backdrop-saturate":[he,Q,X]}],"backdrop-sepia":[{"backdrop-sepia":["",he,Q,X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,X]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[he,"initial",Q,X]}],ease:[{ease:["linear","initial",v,Q,X]}],delay:[{delay:[he,Q,X]}],animate:[{animate:["none",T,Q,X]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,Q,X]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:De()}],"scale-x":[{"scale-x":De()}],"scale-y":[{"scale-y":De()}],"scale-z":[{"scale-z":De()}],"scale-3d":["scale-3d"],skew:[{skew:Ve()}],"skew-x":[{"skew-x":Ve()}],"skew-y":[{"skew-y":Ve()}],transform:[{transform:[Q,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Me()}],"translate-x":[{"translate-x":Me()}],"translate-y":[{"translate-y":Me()}],"translate-z":[{"translate-z":Me()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"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",Q,X]}],"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":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",Q,X]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[he,Nr,mn,ka]}],stroke:[{stroke:["none",...A()]}],"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"]}},kA=Cx(Ux),Hx=["top","right","bottom","left"],en=Math.min,ot=Math.max,Pi=Math.round,fi=Math.floor,Nt=e=>({x:e,y:e}),Gx={left:"right",right:"left",bottom:"top",top:"bottom"},Wx={start:"end",end:"start"};function so(e,t,n){return ot(e,en(t,n))}function Ft(e,t){return typeof e=="function"?e(t):e}function Bt(e){return e.split("-")[0]}function Jn(e){return e.split("-")[1]}function jo(e){return e==="x"?"y":"x"}function Fo(e){return e==="y"?"height":"width"}const Jx=new Set(["top","bottom"]);function Rt(e){return Jx.has(Bt(e))?"y":"x"}function Bo(e){return jo(Rt(e))}function Kx(e,t,n){n===void 0&&(n=!1);const r=Jn(e),i=Bo(e),a=Fo(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Oi(o)),[o,Oi(o)]}function Yx(e){const t=Oi(e);return[lo(e),t,lo(t)]}function lo(e){return e.replace(/start|end/g,t=>Wx[t])}const uu=["left","right"],cu=["right","left"],Xx=["top","bottom"],Qx=["bottom","top"];function ek(e,t,n){switch(e){case"top":case"bottom":return n?t?cu:uu:t?uu:cu;case"left":case"right":return t?Xx:Qx;default:return[]}}function tk(e,t,n,r){const i=Jn(e);let a=ek(Bt(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(lo)))),a}function Oi(e){return e.replace(/left|right|bottom|top/g,t=>Gx[t])}function nk(e){return{top:0,right:0,bottom:0,left:0,...e}}function dd(e){return typeof e!="number"?nk(e):{top:e,right:e,bottom:e,left:e}}function Li(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 du(e,t,n){let{reference:r,floating:i}=e;const a=Rt(t),o=Bo(t),s=Fo(o),l=Bt(t),u=a==="y",d=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:d,y:r.y-i.height};break;case"bottom":p={x:d,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(Jn(t)){case"start":p[o]-=f*(n&&u?-1:1);break;case"end":p[o]+=f*(n&&u?-1:1);break}return p}const rk=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:c}=du(u,r,l),f=r,p={},g=0;for(let y=0;y<s.length;y++){const{name:k,fn:v}=s[y],{x:T,y:_,data:P,reset:O}=await v({x:d,y:c,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});d=T??d,c=_??c,p={...p,[k]:{...p[k],...P}},O&&g<=50&&(g++,typeof O=="object"&&(O.placement&&(f=O.placement),O.rects&&(u=O.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:d,y:c}=du(u,f,l)),y=-1)}return{x:d,y:c,placement:f,strategy:i,middlewareData:p}};async function $r(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:p=0}=Ft(t,e),g=dd(p),k=s[f?c==="floating"?"reference":"floating":c],v=Li(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(k)))==null||n?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),T=c==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),P=await(a.isElement==null?void 0:a.isElement(_))?await(a.getScale==null?void 0:a.getScale(_))||{x:1,y:1}:{x:1,y:1},O=Li(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:T,offsetParent:_,strategy:l}):T);return{top:(v.top-O.top+g.top)/P.y,bottom:(O.bottom-v.bottom+g.bottom)/P.y,left:(v.left-O.left+g.left)/P.x,right:(O.right-v.right+g.right)/P.x}}const ik=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=Ft(e,t)||{};if(u==null)return{};const c=dd(d),f={x:n,y:r},p=Bo(i),g=Fo(p),y=await o.getDimensions(u),k=p==="y",v=k?"top":"left",T=k?"bottom":"right",_=k?"clientHeight":"clientWidth",P=a.reference[g]+a.reference[p]-f[p]-a.floating[g],O=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let q=S?S[_]:0;(!q||!await(o.isElement==null?void 0:o.isElement(S)))&&(q=s.floating[_]||a.floating[g]);const M=P/2-O/2,H=q/2-y[g]/2-1,C=en(c[v],H),ae=en(c[T],H),J=C,z=q-y[g]-ae,Z=q/2-y[g]/2+M,G=so(J,Z,z),E=!l.arrow&&Jn(i)!=null&&Z!==G&&a.reference[g]/2-(Z<J?C:ae)-y[g]/2<0,j=E?Z<J?Z-J:Z-z:0;return{[p]:f[p]+j,data:{[p]:G,centerOffset:Z-G-j,...E&&{alignmentOffset:j}},reset:E}}}),ak=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...k}=Ft(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=Bt(i),T=Rt(s),_=Bt(s)===s,P=await(l.isRTL==null?void 0:l.isRTL(u.floating)),O=f||(_||!y?[Oi(s)]:Yx(s)),S=g!=="none";!f&&S&&O.push(...tk(s,y,g,P));const q=[s,...O],M=await $r(t,k),H=[];let C=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&H.push(M[v]),c){const Z=Kx(i,o,P);H.push(M[Z[0]],M[Z[1]])}if(C=[...C,{placement:i,overflows:H}],!H.every(Z=>Z<=0)){var ae,J;const Z=(((ae=a.flip)==null?void 0:ae.index)||0)+1,G=q[Z];if(G&&(!(c==="alignment"?T!==Rt(G):!1)||C.every(A=>Rt(A.placement)===T?A.overflows[0]>0:!0)))return{data:{index:Z,overflows:C},reset:{placement:G}};let E=(J=C.filter(j=>j.overflows[0]<=0).sort((j,A)=>j.overflows[1]-A.overflows[1])[0])==null?void 0:J.placement;if(!E)switch(p){case"bestFit":{var z;const j=(z=C.filter(A=>{if(S){const ne=Rt(A.placement);return ne===T||ne==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(ne=>ne>0).reduce((ne,x)=>ne+x,0)]).sort((A,ne)=>A[1]-ne[1])[0])==null?void 0:z[0];j&&(E=j);break}case"initialPlacement":E=s;break}if(i!==E)return{reset:{placement:E}}}return{}}}};function fu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pu(e){return Hx.some(t=>e[t]>=0)}const ok=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Ft(e,t);switch(r){case"referenceHidden":{const a=await $r(t,{...i,elementContext:"reference"}),o=fu(a,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:pu(o)}}}case"escaped":{const a=await $r(t,{...i,altBoundary:!0}),o=fu(a,n.floating);return{data:{escapedOffsets:o,escaped:pu(o)}}}default:return{}}}}},fd=new Set(["left","top"]);async function sk(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Bt(n),s=Jn(n),l=Rt(n)==="y",u=fd.has(o)?-1:1,d=a&&l?-1:1,c=Ft(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof g=="number"&&(p=s==="end"?g*-1:g),l?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const lk=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await sk(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},uk=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:k=>{let{x:v,y:T}=k;return{x:v,y:T}}},...l}=Ft(e,t),u={x:n,y:r},d=await $r(t,l),c=Rt(Bt(i)),f=jo(c);let p=u[f],g=u[c];if(a){const k=f==="y"?"top":"left",v=f==="y"?"bottom":"right",T=p+d[k],_=p-d[v];p=so(T,p,_)}if(o){const k=c==="y"?"top":"left",v=c==="y"?"bottom":"right",T=g+d[k],_=g-d[v];g=so(T,g,_)}const y=s.fn({...t,[f]:p,[c]:g});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[f]:a,[c]:o}}}}}},ck=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Ft(e,t),d={x:n,y:r},c=Rt(i),f=jo(c);let p=d[f],g=d[c];const y=Ft(s,t),k=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const _=f==="y"?"height":"width",P=a.reference[f]-a.floating[_]+k.mainAxis,O=a.reference[f]+a.reference[_]-k.mainAxis;p<P?p=P:p>O&&(p=O)}if(u){var v,T;const _=f==="y"?"width":"height",P=fd.has(Bt(i)),O=a.reference[c]-a.floating[_]+(P&&((v=o.offset)==null?void 0:v[c])||0)+(P?0:k.crossAxis),S=a.reference[c]+a.reference[_]+(P?0:((T=o.offset)==null?void 0:T[c])||0)-(P?k.crossAxis:0);g<O?g=O:g>S&&(g=S)}return{[f]:p,[c]:g}}}},dk=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:l=()=>{},...u}=Ft(e,t),d=await $r(t,u),c=Bt(i),f=Jn(i),p=Rt(i)==="y",{width:g,height:y}=a.floating;let k,v;c==="top"||c==="bottom"?(k=c,v=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(v=c,k=f==="end"?"top":"bottom");const T=y-d.top-d.bottom,_=g-d.left-d.right,P=en(y-d[k],T),O=en(g-d[v],_),S=!t.middlewareData.shift;let q=P,M=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(q=T),S&&!f){const C=ot(d.left,0),ae=ot(d.right,0),J=ot(d.top,0),z=ot(d.bottom,0);p?M=g-2*(C!==0||ae!==0?C+ae:ot(d.left,d.right)):q=y-2*(J!==0||z!==0?J+z:ot(d.top,d.bottom))}await l({...t,availableWidth:M,availableHeight:q});const H=await o.getDimensions(s.floating);return g!==H.width||y!==H.height?{reset:{rects:!0}}:{}}}};function Gi(){return typeof window<"u"}function Kn(e){return pd(e)?(e.nodeName||"").toLowerCase():"#document"}function st(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ot(e){var t;return(t=(pd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function pd(e){return Gi()?e instanceof Node||e instanceof st(e).Node:!1}function _t(e){return Gi()?e instanceof Element||e instanceof st(e).Element:!1}function Pt(e){return Gi()?e instanceof HTMLElement||e instanceof st(e).HTMLElement:!1}function hu(e){return!Gi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof st(e).ShadowRoot}const fk=new Set(["inline","contents"]);function Jr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=St(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!fk.has(i)}const pk=new Set(["table","td","th"]);function hk(e){return pk.has(Kn(e))}const mk=[":popover-open",":modal"];function Wi(e){return mk.some(t=>{try{return e.matches(t)}catch{return!1}})}const gk=["transform","translate","scale","rotate","perspective"],yk=["transform","translate","scale","rotate","perspective","filter"],vk=["paint","layout","strict","content"];function qo(e){const t=Vo(),n=_t(e)?St(e):e;return gk.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)||yk.some(r=>(n.willChange||"").includes(r))||vk.some(r=>(n.contain||"").includes(r))}function bk(e){let t=tn(e);for(;Pt(t)&&!Vn(t);){if(qo(t))return t;if(Wi(t))return null;t=tn(t)}return null}function Vo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const xk=new Set(["html","body","#document"]);function Vn(e){return xk.has(Kn(e))}function St(e){return st(e).getComputedStyle(e)}function Ji(e){return _t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tn(e){if(Kn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hu(e)&&e.host||Ot(e);return hu(t)?t.host:t}function hd(e){const t=tn(e);return Vn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pt(t)&&Jr(t)?t:hd(t)}function Ur(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=hd(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=st(i);if(a){const s=uo(o);return t.concat(o,o.visualViewport||[],Jr(i)?i:[],s&&n?Ur(s):[])}return t.concat(i,Ur(i,[],n))}function uo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function md(e){const t=St(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Pt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Pi(n)!==a||Pi(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Zo(e){return _t(e)?e:e.contextElement}function Ln(e){const t=Zo(e);if(!Pt(t))return Nt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=md(t);let o=(a?Pi(n.width):n.width)/r,s=(a?Pi(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const kk=Nt(0);function gd(e){const t=st(e);return!Vo()||!t.visualViewport?kk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wk(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==st(e)?!1:t}function xn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Zo(e);let o=Nt(1);t&&(r?_t(r)&&(o=Ln(r)):o=Ln(e));const s=wk(a,n,r)?gd(a):Nt(0);let l=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,d=i.width/o.x,c=i.height/o.y;if(a){const f=st(a),p=r&&_t(r)?st(r):r;let g=f,y=uo(g);for(;y&&r&&p!==g;){const k=Ln(y),v=y.getBoundingClientRect(),T=St(y),_=v.left+(y.clientLeft+parseFloat(T.paddingLeft))*k.x,P=v.top+(y.clientTop+parseFloat(T.paddingTop))*k.y;l*=k.x,u*=k.y,d*=k.x,c*=k.y,l+=_,u+=P,g=st(y),y=uo(g)}}return Li({width:d,height:c,x:l,y:u})}function Ki(e,t){const n=Ji(e).scrollLeft;return t?t.left+n:xn(Ot(e)).left+n}function yd(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ki(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function _k(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Ot(r),s=t?Wi(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Nt(1);const d=Nt(0),c=Pt(r);if((c||!c&&!a)&&((Kn(r)!=="body"||Jr(o))&&(l=Ji(r)),Pt(r))){const p=xn(r);u=Ln(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const f=o&&!c&&!a?yd(o,l):Nt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-l.scrollTop*u.y+d.y+f.y}}function Sk(e){return Array.from(e.getClientRects())}function Ck(e){const t=Ot(e),n=Ji(e),r=e.ownerDocument.body,i=ot(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ot(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Ki(e);const s=-n.scrollTop;return St(r).direction==="rtl"&&(o+=ot(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}const mu=25;function Tk(e,t){const n=st(e),r=Ot(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const d=Vo();(!d||d&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const u=Ki(r);if(u<=0){const d=r.ownerDocument,c=d.body,f=getComputedStyle(c),p=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(r.clientWidth-c.clientWidth-p);g<=mu&&(a-=g)}else u<=mu&&(a+=u);return{width:a,height:o,x:s,y:l}}const Ek=new Set(["absolute","fixed"]);function Ak(e,t){const n=xn(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Pt(e)?Ln(e):Nt(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,u=r*a.y;return{width:o,height:s,x:l,y:u}}function gu(e,t,n){let r;if(t==="viewport")r=Tk(e,n);else if(t==="document")r=Ck(Ot(e));else if(_t(t))r=Ak(t,n);else{const i=gd(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Li(r)}function vd(e,t){const n=tn(e);return n===t||!_t(n)||Vn(n)?!1:St(n).position==="fixed"||vd(n,t)}function Rk(e,t){const n=t.get(e);if(n)return n;let r=Ur(e,[],!1).filter(s=>_t(s)&&Kn(s)!=="body"),i=null;const a=St(e).position==="fixed";let o=a?tn(e):e;for(;_t(o)&&!Vn(o);){const s=St(o),l=qo(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&Ek.has(i.position)||Jr(o)&&!l&&vd(e,o))?r=r.filter(d=>d!==o):i=s,o=tn(o)}return t.set(e,r),r}function Nk(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Wi(t)?[]:Rk(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,d)=>{const c=gu(t,d,i);return u.top=ot(c.top,u.top),u.right=en(c.right,u.right),u.bottom=en(c.bottom,u.bottom),u.left=ot(c.left,u.left),u},gu(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ik(e){const{width:t,height:n}=md(e);return{width:t,height:n}}function Pk(e,t,n){const r=Pt(t),i=Ot(t),a=n==="fixed",o=xn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Nt(0);function u(){l.x=Ki(i)}if(r||!r&&!a)if((Kn(t)!=="body"||Jr(i))&&(s=Ji(t)),r){const p=xn(t,!0,a,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&u();a&&!r&&i&&u();const d=i&&!r&&!a?yd(i,s):Nt(0),c=o.left+s.scrollLeft-l.x-d.x,f=o.top+s.scrollTop-l.y-d.y;return{x:c,y:f,width:o.width,height:o.height}}function wa(e){return St(e).position==="static"}function yu(e,t){if(!Pt(e)||St(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ot(e)===n&&(n=n.ownerDocument.body),n}function bd(e,t){const n=st(e);if(Wi(e))return n;if(!Pt(e)){let i=tn(e);for(;i&&!Vn(i);){if(_t(i)&&!wa(i))return i;i=tn(i)}return n}let r=yu(e,t);for(;r&&hk(r)&&wa(r);)r=yu(r,t);return r&&Vn(r)&&wa(r)&&!qo(r)?n:r||bk(e)||n}const Ok=async function(e){const t=this.getOffsetParent||bd,n=this.getDimensions,r=await n(e.floating);return{reference:Pk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Lk(e){return St(e).direction==="rtl"}const Dk={convertOffsetParentRelativeRectToViewportRelativeRect:_k,getDocumentElement:Ot,getClippingRect:Nk,getOffsetParent:bd,getElementRects:Ok,getClientRects:Sk,getDimensions:Ik,getScale:Ln,isElement:_t,isRTL:Lk};function xd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function zk(e,t){let n=null,r;const i=Ot(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:d,top:c,width:f,height:p}=u;if(s||t(),!f||!p)return;const g=fi(c),y=fi(i.clientWidth-(d+f)),k=fi(i.clientHeight-(c+p)),v=fi(d),_={rootMargin:-g+"px "+-y+"px "+-k+"px "+-v+"px",threshold:ot(0,en(1,l))||1};let P=!0;function O(S){const q=S[0].intersectionRatio;if(q!==l){if(!P)return o();q?o(!1,q):r=setTimeout(()=>{o(!1,1e-7)},1e3)}q===1&&!xd(u,e.getBoundingClientRect())&&o(),P=!1}try{n=new IntersectionObserver(O,{..._,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,_)}n.observe(e)}return o(!0),a}function wA(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Zo(e),d=i||a?[...u?Ur(u):[],...Ur(t)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const c=u&&s?zk(u,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(v=>{let[T]=v;T&&T.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=p)==null||_.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let g,y=l?xn(e):null;l&&k();function k(){const v=xn(e);y&&!xd(y,v)&&n(),y=v,g=requestAnimationFrame(k)}return n(),()=>{var v;d.forEach(T=>{i&&T.removeEventListener("scroll",n),a&&T.removeEventListener("resize",n)}),c?.(),(v=p)==null||v.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const Mk=lk,jk=uk,Fk=ak,Bk=dk,qk=ok,vu=ik,Vk=ck,Zk=(e,t,n)=>{const r=new Map,i={platform:Dk,...n},a={...i.platform,_c:r};return rk(e,t,{...i,platform:a})};var $k=typeof document<"u",Uk=function(){},ki=$k?U.useLayoutEffect:Uk;function Di(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(!Di(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 a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Di(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function kd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bu(e,t){const n=kd(e);return Math.round(t*n)/n}function _a(e){const t=U.useRef(e);return ki(()=>{t.current=e}),t}function _A(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,c]=U.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=U.useState(r);Di(f,r)||p(r);const[g,y]=U.useState(null),[k,v]=U.useState(null),T=U.useCallback(A=>{A!==S.current&&(S.current=A,y(A))},[]),_=U.useCallback(A=>{A!==q.current&&(q.current=A,v(A))},[]),P=a||g,O=o||k,S=U.useRef(null),q=U.useRef(null),M=U.useRef(d),H=l!=null,C=_a(l),ae=_a(i),J=_a(u),z=U.useCallback(()=>{if(!S.current||!q.current)return;const A={placement:t,strategy:n,middleware:f};ae.current&&(A.platform=ae.current),Zk(S.current,q.current,A).then(ne=>{const x={...ne,isPositioned:J.current!==!1};Z.current&&!Di(M.current,x)&&(M.current=x,eh.flushSync(()=>{c(x)}))})},[f,t,n,ae,J]);ki(()=>{u===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,c(A=>({...A,isPositioned:!1})))},[u]);const Z=U.useRef(!1);ki(()=>(Z.current=!0,()=>{Z.current=!1}),[]),ki(()=>{if(P&&(S.current=P),O&&(q.current=O),P&&O){if(C.current)return C.current(P,O,z);z()}},[P,O,z,C,H]);const G=U.useMemo(()=>({reference:S,floating:q,setReference:T,setFloating:_}),[T,_]),E=U.useMemo(()=>({reference:P,floating:O}),[P,O]),j=U.useMemo(()=>{const A={position:n,left:0,top:0};if(!E.floating)return A;const ne=bu(E.floating,d.x),x=bu(E.floating,d.y);return s?{...A,transform:"translate("+ne+"px, "+x+"px)",...kd(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ne,top:x}},[n,s,E.floating,d.x,d.y]);return U.useMemo(()=>({...d,update:z,refs:G,elements:E,floatingStyles:j}),[d,z,G,E,j])}const Hk=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?vu({element:r.current,padding:i}).fn(n):{}:r?vu({element:r,padding:i}).fn(n):{}}}},SA=(e,t)=>({...Mk(e),options:[e,t]}),CA=(e,t)=>({...jk(e),options:[e,t]}),TA=(e,t)=>({...Vk(e),options:[e,t]}),EA=(e,t)=>({...Fk(e),options:[e,t]}),AA=(e,t)=>({...Bk(e),options:[e,t]}),RA=(e,t)=>({...qk(e),options:[e,t]}),NA=(e,t)=>({...Hk(e),options:[e,t]});var Gk=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},En=new WeakMap,pi=new WeakMap,hi={},Sa=0,wd=function(e){return e&&(e.host||wd(e.parentNode))},Wk=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=wd(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})},Jk=function(e,t,n,r){var i=Wk(t,Array.isArray(e)?e:[e]);hi[n]||(hi[n]=new WeakMap);var a=hi[n],o=[],s=new Set,l=new Set(i),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};i.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(f){if(s.has(f))d(f);else try{var p=f.getAttribute(r),g=p!==null&&p!=="false",y=(En.get(f)||0)+1,k=(a.get(f)||0)+1;En.set(f,y),a.set(f,k),o.push(f),y===1&&g&&pi.set(f,!0),k===1&&f.setAttribute(n,"true"),g||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return d(t),s.clear(),Sa++,function(){o.forEach(function(c){var f=En.get(c)-1,p=a.get(c)-1;En.set(c,f),a.set(c,p),f||(pi.has(c)||c.removeAttribute(r),pi.delete(c)),p||c.removeAttribute(n)}),Sa--,Sa||(En=new WeakMap,En=new WeakMap,pi=new WeakMap,hi={})}},IA=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=Gk(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),Jk(r,i,n,"aria-hidden")):function(){return null}},zi=function(){return zi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},zi.apply(this,arguments)};function Kk(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 PA(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Ca(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Yk(e,t){var n=U.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 Xk=typeof window<"u"?U.useLayoutEffect:U.useEffect,xu=new WeakMap;function OA(e,t){var n=Yk(null,function(r){return e.forEach(function(i){return Ca(i,r)})});return Xk(function(){var r=xu.get(n);if(r){var i=new Set(r),a=new Set(e),o=n.current;i.forEach(function(s){a.has(s)||Ca(s,null)}),a.forEach(function(s){i.has(s)||Ca(s,o)})}xu.set(n,e)},[e]),n}function Qk(e){return e}function ew(e,t){t===void 0&&(t=Qk);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(a){var o=t(a,r);return n.push(o),function(){n=n.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(r=!0;n.length;){var o=n;n=[],o.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var o=[];if(n.length){var s=n;n=[],s.forEach(a),o=n}var l=function(){var d=o;o=[],d.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),n}}}};return i}function LA(e){e===void 0&&(e={});var t=ew(null);return t.options=zi({async:!0,ssr:!1},e),t}var _d=function(e){var t=e.sideCar,n=Kk(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 U.createElement(r,zi({},n))};_d.isSideCarExport=!0;function DA(e,t){return e.useMedium(t),_d}var zA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};class tw extends Error{name="Assertion";code="ERR_ASSERTION";constructor(t,n,r,i,a){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.actual=n,this.expected=r,this.generated=a,this.operator=i}}function w(e,t){Sd(!!e,!1,!0,"ok","Expected value to be truthy",t)}function MA(e){Sd(!1,!1,!0,"ok","Unreachable",e)}function Sd(e,t,n,r,i,a){if(!e)throw a instanceof Error?a:new tw(a||i,t,n,r,!a)}function nw(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const rw=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,aw={};function ku(e,t){return(aw.jsx?iw:rw).test(e)}const ow=/[ \t\n\f\r]/g;function sw(e){return typeof e=="object"?e.type==="text"?wu(e.value):!1:wu(e)}function wu(e){return e.replace(ow,"")===""}class Kr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Kr.prototype.normal={};Kr.prototype.property={};Kr.prototype.space=void 0;function Cd(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Kr(n,r,t)}function co(e){return e.toLowerCase()}class tt{constructor(t,n){this.attribute=n,this.property=t}}tt.prototype.attribute="";tt.prototype.booleanish=!1;tt.prototype.boolean=!1;tt.prototype.commaOrSpaceSeparated=!1;tt.prototype.commaSeparated=!1;tt.prototype.defined=!1;tt.prototype.mustUseProperty=!1;tt.prototype.number=!1;tt.prototype.overloadedBoolean=!1;tt.prototype.property="";tt.prototype.spaceSeparated=!1;tt.prototype.space=void 0;let lw=0;const de=Sn(),Oe=Sn(),fo=Sn(),F=Sn(),Te=Sn(),Dn=Sn(),at=Sn();function Sn(){return 2**++lw}const po=Object.freeze(Object.defineProperty({__proto__:null,boolean:de,booleanish:Oe,commaOrSpaceSeparated:at,commaSeparated:Dn,number:F,overloadedBoolean:fo,spaceSeparated:Te},Symbol.toStringTag,{value:"Module"})),Ta=Object.keys(po);class $o extends tt{constructor(t,n,r,i){let a=-1;if(super(t,n),_u(this,"space",i),typeof r=="number")for(;++a<Ta.length;){const o=Ta[a];_u(this,Ta[a],(r&po[o])===po[o])}}}$o.prototype.defined=!0;function _u(e,t,n){n&&(e[t]=n)}function Yn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new $o(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[co(r)]=r,n[co(a.attribute)]=r}return new Kr(t,n,e.space)}const Td=Yn({properties:{ariaActiveDescendant:null,ariaAtomic:Oe,ariaAutoComplete:null,ariaBusy:Oe,ariaChecked:Oe,ariaColCount:F,ariaColIndex:F,ariaColSpan:F,ariaControls:Te,ariaCurrent:null,ariaDescribedBy:Te,ariaDetails:null,ariaDisabled:Oe,ariaDropEffect:Te,ariaErrorMessage:null,ariaExpanded:Oe,ariaFlowTo:Te,ariaGrabbed:Oe,ariaHasPopup:null,ariaHidden:Oe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Te,ariaLevel:F,ariaLive:null,ariaModal:Oe,ariaMultiLine:Oe,ariaMultiSelectable:Oe,ariaOrientation:null,ariaOwns:Te,ariaPlaceholder:null,ariaPosInSet:F,ariaPressed:Oe,ariaReadOnly:Oe,ariaRelevant:null,ariaRequired:Oe,ariaRoleDescription:Te,ariaRowCount:F,ariaRowIndex:F,ariaRowSpan:F,ariaSelected:Oe,ariaSetSize:F,ariaSort:null,ariaValueMax:F,ariaValueMin:F,ariaValueNow:F,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ed(e,t){return t in e?e[t]:t}function Ad(e,t){return Ed(e,t.toLowerCase())}const uw=Yn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dn,acceptCharset:Te,accessKey:Te,action:null,allow:null,allowFullScreen:de,allowPaymentRequest:de,allowUserMedia:de,alt:null,as:null,async:de,autoCapitalize:null,autoComplete:Te,autoFocus:de,autoPlay:de,blocking:Te,capture:null,charSet:null,checked:de,cite:null,className:Te,cols:F,colSpan:null,content:null,contentEditable:Oe,controls:de,controlsList:Te,coords:F|Dn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:de,defer:de,dir:null,dirName:null,disabled:de,download:fo,draggable:Oe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:de,formTarget:null,headers:Te,height:F,hidden:fo,high:F,href:null,hrefLang:null,htmlFor:Te,httpEquiv:Te,id:null,imageSizes:null,imageSrcSet:null,inert:de,inputMode:null,integrity:null,is:null,isMap:de,itemId:null,itemProp:Te,itemRef:Te,itemScope:de,itemType:Te,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:de,low:F,manifest:null,max:null,maxLength:F,media:null,method:null,min:null,minLength:F,multiple:de,muted:de,name:null,nonce:null,noModule:de,noValidate:de,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:de,optimum:F,pattern:null,ping:Te,placeholder:null,playsInline:de,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:de,referrerPolicy:null,rel:Te,required:de,reversed:de,rows:F,rowSpan:F,sandbox:Te,scope:null,scoped:de,seamless:de,selected:de,shadowRootClonable:de,shadowRootDelegatesFocus:de,shadowRootMode:null,shape:null,size:F,sizes:null,slot:null,span:F,spellCheck:Oe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:F,step:null,style:null,tabIndex:F,target:null,title:null,translate:null,type:null,typeMustMatch:de,useMap:null,value:Oe,width:F,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Te,axis:null,background:null,bgColor:null,border:F,borderColor:null,bottomMargin:F,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:de,declare:de,event:null,face:null,frame:null,frameBorder:null,hSpace:F,leftMargin:F,link:null,longDesc:null,lowSrc:null,marginHeight:F,marginWidth:F,noResize:de,noHref:de,noShade:de,noWrap:de,object:null,profile:null,prompt:null,rev:null,rightMargin:F,rules:null,scheme:null,scrolling:Oe,standby:null,summary:null,text:null,topMargin:F,valueType:null,version:null,vAlign:null,vLink:null,vSpace:F,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:de,disableRemotePlayback:de,prefix:null,property:null,results:F,security:null,unselectable:null},space:"html",transform:Ad}),cw=Yn({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:at,accentHeight:F,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:F,amplitude:F,arabicForm:null,ascent:F,attributeName:null,attributeType:null,azimuth:F,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:F,by:null,calcMode:null,capHeight:F,className:Te,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:F,diffuseConstant:F,direction:null,display:null,dur:null,divisor:F,dominantBaseline:null,download:de,dx:null,dy:null,edgeMode:null,editable:null,elevation:F,enableBackground:null,end:null,event:null,exponent:F,externalResourcesRequired:null,fill:null,fillOpacity:F,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:Dn,g2:Dn,glyphName:Dn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:F,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:F,horizOriginX:F,horizOriginY:F,id:null,ideographic:F,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:F,k:F,k1:F,k2:F,k3:F,k4:F,kernelMatrix:at,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:F,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:F,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:F,overlineThickness:F,paintOrder:null,panose1:null,path:null,pathLength:F,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Te,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:F,pointsAtY:F,pointsAtZ:F,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:at,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:at,rev:at,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:at,requiredFeatures:at,requiredFonts:at,requiredFormats:at,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:F,specularExponent:F,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:F,strikethroughThickness:F,string:null,stroke:null,strokeDashArray:at,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:F,strokeOpacity:F,strokeWidth:null,style:null,surfaceScale:F,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:at,tabIndex:F,tableValues:null,target:null,targetX:F,targetY:F,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:at,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:F,underlineThickness:F,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:F,values:null,vAlphabetic:F,vMathematical:F,vectorEffect:null,vHanging:F,vIdeographic:F,version:null,vertAdvY:F,vertOriginX:F,vertOriginY:F,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:F,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ed}),Rd=Yn({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()}}),Nd=Yn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ad}),Id=Yn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),dw={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"},fw=/[A-Z]/g,Su=/-[a-z]/g,pw=/^data[-\w.:]+$/i;function hw(e,t){const n=co(t);let r=t,i=tt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&pw.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Su,gw);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Su.test(a)){let o=a.replace(fw,mw);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=$o}return new i(r,t)}function mw(e){return"-"+e.toLowerCase()}function gw(e){return e.charAt(1).toUpperCase()}const yw=Cd([Td,uw,Rd,Nd,Id],"html"),Uo=Cd([Td,cw,Rd,Nd,Id],"svg");function vw(e){return e.join(" ").trim()}var Cu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,bw=/\n/g,xw=/^\s*/,kw=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ww=/^:\s*/,_w=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Sw=/^[;\s]*/,Cw=/^\s+|\s+$/g,Tw=`
|
|
21
|
+
`,Tu="/",Eu="*",vn="",Ew="comment",Aw="declaration";function Rw(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var y=g.match(bw);y&&(n+=y.length);var k=g.lastIndexOf(Tw);r=~k?g.length-k:r+g.length}function a(){var g={line:n,column:r};return function(y){return y.position=new o(g),u(),y}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(g){var y=new Error(t.source+":"+n+":"+r+": "+g);if(y.reason=g,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(g){var y=g.exec(e);if(y){var k=y[0];return i(k),e=e.slice(k.length),y}}function u(){l(xw)}function d(g){var y;for(g=g||[];y=c();)y!==!1&&g.push(y);return g}function c(){var g=a();if(!(Tu!=e.charAt(0)||Eu!=e.charAt(1))){for(var y=2;vn!=e.charAt(y)&&(Eu!=e.charAt(y)||Tu!=e.charAt(y+1));)++y;if(y+=2,vn===e.charAt(y-1))return s("End of comment missing");var k=e.slice(2,y-2);return r+=2,i(k),e=e.slice(y),r+=2,g({type:Ew,comment:k})}}function f(){var g=a(),y=l(kw);if(y){if(c(),!l(ww))return s("property missing ':'");var k=l(_w),v=g({type:Aw,property:Au(y[0].replace(Cu,vn)),value:k?Au(k[0].replace(Cu,vn)):vn});return l(Sw),v}}function p(){var g=[];d(g);for(var y;y=f();)y!==!1&&(g.push(y),d(g));return g}return u(),p()}function Au(e){return e?e.replace(Cw,vn):vn}function Nw(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Rw(e),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:o,value:s}=a;i?t(o,s,a):s&&(n=n||{},n[o]=s)}),n}const Iw=Object.freeze(Object.defineProperty({__proto__:null,default:Nw},Symbol.toStringTag,{value:"Module"})),Pw=th(Iw);var Ir={},Ru;function Ow(){if(Ru)return Ir;Ru=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(u){return!u||n.test(u)||e.test(u)},o=function(u,d){return d.toUpperCase()},s=function(u,d){return"".concat(d,"-")},l=function(u,d){return d===void 0&&(d={}),a(u)?u:(u=u.toLowerCase(),d.reactCompat?u=u.replace(i,s):u=u.replace(r,s),u.replace(t,o))};return Ir.camelCase=l,Ir}var Pr,Nu;function Lw(){if(Nu)return Pr;Nu=1;var e=Pr&&Pr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Pw),n=Ow();function r(i,a){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(s,l){s&&l&&(o[(0,n.camelCase)(s,a)]=l)}),o}return r.default=r,Pr=r,Pr}var Dw=Lw();const zw=So(Dw),Pd=Od("end"),Ho=Od("start");function Od(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 Mw(e){const t=Ho(e),n=Pd(e);if(t&&n)return{start:t,end:n}}function Mr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Iu(e.position):"start"in e||"end"in e?Iu(e):"line"in e||"column"in e?ho(e):""}function ho(e){return Pu(e&&e.line)+":"+Pu(e&&e.column)}function Iu(e){return ho(e&&e.start)+"-"+ho(e&&e.end)}function Pu(e){return e&&typeof e=="number"?e:1}class He extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.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=Mr(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}He.prototype.file="";He.prototype.name="";He.prototype.reason="";He.prototype.message="";He.prototype.stack="";He.prototype.column=void 0;He.prototype.line=void 0;He.prototype.ancestors=void 0;He.prototype.cause=void 0;He.prototype.fatal=void 0;He.prototype.place=void 0;He.prototype.ruleId=void 0;He.prototype.source=void 0;const Go={}.hasOwnProperty,jw=new Map,Fw=/[A-Z]/g,Bw=new Set(["table","tbody","thead","tfoot","tr"]),qw=new Set(["td","th"]),Ld="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function jA(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=Jw(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=Ww(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"?Uo:yw,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Dd(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Dd(e,t,n){if(t.type==="element")return Vw(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Zw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Uw(e,t,n);if(t.type==="mdxjsEsm")return $w(e,t);if(t.type==="root")return Hw(e,t,n);if(t.type==="text")return Gw(e,t)}function Vw(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Uo,e.schema=i),e.ancestors.push(t);const a=Md(e,t.tagName,!1),o=Kw(e,t);let s=Jo(e,t);return Bw.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!sw(l):!0})),zd(e,o,a,t),Wo(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Zw(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return w(r.type==="ExpressionStatement"),e.evaluater.evaluateExpression(r.expression)}Hr(e,t.position)}function $w(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Hr(e,t.position)}function Uw(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Uo,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Md(e,t.name,!0),o=Yw(e,t),s=Jo(e,t);return zd(e,o,a,t),Wo(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Hw(e,t,n){const r={};return Wo(r,Jo(e,t)),e.create(t,e.Fragment,r,n)}function Gw(e,t){return t.value}function zd(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Wo(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ww(e,t,n){return r;function r(i,a,o,s){const u=Array.isArray(o.children)?n:t;return s?u(a,o,s):u(a,o)}}function Jw(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=Ho(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Kw(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Go.call(t.properties,i)){const a=Xw(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&qw.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Yw(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];w(a.type==="ExpressionStatement");const o=a.expression;w(o.type==="ObjectExpression");const s=o.properties[0];w(s.type==="SpreadElement"),Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Hr(e,t.position);else{const i=r.name;let a;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];w(s.type==="ExpressionStatement"),a=e.evaluater.evaluateExpression(s.expression)}else Hr(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Jo(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:jw;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const u=i.get(l)||0;o=l+"-"+u,i.set(l,u+1)}}const s=Dd(e,a,o);s!==void 0&&n.push(s)}return n}function Xw(e,t,n){const r=hw(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?nw(n):vw(n)),r.property==="style"){let i=typeof n=="object"?n:Qw(e,String(n));return e.stylePropertyNameCase==="css"&&(i=e_(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?dw[r.property]||r.property:r.attribute,n]}}function Qw(e,t){try{return zw(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new He("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=Ld+"#cannot-parse-style-attribute",i}}function Md(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,o;for(;++a<i.length;){const s=ku(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}w(o,"always a result"),r=o}else r=ku(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Go.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Hr(e)}function Hr(e,t){const n=new He("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=Ld+"#cannot-handle-mdx-estrees-without-createevaluater",n}function e_(e){const t={};let n;for(n in e)Go.call(e,n)&&(t[t_(n)]=e[n]);return t}function t_(e){let t=e.replace(Fw,n_);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function n_(e){return"-"+e.toLowerCase()}const FA={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"]},r_={};function Ko(e,t){const n=r_,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return jd(e,r,i)}function jd(e,t,n){if(i_(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 Ou(e.children,t,n)}return Array.isArray(e)?Ou(e,t,n):""}function Ou(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=jd(e[i],t,n);return r.join("")}function i_(e){return!!(e&&typeof e=="object")}const Lu={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
22
|
+
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},a_={}.hasOwnProperty;function Yo(e){return a_.call(Lu,e)?Lu[e]:!1}const h={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,ht:9,lf:10,vt:11,cr:13,space:32,exclamationMark:33,quotationMark:34,numberSign:35,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseH:72,uppercaseW:87,uppercaseX:88,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseH:104,lowercaseW:119,lowercaseX:120,leftCurlyBrace:123,verticalBar:124,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},$={attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},m={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"},At={ht:" ",lf:`
|
|
23
|
+
`,cr:"\r",space:" ",replacementCharacter:"�"};function lt(e,t,n,r){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<$.v8MaxSafeChunkSize)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+$.v8MaxSafeChunkSize),o.unshift(t,0),e.splice(...o),a+=$.v8MaxSafeChunkSize,t+=$.v8MaxSafeChunkSize}function ft(e,t){return e.length>0?(lt(e,e.length,0,t),e):t}const Du={}.hasOwnProperty;function Fd(e){const t={};let n=-1;for(;++n<e.length;)o_(t,e[n]);return t}function o_(e,t){let n;for(n in t){const i=(Du.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){Du.call(i,o)||(i[o]=[]);const s=a[o];s_(i[o],Array.isArray(s)?s:s?[s]:[])}}}function s_(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);lt(e,0,0,r)}function Bd(e,t){const n=Number.parseInt(e,t);return n<h.ht||n===h.vt||n>h.cr&&n<h.space||n>h.tilde&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?At.replacementCharacter:String.fromCodePoint(n)}function wt(e){return e.replace(/[\t\n\r ]+/g,At.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Je=rn(/[A-Za-z]/),Ue=rn(/[\dA-Za-z]/),l_=rn(/[#-'*+\--9=?A-Z^-~]/);function Mi(e){return e!==null&&(e<h.space||e===h.del)}const mo=rn(/\d/),u_=rn(/[\dA-Fa-f]/),c_=rn(/[!-/:-@[-`{-~]/);function Y(e){return e!==null&&e<h.horizontalTab}function Ce(e){return e!==null&&(e<h.nul||e===h.space)}function me(e){return e===h.horizontalTab||e===h.virtualSpace||e===h.space}const Yi=rn(new RegExp("\\p{P}|\\p{S}","u")),kn=rn(/\s/);function rn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Xn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===h.percentSign&&Ue(e.charCodeAt(n+1))&&Ue(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o=At.replacementCharacter}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function be(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return me(l)?(e.enter(n),s(l)):t(l)}function s(l){return me(l)&&a++<i?(e.consume(l),s):(e.exit(n),t(l))}}const d_={tokenize:f_};function f_(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(w(s===h.eof||Y(s),"expected eol or eof"),s===h.eof){e.consume(s);return}return e.enter(m.lineEnding),e.consume(s),e.exit(m.lineEnding),be(e,t,m.linePrefix)}function i(s){return w(s!==h.eof&&!Y(s),"expected anything other than a line ending or EOF"),e.enter(m.paragraph),a(s)}function a(s){const l=e.enter(m.chunkText,{contentType:$.contentTypeText,previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===h.eof){e.exit(m.chunkText),e.exit(m.paragraph),e.consume(s);return}return Y(s)?(e.consume(s),e.exit(m.chunkText),a):(e.consume(s),o)}}const p_={tokenize:h_},zu={tokenize:m_};function h_(e){const t=this,n=[];let r=0,i,a,o;return s;function s(_){if(r<n.length){const P=n[r];return t.containerState=P[1],w(P[0].continuation,"expected `continuation` to be defined on container construct"),e.attempt(P[0].continuation,l,u)(_)}return u(_)}function l(_){if(w(t.containerState,"expected `containerState` to be defined after continuation"),r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&T();const P=t.events.length;let O=P,S;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type===m.chunkFlow){S=t.events[O][1].end;break}w(S,"could not find previous flow chunk"),v(r);let q=P;for(;q<t.events.length;)t.events[q][1].end={...S},q++;return lt(t.events,O+1,0,t.events.slice(P)),t.events.length=q,u(_)}return s(_)}function u(_){if(r===n.length){if(!i)return f(_);if(i.currentConstruct&&i.currentConstruct.concrete)return g(_);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(zu,d,c)(_)}function d(_){return i&&T(),v(r),f(_)}function c(_){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(_)}function f(_){return t.containerState={},e.attempt(zu,p,g)(_)}function p(_){return w(t.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),w(t.containerState,"expected `containerState` to be defined on tokenizer"),r++,n.push([t.currentConstruct,t.containerState]),f(_)}function g(_){if(_===h.eof){i&&T(),v(0),e.consume(_);return}return i=i||t.parser.flow(t.now()),e.enter(m.chunkFlow,{_tokenizer:i,contentType:$.contentTypeFlow,previous:a}),y(_)}function y(_){if(_===h.eof){k(e.exit(m.chunkFlow),!0),v(0),e.consume(_);return}return Y(_)?(e.consume(_),k(e.exit(m.chunkFlow)),r=0,t.interrupt=void 0,s):(e.consume(_),y)}function k(_,P){w(i,"expected `childFlow` to be defined when continuing");const O=t.sliceStream(_);if(P&&O.push(null),_.previous=a,a&&(a.next=_),a=_,i.defineSkip(_.start),i.write(O),t.parser.lazy[_.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<o&&(!i.events[S][1].end||i.events[S][1].end.offset>o))return;const q=t.events.length;let M=q,H,C;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type===m.chunkFlow){if(H){C=t.events[M][1].end;break}H=!0}for(w(C,"could not find previous flow chunk"),v(r),S=q;S<t.events.length;)t.events[S][1].end={...C},S++;lt(t.events,M+1,0,t.events.slice(q)),t.events.length=S}}function v(_){let P=n.length;for(;P-- >_;){const O=n[P];t.containerState=O[1],w(O[0].exit,"expected `exit` to be defined on container construct"),O[0].exit.call(t,e)}n.length=_}function T(){w(t.containerState,"expected `containerState` to be defined when closing flow"),w(i,"expected `childFlow` to be defined when closing it"),i.write([h.eof]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function m_(e,t,n){return w(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),be(e,e.attempt(this.parser.constructs.document,t,n),m.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:$.tabSize)}function Zn(e){if(e===h.eof||Ce(e)||kn(e))return $.characterGroupWhitespace;if(Yi(e))return $.characterGroupPunctuation}function Xi(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const go={name:"attention",resolveAll:g_,tokenize:y_};function g_(e,t){let n=-1,r,i,a,o,s,l,u,d;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},f={...e[n][1].start};Mu(c,-l),Mu(f,l),o={type:l>1?m.strongSequence:m.emphasisSequence,start:c,end:{...e[r][1].end}},s={type:l>1?m.strongSequence:m.emphasisSequence,start:{...e[n][1].start},end:f},a={type:l>1?m.strongText:m.emphasisText,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?m.strong:m.emphasis,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ft(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ft(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),w(t.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),u=ft(u,Xi(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ft(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=ft(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,lt(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function y_(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Zn(r);let a;return o;function o(l){return w(l===h.asterisk||l===h.underscore,"expected asterisk or underscore"),a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const u=e.exit("attentionSequence"),d=Zn(l);w(n,"expected `attentionMarkers` to be populated");const c=!d||d===$.characterGroupPunctuation&&i||n.includes(l),f=!i||i===$.characterGroupPunctuation&&d||n.includes(r);return u._open=!!(a===h.asterisk?c:c&&(i||!f)),u._close=!!(a===h.asterisk?f:f&&(d||!c)),t(l)}}function Mu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const v_={name:"autolink",tokenize:b_};function b_(e,t,n){let r=0;return i;function i(p){return w(p===h.lessThan,"expected `<`"),e.enter(m.autolink),e.enter(m.autolinkMarker),e.consume(p),e.exit(m.autolinkMarker),e.enter(m.autolinkProtocol),a}function a(p){return Je(p)?(e.consume(p),o):p===h.atSign?n(p):u(p)}function o(p){return p===h.plusSign||p===h.dash||p===h.dot||Ue(p)?(r=1,s(p)):u(p)}function s(p){return p===h.colon?(e.consume(p),r=0,l):(p===h.plusSign||p===h.dash||p===h.dot||Ue(p))&&r++<$.autolinkSchemeSizeMax?(e.consume(p),s):(r=0,u(p))}function l(p){return p===h.greaterThan?(e.exit(m.autolinkProtocol),e.enter(m.autolinkMarker),e.consume(p),e.exit(m.autolinkMarker),e.exit(m.autolink),t):p===h.eof||p===h.space||p===h.lessThan||Mi(p)?n(p):(e.consume(p),l)}function u(p){return p===h.atSign?(e.consume(p),d):l_(p)?(e.consume(p),u):n(p)}function d(p){return Ue(p)?c(p):n(p)}function c(p){return p===h.dot?(e.consume(p),r=0,d):p===h.greaterThan?(e.exit(m.autolinkProtocol).type=m.autolinkEmail,e.enter(m.autolinkMarker),e.consume(p),e.exit(m.autolinkMarker),e.exit(m.autolink),t):f(p)}function f(p){if((p===h.dash||Ue(p))&&r++<$.autolinkDomainSizeMax){const g=p===h.dash?f:c;return e.consume(p),g}return n(p)}}const Yr={partial:!0,tokenize:x_};function x_(e,t,n){return r;function r(a){return me(a)?be(e,i,m.linePrefix)(a):i(a)}function i(a){return a===h.eof||Y(a)?t(a):n(a)}}const qd={continuation:{tokenize:w_},exit:__,name:"blockQuote",tokenize:k_};function k_(e,t,n){const r=this;return i;function i(o){if(o===h.greaterThan){const s=r.containerState;return w(s,"expected `containerState` to be defined in container"),s.open||(e.enter(m.blockQuote,{_container:!0}),s.open=!0),e.enter(m.blockQuotePrefix),e.enter(m.blockQuoteMarker),e.consume(o),e.exit(m.blockQuoteMarker),a}return n(o)}function a(o){return me(o)?(e.enter(m.blockQuotePrefixWhitespace),e.consume(o),e.exit(m.blockQuotePrefixWhitespace),e.exit(m.blockQuotePrefix),t):(e.exit(m.blockQuotePrefix),t(o))}}function w_(e,t,n){const r=this;return i;function i(o){return me(o)?(w(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),be(e,a,m.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:$.tabSize)(o)):a(o)}function a(o){return e.attempt(qd,t,n)(o)}}function __(e){e.exit(m.blockQuote)}const Vd={name:"characterEscape",tokenize:S_};function S_(e,t,n){return r;function r(a){return w(a===h.backslash,"expected `\\`"),e.enter(m.characterEscape),e.enter(m.escapeMarker),e.consume(a),e.exit(m.escapeMarker),i}function i(a){return c_(a)?(e.enter(m.characterEscapeValue),e.consume(a),e.exit(m.characterEscapeValue),e.exit(m.characterEscape),t):n(a)}}const Zd={name:"characterReference",tokenize:C_};function C_(e,t,n){const r=this;let i=0,a,o;return s;function s(c){return w(c===h.ampersand,"expected `&`"),e.enter(m.characterReference),e.enter(m.characterReferenceMarker),e.consume(c),e.exit(m.characterReferenceMarker),l}function l(c){return c===h.numberSign?(e.enter(m.characterReferenceMarkerNumeric),e.consume(c),e.exit(m.characterReferenceMarkerNumeric),u):(e.enter(m.characterReferenceValue),a=$.characterReferenceNamedSizeMax,o=Ue,d(c))}function u(c){return c===h.uppercaseX||c===h.lowercaseX?(e.enter(m.characterReferenceMarkerHexadecimal),e.consume(c),e.exit(m.characterReferenceMarkerHexadecimal),e.enter(m.characterReferenceValue),a=$.characterReferenceHexadecimalSizeMax,o=u_,d):(e.enter(m.characterReferenceValue),a=$.characterReferenceDecimalSizeMax,o=mo,d(c))}function d(c){if(c===h.semicolon&&i){const f=e.exit(m.characterReferenceValue);return o===Ue&&!Yo(r.sliceSerialize(f))?n(c):(e.enter(m.characterReferenceMarker),e.consume(c),e.exit(m.characterReferenceMarker),e.exit(m.characterReference),t)}return o(c)&&i++<a?(e.consume(c),d):n(c)}}const ju={partial:!0,tokenize:E_},Fu={concrete:!0,name:"codeFenced",tokenize:T_};function T_(e,t,n){const r=this,i={partial:!0,tokenize:O};let a=0,o=0,s;return l;function l(S){return u(S)}function u(S){w(S===h.graveAccent||S===h.tilde,"expected `` ` `` or `~`");const q=r.events[r.events.length-1];return a=q&&q[1].type===m.linePrefix?q[2].sliceSerialize(q[1],!0).length:0,s=S,e.enter(m.codeFenced),e.enter(m.codeFencedFence),e.enter(m.codeFencedFenceSequence),d(S)}function d(S){return S===s?(o++,e.consume(S),d):o<$.codeFencedSequenceSizeMin?n(S):(e.exit(m.codeFencedFenceSequence),me(S)?be(e,c,m.whitespace)(S):c(S))}function c(S){return S===h.eof||Y(S)?(e.exit(m.codeFencedFence),r.interrupt?t(S):e.check(ju,y,P)(S)):(e.enter(m.codeFencedFenceInfo),e.enter(m.chunkString,{contentType:$.contentTypeString}),f(S))}function f(S){return S===h.eof||Y(S)?(e.exit(m.chunkString),e.exit(m.codeFencedFenceInfo),c(S)):me(S)?(e.exit(m.chunkString),e.exit(m.codeFencedFenceInfo),be(e,p,m.whitespace)(S)):S===h.graveAccent&&S===s?n(S):(e.consume(S),f)}function p(S){return S===h.eof||Y(S)?c(S):(e.enter(m.codeFencedFenceMeta),e.enter(m.chunkString,{contentType:$.contentTypeString}),g(S))}function g(S){return S===h.eof||Y(S)?(e.exit(m.chunkString),e.exit(m.codeFencedFenceMeta),c(S)):S===h.graveAccent&&S===s?n(S):(e.consume(S),g)}function y(S){return w(Y(S),"expected eol"),e.attempt(i,P,k)(S)}function k(S){return w(Y(S),"expected eol"),e.enter(m.lineEnding),e.consume(S),e.exit(m.lineEnding),v}function v(S){return a>0&&me(S)?be(e,T,m.linePrefix,a+1)(S):T(S)}function T(S){return S===h.eof||Y(S)?e.check(ju,y,P)(S):(e.enter(m.codeFlowValue),_(S))}function _(S){return S===h.eof||Y(S)?(e.exit(m.codeFlowValue),T(S)):(e.consume(S),_)}function P(S){return e.exit(m.codeFenced),t(S)}function O(S,q,M){let H=0;return C;function C(G){return w(Y(G),"expected eol"),S.enter(m.lineEnding),S.consume(G),S.exit(m.lineEnding),ae}function ae(G){return w(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),S.enter(m.codeFencedFence),me(G)?be(S,J,m.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:$.tabSize)(G):J(G)}function J(G){return G===s?(S.enter(m.codeFencedFenceSequence),z(G)):M(G)}function z(G){return G===s?(H++,S.consume(G),z):H>=o?(S.exit(m.codeFencedFenceSequence),me(G)?be(S,Z,m.whitespace)(G):Z(G)):M(G)}function Z(G){return G===h.eof||Y(G)?(S.exit(m.codeFencedFence),q(G)):M(G)}}}function E_(e,t,n){const r=this;return i;function i(o){return o===h.eof?n(o):(w(Y(o),"expected eol"),e.enter(m.lineEnding),e.consume(o),e.exit(m.lineEnding),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Ea={name:"codeIndented",tokenize:R_},A_={partial:!0,tokenize:N_};function R_(e,t,n){const r=this;return i;function i(u){return w(me(u)),e.enter(m.codeIndented),be(e,a,m.linePrefix,$.tabSize+1)(u)}function a(u){const d=r.events[r.events.length-1];return d&&d[1].type===m.linePrefix&&d[2].sliceSerialize(d[1],!0).length>=$.tabSize?o(u):n(u)}function o(u){return u===h.eof?l(u):Y(u)?e.attempt(A_,o,l)(u):(e.enter(m.codeFlowValue),s(u))}function s(u){return u===h.eof||Y(u)?(e.exit(m.codeFlowValue),o(u)):(e.consume(u),s)}function l(u){return e.exit(m.codeIndented),t(u)}}function N_(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Y(o)?(e.enter(m.lineEnding),e.consume(o),e.exit(m.lineEnding),i):be(e,a,m.linePrefix,$.tabSize+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type===m.linePrefix&&s[2].sliceSerialize(s[1],!0).length>=$.tabSize?t(o):Y(o)?i(o):n(o)}}const I_={name:"codeText",previous:$d,resolve:P_,tokenize:O_};function P_(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===m.lineEnding||e[n][1].type==="space")&&(e[t][1].type===m.lineEnding||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type===m.codeTextData){e[n][1].type=m.codeTextPadding,e[t][1].type=m.codeTextPadding,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==m.lineEnding&&(i=r):(r===t||e[r][1].type===m.lineEnding)&&(e[i][1].type=m.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 $d(e){return e!==h.graveAccent||this.events[this.events.length-1][1].type===m.characterEscape}function O_(e,t,n){const r=this;let i=0,a,o;return s;function s(f){return w(f===h.graveAccent,"expected `` ` ``"),w($d.call(r,r.previous),"expected correct previous"),e.enter(m.codeText),e.enter(m.codeTextSequence),l(f)}function l(f){return f===h.graveAccent?(e.consume(f),i++,l):(e.exit(m.codeTextSequence),u(f))}function u(f){return f===h.eof?n(f):f===h.space?(e.enter("space"),e.consume(f),e.exit("space"),u):f===h.graveAccent?(o=e.enter(m.codeTextSequence),a=0,c(f)):Y(f)?(e.enter(m.lineEnding),e.consume(f),e.exit(m.lineEnding),u):(e.enter(m.codeTextData),d(f))}function d(f){return f===h.eof||f===h.space||f===h.graveAccent||Y(f)?(e.exit(m.codeTextData),u(f)):(e.consume(f),d)}function c(f){return f===h.graveAccent?(e.consume(f),a++,c):a===i?(e.exit(m.codeTextSequence),e.exit(m.codeText),t(f)):(o.type=m.codeTextData,d(f))}}class L_{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 a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Or(this.left,r),a.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),Or(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Or(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);Or(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Or(this.left,n.reverse())}}}function Or(e,t){let n=0;if(t.length<$.v8MaxSafeChunkSize)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+$.v8MaxSafeChunkSize)),n+=$.v8MaxSafeChunkSize}function Ud(e){const t={};let n=-1,r,i,a,o,s,l,u;const d=new L_(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type===m.chunkFlow&&d.get(n-1)[1].type===m.listItemPrefix&&(w(r[1]._tokenizer,"expected `_tokenizer` on subtokens"),l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type===m.lineEndingBlank&&(a+=2),a<l.length&&l[a][1].type===m.content))for(;++a<l.length&&l[a][1].type!==m.content;)l[a][1].type===m.chunkText&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,D_(d,n)),n=t[n],u=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=d.get(a),o[1].type===m.lineEnding||o[1].type===m.lineEndingBlank)o[0]==="enter"&&(i&&(d.get(i)[1].type=m.lineEndingBlank),o[1].type=m.lineEnding,i=a);else if(!(o[1].type===m.linePrefix||o[1].type===m.listItemIndent))break;i&&(r[1].end={...d.get(i)[1].start},s=d.slice(i,n),s.unshift(r),d.splice(i,n-i+1,s))}}return lt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function D_(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];w(n.contentType,"expected `contentType` on subtokens");let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],u={};let d,c,f=-1,p=n,g=0,y=0;const k=[y];for(;p;){for(;e.get(++i)[1]!==p;);w(!c||p.previous===c,"expected previous to match"),w(!c||c.next===p,"expected next to match"),a.push(i),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(h.eof),c&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(w(p,"expected a current token"),y=f+1,k.push(y),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0,w(!p.next,"expected no next token")):k.pop(),f=k.length;f--;){const v=s.slice(k[f],k[f+1]),T=a.pop();w(T!==void 0,"expected a start position when splicing"),l.push([T,T+v.length-1]),e.splice(T,2,v)}for(l.reverse(),f=-1;++f<l.length;)u[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return u}const z_={resolve:j_,tokenize:F_},M_={partial:!0,tokenize:B_};function j_(e){return Ud(e),e}function F_(e,t){let n;return r;function r(s){return w(s!==h.eof&&!Y(s),"expected no eof or eol"),e.enter(m.content),n=e.enter(m.chunkContent,{contentType:$.contentTypeContent}),i(s)}function i(s){return s===h.eof?a(s):Y(s)?e.check(M_,o,a)(s):(e.consume(s),i)}function a(s){return e.exit(m.chunkContent),e.exit(m.content),t(s)}function o(s){return w(Y(s),"expected eol"),e.consume(s),e.exit(m.chunkContent),w(n,"expected previous token"),n.next=e.enter(m.chunkContent,{contentType:$.contentTypeContent,previous:n}),n=n.next,i}}function B_(e,t,n){const r=this;return i;function i(o){return w(Y(o),"expected a line ending"),e.exit(m.chunkContent),e.enter(m.lineEnding),e.consume(o),e.exit(m.lineEnding),be(e,a,m.linePrefix)}function a(o){if(o===h.eof||Y(o))return n(o);w(r.parser.constructs.disable.null,"expected `disable.null` to be populated");const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type===m.linePrefix&&s[2].sliceSerialize(s[1],!0).length>=$.tabSize?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Hd(e,t,n,r,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return c;function c(v){return v===h.lessThan?(e.enter(r),e.enter(i),e.enter(a),e.consume(v),e.exit(a),f):v===h.eof||v===h.space||v===h.rightParenthesis||Mi(v)?n(v):(e.enter(r),e.enter(o),e.enter(s),e.enter(m.chunkString,{contentType:$.contentTypeString}),y(v))}function f(v){return v===h.greaterThan?(e.enter(a),e.consume(v),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(m.chunkString,{contentType:$.contentTypeString}),p(v))}function p(v){return v===h.greaterThan?(e.exit(m.chunkString),e.exit(s),f(v)):v===h.eof||v===h.lessThan||Y(v)?n(v):(e.consume(v),v===h.backslash?g:p)}function g(v){return v===h.lessThan||v===h.greaterThan||v===h.backslash?(e.consume(v),p):p(v)}function y(v){return!d&&(v===h.eof||v===h.rightParenthesis||Ce(v))?(e.exit(m.chunkString),e.exit(s),e.exit(o),e.exit(r),t(v)):d<u&&v===h.leftParenthesis?(e.consume(v),d++,y):v===h.rightParenthesis?(e.consume(v),d--,y):v===h.eof||v===h.space||v===h.leftParenthesis||Mi(v)?n(v):(e.consume(v),v===h.backslash?k:y)}function k(v){return v===h.leftParenthesis||v===h.rightParenthesis||v===h.backslash?(e.consume(v),y):y(v)}}function Gd(e,t,n,r,i,a){const o=this;let s=0,l;return u;function u(p){return w(p===h.leftSquareBracket,"expected `[`"),e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(a),d}function d(p){return s>$.linkReferenceSizeMax||p===h.eof||p===h.leftSquareBracket||p===h.rightSquareBracket&&!l||p===h.caret&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===h.rightSquareBracket?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):Y(p)?(e.enter(m.lineEnding),e.consume(p),e.exit(m.lineEnding),d):(e.enter(m.chunkString,{contentType:$.contentTypeString}),c(p))}function c(p){return p===h.eof||p===h.leftSquareBracket||p===h.rightSquareBracket||Y(p)||s++>$.linkReferenceSizeMax?(e.exit(m.chunkString),d(p)):(e.consume(p),l||(l=!me(p)),p===h.backslash?f:c)}function f(p){return p===h.leftSquareBracket||p===h.backslash||p===h.rightSquareBracket?(e.consume(p),s++,c):c(p)}}function Wd(e,t,n,r,i,a){let o;return s;function s(f){return f===h.quotationMark||f===h.apostrophe||f===h.leftParenthesis?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===h.leftParenthesis?h.rightParenthesis:f,l):n(f)}function l(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(a),u(f))}function u(f){return f===o?(e.exit(a),l(o)):f===h.eof?n(f):Y(f)?(e.enter(m.lineEnding),e.consume(f),e.exit(m.lineEnding),be(e,u,m.linePrefix)):(e.enter(m.chunkString,{contentType:$.contentTypeString}),d(f))}function d(f){return f===o||f===h.eof||Y(f)?(e.exit(m.chunkString),u(f)):(e.consume(f),f===h.backslash?c:d)}function c(f){return f===o||f===h.backslash?(e.consume(f),d):d(f)}}function jr(e,t){let n;return r;function r(i){return Y(i)?(e.enter(m.lineEnding),e.consume(i),e.exit(m.lineEnding),n=!0,r):me(i)?be(e,r,n?m.linePrefix:m.lineSuffix)(i):t(i)}}const q_={name:"definition",tokenize:Z_},V_={partial:!0,tokenize:$_};function Z_(e,t,n){const r=this;let i;return a;function a(p){return e.enter(m.definition),o(p)}function o(p){return w(p===h.leftSquareBracket,"expected `[`"),Gd.call(r,e,s,n,m.definitionLabel,m.definitionLabelMarker,m.definitionLabelString)(p)}function s(p){return i=wt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===h.colon?(e.enter(m.definitionMarker),e.consume(p),e.exit(m.definitionMarker),l):n(p)}function l(p){return Ce(p)?jr(e,u)(p):u(p)}function u(p){return Hd(e,d,n,m.definitionDestination,m.definitionDestinationLiteral,m.definitionDestinationLiteralMarker,m.definitionDestinationRaw,m.definitionDestinationString)(p)}function d(p){return e.attempt(V_,c,c)(p)}function c(p){return me(p)?be(e,f,m.whitespace)(p):f(p)}function f(p){return p===h.eof||Y(p)?(e.exit(m.definition),r.parser.defined.push(i),t(p)):n(p)}}function $_(e,t,n){return r;function r(s){return Ce(s)?jr(e,i)(s):n(s)}function i(s){return Wd(e,a,n,m.definitionTitle,m.definitionTitleMarker,m.definitionTitleString)(s)}function a(s){return me(s)?be(e,o,m.whitespace)(s):o(s)}function o(s){return s===h.eof||Y(s)?t(s):n(s)}}const U_={name:"hardBreakEscape",tokenize:H_};function H_(e,t,n){return r;function r(a){return w(a===h.backslash,"expected `\\`"),e.enter(m.hardBreakEscape),e.consume(a),i}function i(a){return Y(a)?(e.exit(m.hardBreakEscape),t(a)):n(a)}}const G_={name:"headingAtx",resolve:W_,tokenize:J_};function W_(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===m.whitespace&&(r+=2),n-2>r&&e[n][1].type===m.whitespace&&(n-=2),e[n][1].type===m.atxHeadingSequence&&(r===n-1||n-4>r&&e[n-2][1].type===m.whitespace)&&(n-=r+1===n?2:4),n>r&&(i={type:m.atxHeadingText,start:e[r][1].start,end:e[n][1].end},a={type:m.chunkText,start:e[r][1].start,end:e[n][1].end,contentType:$.contentTypeText},lt(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function J_(e,t,n){let r=0;return i;function i(d){return e.enter(m.atxHeading),a(d)}function a(d){return w(d===h.numberSign,"expected `#`"),e.enter(m.atxHeadingSequence),o(d)}function o(d){return d===h.numberSign&&r++<$.atxHeadingOpeningFenceSizeMax?(e.consume(d),o):d===h.eof||Ce(d)?(e.exit(m.atxHeadingSequence),s(d)):n(d)}function s(d){return d===h.numberSign?(e.enter(m.atxHeadingSequence),l(d)):d===h.eof||Y(d)?(e.exit(m.atxHeading),t(d)):me(d)?be(e,s,m.whitespace)(d):(e.enter(m.atxHeadingText),u(d))}function l(d){return d===h.numberSign?(e.consume(d),l):(e.exit(m.atxHeadingSequence),s(d))}function u(d){return d===h.eof||d===h.numberSign||Ce(d)?(e.exit(m.atxHeadingText),s(d)):(e.consume(d),u)}}const K_=["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"],Bu=["pre","script","style","textarea"],Y_={concrete:!0,name:"htmlFlow",resolveTo:e0,tokenize:t0},X_={partial:!0,tokenize:r0},Q_={partial:!0,tokenize:n0};function e0(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type===m.htmlFlow););return t>1&&e[t-2][1].type===m.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 t0(e,t,n){const r=this;let i,a,o,s,l;return u;function u(b){return d(b)}function d(b){return w(b===h.lessThan,"expected `<`"),e.enter(m.htmlFlow),e.enter(m.htmlFlowData),e.consume(b),c}function c(b){return b===h.exclamationMark?(e.consume(b),f):b===h.slash?(e.consume(b),a=!0,y):b===h.questionMark?(e.consume(b),i=$.htmlInstruction,r.interrupt?t:x):Je(b)?(w(b!==null),e.consume(b),o=String.fromCharCode(b),k):n(b)}function f(b){return b===h.dash?(e.consume(b),i=$.htmlComment,p):b===h.leftSquareBracket?(e.consume(b),i=$.htmlCdata,s=0,g):Je(b)?(e.consume(b),i=$.htmlDeclaration,r.interrupt?t:x):n(b)}function p(b){return b===h.dash?(e.consume(b),r.interrupt?t:x):n(b)}function g(b){const re=$.cdataOpeningString;return b===re.charCodeAt(s++)?(e.consume(b),s===re.length?r.interrupt?t:J:g):n(b)}function y(b){return Je(b)?(w(b!==null),e.consume(b),o=String.fromCharCode(b),k):n(b)}function k(b){if(b===h.eof||b===h.slash||b===h.greaterThan||Ce(b)){const re=b===h.slash,fe=o.toLowerCase();return!re&&!a&&Bu.includes(fe)?(i=$.htmlRaw,r.interrupt?t(b):J(b)):K_.includes(o.toLowerCase())?(i=$.htmlBasic,re?(e.consume(b),v):r.interrupt?t(b):J(b)):(i=$.htmlComplete,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):a?T(b):_(b))}return b===h.dash||Ue(b)?(e.consume(b),o+=String.fromCharCode(b),k):n(b)}function v(b){return b===h.greaterThan?(e.consume(b),r.interrupt?t:J):n(b)}function T(b){return me(b)?(e.consume(b),T):C(b)}function _(b){return b===h.slash?(e.consume(b),C):b===h.colon||b===h.underscore||Je(b)?(e.consume(b),P):me(b)?(e.consume(b),_):C(b)}function P(b){return b===h.dash||b===h.dot||b===h.colon||b===h.underscore||Ue(b)?(e.consume(b),P):O(b)}function O(b){return b===h.equalsTo?(e.consume(b),S):me(b)?(e.consume(b),O):_(b)}function S(b){return b===h.eof||b===h.lessThan||b===h.equalsTo||b===h.greaterThan||b===h.graveAccent?n(b):b===h.quotationMark||b===h.apostrophe?(e.consume(b),l=b,q):me(b)?(e.consume(b),S):M(b)}function q(b){return b===l?(e.consume(b),l=null,H):b===h.eof||Y(b)?n(b):(e.consume(b),q)}function M(b){return b===h.eof||b===h.quotationMark||b===h.apostrophe||b===h.slash||b===h.lessThan||b===h.equalsTo||b===h.greaterThan||b===h.graveAccent||Ce(b)?O(b):(e.consume(b),M)}function H(b){return b===h.slash||b===h.greaterThan||me(b)?_(b):n(b)}function C(b){return b===h.greaterThan?(e.consume(b),ae):n(b)}function ae(b){return b===h.eof||Y(b)?J(b):me(b)?(e.consume(b),ae):n(b)}function J(b){return b===h.dash&&i===$.htmlComment?(e.consume(b),E):b===h.lessThan&&i===$.htmlRaw?(e.consume(b),j):b===h.greaterThan&&i===$.htmlDeclaration?(e.consume(b),we):b===h.questionMark&&i===$.htmlInstruction?(e.consume(b),x):b===h.rightSquareBracket&&i===$.htmlCdata?(e.consume(b),ne):Y(b)&&(i===$.htmlBasic||i===$.htmlComplete)?(e.exit(m.htmlFlowData),e.check(X_,Ne,z)(b)):b===h.eof||Y(b)?(e.exit(m.htmlFlowData),z(b)):(e.consume(b),J)}function z(b){return e.check(Q_,Z,Ne)(b)}function Z(b){return w(Y(b)),e.enter(m.lineEnding),e.consume(b),e.exit(m.lineEnding),G}function G(b){return b===h.eof||Y(b)?z(b):(e.enter(m.htmlFlowData),J(b))}function E(b){return b===h.dash?(e.consume(b),x):J(b)}function j(b){return b===h.slash?(e.consume(b),o="",A):J(b)}function A(b){if(b===h.greaterThan){const re=o.toLowerCase();return Bu.includes(re)?(e.consume(b),we):J(b)}return Je(b)&&o.length<$.htmlRawSizeMax?(w(b!==null),e.consume(b),o+=String.fromCharCode(b),A):J(b)}function ne(b){return b===h.rightSquareBracket?(e.consume(b),x):J(b)}function x(b){return b===h.greaterThan?(e.consume(b),we):b===h.dash&&i===$.htmlComment?(e.consume(b),x):J(b)}function we(b){return b===h.eof||Y(b)?(e.exit(m.htmlFlowData),Ne(b)):(e.consume(b),we)}function Ne(b){return e.exit(m.htmlFlow),t(b)}}function n0(e,t,n){const r=this;return i;function i(o){return Y(o)?(e.enter(m.lineEnding),e.consume(o),e.exit(m.lineEnding),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function r0(e,t,n){return r;function r(i){return w(Y(i),"expected a line ending"),e.enter(m.lineEnding),e.consume(i),e.exit(m.lineEnding),e.attempt(Yr,t,n)}}const i0={name:"htmlText",tokenize:a0};function a0(e,t,n){const r=this;let i,a,o;return s;function s(x){return w(x===h.lessThan,"expected `<`"),e.enter(m.htmlText),e.enter(m.htmlTextData),e.consume(x),l}function l(x){return x===h.exclamationMark?(e.consume(x),u):x===h.slash?(e.consume(x),O):x===h.questionMark?(e.consume(x),_):Je(x)?(e.consume(x),M):n(x)}function u(x){return x===h.dash?(e.consume(x),d):x===h.leftSquareBracket?(e.consume(x),a=0,g):Je(x)?(e.consume(x),T):n(x)}function d(x){return x===h.dash?(e.consume(x),p):n(x)}function c(x){return x===h.eof?n(x):x===h.dash?(e.consume(x),f):Y(x)?(o=c,j(x)):(e.consume(x),c)}function f(x){return x===h.dash?(e.consume(x),p):c(x)}function p(x){return x===h.greaterThan?E(x):x===h.dash?f(x):c(x)}function g(x){const we=$.cdataOpeningString;return x===we.charCodeAt(a++)?(e.consume(x),a===we.length?y:g):n(x)}function y(x){return x===h.eof?n(x):x===h.rightSquareBracket?(e.consume(x),k):Y(x)?(o=y,j(x)):(e.consume(x),y)}function k(x){return x===h.rightSquareBracket?(e.consume(x),v):y(x)}function v(x){return x===h.greaterThan?E(x):x===h.rightSquareBracket?(e.consume(x),v):y(x)}function T(x){return x===h.eof||x===h.greaterThan?E(x):Y(x)?(o=T,j(x)):(e.consume(x),T)}function _(x){return x===h.eof?n(x):x===h.questionMark?(e.consume(x),P):Y(x)?(o=_,j(x)):(e.consume(x),_)}function P(x){return x===h.greaterThan?E(x):_(x)}function O(x){return Je(x)?(e.consume(x),S):n(x)}function S(x){return x===h.dash||Ue(x)?(e.consume(x),S):q(x)}function q(x){return Y(x)?(o=q,j(x)):me(x)?(e.consume(x),q):E(x)}function M(x){return x===h.dash||Ue(x)?(e.consume(x),M):x===h.slash||x===h.greaterThan||Ce(x)?H(x):n(x)}function H(x){return x===h.slash?(e.consume(x),E):x===h.colon||x===h.underscore||Je(x)?(e.consume(x),C):Y(x)?(o=H,j(x)):me(x)?(e.consume(x),H):E(x)}function C(x){return x===h.dash||x===h.dot||x===h.colon||x===h.underscore||Ue(x)?(e.consume(x),C):ae(x)}function ae(x){return x===h.equalsTo?(e.consume(x),J):Y(x)?(o=ae,j(x)):me(x)?(e.consume(x),ae):H(x)}function J(x){return x===h.eof||x===h.lessThan||x===h.equalsTo||x===h.greaterThan||x===h.graveAccent?n(x):x===h.quotationMark||x===h.apostrophe?(e.consume(x),i=x,z):Y(x)?(o=J,j(x)):me(x)?(e.consume(x),J):(e.consume(x),Z)}function z(x){return x===i?(e.consume(x),i=void 0,G):x===h.eof?n(x):Y(x)?(o=z,j(x)):(e.consume(x),z)}function Z(x){return x===h.eof||x===h.quotationMark||x===h.apostrophe||x===h.lessThan||x===h.equalsTo||x===h.graveAccent?n(x):x===h.slash||x===h.greaterThan||Ce(x)?H(x):(e.consume(x),Z)}function G(x){return x===h.slash||x===h.greaterThan||Ce(x)?H(x):n(x)}function E(x){return x===h.greaterThan?(e.consume(x),e.exit(m.htmlTextData),e.exit(m.htmlText),t):n(x)}function j(x){return w(o,"expected return state"),w(Y(x),"expected eol"),e.exit(m.htmlTextData),e.enter(m.lineEnding),e.consume(x),e.exit(m.lineEnding),A}function A(x){return w(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),me(x)?be(e,ne,m.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:$.tabSize)(x):ne(x)}function ne(x){return e.enter(m.htmlTextData),o(x)}}const Xo={name:"labelEnd",resolveAll:u0,resolveTo:c0,tokenize:d0},o0={tokenize:f0},s0={tokenize:p0},l0={tokenize:h0};function u0(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type===m.labelImage||r.type===m.labelLink||r.type===m.labelEnd){const i=r.type===m.labelImage?4:2;r.type=m.data,t+=i}}return e.length!==n.length&<(e,0,e.length,n),e}function c0(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===m.link||i.type===m.labelLink&&i._inactive)break;e[n][0]==="enter"&&i.type===m.labelLink&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type===m.labelImage||i.type===m.labelLink)&&!i._balanced&&(a=n,i.type!==m.labelLink)){r=2;break}}else i.type===m.labelEnd&&(o=n);w(a!==void 0,"`open` is supposed to be found"),w(o!==void 0,"`close` is supposed to be found");const l={type:e[a][1].type===m.labelLink?m.link:m.image,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:m.label,start:{...e[a][1].start},end:{...e[o][1].end}},d={type:m.labelText,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=ft(s,e.slice(a+1,a+r+3)),s=ft(s,[["enter",d,t]]),w(t.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),s=ft(s,Xi(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=ft(s,[["exit",d,t],e[o-2],e[o-1],["exit",u,t]]),s=ft(s,e.slice(o+1)),s=ft(s,[["exit",l,t]]),lt(e,a,e.length,s),e}function d0(e,t,n){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===m.labelImage||r.events[i][1].type===m.labelLink)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(f){return w(f===h.rightSquareBracket,"expected `]`"),a?a._inactive?c(f):(o=r.parser.defined.includes(wt(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(m.labelEnd),e.enter(m.labelMarker),e.consume(f),e.exit(m.labelMarker),e.exit(m.labelEnd),l):n(f)}function l(f){return f===h.leftParenthesis?e.attempt(o0,d,o?d:c)(f):f===h.leftSquareBracket?e.attempt(s0,d,o?u:c)(f):o?d(f):c(f)}function u(f){return e.attempt(l0,d,c)(f)}function d(f){return t(f)}function c(f){return a._balanced=!0,n(f)}}function f0(e,t,n){return r;function r(c){return w(c===h.leftParenthesis,"expected left paren"),e.enter(m.resource),e.enter(m.resourceMarker),e.consume(c),e.exit(m.resourceMarker),i}function i(c){return Ce(c)?jr(e,a)(c):a(c)}function a(c){return c===h.rightParenthesis?d(c):Hd(e,o,s,m.resourceDestination,m.resourceDestinationLiteral,m.resourceDestinationLiteralMarker,m.resourceDestinationRaw,m.resourceDestinationString,$.linkResourceDestinationBalanceMax)(c)}function o(c){return Ce(c)?jr(e,l)(c):d(c)}function s(c){return n(c)}function l(c){return c===h.quotationMark||c===h.apostrophe||c===h.leftParenthesis?Wd(e,u,n,m.resourceTitle,m.resourceTitleMarker,m.resourceTitleString)(c):d(c)}function u(c){return Ce(c)?jr(e,d)(c):d(c)}function d(c){return c===h.rightParenthesis?(e.enter(m.resourceMarker),e.consume(c),e.exit(m.resourceMarker),e.exit(m.resource),t):n(c)}}function p0(e,t,n){const r=this;return i;function i(s){return w(s===h.leftSquareBracket,"expected left bracket"),Gd.call(r,e,a,o,m.reference,m.referenceMarker,m.referenceString)(s)}function a(s){return r.parser.defined.includes(wt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function h0(e,t,n){return r;function r(a){return w(a===h.leftSquareBracket,"expected left bracket"),e.enter(m.reference),e.enter(m.referenceMarker),e.consume(a),e.exit(m.referenceMarker),i}function i(a){return a===h.rightSquareBracket?(e.enter(m.referenceMarker),e.consume(a),e.exit(m.referenceMarker),e.exit(m.reference),t):n(a)}}const m0={name:"labelStartImage",resolveAll:Xo.resolveAll,tokenize:g0};function g0(e,t,n){const r=this;return i;function i(s){return w(s===h.exclamationMark,"expected `!`"),e.enter(m.labelImage),e.enter(m.labelImageMarker),e.consume(s),e.exit(m.labelImageMarker),a}function a(s){return s===h.leftSquareBracket?(e.enter(m.labelMarker),e.consume(s),e.exit(m.labelMarker),e.exit(m.labelImage),o):n(s)}function o(s){return s===h.caret&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const y0={name:"labelStartLink",resolveAll:Xo.resolveAll,tokenize:v0};function v0(e,t,n){const r=this;return i;function i(o){return w(o===h.leftSquareBracket,"expected `[`"),e.enter(m.labelLink),e.enter(m.labelMarker),e.consume(o),e.exit(m.labelMarker),e.exit(m.labelLink),a}function a(o){return o===h.caret&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Aa={name:"lineEnding",tokenize:b0};function b0(e,t){return n;function n(r){return w(Y(r),"expected eol"),e.enter(m.lineEnding),e.consume(r),e.exit(m.lineEnding),be(e,t,m.linePrefix)}}const wi={name:"thematicBreak",tokenize:x0};function x0(e,t,n){let r=0,i;return a;function a(u){return e.enter(m.thematicBreak),o(u)}function o(u){return w(u===h.asterisk||u===h.dash||u===h.underscore,"expected `*`, `-`, or `_`"),i=u,s(u)}function s(u){return u===i?(e.enter(m.thematicBreakSequence),l(u)):r>=$.thematicBreakMarkerCountMin&&(u===h.eof||Y(u))?(e.exit(m.thematicBreak),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit(m.thematicBreakSequence),me(u)?be(e,s,m.whitespace)(u):s(u))}}const Xe={continuation:{tokenize:S0},exit:T0,name:"list",tokenize:_0},k0={partial:!0,tokenize:E0},w0={partial:!0,tokenize:C0};function _0(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type===m.linePrefix?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(p){w(r.containerState,"expected state");const g=r.containerState.type||(p===h.asterisk||p===h.plusSign||p===h.dash?m.listUnordered:m.listOrdered);if(g===m.listUnordered?!r.containerState.marker||p===r.containerState.marker:mo(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g===m.listUnordered)return e.enter(m.listItemPrefix),p===h.asterisk||p===h.dash?e.check(wi,n,u)(p):u(p);if(!r.interrupt||p===h.digit1)return e.enter(m.listItemPrefix),e.enter(m.listItemValue),l(p)}return n(p)}function l(p){return w(r.containerState,"expected state"),mo(p)&&++o<$.listItemValueSizeMax?(e.consume(p),l):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===h.rightParenthesis||p===h.dot)?(e.exit(m.listItemValue),u(p)):n(p)}function u(p){return w(r.containerState,"expected state"),w(p!==h.eof,"eof (`null`) is not a marker"),e.enter(m.listItemMarker),e.consume(p),e.exit(m.listItemMarker),r.containerState.marker=r.containerState.marker||p,e.check(Yr,r.interrupt?n:d,e.attempt(k0,f,c))}function d(p){return w(r.containerState,"expected state"),r.containerState.initialBlankLine=!0,a++,f(p)}function c(p){return me(p)?(e.enter(m.listItemPrefixWhitespace),e.consume(p),e.exit(m.listItemPrefixWhitespace),f):n(p)}function f(p){return w(r.containerState,"expected state"),r.containerState.size=a+r.sliceSerialize(e.exit(m.listItemPrefix),!0).length,t(p)}}function S0(e,t,n){const r=this;return w(r.containerState,"expected state"),r.containerState._closeFlow=void 0,e.check(Yr,i,a);function i(s){return w(r.containerState,"expected state"),w(typeof r.containerState.size=="number","expected size"),r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,be(e,t,m.listItemIndent,r.containerState.size+1)(s)}function a(s){return w(r.containerState,"expected state"),r.containerState.furtherBlankLines||!me(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(w0,t,o)(s))}function o(s){return w(r.containerState,"expected state"),r.containerState._closeFlow=!0,r.interrupt=void 0,w(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),be(e,e.attempt(Xe,t,n),m.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:$.tabSize)(s)}}function C0(e,t,n){const r=this;return w(r.containerState,"expected state"),w(typeof r.containerState.size=="number","expected size"),be(e,i,m.listItemIndent,r.containerState.size+1);function i(a){w(r.containerState,"expected state");const o=r.events[r.events.length-1];return o&&o[1].type===m.listItemIndent&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function T0(e){w(this.containerState,"expected state"),w(typeof this.containerState.type=="string","expected type"),e.exit(this.containerState.type)}function E0(e,t,n){const r=this;return w(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),be(e,i,m.listItemPrefixWhitespace,r.parser.constructs.disable.null.includes("codeIndented")?void 0:$.tabSize+1);function i(a){const o=r.events[r.events.length-1];return!me(a)&&o&&o[1].type===m.listItemPrefixWhitespace?t(a):n(a)}}const qu={name:"setextUnderline",resolveTo:A0,tokenize:R0};function A0(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type===m.content){r=n;break}e[n][1].type===m.paragraph&&(i=n)}else e[n][1].type===m.content&&e.splice(n,1),!a&&e[n][1].type===m.definition&&(a=n);w(i!==void 0,"expected a `text` index to be found"),w(r!==void 0,"expected a `text` index to be found"),w(e[r][2]===t,"enter context should be same"),w(e[e.length-1][2]===t,"enter context should be same");const o={type:m.setextHeading,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=m.setextHeadingText,a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function R0(e,t,n){const r=this;let i;return a;function a(u){let d=r.events.length,c;for(w(u===h.dash||u===h.equalsTo,"expected `=` or `-`");d--;)if(r.events[d][1].type!==m.lineEnding&&r.events[d][1].type!==m.linePrefix&&r.events[d][1].type!==m.content){c=r.events[d][1].type===m.paragraph;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter(m.setextHeadingLine),i=u,o(u)):n(u)}function o(u){return e.enter(m.setextHeadingLineSequence),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit(m.setextHeadingLineSequence),me(u)?be(e,l,m.lineSuffix)(u):l(u))}function l(u){return u===h.eof||Y(u)?(e.exit(m.setextHeadingLine),t(u)):n(u)}}const N0={tokenize:I0};function I0(e){const t=this,n=e.attempt(Yr,r,e.attempt(this.parser.constructs.flowInitial,i,be(e,e.attempt(this.parser.constructs.flow,i,e.attempt(z_,i)),m.linePrefix)));return n;function r(a){if(w(a===h.eof||Y(a),"expected eol or eof"),a===h.eof){e.consume(a);return}return e.enter(m.lineEndingBlank),e.consume(a),e.exit(m.lineEndingBlank),t.currentConstruct=void 0,n}function i(a){if(w(a===h.eof||Y(a),"expected eol or eof"),a===h.eof){e.consume(a);return}return e.enter(m.lineEnding),e.consume(a),e.exit(m.lineEnding),t.currentConstruct=void 0,n}}const P0={resolveAll:Kd()},O0=Jd("string"),L0=Jd("text");function Jd(e){return{resolveAll:Kd(e==="text"?D0:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(d){return u(d)?a(d):s(d)}function s(d){if(d===h.eof){n.consume(d);return}return n.enter(m.data),n.consume(d),l}function l(d){return u(d)?(n.exit(m.data),a(d)):(n.consume(d),l)}function u(d){if(d===h.eof)return!0;const c=i[d];let f=-1;if(c)for(w(Array.isArray(c),"expected `disable.null` to be populated");++f<c.length;){const p=c[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Kd(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type===m.data&&(a=i,i++):(!n[i]||n[i][1].type!==m.data)&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function D0(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===m.lineEnding)&&e[n-1][1].type===m.data){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,o=-1,s=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===h.space;)s++,o--;if(o)break;o=-1}else if(u===h.horizontalTab)l=!0,s++;else if(u!==h.virtualSpace){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||l||s<$.hardBreakPrefixSizeMin?m.lineSuffix:m.hardBreakTrailing,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,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 z0={[h.asterisk]:Xe,[h.plusSign]:Xe,[h.dash]:Xe,[h.digit0]:Xe,[h.digit1]:Xe,[h.digit2]:Xe,[h.digit3]:Xe,[h.digit4]:Xe,[h.digit5]:Xe,[h.digit6]:Xe,[h.digit7]:Xe,[h.digit8]:Xe,[h.digit9]:Xe,[h.greaterThan]:qd},M0={[h.leftSquareBracket]:q_},j0={[h.horizontalTab]:Ea,[h.virtualSpace]:Ea,[h.space]:Ea},F0={[h.numberSign]:G_,[h.asterisk]:wi,[h.dash]:[qu,wi],[h.lessThan]:Y_,[h.equalsTo]:qu,[h.underscore]:wi,[h.graveAccent]:Fu,[h.tilde]:Fu},B0={[h.ampersand]:Zd,[h.backslash]:Vd},q0={[h.carriageReturn]:Aa,[h.lineFeed]:Aa,[h.carriageReturnLineFeed]:Aa,[h.exclamationMark]:m0,[h.ampersand]:Zd,[h.asterisk]:go,[h.lessThan]:[v_,i0],[h.leftSquareBracket]:y0,[h.backslash]:[U_,Vd],[h.rightSquareBracket]:Xo,[h.underscore]:go,[h.graveAccent]:I_},V0={null:[go,P0]},Z0={null:[h.asterisk,h.underscore]},$0={null:[]},U0=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Z0,contentInitial:M0,disable:$0,document:z0,flow:F0,flowInitial:j0,insideSpan:V0,string:B0,text:q0},Symbol.toStringTag,{value:"Module"}));var mi={exports:{}},Ra,Vu;function H0(){if(Vu)return Ra;Vu=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;Ra=function(d,c){c=c||{};var f=typeof d;if(f==="string"&&d.length>0)return o(d);if(f==="number"&&isFinite(d))return c.long?l(d):s(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))};function o(d){if(d=String(d),!(d.length>100)){var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(c){var f=parseFloat(c[1]),p=(c[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return f*a;case"weeks":case"week":case"w":return f*i;case"days":case"day":case"d":return f*r;case"hours":case"hour":case"hrs":case"hr":case"h":return f*n;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function s(d){var c=Math.abs(d);return c>=r?Math.round(d/r)+"d":c>=n?Math.round(d/n)+"h":c>=t?Math.round(d/t)+"m":c>=e?Math.round(d/e)+"s":d+"ms"}function l(d){var c=Math.abs(d);return c>=r?u(d,c,r,"day"):c>=n?u(d,c,n,"hour"):c>=t?u(d,c,t,"minute"):c>=e?u(d,c,e,"second"):d+" ms"}function u(d,c,f,p){var g=c>=f*1.5;return Math.round(d/f)+" "+p+(g?"s":"")}return Ra}var Na,Zu;function G0(){if(Zu)return Na;Zu=1;function e(t){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=a,r.enabled=l,r.humanize=H0(),r.destroy=d,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function n(c){let f=0;for(let p=0;p<c.length;p++)f=(f<<5)-f+c.charCodeAt(p),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=n;function r(c){let f,p=null,g,y;function k(...v){if(!k.enabled)return;const T=k,_=Number(new Date),P=_-(f||_);T.diff=P,T.prev=f,T.curr=_,f=_,v[0]=r.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let O=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(q,M)=>{if(q==="%%")return"%";O++;const H=r.formatters[M];if(typeof H=="function"){const C=v[O];q=H.call(T,C),v.splice(O,1),O--}return q}),r.formatArgs.call(T,v),(T.log||r.log).apply(T,v)}return k.namespace=c,k.useColors=r.useColors(),k.color=r.selectColor(c),k.extend=i,k.destroy=r.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(g!==r.namespaces&&(g=r.namespaces,y=r.enabled(c)),y),set:v=>{p=v}}),typeof r.init=="function"&&r.init(k),k}function i(c,f){const p=r(this.namespace+(typeof f>"u"?":":f)+c);return p.log=this.log,p}function a(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];const f=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const p of f)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function o(c,f){let p=0,g=0,y=-1,k=0;for(;p<c.length;)if(g<f.length&&(f[g]===c[p]||f[g]==="*"))f[g]==="*"?(y=g,k=p,g++):(p++,g++);else if(y!==-1)g=y+1,k++,p=k;else return!1;for(;g<f.length&&f[g]==="*";)g++;return g===f.length}function s(){const c=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),c}function l(c){for(const f of r.skips)if(o(c,f))return!1;for(const f of r.names)if(o(c,f))return!0;return!1}function u(c){return c instanceof Error?c.stack||c.message:c}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}return Na=e,Na}var $u;function W0(){return $u||($u=1,(function(e,t){var n={};t.formatArgs=i,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let u;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(u=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(u[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const d="color: "+this.color;u.splice(1,0,d,"color: inherit");let c=0,f=0;u[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(c++,p==="%c"&&(f=c))}),u.splice(f,0,d)}t.log=console.debug||console.log||(()=>{});function a(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function o(){let u;try{u=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=n.DEBUG),u}function s(){try{return localStorage}catch{}}e.exports=G0()(t);const{formatters:l}=e.exports;l.j=function(u){try{return JSON.stringify(u)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}}})(mi,mi.exports)),mi.exports}var J0=W0();const K0=So(J0),gn=K0("micromark");function Y0(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={},a=[];let o=[],s=[],l=!0;const u={attempt:H(q),check:H(M),consume:P,enter:O,exit:S,interrupt:H(M,{interrupt:!0})},d={code:h.eof,containerState:{},defineSkip:v,events:[],now:k,parser:e,previous:h.eof,sliceSerialize:g,sliceStream:y,write:p};let c=t.tokenize.call(d,u),f;return t.resolveAll&&a.push(t),d;function p(z){return o=ft(o,z),T(),o[o.length-1]!==h.eof?[]:(C(t,0),d.events=Xi(a,d.events,d),d.events)}function g(z,Z){return Q0(y(z),Z)}function y(z){return X0(o,z)}function k(){const{_bufferIndex:z,_index:Z,line:G,column:E,offset:j}=r;return{_bufferIndex:z,_index:Z,line:G,column:E,offset:j}}function v(z){i[z.line]=z.column,J(),gn("position: define skip: `%j`",r)}function T(){let z;for(;r._index<o.length;){const Z=o[r._index];if(typeof Z=="string")for(z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===z&&r._bufferIndex<Z.length;)_(Z.charCodeAt(r._bufferIndex));else _(Z)}}function _(z){w(l===!0,"expected character to be consumed"),l=void 0,gn("main: passing `%s` to %s",z,c&&c.name),f=z,w(typeof c=="function","expected state"),c=c(z)}function P(z){w(z===f,"expected given code to equal expected code"),gn("consume: `%s`",z),w(l===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),w(z===null?d.events.length===0||d.events[d.events.length-1][0]==="exit":d.events[d.events.length-1][0]==="enter","expected last token to be open"),Y(z)?(r.line++,r.column=1,r.offset+=z===h.carriageReturnLineFeed?2:1,J(),gn("position: after eol: `%j`",r)):z!==h.virtualSpace&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=z,l=!0}function O(z,Z){const G=Z||{};return G.type=z,G.start=k(),w(typeof z=="string","expected string type"),w(z.length>0,"expected non-empty string"),gn("enter: `%s`",z),d.events.push(["enter",G,d]),s.push(G),G}function S(z){w(typeof z=="string","expected string type"),w(z.length>0,"expected non-empty string");const Z=s.pop();return w(Z,"cannot close w/o open tokens"),Z.end=k(),w(z===Z.type,"expected exit token to match current token"),w(!(Z.start._index===Z.end._index&&Z.start._bufferIndex===Z.end._bufferIndex),"expected non-empty token (`"+z+"`)"),gn("exit: `%s`",Z.type),d.events.push(["exit",Z,d]),Z}function q(z,Z){C(z,Z.from)}function M(z,Z){Z.restore()}function H(z,Z){return G;function G(E,j,A){let ne,x,we,Ne;return Array.isArray(E)?re(E):"tokenize"in E?re([E]):b(E);function b(oe){return Fe;function Fe(De){const Ve=De!==null&&oe[De],Me=De!==null&&oe.null,er=[...Array.isArray(Ve)?Ve:Ve?[Ve]:[],...Array.isArray(Me)?Me:Me?[Me]:[]];return re(er)(De)}}function re(oe){return ne=oe,x=0,oe.length===0?(w(A,"expected `bogusState` to be given"),A):fe(oe[x])}function fe(oe){return Fe;function Fe(De){return Ne=ae(),we=oe,oe.partial||(d.currentConstruct=oe),w(d.parser.constructs.disable.null,"expected `disable.null` to be populated"),oe.name&&d.parser.constructs.disable.null.includes(oe.name)?ke(De):oe.tokenize.call(Z?Object.assign(Object.create(d),Z):d,u,Le,ke)(De)}}function Le(oe){return w(oe===f,"expected code"),l=!0,z(we,Ne),j}function ke(oe){return w(oe===f,"expected code"),l=!0,Ne.restore(),++x<ne.length?fe(ne[x]):A}}}function C(z,Z){z.resolveAll&&!a.includes(z)&&a.push(z),z.resolve&<(d.events,Z,d.events.length-Z,z.resolve(d.events.slice(Z),d)),z.resolveTo&&(d.events=z.resolveTo(d.events,d)),w(z.partial||d.events.length===0||d.events[d.events.length-1][0]==="exit","expected last token to end")}function ae(){const z=k(),Z=d.previous,G=d.currentConstruct,E=d.events.length,j=Array.from(s);return{from:E,restore:A};function A(){r=z,d.previous=Z,d.currentConstruct=G,d.events.length=E,s=j,J(),gn("position: restore: `%j`",r)}}function J(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function X0(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)w(a>-1,"expected non-negative end buffer index"),w(r>-1,"expected non-negative start buffer index"),o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):(w(r===0,"expected `startBufferIndex` to be `0`"),o.shift())}a>0&&o.push(e[i].slice(0,a))}return o}function Q0(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case h.carriageReturn:{o=At.cr;break}case h.lineFeed:{o=At.lf;break}case h.carriageReturnLineFeed:{o=At.cr+At.lf;break}case h.horizontalTab:{o=t?At.space:At.ht;break}case h.virtualSpace:{if(!t&&i)continue;o=At.space;break}default:w(typeof a=="number","expected number"),o=String.fromCharCode(a)}i=a===h.horizontalTab,r.push(o)}return r.join("")}function e1(e){const r={constructs:Fd([U0,...(e||{}).extensions||[]]),content:i(d_),defined:[],document:i(p_),flow:i(N0),lazy:{},string:i(O0),text:i(L0)};return r;function i(a){return o;function o(s){return Y0(r,a,s)}}}function t1(e){for(;!Ud(e););return e}const Uu=/[\0\t\n\r]/g;function n1(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const l=[];let u,d,c,f,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),c=0,t="",n&&(a.charCodeAt(0)===h.byteOrderMarker&&c++,n=void 0);c<a.length;){if(Uu.lastIndex=c,u=Uu.exec(a),f=u&&u.index!==void 0?u.index:a.length,p=a.charCodeAt(f),!u){t=a.slice(c);break}if(p===h.lf&&c===f&&r)l.push(h.carriageReturnLineFeed),r=void 0;else switch(r&&(l.push(h.carriageReturn),r=void 0),c<f&&(l.push(a.slice(c,f)),e+=f-c),p){case h.nul:{l.push(h.replacementCharacter),e++;break}case h.ht:{for(d=Math.ceil(e/$.tabSize)*$.tabSize,l.push(h.horizontalTab);e++<d;)l.push(h.virtualSpace);break}case h.lf:{l.push(h.lineFeed),e=1;break}default:r=!0,e=1}c=f+1}return s&&(r&&l.push(h.carriageReturn),t&&l.push(t),l.push(h.eof)),l}}const r1=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function i1(e){return e.replace(r1,a1)}function a1(e,t,n){if(t)return t;if(n.charCodeAt(0)===h.numberSign){const i=n.charCodeAt(1),a=i===h.lowercaseX||i===h.uppercaseX;return Bd(n.slice(a?2:1),a?$.numericBaseHexadecimal:$.numericBaseDecimal)}return Yo(n)||e}const Yd={}.hasOwnProperty;function o1(e,t,n){return typeof t!="string"&&(n=t,t=void 0),s1(n)(t1(e1(n).document().write(n1()(e,t,!0))))}function s1(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ct),autolinkProtocol:H,autolinkEmail:H,atxHeading:a(Qr),blockQuote:a(De),characterEscape:H,characterReference:H,codeFenced:a(Ve),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Ve,o),codeText:a(Me,o),codeTextData:H,data:H,codeFlowValue:H,definition:a(er),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(tr),hardBreakEscape:a(nr),hardBreakTrailing:a(nr),htmlFlow:a(Vt,o),htmlFlowData:H,htmlText:a(Vt,o),htmlTextData:H,image:a(ei),label:o,link:a(ct),listItem:a(ra),listItemValue:f,listOrdered:a(ti,c),listUnordered:a(ti),paragraph:a(Ge),reference:b,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Qr),strong:a(Zt),thematicBreak:a(aa)},exit:{atxHeading:l(),atxHeadingSequence:O,autolink:l(),autolinkEmail:Fe,autolinkProtocol:oe,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:fe,characterReferenceMarkerNumeric:fe,characterReferenceValue:Le,characterReference:ke,codeFenced:l(k),codeFencedFence:y,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:C,codeIndented:l(v),codeText:l(G),codeTextData:C,data:C,definition:l(),definitionDestinationString:P,definitionLabelString:T,definitionTitleString:_,emphasis:l(),hardBreakEscape:l(J),hardBreakTrailing:l(J),htmlFlow:l(z),htmlFlowData:C,htmlText:l(Z),htmlTextData:C,image:l(j),label:ne,labelText:A,lineEnding:ae,link:l(E),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:re,resourceDestinationString:x,resourceTitleString:we,resource:Ne,setextHeading:l(M),setextHeadingLineSequence:q,setextHeadingText:S,strong:l(),thematicBreak:l()}};Xd(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(R){let I={type:"root",children:[]};const K={stack:[I],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:d,data:n},ue=[];let ge=-1;for(;++ge<R.length;)if(R[ge][1].type===m.listOrdered||R[ge][1].type===m.listUnordered)if(R[ge][0]==="enter")ue.push(ge);else{const Be=ue.pop();w(typeof Be=="number","expected list ot be open"),ge=i(R,Be,ge)}for(ge=-1;++ge<R.length;){const Be=t[R[ge][0]];Yd.call(Be,R[ge][1].type)&&Be[R[ge][1].type].call(Object.assign({sliceSerialize:R[ge][2].sliceSerialize},K),R[ge][1])}if(K.tokenStack.length>0){const Be=K.tokenStack[K.tokenStack.length-1];(Be[1]||Hu).call(K,void 0,Be[0])}for(I.position={start:Wt(R.length>0?R[0][1].start:{line:1,column:1,offset:0}),end:Wt(R.length>0?R[R.length-2][1].end:{line:1,column:1,offset:0})},ge=-1;++ge<t.transforms.length;)I=t.transforms[ge](I)||I;return I}function i(R,I,K){let ue=I-1,ge=-1,Be=!1,Ye,gt,on,$t;for(;++ue<=K;){const Ze=R[ue];switch(Ze[1].type){case m.listUnordered:case m.listOrdered:case m.blockQuote:{Ze[0]==="enter"?ge++:ge--,$t=void 0;break}case m.lineEndingBlank:{Ze[0]==="enter"&&(Ye&&!$t&&!ge&&!on&&(on=ue),$t=void 0);break}case m.linePrefix:case m.listItemValue:case m.listItemMarker:case m.listItemPrefix:case m.listItemPrefixWhitespace:break;default:$t=void 0}if(!ge&&Ze[0]==="enter"&&Ze[1].type===m.listItemPrefix||ge===-1&&Ze[0]==="exit"&&(Ze[1].type===m.listUnordered||Ze[1].type===m.listOrdered)){if(Ye){let Ut=ue;for(gt=void 0;Ut--;){const rt=R[Ut];if(rt[1].type===m.lineEnding||rt[1].type===m.lineEndingBlank){if(rt[0]==="exit")continue;gt&&(R[gt][1].type=m.lineEndingBlank,Be=!0),rt[1].type=m.lineEnding,gt=Ut}else if(!(rt[1].type===m.linePrefix||rt[1].type===m.blockQuotePrefix||rt[1].type===m.blockQuotePrefixWhitespace||rt[1].type===m.blockQuoteMarker||rt[1].type===m.listItemIndent))break}on&&(!gt||on<gt)&&(Ye._spread=!0),Ye.end=Object.assign({},gt?R[gt][1].start:Ze[1].end),R.splice(gt||ue,0,["exit",Ye,Ze[2]]),ue++,K++}if(Ze[1].type===m.listItemPrefix){const Ut={type:"listItem",_spread:!1,start:Object.assign({},Ze[1].start),end:void 0};Ye=Ut,R.splice(ue,0,["enter",Ut,Ze[2]]),ue++,K++,on=void 0,$t=!0}}}return R[I][1]._spread=Be,K}function a(R,I){return K;function K(ue){s.call(this,R(ue),ue),I&&I.call(this,ue)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(R,I,K){const ue=this.stack[this.stack.length-1];w(ue,"expected `parent`"),w("children"in ue,"expected `parent`"),ue.children.push(R),this.stack.push(R),this.tokenStack.push([I,K||void 0]),R.position={start:Wt(I.start),end:void 0}}function l(R){return I;function I(K){R&&R.call(this,K),u.call(this,K)}}function u(R,I){const K=this.stack.pop();w(K,"expected `node`");const ue=this.tokenStack.pop();if(ue)ue[0].type!==R.type&&(I?I.call(this,R,ue[0]):(ue[1]||Hu).call(this,R,ue[0]));else throw new Error("Cannot close `"+R.type+"` ("+Mr({start:R.start,end:R.end})+"): it’s not open");w(K.type!=="fragment","unexpected fragment `exit`ed"),w(K.position,"expected `position` to be defined"),K.position.end=Wt(R.end)}function d(){return Ko(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function f(R){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];w(I,"expected nodes on stack"),w(I.type==="list","expected list on stack"),I.start=Number.parseInt(this.sliceSerialize(R),$.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function p(){const R=this.resume(),I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w(I.type==="code","expected code on stack"),I.lang=R}function g(){const R=this.resume(),I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w(I.type==="code","expected code on stack"),I.meta=R}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const R=this.resume(),I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w(I.type==="code","expected code on stack"),I.value=R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const R=this.resume(),I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w(I.type==="code","expected code on stack"),I.value=R.replace(/(\r?\n|\r)$/g,"")}function T(R){const I=this.resume(),K=this.stack[this.stack.length-1];w(K,"expected node on stack"),w(K.type==="definition","expected definition on stack"),K.label=I,K.identifier=wt(this.sliceSerialize(R)).toLowerCase()}function _(){const R=this.resume(),I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w(I.type==="definition","expected definition on stack"),I.title=R}function P(){const R=this.resume(),I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w(I.type==="definition","expected definition on stack"),I.url=R}function O(R){const I=this.stack[this.stack.length-1];if(w(I,"expected node on stack"),w(I.type==="heading","expected heading on stack"),!I.depth){const K=this.sliceSerialize(R).length;w(K===1||K===2||K===3||K===4||K===5||K===6,"expected `depth` between `1` and `6`"),I.depth=K}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function q(R){const I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w(I.type==="heading","expected heading on stack"),I.depth=this.sliceSerialize(R).codePointAt(0)===h.equalsTo?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function H(R){const I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w("children"in I,"expected parent on stack");const K=I.children;let ue=K[K.length-1];(!ue||ue.type!=="text")&&(ue=ia(),ue.position={start:Wt(R.start),end:void 0},K.push(ue)),this.stack.push(ue)}function C(R){const I=this.stack.pop();w(I,"expected a `node` to be on the stack"),w("value"in I,"expected a `literal` to be on the stack"),w(I.position,"expected `node` to have an open position"),I.value+=this.sliceSerialize(R),I.position.end=Wt(R.end)}function ae(R){const I=this.stack[this.stack.length-1];if(w(I,"expected `node`"),this.data.atHardBreak){w("children"in I,"expected `parent`");const K=I.children[I.children.length-1];w(K.position,"expected tail to have a starting position"),K.position.end=Wt(R.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(I.type)&&(H.call(this,R),C.call(this,R))}function J(){this.data.atHardBreak=!0}function z(){const R=this.resume(),I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w(I.type==="html","expected html on stack"),I.value=R}function Z(){const R=this.resume(),I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w(I.type==="html","expected html on stack"),I.value=R}function G(){const R=this.resume(),I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w(I.type==="inlineCode","expected inline code on stack"),I.value=R}function E(){const R=this.stack[this.stack.length-1];if(w(R,"expected node on stack"),w(R.type==="link","expected link on stack"),this.data.inReference){const I=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=I,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function j(){const R=this.stack[this.stack.length-1];if(w(R,"expected node on stack"),w(R.type==="image","expected image on stack"),this.data.inReference){const I=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=I,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function A(R){const I=this.sliceSerialize(R),K=this.stack[this.stack.length-2];w(K,"expected ancestor on stack"),w(K.type==="image"||K.type==="link","expected image or link on stack"),K.label=i1(I),K.identifier=wt(I).toLowerCase()}function ne(){const R=this.stack[this.stack.length-1];w(R,"expected node on stack"),w(R.type==="fragment","expected fragment on stack");const I=this.resume(),K=this.stack[this.stack.length-1];if(w(K,"expected node on stack"),w(K.type==="image"||K.type==="link","expected image or link on stack"),this.data.inReference=!0,K.type==="link"){const ue=R.children;K.children=ue}else K.alt=I}function x(){const R=this.resume(),I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w(I.type==="image"||I.type==="link","expected image or link on stack"),I.url=R}function we(){const R=this.resume(),I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w(I.type==="image"||I.type==="link","expected image or link on stack"),I.title=R}function Ne(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function re(R){const I=this.resume(),K=this.stack[this.stack.length-1];w(K,"expected node on stack"),w(K.type==="image"||K.type==="link","expected image reference or link reference on stack"),K.label=I,K.identifier=wt(this.sliceSerialize(R)).toLowerCase(),this.data.referenceType="full"}function fe(R){w(R.type==="characterReferenceMarkerNumeric"||R.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=R.type}function Le(R){const I=this.sliceSerialize(R),K=this.data.characterReferenceType;let ue;if(K)ue=Bd(I,K===m.characterReferenceMarkerNumeric?$.numericBaseDecimal:$.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{const Be=Yo(I);w(Be!==!1,"expected reference to decode"),ue=Be}const ge=this.stack[this.stack.length-1];w(ge,"expected `node`"),w("value"in ge,"expected `node.value`"),ge.value+=ue}function ke(R){const I=this.stack.pop();w(I,"expected `node`"),w(I.position,"expected `node.position`"),I.position.end=Wt(R.end)}function oe(R){C.call(this,R);const I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w(I.type==="link","expected link on stack"),I.url=this.sliceSerialize(R)}function Fe(R){C.call(this,R);const I=this.stack[this.stack.length-1];w(I,"expected node on stack"),w(I.type==="link","expected link on stack"),I.url="mailto:"+this.sliceSerialize(R)}function De(){return{type:"blockquote",children:[]}}function Ve(){return{type:"code",lang:null,meta:null,value:""}}function Me(){return{type:"inlineCode",value:""}}function er(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function tr(){return{type:"emphasis",children:[]}}function Qr(){return{type:"heading",depth:0,children:[]}}function nr(){return{type:"break"}}function Vt(){return{type:"html",value:""}}function ei(){return{type:"image",title:null,url:"",alt:null}}function ct(){return{type:"link",title:null,url:"",children:[]}}function ti(R){return{type:"list",ordered:R.type==="listOrdered",start:null,spread:R._spread,children:[]}}function ra(R){return{type:"listItem",spread:R._spread,checked:null,children:[]}}function Ge(){return{type:"paragraph",children:[]}}function Zt(){return{type:"strong",children:[]}}function ia(){return{type:"text",value:""}}function aa(){return{type:"thematicBreak"}}}function Wt(e){return{line:e.line,column:e.column,offset:e.offset}}function Xd(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Xd(e,r):l1(e,r)}}function l1(e,t){let n;for(n in t)if(Yd.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 Hu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Mr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Mr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Mr({start:t.start,end:t.end})+") is still open")}function BA(e){const t=this;t.parser=n;function n(r){return o1(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function u1(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 c1(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
24
|
+
`}]}function d1(e,t){const n=t.value?t.value+`
|
|
25
|
+
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function f1(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function p1(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function h1(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Xn(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+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(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function m1(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 g1(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Qd(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),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function y1(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Qd(e,t);const i={src:Xn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function v1(e,t){const n={src:Xn(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 b1(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 x1(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Qd(e,t);const i={href:Xn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function k1(e,t){const n={href:Xn(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 w1(e,t,n){const r=e.all(t),i=n?_1(n):ef(t),a={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let c;d&&d.type==="element"&&d.tagName==="p"?c=d:(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:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(i||s!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
|
|
26
|
+
`}),d.type==="element"&&d.tagName==="p"&&!i?o.push(...d.children):o.push(d)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
|
|
27
|
+
`});const u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)}function _1(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=ef(n[r])}return t}function ef(e){const t=e.spread;return t??e.children.length>1}function S1(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 o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function C1(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function T1(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function E1(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function A1(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Ho(t.children[1]),l=Pd(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function R1(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const c=t.children[l],f={},p=o?o[l]:void 0;p&&(f.align=p);let g={type:"element",tagName:a,properties:f,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),u.push(g)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function N1(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Gu=9,Wu=32;function I1(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(Ju(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Ju(t.slice(i),i>0,!1)),a.join("")}function Ju(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Gu||a===Wu;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Gu||a===Wu;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function P1(e,t){const n={type:"text",value:I1(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function O1(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const L1={blockquote:u1,break:c1,code:d1,delete:f1,emphasis:p1,footnoteReference:h1,heading:m1,html:g1,imageReference:y1,image:v1,inlineCode:b1,linkReference:x1,link:k1,listItem:w1,list:S1,paragraph:C1,root:T1,strong:E1,table:A1,tableCell:N1,tableRow:R1,text:P1,thematicBreak:O1,toml:gi,yaml:gi,definition:gi,footnoteDefinition:gi};function gi(){}const tf=-1,Qi=0,Fr=1,ji=2,Qo=3,es=4,ts=5,ns=6,nf=7,rf=8,Ku=typeof self=="object"?self:globalThis,D1=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Qi:case tf:return n(o,i);case Fr:{const s=n([],i);for(const l of o)s.push(r(l));return s}case ji:{const s=n({},i);for(const[l,u]of o)s[r(l)]=r(u);return s}case Qo:return n(new Date(o),i);case es:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case ts:{const s=n(new Map,i);for(const[l,u]of o)s.set(r(l),r(u));return s}case ns:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case nf:{const{name:s,message:l}=o;return n(new Ku[s](l),i)}case rf:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new Ku[a](o),i)};return r},Yu=e=>D1(new Map,e)(0),An="",{toString:z1}={},{keys:M1}=Object,Lr=e=>{const t=typeof e;if(t!=="object"||!e)return[Qi,t];const n=z1.call(e).slice(8,-1);switch(n){case"Array":return[Fr,An];case"Object":return[ji,An];case"Date":return[Qo,An];case"RegExp":return[es,An];case"Map":return[ts,An];case"Set":return[ns,An];case"DataView":return[Fr,n]}return n.includes("Array")?[Fr,n]:n.includes("Error")?[nf,n]:[ji,n]},yi=([e,t])=>e===Qi&&(t==="function"||t==="symbol"),j1=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=Lr(o);switch(s){case Qi:{let d=o;switch(l){case"bigint":s=rf,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([tf],o)}return i([s,d],o)}case Fr:{if(l){let f=o;return l==="DataView"?f=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(o)),i([l,[...f]],o)}const d=[],c=i([s,d],o);for(const f of o)d.push(a(f));return c}case ji:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const d=[],c=i([s,d],o);for(const f of M1(o))(e||!yi(Lr(o[f])))&&d.push([a(f),a(o[f])]);return c}case Qo:return i([s,o.toISOString()],o);case es:{const{source:d,flags:c}=o;return i([s,{source:d,flags:c}],o)}case ts:{const d=[],c=i([s,d],o);for(const[f,p]of o)(e||!(yi(Lr(f))||yi(Lr(p))))&&d.push([a(f),a(p)]);return c}case ns:{const d=[],c=i([s,d],o);for(const f of o)(e||!yi(Lr(f)))&&d.push(a(f));return c}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},Xu=(e,{json:t,lossy:n}={})=>{const r=[];return j1(!(t||n),!!t,new Map,r)(e),r},Fi=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Yu(Xu(e,t)):structuredClone(e):(e,t)=>Yu(Xu(e,t));function F1(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 B1(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function q1(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||F1,r=e.options.footnoteBackLabel||B1,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=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 d=e.all(u),c=String(u.identifier).toUpperCase(),f=Xn(c.toLowerCase());let p=0;const g=[],y=e.footnoteCounts.get(c);for(;y!==void 0&&++p<=y;){g.length>0&&g.push({type:"text",value:" "});let T=typeof n=="string"?n:n(l,p);typeof T=="string"&&(T={type:"text",value:T}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const k=d[d.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const T=k.children[k.children.length-1];T&&T.type==="text"?T.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...g)}else d.push(...g);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(d,!0)};e.patch(u,v),s.push(v)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Fi(o),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 ea=(function(e){if(e==null)return U1;if(typeof e=="function")return ta(e);if(typeof e=="object")return Array.isArray(e)?V1(e):Z1(e);if(typeof e=="string")return $1(e);throw new Error("Expected function, string, or object as test")});function V1(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ea(e[n]);return ta(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Z1(e){const t=e;return ta(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function $1(e){return ta(t);function t(n){return n&&n.type===e}}function ta(e){return t;function t(n,r,i){return!!(H1(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function U1(){return!0}function H1(e){return e!==null&&typeof e=="object"&&"type"in e}const af=[],G1=!0,yo=!1,W1="skip";function of(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=ea(i),o=r?-1:1;s(e,void 0,[])();function s(l,u,d){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(f,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=af,g,y,k;if((!t||a(l,u,d[d.length-1]||void 0))&&(p=J1(n(l,d)),p[0]===yo))return p;if("children"in l&&l.children){const v=l;if(v.children&&p[0]!==W1)for(y=(r?v.children.length:-1)+o,k=d.concat(v);y>-1&&y<v.children.length;){const T=v.children[y];if(g=s(T,y,k)(),g[0]===yo)return g;y=typeof g[1]=="number"?g[1]:y+o}}return p}}}function J1(e){return Array.isArray(e)?e:typeof e=="number"?[G1,e]:e==null?af:[e]}function sf(e,t,n,r){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=r),of(e,a,s,i);function s(l,u){const d=u[u.length-1],c=d?d.children.indexOf(l):void 0;return o(l,c,d)}}const vo={}.hasOwnProperty,K1={};function Y1(e,t){const n=t||K1,r=new Map,i=new Map,a=new Map,o={...L1,...n.handlers},s={all:u,applyData:Q1,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:l,options:n,patch:X1,wrap:tS};return sf(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const c=d.type==="definition"?r:i,f=String(d.identifier).toUpperCase();c.has(f)||c.set(f,d)}}),s;function l(d,c){const f=d.type,p=s.handlers[f];if(vo.call(s.handlers,f)&&p)return p(s,d,c);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in d){const{children:y,...k}=d,v=Fi(k);return v.children=s.all(d),v}return Fi(d)}return(s.options.unknownHandler||eS)(s,d,c)}function u(d){const c=[];if("children"in d){const f=d.children;let p=-1;for(;++p<f.length;){const g=s.one(f[p],d);if(g){if(p&&f[p-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Qu(g.value)),!Array.isArray(g)&&g.type==="element")){const y=g.children[0];y&&y.type==="text"&&(y.value=Qu(y.value))}Array.isArray(g)?c.push(...g):c.push(g)}}}return c}}function X1(e,t){e.position&&(t.position=Mw(e))}function Q1(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&a&&Object.assign(n.properties,Fi(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function eS(e,t){const n=t.data||{},r="value"in t&&!(vo.call(n,"hProperties")||vo.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 tS(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 Qu(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ec(e,t){const n=Y1(e,t),r=n.one(e,void 0),i=q1(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&(w("children"in a),a.children.push({type:"text",value:`
|
|
33
|
+
`},i)),a}function qA(e,t){return e&&"run"in e?async function(n,r){const i=ec(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ec(n,{file:r,...e||t})}}function tc(e){if(e)throw e}var Ia,nc;function nS(){if(nc)return Ia;nc=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]"},a=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!c)return!1;var f;for(f in u);return typeof f>"u"||e.call(u,f)},o=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},s=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(r)return r(u,d).value}else return;return u[d]};return Ia=function l(){var u,d,c,f,p,g,y=arguments[0],k=1,v=arguments.length,T=!1;for(typeof y=="boolean"&&(T=y,y=arguments[1]||{},k=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});k<v;++k)if(u=arguments[k],u!=null)for(d in u)c=s(y,d),f=s(u,d),y!==f&&(T&&f&&(a(f)||(p=i(f)))?(p?(p=!1,g=c&&i(c)?c:[]):g=c&&a(c)?c:{},o(y,{name:d,newValue:l(T,g,f)})):typeof f<"u"&&o(y,{name:d,newValue:f}));return y},Ia}var rS=nS();const Pa=So(rS);function bo(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 iS(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(l,...u){const d=e[++a];let c=-1;if(l){o(l);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,d?aS(d,s)(...u):o(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 aS(e,t){let n;return r;function r(...o){const s=e.length>o.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const d=u;if(s&&n)throw d;return i(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const Et={basename:oS,dirname:sS,extname:lS,join:uS,sep:"/"};function oS(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Xr(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function sS(e){if(Xr(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 lS(e){Xr(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function uS(...e){let t=-1,n;for(;++t<e.length;)Xr(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":cS(n)}function cS(e){Xr(e);const t=e.codePointAt(0)===47;let n=dS(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function dS(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===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=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Xr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const fS={cwd:pS};function pS(){return"/"}function xo(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function hS(e){if(typeof e=="string")e=new URL(e);else if(!xo(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 mS(e)}function mS(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 Oa=["history","path","basename","stem","extname","dirname"];class gS{constructor(t){let n;t?xo(t)?n={path:t}:typeof t=="string"||yS(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":fS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Oa.length;){const a=Oa[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)Oa.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Et.basename(this.path):void 0}set basename(t){Da(t,"basename"),La(t,"basename"),this.path=Et.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Et.dirname(this.path):void 0}set dirname(t){rc(this.basename,"dirname"),this.path=Et.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Et.extname(this.path):void 0}set extname(t){if(La(t,"extname"),rc(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=Et.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){xo(t)&&(t=hS(t)),Da(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Et.basename(this.path,this.extname):void 0}set stem(t){Da(t,"stem"),La(t,"stem"),this.path=Et.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 He(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 La(e,t){if(e&&e.includes(Et.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Et.sep+"`")}function Da(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function rc(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function yS(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const vS=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),bS={}.hasOwnProperty;class rs extends vS{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=iS()}copy(){const t=new rs;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Pa(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(ja("data",this.frozen),this.namespace[t]=n,this):bS.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ja("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=vi(t),r=this.parser||this.Parser;return za("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),za("process",this.parser||this.Parser),Ma("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,o){const s=vi(t),l=r.parse(s);r.run(l,s,function(d,c,f){if(d||!c||!f)return u(d);const p=c,g=r.stringify(p,f);kS(g)?f.value=g:f.result=g,u(d,f)});function u(d,c){d||!c?o(d):a?a(c):(w(n,"`done` is defined if `resolve` is not"),n(void 0,c))}}}processSync(t){let n=!1,r;return this.freeze(),za("processSync",this.parser||this.Parser),Ma("processSync",this.compiler||this.Compiler),this.process(t,i),ac("processSync","process",n),w(r,"we either bailed on an error or have a tree"),r;function i(a,o){n=!0,tc(a),r=o}}run(t,n,r){ic(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(o,s){w(typeof n!="function","`file` can’t be a `done` anymore, we checked");const l=vi(n);i.run(t,l,u);function u(d,c,f){const p=c||t;d?s(d):o?o(p):(w(r,"`done` is defined if `resolve` is not"),r(void 0,p,f))}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),ac("runSync","run",r),w(i,"we either bailed on an error or have a tree"),i;function a(o,s){tc(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=vi(n),i=this.compiler||this.Compiler;return Ma("stringify",i),ic(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(ja("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...c]=u;l(d,c)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(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=Pa(!0,i.settings,u.settings))}function s(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const c=u[d];a(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,d){let c=-1,f=-1;for(;++c<r.length;)if(r[c][0]===u){f=c;break}if(f===-1)r.push([u,...d]);else if(d.length>0){let[p,...g]=d;const y=r[f][1];bo(y)&&bo(p)&&(p=Pa(!0,y,p)),r[f]=[u,p,...g]}}}}const VA=new rs().freeze();function za(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ma(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ja(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 ic(e){if(!bo(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ac(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function vi(e){return xS(e)?e:new gS(e)}function xS(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function kS(e){return typeof e=="string"||wS(e)}function wS(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function oc(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 _S(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function SS(e,t,n){const i=ea((n||{}).ignore||[]),a=CS(t);let o=-1;for(;++o<a.length;)of(e,"text",s);function s(u,d){let c=-1,f;for(;++c<d.length;){const p=d[c],g=f?f.children:void 0;if(i(p,g?g.indexOf(p):void 0,f))return;f=p}if(f)return l(u,d)}function l(u,d){const c=d[d.length-1],f=a[o][0],p=a[o][1];let g=0;const k=c.children.indexOf(u);let v=!1,T=[];f.lastIndex=0;let _=f.exec(u.value);for(;_;){const P=_.index,O={index:_.index,input:_.input,stack:[...d,u]};let S=p(..._,O);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?f.lastIndex=P+1:(g!==P&&T.push({type:"text",value:u.value.slice(g,P)}),Array.isArray(S)?T.push(...S):S&&T.push(S),g=P+_[0].length,v=!0),!f.global)break;_=f.exec(u.value)}return v?(g<u.value.length&&T.push({type:"text",value:u.value.slice(g)}),c.children.splice(k,1,...T)):T=[u],k+T.length}}function CS(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([TS(i[0]),ES(i[1])])}return t}function TS(e){return typeof e=="string"?new RegExp(_S(e),"g"):e}function ES(e){return typeof e=="function"?e:function(){return e}}const Fa="phrasing",Ba=["autolink","link","image","label"];function AS(){return{transforms:[DS],enter:{literalAutolink:NS,literalAutolinkEmail:qa,literalAutolinkHttp:qa,literalAutolinkWww:qa},exit:{literalAutolink:LS,literalAutolinkEmail:OS,literalAutolinkHttp:IS,literalAutolinkWww:PS}}}function RS(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Fa,notInConstruct:Ba},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Fa,notInConstruct:Ba},{character:":",before:"[ps]",after:"\\/",inConstruct:Fa,notInConstruct:Ba}]}}function NS(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function qa(e){this.config.enter.autolinkProtocol.call(this,e)}function IS(e){this.config.exit.autolinkProtocol.call(this,e)}function PS(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];w(t.type==="link"),t.url="http://"+this.sliceSerialize(e)}function OS(e){this.config.exit.autolinkEmail.call(this,e)}function LS(e){this.exit(e)}function DS(e){SS(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,zS],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),MS]],{ignore:["link","linkReference"]})}function zS(e,t,n,r,i){let a="";if(!lf(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!jS(n)))return!1;const o=FS(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function MS(e,t,n,r){return!lf(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function jS(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 FS(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=oc(e,"(");let a=oc(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function lf(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||kn(n)||Yi(n))&&(!t||n!==47)}uf.peek=WS;function BS(){this.buffer()}function qS(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function VS(){this.buffer()}function ZS(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function $S(e){const t=this.resume(),n=this.stack[this.stack.length-1];w(n.type==="footnoteReference"),n.identifier=wt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function US(e){this.exit(e)}function HS(e){const t=this.resume(),n=this.stack[this.stack.length-1];w(n.type==="footnoteDefinition"),n.identifier=wt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function GS(e){this.exit(e)}function WS(){return"["}function uf(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function JS(){return{enter:{gfmFootnoteCallString:BS,gfmFootnoteCall:qS,gfmFootnoteDefinitionLabelString:VS,gfmFootnoteDefinition:ZS},exit:{gfmFootnoteCallString:$S,gfmFootnoteCall:US,gfmFootnoteDefinitionLabelString:HS,gfmFootnoteDefinition:GS}}}function KS(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:uf},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,o){const s=a.createTracker(o);let l=s.move("[^");const u=a.enter("footnoteDefinition"),d=a.enter("label");return l+=s.move(a.safe(a.associationId(r),{before:l,after:"]"})),d(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
|
|
34
|
+
`:" ")+a.indentLines(a.containerFlow(r,s.current()),t?cf:YS))),u(),l}}function YS(e,t,n){return t===0?e:cf(e,t,n)}function cf(e,t,n){return(n?"":" ")+e}const XS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];df.peek=rC;function QS(){return{canContainEols:["delete"],enter:{strikethrough:tC},exit:{strikethrough:nC}}}function eC(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:XS}],handlers:{delete:df}}}function tC(e){this.enter({type:"delete",children:[]},e)}function nC(e){this.exit(e)}function df(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function rC(){return"~"}function iC(e){return e.length}function aC(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||iC,a=[],o=[],s=[],l=[];let u=0,d=-1;for(;++d<e.length;){const y=[],k=[];let v=-1;for(e[d].length>u&&(u=e[d].length);++v<e[d].length;){const T=oC(e[d][v]);if(n.alignDelimiters!==!1){const _=i(T);k[v]=_,(l[v]===void 0||_>l[v])&&(l[v]=_)}y.push(T)}o[d]=y,s[d]=k}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)a[c]=sc(r[c]);else{const y=sc(r);for(;++c<u;)a[c]=y}c=-1;const f=[],p=[];for(;++c<u;){const y=a[c];let k="",v="";y===99?(k=":",v=":"):y===108?k=":":y===114&&(v=":");let T=n.alignDelimiters===!1?1:Math.max(1,l[c]-k.length-v.length);const _=k+"-".repeat(T)+v;n.alignDelimiters!==!1&&(T=k.length+T+v.length,T>l[c]&&(l[c]=T),p[c]=T),f[c]=_}o.splice(1,0,f),s.splice(1,0,p),d=-1;const g=[];for(;++d<o.length;){const y=o[d],k=s[d];c=-1;const v=[];for(;++c<u;){const T=y[c]||"";let _="",P="";if(n.alignDelimiters!==!1){const O=l[c]-(k[c]||0),S=a[c];S===114?_=" ".repeat(O):S===99?O%2?(_=" ".repeat(O/2+.5),P=" ".repeat(O/2-.5)):(_=" ".repeat(O/2),P=_):P=" ".repeat(O)}n.delimiterStart!==!1&&!c&&v.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&T==="")&&(n.delimiterStart!==!1||c)&&v.push(" "),n.alignDelimiters!==!1&&v.push(_),v.push(T),n.alignDelimiters!==!1&&v.push(P),n.padding!==!1&&v.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&v.push("|")}g.push(n.delimiterEnd===!1?v.join("").replace(/ +$/,""):v.join(""))}return g.join(`
|
|
35
|
+
`)}function oC(e){return e==null?"":String(e)}function sc(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 sC(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),lC);return i(),o}function lC(e,t,n){return">"+(n?"":" ")+e}function uC(e,t){return lc(e,t.inConstruct,!0)&&!lc(e,t.notInConstruct,!1)}function lc(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 uc(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
36
|
+
`&&uC(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
37
|
+
`}function cC(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function dC(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 fC(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 pC(e,t,n,r){const i=fC(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(dC(e,n)){const c=n.enter("codeIndented"),f=n.indentLines(a,hC);return c(),f}const s=n.createTracker(r),l=i.repeat(Math.max(cC(a,i)+1,3)),u=n.enter("codeFenced");let d=s.move(l);if(e.lang){const c=n.enter(`codeFencedLang${o}`);d+=s.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);d+=s.move(" "),d+=s.move(n.safe(e.meta,{before:d,after:`
|
|
38
|
+
`,encode:["`"],...s.current()})),c()}return d+=s.move(`
|
|
39
|
+
`),a&&(d+=s.move(a+`
|
|
40
|
+
`)),d+=s.move(l),u(),d}function hC(e,t,n){return(n?"":" ")+e}function is(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 mC(e,t,n,r){const i=is(n),a=i==='"'?"Quote":"Apostrophe",o=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${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),o(),u}function gC(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 Gr(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Bi(e,t,n){const r=Zn(e),i=Zn(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}}ff.peek=yC;function ff(e,t,n,r){const i=gC(n),a=n.enter("emphasis"),o=n.createTracker(r),s=o.move(i);let l=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const u=l.charCodeAt(0),d=Bi(r.before.charCodeAt(r.before.length-1),u,i);d.inside&&(l=Gr(u)+l.slice(1));const c=l.charCodeAt(l.length-1),f=Bi(r.after.charCodeAt(0),c,i);f.inside&&(l=l.slice(0,-1)+Gr(c));const p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+l+p}function yC(e,t,n){return n.options.emphasis||"*"}function vC(e,t){let n=!1;return sf(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,yo}),!!((!e.depth||e.depth<3)&&Ko(e)&&(t.options.setext||n))}function bC(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(vC(e,n)){const d=n.enter("headingSetext"),c=n.enter("phrasing"),f=n.containerPhrasing(e,{...a.current(),before:`
|
|
42
|
+
`,after:`
|
|
43
|
+
`});return c(),d(),f+`
|
|
44
|
+
`+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
|
|
45
|
+
`))+1))}const o="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");a.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
46
|
+
`,...a.current()});return/^[\t ]/.test(u)&&(u=Gr(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),l(),s(),u}pf.peek=xC;function pf(e){return e.value||""}function xC(){return"<"}hf.peek=kC;function hf(e,t,n,r){const i=is(n),a=i==='"'?"Quote":"Apostrophe",o=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${a}`),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(")"),o(),u}function kC(){return"!"}mf.peek=wC;function mf(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=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+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!u||u!==c?l+=s.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function wC(){return"!"}gf.peek=_C;function gf(e,t,n){let r=e.value||"",i="`",a=-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+" ");++a<n.unsafe.length;){const o=n.unsafe[a],s=n.compilePattern(o);let l;if(o.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 _C(){return"`"}function yf(e,t){const n=Ko(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))}vf.peek=SC;function vf(e,t,n,r){const i=is(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(yf(e,n)){const d=n.stack;n.stack=[],s=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),s(),n.stack=d,c}s=n.enter("link"),l=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=o.move(" "+i),u+=o.move(n.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),l()),u+=o.move(")"),s(),u}function SC(e,t,n){return yf(e,n)?"<":"["}bf.peek=CC;function bf(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=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+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!u||u!==c?l+=s.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function CC(){return"["}function as(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 TC(e){const t=as(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 EC(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 xf(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 AC(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?EC(n):as(n);const s=e.ordered?o==="."?")":".":TC(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.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),xf(n)===o&&d){let c=-1;for(;++c<e.children.length;){const f=e.children[c];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),u}function RC(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 NC(e,t,n,r){const i=RC(n);let a=n.bulletCurrent||as(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),d);return l(),u;function d(c,f,p){return f?(p?"":" ".repeat(o))+c:(p?a:a+" ".repeat(o-a.length))+c}}function IC(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const PC=ea(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function OC(e,t,n,r){return(e.children.some(function(o){return PC(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function LC(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}kf.peek=DC;function kf(e,t,n,r){const i=LC(n),a=n.enter("strong"),o=n.createTracker(r),s=o.move(i+i);let l=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const u=l.charCodeAt(0),d=Bi(r.before.charCodeAt(r.before.length-1),u,i);d.inside&&(l=Gr(u)+l.slice(1));const c=l.charCodeAt(l.length-1),f=Bi(r.after.charCodeAt(0),c,i);f.inside&&(l=l.slice(0,-1)+Gr(c));const p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+l+p}function DC(e,t,n){return n.options.strong||"*"}function zC(e,t,n,r){return n.safe(e.value,r)}function MC(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 jC(e,t,n){const r=(xf(n)+(n.options.ruleSpaces?" ":"")).repeat(MC(n));return n.options.ruleSpaces?r.slice(0,-1):r}const wf={blockquote:sC,break:uc,code:pC,definition:mC,emphasis:ff,hardBreak:uc,heading:bC,html:pf,image:hf,imageReference:mf,inlineCode:gf,link:vf,linkReference:bf,list:AC,listItem:NC,paragraph:IC,root:OC,strong:kf,text:zC,thematicBreak:jC};function FC(){return{enter:{table:BC,tableData:cc,tableHeader:cc,tableRow:VC},exit:{codeText:ZC,table:qC,tableData:Va,tableHeader:Va,tableRow:Va}}}function BC(e){const t=e._align;w(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function qC(e){this.exit(e),this.data.inTable=void 0}function VC(e){this.enter({type:"tableRow",children:[]},e)}function Va(e){this.exit(e)}function cc(e){this.enter({type:"tableCell",children:[]},e)}function ZC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,$C));const n=this.stack[this.stack.length-1];w(n.type==="inlineCode"),n.value=t,this.exit(e)}function $C(e,t){return t==="|"?t:e}function UC(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=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:f,table:o,tableCell:l,tableRow:s}};function o(p,g,y,k){return u(d(p,y,k),p.align)}function s(p,g,y,k){const v=c(p,y,k),T=u([v]);return T.slice(0,T.indexOf(`
|
|
48
|
+
`))}function l(p,g,y,k){const v=y.enter("tableCell"),T=y.enter("phrasing"),_=y.containerPhrasing(p,{...k,before:a,after:a});return T(),v(),_}function u(p,g){return aC(p,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function d(p,g,y){const k=p.children;let v=-1;const T=[],_=g.enter("table");for(;++v<k.length;)T[v]=c(k[v],g,y);return _(),T}function c(p,g,y){const k=p.children;let v=-1;const T=[],_=g.enter("tableRow");for(;++v<k.length;)T[v]=l(k[v],p,g,y);return _(),T}function f(p,g,y){let k=wf.inlineCode(p,g,y);return y.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function HC(){return{exit:{taskListCheckValueChecked:dc,taskListCheckValueUnchecked:dc,paragraph:WC}}}function GC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:JC}}}function dc(e){const t=this.stack[this.stack.length-2];w(t.type==="listItem"),t.checked=e.type==="taskListCheckValueChecked"}function WC(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];w(n.type==="paragraph");const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const s=i[a];if(s.type==="paragraph"){o=s;break}}o===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 JC(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let l=wf.listItem(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(d){return d+o}}function ZA(){return[AS(),JS(),QS(),FC(),HC()]}function $A(e){return{extensions:[RS(),KS(e),eC(),UC(e),GC()]}}const KC={tokenize:nT,partial:!0},_f={tokenize:rT,partial:!0},Sf={tokenize:iT,partial:!0},Cf={tokenize:aT,partial:!0},YC={tokenize:oT,partial:!0},Tf={name:"wwwAutolink",tokenize:eT,previous:Af},Ef={name:"protocolAutolink",tokenize:tT,previous:Rf},qt={name:"emailAutolink",tokenize:QC,previous:Nf},Lt={};function XC(){return{text:Lt}}let yn=h.digit0;for(;yn<h.leftCurlyBrace;)Lt[yn]=qt,yn++,yn===h.colon?yn=h.uppercaseA:yn===h.leftSquareBracket&&(yn=h.lowercaseA);Lt[h.plusSign]=qt;Lt[h.dash]=qt;Lt[h.dot]=qt;Lt[h.underscore]=qt;Lt[h.uppercaseH]=[qt,Ef];Lt[h.lowercaseH]=[qt,Ef];Lt[h.uppercaseW]=[qt,Tf];Lt[h.lowercaseW]=[qt,Tf];function QC(e,t,n){const r=this;let i,a;return o;function o(c){return!ko(c)||!Nf.call(r,r.previous)||os(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return ko(c)?(e.consume(c),s):c===h.atSign?(e.consume(c),l):n(c)}function l(c){return c===h.dot?e.check(YC,d,u)(c):c===h.dash||c===h.underscore||Ue(c)?(a=!0,e.consume(c),l):d(c)}function u(c){return e.consume(c),i=!0,l}function d(c){return a&&i&&Je(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function eT(e,t,n){const r=this;return i;function i(o){return o!==h.uppercaseW&&o!==h.lowercaseW||!Af.call(r,r.previous)||os(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(KC,e.attempt(_f,e.attempt(Sf,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function tT(e,t,n){const r=this;let i="",a=!1;return o;function o(c){return(c===h.uppercaseH||c===h.lowercaseH)&&Rf.call(r,r.previous)&&!os(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),s):n(c)}function s(c){if(Je(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),s;if(c===h.colon){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(c),l}return n(c)}function l(c){return c===h.slash?(e.consume(c),a?u:(a=!0,l)):n(c)}function u(c){return c===h.eof||Mi(c)||Ce(c)||kn(c)||Yi(c)?n(c):e.attempt(_f,e.attempt(Sf,d),n)(c)}function d(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function nT(e,t,n){let r=0;return i;function i(o){return(o===h.uppercaseW||o===h.lowercaseW)&&r<3?(r++,e.consume(o),i):o===h.dot&&r===3?(e.consume(o),a):n(o)}function a(o){return o===h.eof?n(o):t(o)}}function rT(e,t,n){let r,i,a;return o;function o(u){return u===h.dot||u===h.underscore?e.check(Cf,l,s)(u):u===h.eof||Ce(u)||kn(u)||u!==h.dash&&Yi(u)?l(u):(a=!0,e.consume(u),o)}function s(u){return u===h.underscore?r=!0:(i=r,r=void 0),e.consume(u),o}function l(u){return i||r||!a?n(u):t(u)}}function iT(e,t){let n=0,r=0;return i;function i(o){return o===h.leftParenthesis?(n++,e.consume(o),i):o===h.rightParenthesis&&r<n?a(o):o===h.exclamationMark||o===h.quotationMark||o===h.ampersand||o===h.apostrophe||o===h.rightParenthesis||o===h.asterisk||o===h.comma||o===h.dot||o===h.colon||o===h.semicolon||o===h.lessThan||o===h.questionMark||o===h.rightSquareBracket||o===h.underscore||o===h.tilde?e.check(Cf,t,a)(o):o===h.eof||Ce(o)||kn(o)?t(o):(e.consume(o),i)}function a(o){return o===h.rightParenthesis&&r++,e.consume(o),i}}function aT(e,t,n){return r;function r(s){return s===h.exclamationMark||s===h.quotationMark||s===h.apostrophe||s===h.rightParenthesis||s===h.asterisk||s===h.comma||s===h.dot||s===h.colon||s===h.semicolon||s===h.questionMark||s===h.underscore||s===h.tilde?(e.consume(s),r):s===h.ampersand?(e.consume(s),a):s===h.rightSquareBracket?(e.consume(s),i):s===h.lessThan||s===h.eof||Ce(s)||kn(s)?t(s):n(s)}function i(s){return s===h.eof||s===h.leftParenthesis||s===h.leftSquareBracket||Ce(s)||kn(s)?t(s):r(s)}function a(s){return Je(s)?o(s):n(s)}function o(s){return s===h.semicolon?(e.consume(s),r):Je(s)?(e.consume(s),o):n(s)}}function oT(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return Ue(a)?n(a):t(a)}}function Af(e){return e===h.eof||e===h.leftParenthesis||e===h.asterisk||e===h.underscore||e===h.leftSquareBracket||e===h.rightSquareBracket||e===h.tilde||Ce(e)}function Rf(e){return!Je(e)}function Nf(e){return!(e===h.slash||ko(e))}function ko(e){return e===h.plusSign||e===h.dash||e===h.dot||e===h.underscore||Ue(e)}function os(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 sT={tokenize:mT,partial:!0};function lT(){return{document:{[h.leftSquareBracket]:{name:"gfmFootnoteDefinition",tokenize:fT,continuation:{tokenize:pT},exit:hT}},text:{[h.leftSquareBracket]:{name:"gfmFootnoteCall",tokenize:dT},[h.rightSquareBracket]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:uT,resolveTo:cT}}}}function uT(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type===m.labelImage){o=l;break}if(l.type==="gfmFootnoteCall"||l.type===m.labelLink||l.type===m.label||l.type===m.image||l.type===m.link)break}return s;function s(l){if(w(l===h.rightSquareBracket,"expected `]`"),!o||!o._balanced)return n(l);const u=wt(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==h.caret||!a.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function cT(e,t){let n=e.length,r;for(;n--;)if(e[n][1].type===m.labelImage&&e[n][0]==="enter"){r=e[n][1];break}w(r,"expected `labelStart` to resolve"),e[n+1][1].type=m.data,e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:m.chunkString,contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function dT(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(c){return w(c===h.leftSquareBracket,"expected `[`"),e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==h.caret?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(a>$.linkReferenceSizeMax||c===h.rightSquareBracket&&!o||c===h.eof||c===h.leftSquareBracket||Ce(c))return n(c);if(c===h.rightSquareBracket){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(wt(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return Ce(c)||(o=!0),a++,e.consume(c),c===h.backslash?d:u}function d(c){return c===h.leftSquareBracket||c===h.backslash||c===h.rightSquareBracket?(e.consume(c),a++,u):u(c)}}function fT(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return l;function l(g){return w(g===h.leftSquareBracket,"expected `[`"),e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===h.caret?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(g)}function d(g){if(o>$.linkReferenceSizeMax||g===h.rightSquareBracket&&!s||g===h.eof||g===h.leftSquareBracket||Ce(g))return n(g);if(g===h.rightSquareBracket){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=wt(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Ce(g)||(s=!0),o++,e.consume(g),g===h.backslash?c:d}function c(g){return g===h.leftSquareBracket||g===h.backslash||g===h.rightSquareBracket?(e.consume(g),o++,d):d(g)}function f(g){return g===h.colon?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(a)||i.push(a),be(e,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return t(g)}}function pT(e,t,n){return e.check(Yr,t,e.attempt(sT,t,n))}function hT(e){e.exit("gfmFootnoteDefinition")}function mT(e,t,n){const r=this;return be(e,i,"gfmFootnoteDefinitionIndent",$.tabSize+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===$.tabSize?t(a):n(a)}}function gT(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{[h.tilde]:r},insideSpan:{null:[r]},attentionMarkers:{null:[h.tilde]}};function i(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},c={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},f=[["enter",d,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",c,s]],p=s.parser.constructs.insideSpan.null;p&<(f,f.length,0,Xi(p,o.slice(u+1,l),s)),lt(f,f.length,0,[["exit",c,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",d,s]]),lt(o,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type=m.data);return o}function a(o,s,l){const u=this.previous,d=this.events;let c=0;return f;function f(g){return w(g===h.tilde,"expected `~`"),u===h.tilde&&d[d.length-1][1].type!==m.characterEscape?l(g):(o.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const y=Zn(u);if(g===h.tilde)return c>1?l(g):(o.consume(g),c++,p);if(c<2&&!n)return l(g);const k=o.exit("strikethroughSequenceTemporary"),v=Zn(g);return k._open=!v||v===$.attentionSideAfter&&!!y,k._close=!y||y===$.attentionSideAfter&&!!v,s(g)}}}class yT{constructor(){this.map=[]}add(t,n,r){vT(this,t,n,r)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[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 a of i)t.push(a);i=r.pop()}this.map.length=0}}function vT(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 bT(e,t){w(e[t][1].type==="table","expected table");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 a=r.length-1;r[a]=r[a]==="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 xT(){return{flow:{null:{name:"table",tokenize:kT,resolveAll:wT}}}}function kT(e,t,n){const r=this;let i=0,a=0,o;return s;function s(C){let ae=r.events.length-1;for(;ae>-1;){const Z=r.events[ae][1].type;if(Z===m.lineEnding||Z===m.linePrefix)ae--;else break}const J=ae>-1?r.events[ae][1].type:null,z=J==="tableHead"||J==="tableRow"?S:l;return z===S&&r.parser.lazy[r.now().line]?n(C):z(C)}function l(C){return e.enter("tableHead"),e.enter("tableRow"),u(C)}function u(C){return C===h.verticalBar||(o=!0,a+=1),d(C)}function d(C){return C===h.eof?n(C):Y(C)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter(m.lineEnding),e.consume(C),e.exit(m.lineEnding),p):n(C):me(C)?be(e,d,m.whitespace)(C):(a+=1,o&&(o=!1,i+=1),C===h.verticalBar?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),o=!0,d):(e.enter(m.data),c(C)))}function c(C){return C===h.eof||C===h.verticalBar||Ce(C)?(e.exit(m.data),d(C)):(e.consume(C),C===h.backslash?f:c)}function f(C){return C===h.backslash||C===h.verticalBar?(e.consume(C),c):c(C)}function p(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),o=!1,me(C)?(w(r.parser.constructs.disable.null,"expected `disabled.null`"),be(e,g,m.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:$.tabSize)(C)):g(C))}function g(C){return C===h.dash||C===h.colon?k(C):C===h.verticalBar?(o=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),y):O(C)}function y(C){return me(C)?be(e,k,m.whitespace)(C):k(C)}function k(C){return C===h.colon?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),v):C===h.dash?(a+=1,v(C)):C===h.eof||Y(C)?P(C):O(C)}function v(C){return C===h.dash?(e.enter("tableDelimiterFiller"),T(C)):O(C)}function T(C){return C===h.dash?(e.consume(C),T):C===h.colon?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(C))}function _(C){return me(C)?be(e,P,m.whitespace)(C):P(C)}function P(C){return C===h.verticalBar?g(C):C===h.eof||Y(C)?!o||i!==a?O(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):O(C)}function O(C){return n(C)}function S(C){return e.enter("tableRow"),q(C)}function q(C){return C===h.verticalBar?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),q):C===h.eof||Y(C)?(e.exit("tableRow"),t(C)):me(C)?be(e,q,m.whitespace)(C):(e.enter(m.data),M(C))}function M(C){return C===h.eof||C===h.verticalBar||Ce(C)?(e.exit(m.data),q(C)):(e.consume(C),C===h.backslash?H:M)}function H(C){return C===h.backslash||C===h.verticalBar?(e.consume(C),M):M(C)}}function wT(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,u,d,c;const f=new yT;for(;++n<e.length;){const p=e[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(w(u,"there should be a table opening"),fc(f,t,l,u,d),d=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",d,t]])),i=g.type==="tableDelimiterRow"?2:d?3:1):i&&(g.type===m.data||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],c=bi(f,t,a,i,void 0,c),a=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],c=bi(f,t,a,i,void 0,c)),a=o,o=[a[1],n,0,0])):g.type==="tableHead"?(s=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,a[1]!==0?(o[0]=o[1],c=bi(f,t,a,i,n,c)):o[1]!==0&&(c=bi(f,t,o,i,n,c)),i=0):i&&(g.type===m.data||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&(w(u,"expected table opening"),fc(f,t,l,u,d)),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=bT(t.events,n))}return e}function bi(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(w(a,"expected previous cell enter"),a.end=Object.assign({},Nn(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=Nn(t.events,n[1]);if(a={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const u=Nn(t.events,n[2]),d=Nn(t.events,n[3]),c={type:s,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",c,t]]),w(n[3]!==0),r!==2){const f=t.events[n[2]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type=m.chunkText,f[1].contentType=$.contentTypeText,n[3]>n[2]+1){const g=n[2]+1,y=n[3]-n[2]-1;e.add(g,y,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(a.end=Object.assign({},Nn(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function fc(e,t,n,r,i){const a=[],o=Nn(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function Nn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const _T={name:"tasklistCheck",tokenize:CT};function ST(){return{text:{[h.leftSquareBracket]:_T}}}function CT(e,t,n){const r=this;return i;function i(l){return w(l===h.leftSquareBracket,"expected `[`"),r.previous!==h.eof||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Ce(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===h.uppercaseX||l===h.lowercaseX?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===h.rightSquareBracket?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return Y(l)?t(l):me(l)?e.check({tokenize:TT},t,n)(l):n(l)}}function TT(e,t,n){return be(e,r,m.whitespace);function r(i){return i===h.eof?n(i):t(i)}}function UA(e){return Fd([XC(),lT(),gT(e),xT(),ST()])}function N(){return N=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},N.apply(null,arguments)}function ve(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 If={},Pf=U.createContext(If),ET=(e,t)=>N({},e,t),AT=()=>U.useContext(Pf),ss=U.createContext(()=>{});ss.displayName="JVR.DispatchShowTools";function RT(){return U.useReducer(ET,If)}function Of(){return U.useContext(ss)}var Lf=e=>{var{initial:t,dispatch:n,children:r}=e;return D.jsx(Pf.Provider,{value:t,children:D.jsx(ss.Provider,{value:n,children:r})})};Lf.displayName="JVR.ShowTools";var Df={},zf=U.createContext(Df),NT=(e,t)=>N({},e,t),na=()=>U.useContext(zf),ls=U.createContext(()=>{});ls.displayName="JVR.DispatchExpands";function IT(){return U.useReducer(NT,Df)}function PT(){return U.useContext(ls)}var Mf=e=>{var{initial:t,dispatch:n,children:r}=e;return D.jsx(zf.Provider,{value:t,children:D.jsx(ls.Provider,{value:n,children:r})})};Mf.displayName="JVR.Expands";var jf={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"}},Ff=U.createContext(jf),OT=(e,t)=>N({},e,t),Ee=()=>U.useContext(Ff),us=U.createContext(()=>{});us.displayName="JVR.DispatchTypes";function LT(){return U.useReducer(OT,jf)}function DT(){return U.useContext(us)}function Bf(e){var{initial:t,dispatch:n,children:r}=e;return D.jsx(Ff.Provider,{value:t,children:D.jsx(us.Provider,{value:n,children:r})})}Bf.displayName="JVR.Types";var zT=["style"];function qf(e){var{style:t}=e,n=ve(e,zT),r=N({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return D.jsx("svg",N({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:r},n,{children:D.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}qf.displayName="JVR.TriangleArrow";var Vf={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:D.jsx(qf,{})},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:"}"}},Zf=U.createContext(Vf),MT=(e,t)=>N({},e,t),nt=()=>U.useContext(Zf),cs=U.createContext(()=>{});cs.displayName="JVR.DispatchSymbols";function jT(){return U.useReducer(MT,Vf)}function FT(){return U.useContext(cs)}var $f=e=>{var{initial:t,dispatch:n,children:r}=e;return D.jsx(Zf.Provider,{value:t,children:D.jsx(cs.Provider,{value:n,children:r})})};$f.displayName="JVR.Symbols";var Uf={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"}},Hf=U.createContext(Uf),BT=(e,t)=>N({},e,t),mt=()=>U.useContext(Hf),ds=U.createContext(()=>{});ds.displayName="JVR.DispatchSection";function qT(){return U.useReducer(BT,Uf)}function VT(){return U.useContext(ds)}var Gf=e=>{var{initial:t,dispatch:n,children:r}=e;return D.jsx(Hf.Provider,{value:t,children:D.jsx(ds.Provider,{value:n,children:r})})};Gf.displayName="JVR.Section";var Wf={objectSortKeys:!1,indentWidth:15},fs=U.createContext(Wf);fs.displayName="JVR.Context";var Jf=U.createContext(()=>{});Jf.displayName="JVR.DispatchContext";function ZT(e,t){return N({},e,t)}var Cn=()=>U.useContext(fs),Kf=e=>{var{children:t,initialState:n,initialTypes:r}=e,[i,a]=U.useReducer(ZT,Object.assign({},Wf,n)),[o,s]=RT(),[l,u]=IT(),[d,c]=LT(),[f,p]=jT(),[g,y]=qT();return U.useEffect(()=>a(N({},n)),[n]),D.jsx(fs.Provider,{value:i,children:D.jsx(Jf.Provider,{value:a,children:D.jsx(Lf,{initial:o,dispatch:s,children:D.jsx(Mf,{initial:l,dispatch:u,children:D.jsx(Bf,{initial:N({},d,r),dispatch:c,children:D.jsx($f,{initial:f,dispatch:p,children:D.jsx(Gf,{initial:g,dispatch:y,children:t})})})})})})})};Kf.displayName="JVR.Provider";function $T(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var UT=["isNumber","value","parentValue","keyName","keys"],HT=["as","render"],GT=["as","render"],WT=["as","render"],JT=["as","style","render"],KT=["as","render"],YT=["as","render"],XT=["as","render"],QT=["as","render"],wo=e=>{var{Quote:t={}}=nt(),{isNumber:n,value:r,parentValue:i,keyName:a,keys:o}=e,s=ve(e,UT);if(n)return null;var{as:l,render:u}=t,d=ve(t,HT),c=l||"span",f=N({},s,d),p={value:r,parentValue:i,keyName:a,keys:o||(a?[a]:[])},g=u&&typeof u=="function"&&u(f,p);return g||D.jsx(c,N({},f))};wo.displayName="JVR.Quote";var Wr=e=>{var{ValueQuote:t={}}=nt(),n=N({},($T(e),e)),{as:r,render:i}=t,a=ve(t,GT),o=r||"span",s=N({},n,a),l=i&&typeof i=="function"&&i(s,{});return l||D.jsx(o,N({},s))};Wr.displayName="JVR.ValueQuote";var Yf=e=>{var{value:t,parentValue:n,keyName:r,keys:i}=e,{Colon:a={}}=nt(),{as:o,render:s}=a,l=ve(a,WT),u=o||"span",d=s&&typeof s=="function"&&s(l,{value:t,parentValue:n,keyName:r,keys:i||(r?[r]:[])});return d||D.jsx(u,N({},l))};Yf.displayName="JVR.Colon";var Xf=e=>{var{Arrow:t={}}=nt(),n=na(),{expandKey:r,style:i,value:a,parentValue:o,keyName:s,keys:l}=e,u=!!n[r],{as:d,style:c,render:f}=t,p=ve(t,JT),g=d||"span",y=f&&typeof f=="function",k=N({},p,{"data-expanded":u,style:N({},c,i)}),v={value:a,parentValue:o,keyName:s,keys:l||(s?[s]:[])},T=y&&f(k,v);return T||D.jsx(g,N({},p,{style:N({},c,i)}))};Xf.displayName="JVR.Arrow";var Qf=e=>{var{isBrackets:t,value:n,parentValue:r,keyName:i,keys:a}=e,{BracketsLeft:o={},BraceLeft:s={}}=nt(),l={value:n,parentValue:r,keyName:i,keys:a||(i?[i]:[])};if(t){var{as:u,render:d}=o,c=ve(o,KT),f=u||"span",p=d&&typeof d=="function"&&d(c,l);return p||D.jsx(f,N({},c))}var{as:g,render:y}=s,k=ve(s,YT),v=g||"span",T=y&&typeof y=="function"&&y(k,l);return T||D.jsx(v,N({},k))};Qf.displayName="JVR.BracketsOpen";var ps=e=>{var{isBrackets:t,isVisiable:n,value:r,parentValue:i,keyName:a,keys:o}=e,s={value:r,parentValue:i,keyName:a,keys:o||(a?[a]:[])};if(!n)return null;var{BracketsRight:l={},BraceRight:u={}}=nt();if(t){var{as:d,render:c}=l,f=ve(l,XT),p=d||"span",g=c&&typeof c=="function"&&c(f,s);return g||D.jsx(p,N({},f))}var{as:y,render:k}=u,v=ve(u,QT),T=y||"span",_=k&&typeof k=="function"&&k(v,s);return _||D.jsx(T,N({},v))};ps.displayName="JVR.BracketsClose";var ep=e=>{var t,{keyName:n,value:r,expandKey:i,parentValue:a,level:o,keys:s=[]}=e,l=na(),{collapsed:u,shouldExpandNodeInitially:d}=Cn(),c=typeof u=="boolean"?u:typeof u=="number"?o>u:!1,f=(t=l[i])!=null?t:d?!1:c,p=d&&d(!f,{value:r,keys:s,level:o,keyName:n,parentValue:a});if(l[i]===void 0&&!p)return null;var g=Object.keys(r).length;if(f||g===0)return null;var y={paddingLeft:4},k={keyName:n,value:r,keys:s,parentValue:a},v=Array.isArray(r),T=r instanceof Set;return D.jsx("div",{style:y,children:D.jsx(ps,N({isBrackets:v||T},k,{isVisiable:!0}))})};ep.displayName="JVR.NestedClose";var eE=["as","render"],tE=["as","render"],nE=["as","render"],rE=["as","render"],iE=["as","render"],aE=["as","render"],oE=["as","render"],sE=["as","render"],lE=["as","render"],uE=["as","render"],cE=["as","render"],dE=["as","render"],fE=["as","render"],_o=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},tp=e=>{var{value:t,keyName:n}=e,{Set:r={},displayDataTypes:i}=Ee(),a=t instanceof Set;if(!a||!i)return null;var{as:o,render:s}=r,l=ve(r,eE),u=s&&typeof s=="function",d=u&&s(l,{type:"type",value:t,keyName:n});if(d)return d;var c=o||"span";return D.jsx(c,N({},l))};tp.displayName="JVR.SetComp";var np=e=>{var{value:t,keyName:n}=e,{Map:r={},displayDataTypes:i}=Ee(),a=t instanceof Map;if(!a||!i)return null;var{as:o,render:s}=r,l=ve(r,tE),u=s&&typeof s=="function",d=u&&s(l,{type:"type",value:t,keyName:n});if(d)return d;var c=o||"span";return D.jsx(c,N({},l))};np.displayName="JVR.MapComp";var Ct={opacity:.75,paddingRight:4},rp=e=>{var{children:t="",keyName:n,keys:r}=e,{Str:i={},displayDataTypes:a}=Ee(),{shortenTextAfterLength:o=30,stringEllipsis:s="..."}=Cn(),{as:l,render:u}=i,d=ve(i,nE),c=t,[f,p]=U.useState(o&&c.length>o);U.useEffect(()=>p(o&&c.length>o),[o]);var g=l||"span",y=N({},Ct,i.style||{});o>0&&(d.style=N({},d.style,{cursor:c.length<=o?"initial":"pointer"}),c.length>o&&(d.onClick=()=>{p(!f)}));var k=f?""+c.slice(0,o)+s:c,v=u&&typeof u=="function",T=v&&u(N({},d,{style:y}),{type:"type",value:t,keyName:n,keys:r}),_=f?"w-rjv-value w-rjv-value-short":"w-rjv-value",P=v&&u(N({},d,{children:k,className:_}),{type:"value",value:t,keyName:n,keys:r});return D.jsxs(U.Fragment,{children:[a&&(T||D.jsx(g,N({},d,{style:y}))),P||D.jsxs(U.Fragment,{children:[D.jsx(Wr,{}),D.jsx(g,N({},d,{className:_,children:k})),D.jsx(Wr,{})]})]})};rp.displayName="JVR.TypeString";var ip=e=>{var{children:t,keyName:n,keys:r}=e,{True:i={},displayDataTypes:a}=Ee(),{as:o,render:s}=i,l=ve(i,rE),u=o||"span",d=N({},Ct,i.style||{}),c=s&&typeof s=="function",f=c&&s(N({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(N({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return D.jsxs(U.Fragment,{children:[a&&(f||D.jsx(u,N({},l,{style:d}))),p||D.jsx(u,N({},l,{className:"w-rjv-value",children:t?.toString()}))]})};ip.displayName="JVR.TypeTrue";var ap=e=>{var{children:t,keyName:n,keys:r}=e,{False:i={},displayDataTypes:a}=Ee(),{as:o,render:s}=i,l=ve(i,iE),u=o||"span",d=N({},Ct,i.style||{}),c=s&&typeof s=="function",f=c&&s(N({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(N({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return D.jsxs(U.Fragment,{children:[a&&(f||D.jsx(u,N({},l,{style:d}))),p||D.jsx(u,N({},l,{className:"w-rjv-value",children:t?.toString()}))]})};ap.displayName="JVR.TypeFalse";var op=e=>{var{children:t,keyName:n,keys:r}=e,{Float:i={},displayDataTypes:a}=Ee(),{as:o,render:s}=i,l=ve(i,aE),u=o||"span",d=N({},Ct,i.style||{}),c=s&&typeof s=="function",f=c&&s(N({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(N({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return D.jsxs(U.Fragment,{children:[a&&(f||D.jsx(u,N({},l,{style:d}))),p||D.jsx(u,N({},l,{className:"w-rjv-value",children:t?.toString()}))]})};op.displayName="JVR.TypeFloat";var sp=e=>{var{children:t,keyName:n,keys:r}=e,{Int:i={},displayDataTypes:a}=Ee(),{as:o,render:s}=i,l=ve(i,oE),u=o||"span",d=N({},Ct,i.style||{}),c=s&&typeof s=="function",f=c&&s(N({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(N({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return D.jsxs(U.Fragment,{children:[a&&(f||D.jsx(u,N({},l,{style:d}))),p||D.jsx(u,N({},l,{className:"w-rjv-value",children:t?.toString()}))]})};sp.displayName="JVR.TypeInt";var lp=e=>{var{children:t,keyName:n,keys:r}=e,{Bigint:i={},displayDataTypes:a}=Ee(),{as:o,render:s}=i,l=ve(i,sE),u=o||"span",d=N({},Ct,i.style||{}),c=s&&typeof s=="function",f=c&&s(N({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(N({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return D.jsxs(U.Fragment,{children:[a&&(f||D.jsx(u,N({},l,{style:d}))),p||D.jsx(u,N({},l,{className:"w-rjv-value",children:_o(t?.toString())}))]})};lp.displayName="JVR.TypeFloat";var up=e=>{var{children:t,keyName:n,keys:r}=e,{Url:i={},displayDataTypes:a}=Ee(),{as:o,render:s}=i,l=ve(i,lE),u=o||"span",d=N({},Ct,i.style),c=s&&typeof s=="function",f=c&&s(N({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(N({},l,{children:t?.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return D.jsxs(U.Fragment,{children:[a&&(f||D.jsx(u,N({},l,{style:d}))),p||D.jsxs("a",N({href:t?.href,target:"_blank"},l,{className:"w-rjv-value",children:[D.jsx(Wr,{}),t?.href,D.jsx(Wr,{})]}))]})};up.displayName="JVR.TypeUrl";var cp=e=>{var{children:t,keyName:n,keys:r}=e,{Date:i={},displayDataTypes:a}=Ee(),{as:o,render:s}=i,l=ve(i,uE),u=o||"span",d=N({},Ct,i.style||{}),c=s&&typeof s=="function",f=c&&s(N({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=t instanceof Date?t.toLocaleString():t,g=c&&s(N({},l,{children:p,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return D.jsxs(U.Fragment,{children:[a&&(f||D.jsx(u,N({},l,{style:d}))),g||D.jsx(u,N({},l,{className:"w-rjv-value",children:p}))]})};cp.displayName="JVR.TypeDate";var dp=e=>{var{children:t,keyName:n,keys:r}=e,{Undefined:i={},displayDataTypes:a}=Ee(),{as:o,render:s}=i,l=ve(i,cE),u=o||"span",d=N({},Ct,i.style||{}),c=s&&typeof s=="function",f=c&&s(N({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(N({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return D.jsxs(U.Fragment,{children:[a&&(f||D.jsx(u,N({},l,{style:d}))),p]})};dp.displayName="JVR.TypeUndefined";var fp=e=>{var{children:t,keyName:n,keys:r}=e,{Null:i={},displayDataTypes:a}=Ee(),{as:o,render:s}=i,l=ve(i,dE),u=o||"span",d=N({},Ct,i.style||{}),c=s&&typeof s=="function",f=c&&s(N({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(N({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return D.jsxs(U.Fragment,{children:[a&&(f||D.jsx(u,N({},l,{style:d}))),p]})};fp.displayName="JVR.TypeNull";var pp=e=>{var{children:t,keyName:n,keys:r}=e,{Nan:i={},displayDataTypes:a}=Ee(),{as:o,render:s}=i,l=ve(i,fE),u=o||"span",d=N({},Ct,i.style||{}),c=s&&typeof s=="function",f=c&&s(N({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(N({},l,{children:t?.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return D.jsxs(U.Fragment,{children:[a&&(f||D.jsx(u,N({},l,{style:d}))),p]})};pp.displayName="JVR.TypeNan";var pE=e=>Number(e)===e&&e%1!==0||isNaN(e),hp=e=>{var{value:t,keyName:n,keys:r}=e,i={keyName:n,keys:r};return t instanceof URL?D.jsx(up,N({},i,{children:t})):typeof t=="string"?D.jsx(rp,N({},i,{children:t})):t===!0?D.jsx(ip,N({},i,{children:t})):t===!1?D.jsx(ap,N({},i,{children:t})):t===null?D.jsx(fp,N({},i,{children:t})):t===void 0?D.jsx(dp,N({},i,{children:t})):t instanceof Date?D.jsx(cp,N({},i,{children:t})):typeof t=="number"&&isNaN(t)?D.jsx(pp,N({},i,{children:t})):typeof t=="number"&&pE(t)?D.jsx(op,N({},i,{children:t})):typeof t=="bigint"?D.jsx(lp,N({},i,{children:t})):typeof t=="number"?D.jsx(sp,N({},i,{children:t})):null};hp.displayName="JVR.Value";function an(e,t,n){var r=FT(),i=[e.className,t.className].filter(Boolean).join(" "),a=N({},e,t,{className:i,style:N({},e.style,t.style),children:t.children||e.children});U.useEffect(()=>r({[n]:a}),[t])}function ut(e,t,n){var r=DT(),i=[e.className,t.className].filter(Boolean).join(" "),a=N({},e,t,{className:i,style:N({},e.style,t.style),children:t.children||e.children});U.useEffect(()=>r({[n]:a}),[t])}function Qn(e,t,n){var r=VT(),i=[e.className,t.className].filter(Boolean).join(" "),a=N({},e,t,{className:i,style:N({},e.style,t.style),children:t.children||e.children});U.useEffect(()=>r({[n]:a}),[t])}var hE=["as","render"],mp=e=>{var{KeyName:t={}}=mt();return Qn(t,e,"KeyName"),null};mp.displayName="JVR.KeyName";var gp=e=>{var{children:t,value:n,parentValue:r,keyName:i,keys:a}=e,o=typeof t=="number",s={color:o?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:l={}}=mt(),{as:u,render:d}=l,c=ve(l,hE);c.style=N({},c.style,s);var f=u||"span",p=d&&typeof d=="function"&&d(N({},c,{children:t}),{value:n,parentValue:r,keyName:i,keys:a||(i?[i]:[])});return p||D.jsx(f,N({},c,{children:t}))};gp.displayName="JVR.KeyNameComp";var mE=["children","value","parentValue","keyName","keys"],gE=["as","render","children"],yp=e=>{var{Row:t={}}=mt();return Qn(t,e,"Row"),null};yp.displayName="JVR.Row";var vp=e=>{var{children:t,value:n,parentValue:r,keyName:i,keys:a}=e,o=ve(e,mE),{Row:s={}}=mt(),{as:l,render:u}=s,d=ve(s,gE),c=l||"div",f=u&&typeof u=="function"&&u(N({},o,d,{children:t}),{value:n,keyName:i,parentValue:r,keys:a});return f||D.jsx(c,N({},o,d,{children:t}))};vp.displayName="JVR.RowComp";function yE(e){var t=U.useRef();return U.useEffect(()=>{t.current=e}),t.current}function vE(e){var{value:t,highlightUpdates:n,highlightContainer:r}=e,i=yE(t),a=U.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]);U.useEffect(()=>{r&&r.current&&a&&"animate"in r.current&&r.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[a,t,r])}var bE=["keyName","value","parentValue","expandKey","keys","beforeCopy"],xE=["as","render"],hs=e=>{var{keyName:t,value:n,parentValue:r,expandKey:i,keys:a,beforeCopy:o}=e,s=ve(e,bE),{onCopied:l,enableClipboard:u,beforeCopy:d}=Cn(),c=AT(),f=c[i],[p,g]=U.useState(!1),{Copied:y={}}=mt(),k=y?.beforeCopy;if(u===!1||!f)return null;var v=M=>{M.stopPropagation();var H="";typeof n=="number"&&n===1/0?H="Infinity":typeof n=="number"&&isNaN(n)?H="NaN":typeof n=="bigint"?H=_o(n):n instanceof Date?H=n.toLocaleString():H=JSON.stringify(n,(J,z)=>typeof z=="bigint"?_o(z):z,2);var C=o||k||d;C&&typeof C=="function"&&(H=C(H,t,n,r,i,a)),l&&l(H,n),g(!0);var ae=navigator.clipboard||{writeText(J){return new Promise((z,Z)=>{var G=document.createElement("textarea");G.style.position="absolute",G.style.opacity="0",G.style.left="-99999999px",G.value=J,document.body.appendChild(G),G.select(),document.execCommand("copy")?z():Z(),G.remove()})}};ae.writeText(H).then(()=>{var J=setTimeout(()=>{g(!1),clearTimeout(J)},3e3)}).catch(J=>{})},T={style:{display:"inline-flex"},fill:p?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:v},{render:_}=y,P=ve(y,xE),O=N({},P,s,T,{style:N({},P.style,s.style,T.style)}),S=_&&typeof _=="function",q=S&&_(N({},O,{"data-copied":p}),{value:n,keyName:t,keys:a,parentValue:r});return q||(p?D.jsx("svg",N({viewBox:"0 0 32 36"},O,{children:D.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"})})):D.jsx("svg",N({viewBox:"0 0 32 36"},O,{children:D.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"})})))};hs.displayName="JVR.Copied";function bp(){var e=U.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var xp=e=>{var t,{keyName:n,value:r,expandKey:i="",level:a,keys:o=[],parentValue:s}=e,l=na(),{objectSortKeys:u,indentWidth:d,collapsed:c,shouldExpandNodeInitially:f}=Cn(),p=typeof c=="boolean"?c:typeof c=="number"?a>c:!1,g=(t=l[i])!=null?t:f?!1:p,y=f&&f(!g,{value:r,keys:o,level:a,keyName:n,parentValue:s});if(l[i]===void 0&&!y||g)return null;var k=Array.isArray(r),v=k?Object.entries(r).map(_=>[Number(_[0]),_[1]]):Object.entries(r);u&&(v=u===!0?v.sort((_,P)=>{var[O]=_,[S]=P;return typeof O=="string"&&typeof S=="string"?O.localeCompare(S):0}):v.sort((_,P)=>{var[O,S]=_,[q,M]=P;return typeof O=="string"&&typeof q=="string"?u(O,q,S,M):0}));var T={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:d,marginLeft:6};return D.jsx("div",{className:"w-rjv-wrap",style:T,children:v.map((_,P)=>{var[O,S]=_;return D.jsx(kp,{parentValue:r,keyName:O,keys:[...o,O],value:S,level:a},P)})})};xp.displayName="JVR.KeyValues";var ms=e=>{var{keyName:t,parentValue:n,keys:r,value:i}=e,{highlightUpdates:a}=Cn(),o=typeof t=="number",s=U.useRef(null);vE({value:i,highlightUpdates:a,highlightContainer:s});var l={keyName:t,value:i,keys:r,parentValue:n};return D.jsxs(U.Fragment,{children:[D.jsxs("span",{ref:s,children:[D.jsx(wo,N({isNumber:o,"data-placement":"left"},l)),D.jsx(gp,N({},l,{children:t})),D.jsx(wo,N({isNumber:o,"data-placement":"right"},l))]}),D.jsx(Yf,N({},l))]})};ms.displayName="JVR.KayName";var kp=e=>{var{keyName:t,value:n,parentValue:r,level:i=0,keys:a=[]}=e,o=Of(),s=bp(),l=Array.isArray(n),u=n instanceof Set,d=n instanceof Map,c=n instanceof Date,f=n instanceof URL,p=n&&typeof n=="object"&&!l&&!u&&!d&&!c&&!f,g=p||l||u||d;if(g){var y=u?Array.from(n):d?Object.fromEntries(n):n;return D.jsx(gs,{keyName:t,value:y,parentValue:r,initialValue:n,keys:a,level:i+1})}var k={onMouseEnter:()=>o({[s]:!0}),onMouseLeave:()=>o({[s]:!1})};return D.jsxs(vp,N({className:"w-rjv-line",value:n,keyName:t,keys:a,parentValue:r},k,{children:[D.jsx(ms,{keyName:t,value:n,keys:a,parentValue:r}),D.jsx(hp,{keyName:t,value:n,keys:a}),D.jsx(hs,{keyName:t,value:n,keys:a,parentValue:r,expandKey:s})]}))};kp.displayName="JVR.KeyValuesItem";var kE=["value","keyName"],wE=["as","render"],wp=e=>{var{CountInfoExtra:t={}}=mt();return Qn(t,e,"CountInfoExtra"),null};wp.displayName="JVR.CountInfoExtra";var _p=e=>{var{value:t={},keyName:n}=e,r=ve(e,kE),{CountInfoExtra:i={}}=mt(),{as:a,render:o}=i,s=ve(i,wE);if(!o&&!s.children)return null;var l=a||"span",u=o&&typeof o=="function",d=N({},s,r),c=u&&o(d,{value:t,keyName:n});return c||D.jsx(l,N({},d))};_p.displayName="JVR.CountInfoExtraComps";var _E=["value","keyName"],SE=["as","render"],Sp=e=>{var{CountInfo:t={}}=mt();return Qn(t,e,"CountInfo"),null};Sp.displayName="JVR.CountInfo";var Cp=e=>{var{value:t={},keyName:n}=e,r=ve(e,_E),{displayObjectSize:i}=Cn(),{CountInfo:a={}}=mt();if(!i)return null;var{as:o,render:s}=a,l=ve(a,SE),u=o||"span";l.style=N({},l.style,e.style);var d=Object.keys(t).length;l.children||(l.children=d+" item"+(d===1?"":"s"));var c=N({},l,r),f=s&&typeof s=="function",p=f&&s(N({},c,{"data-length":d}),{value:t,keyName:n});return p||D.jsx(u,N({},c))};Cp.displayName="JVR.CountInfoComp";var CE=["as","render"],Tp=e=>{var{Ellipsis:t={}}=mt();return Qn(t,e,"Ellipsis"),null};Tp.displayName="JVR.Ellipsis";var Ep=e=>{var{isExpanded:t,value:n,keyName:r}=e,{Ellipsis:i={}}=mt(),{as:a,render:o}=i,s=ve(i,CE),l=a||"span",u=o&&typeof o=="function"&&o(N({},s,{"data-expanded":t}),{value:n,keyName:r});return u||(!t||typeof n=="object"&&Object.keys(n).length==0?null:D.jsx(l,N({},s)))};Ep.displayName="JVR.EllipsisComp";var Ap=e=>{var t,{keyName:n,expandKey:r,keys:i=[],initialValue:a,value:o,parentValue:s,level:l}=e,u=na(),d=PT(),{onExpand:c,collapsed:f,shouldExpandNodeInitially:p}=Cn(),g=typeof f=="boolean"?f:typeof f=="number"?l>f:!1,y=(t=u[r])!=null?t:p?!1:g,k=p&&p(!y,{value:o,keys:i,level:l,keyName:n,parentValue:s});u[r]===void 0&&p&&(y=!k);var v=()=>{var ae={expand:!y,value:o,keyid:r,keyName:n};c&&c(ae),d({[r]:ae.expand})},T={display:"inline-flex",alignItems:"center"},_={transform:"rotate("+(y?"-90":"0")+"deg)",transition:"all 0.3s"},P=Object.keys(o).length,O=typeof o=="object",S=Array.isArray(o),q=o instanceof Set,M=P!==0&&(S||q||O),H={style:T};M&&(H.onClick=v);var C={keyName:n,value:o,keys:i,parentValue:s};return D.jsxs("span",N({},H,{children:[M&&D.jsx(Xf,N({style:_,expandKey:r},C)),(n||typeof n=="number")&&D.jsx(ms,N({},C)),D.jsx(tp,{value:a,keyName:n}),D.jsx(np,{value:a,keyName:n}),D.jsx(Qf,N({isBrackets:S||q},C)),D.jsx(Ep,{keyName:n,value:o,isExpanded:y}),D.jsx(ps,N({isVisiable:y||!M,isBrackets:S||q},C)),D.jsx(Cp,{value:o,keyName:n}),D.jsx(_p,{value:o,keyName:n}),D.jsx(hs,{keyName:n,value:o,expandKey:r,parentValue:s,keys:i})]}))};Ap.displayName="JVR.NestedOpen";var TE=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],gs=U.forwardRef((e,t)=>{var{className:n="",parentValue:r,level:i=1,value:a,initialValue:o,keys:s,keyName:l}=e,u=ve(e,TE),d=Of(),c=bp(),f=[n,"w-rjv-inner"].filter(Boolean).join(" "),p={onMouseEnter:()=>d({[c]:!0}),onMouseLeave:()=>d({[c]:!1})};return D.jsxs("div",N({className:f,ref:t},u,p,{children:[D.jsx(Ap,{expandKey:c,value:a,level:i,keys:s,parentValue:r,keyName:l,initialValue:o}),D.jsx(xp,{expandKey:c,value:a,level:i,keys:s,parentValue:r,keyName:l}),D.jsx(ep,{expandKey:c,value:a,level:i,keys:s,parentValue:r,keyName:l})]}))});gs.displayName="JVR.Container";var Rp=e=>{var{BraceLeft:t={}}=nt();return an(t,e,"BraceLeft"),null};Rp.displayName="JVR.BraceLeft";var Np=e=>{var{BraceRight:t={}}=nt();return an(t,e,"BraceRight"),null};Np.displayName="JVR.BraceRight";var Ip=e=>{var{BracketsLeft:t={}}=nt();return an(t,e,"BracketsLeft"),null};Ip.displayName="JVR.BracketsLeft";var Pp=e=>{var{BracketsRight:t={}}=nt();return an(t,e,"BracketsRight"),null};Pp.displayName="JVR.BracketsRight";var Op=e=>{var{Arrow:t={}}=nt();return an(t,e,"Arrow"),null};Op.displayName="JVR.Arrow";var Lp=e=>{var{Colon:t={}}=nt();return an(t,e,"Colon"),null};Lp.displayName="JVR.Colon";var Dp=e=>{var{Quote:t={}}=nt();return an(t,e,"Quote"),null};Dp.displayName="JVR.Quote";var zp=e=>{var{ValueQuote:t={}}=nt();return an(t,e,"ValueQuote"),null};zp.displayName="JVR.ValueQuote";var Mp=e=>{var{Bigint:t={}}=Ee();return ut(t,e,"Bigint"),null};Mp.displayName="JVR.Bigint";var jp=e=>{var{Date:t={}}=Ee();return ut(t,e,"Date"),null};jp.displayName="JVR.Date";var Fp=e=>{var{False:t={}}=Ee();return ut(t,e,"False"),null};Fp.displayName="JVR.False";var Bp=e=>{var{Float:t={}}=Ee();return ut(t,e,"Float"),null};Bp.displayName="JVR.Float";var qp=e=>{var{Int:t={}}=Ee();return ut(t,e,"Int"),null};qp.displayName="JVR.Int";var Vp=e=>{var{Map:t={}}=Ee();return ut(t,e,"Map"),null};Vp.displayName="JVR.Map";var Zp=e=>{var{Nan:t={}}=Ee();return ut(t,e,"Nan"),null};Zp.displayName="JVR.Nan";var $p=e=>{var{Null:t={}}=Ee();return ut(t,e,"Null"),null};$p.displayName="JVR.Null";var Up=e=>{var{Set:t={}}=Ee();return ut(t,e,"Set"),null};Up.displayName="JVR.Set";var Hp=e=>{var{Str:t={}}=Ee();return ut(t,e,"Str"),null};Hp.displayName="JVR.StringText";var Gp=e=>{var{True:t={}}=Ee();return ut(t,e,"True"),null};Gp.displayName="JVR.True";var Wp=e=>{var{Undefined:t={}}=Ee();return ut(t,e,"Undefined"),null};Wp.displayName="JVR.Undefined";var Jp=e=>{var{Url:t={}}=Ee();return ut(t,e,"Url"),null};Jp.displayName="JVR.Url";var Kp=e=>{var{Copied:t={}}=mt();return Qn(t,e,"Copied"),null};Kp.displayName="JVR.Copied";var EE=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],_e=U.forwardRef((e,t)=>{var{className:n="",style:r,value:i,children:a,collapsed:o=!1,shouldExpandNodeInitially:s=()=>!0,indentWidth:l=15,displayObjectSize:u=!0,shortenTextAfterLength:d=30,stringEllipsis:c,highlightUpdates:f=!0,enableClipboard:p=!0,displayDataTypes:g=!0,objectSortKeys:y=!1,onExpand:k,onCopied:v,beforeCopy:T}=e,_=ve(e,EE),P=N({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),O=["w-json-view-container","w-rjv",n].filter(Boolean).join(" ");return D.jsxs(Kf,{initialState:{value:i,objectSortKeys:y,indentWidth:l,shouldExpandNodeInitially:o===!1?s:()=>!1,displayObjectSize:u,collapsed:o,enableClipboard:p,shortenTextAfterLength:d,stringEllipsis:c,highlightUpdates:f,onCopied:v,onExpand:k,beforeCopy:T},initialTypes:{displayDataTypes:g},children:[D.jsx(gs,N({value:i},_,{ref:t,className:O,style:P})),a]})});_e.Bigint=Mp;_e.Date=jp;_e.False=Fp;_e.Float=Bp;_e.Int=qp;_e.Map=Vp;_e.Nan=Zp;_e.Null=$p;_e.Set=Up;_e.String=Hp;_e.True=Gp;_e.Undefined=Wp;_e.Url=Jp;_e.ValueQuote=zp;_e.Arrow=Op;_e.Colon=Lp;_e.Quote=Dp;_e.Ellipsis=Tp;_e.BraceLeft=Rp;_e.BraceRight=Np;_e.BracketsLeft=Ip;_e.BracketsRight=Pp;_e.Copied=Kp;_e.CountInfo=Sp;_e.CountInfoExtra=wp;_e.KeyName=mp;_e.Row=yp;_e.displayName="JVR.JsonView";export{gv as $,zi as A,zA as B,PA as C,DA as D,VA as E,BA as F,qA as G,MA as H,sf as I,jA as J,FA as K,BE as L,FE as M,hb as N,mA as O,fA as P,dA as Q,gA as R,ml as S,vA as T,sb as U,gS as V,yA as W,Kl as X,cA as Y,pA as Z,Kk as _,tA as a,hA as a0,ub as a1,kA as a2,ix as a3,xA as a4,bA as a5,_e as a6,sA as b,aA as c,nA as d,ZA as e,$A as f,UA as g,_A as h,SA as i,CA as j,EA as k,uA as l,AA as m,rA as n,oA as o,NA as p,RA as q,lA as r,eA as s,TA as t,iA as u,wA as v,IA as w,NE as x,LA as y,OA as z};
|