@townco/gui-template 0.1.12 → 0.1.14
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-C7r2g8Gx.js → acp-sdk-BiGbXeF1.js} +1 -1
- package/dist/assets/icons-BtPq83UA.js +1 -0
- package/dist/assets/index-BQ9Vy_PH.js +8 -0
- package/dist/assets/index-dSWdaIUO.css +1 -0
- package/dist/assets/{markdown-BYclSlXM.js → markdown-DP5OEpQP.js} +1 -1
- package/dist/assets/{radix-5M08E2bk.js → radix-C1pEulHa.js} +1 -1
- package/dist/assets/react-DWDN8s0r.js +49 -0
- package/dist/assets/vendor-BxtqxsLB.js +48 -0
- package/dist/index.html +8 -8
- package/package.json +3 -3
- package/src/ChatView.tsx +2 -0
- package/dist/assets/icons-DyKSdrA7.js +0 -1
- package/dist/assets/index-B4gi_GLt.js +0 -8
- package/dist/assets/index-DDhFOEN_.css +0 -1
- package/dist/assets/react-oZw8z-KQ.js +0 -49
- package/dist/assets/vendor-CEpcc87q.js +0 -48
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import{a as L,c as Iu,r as Se,b as Ru,g as _a}from"./react-oZw8z-KQ.js";var Xr={exports:{}},Jr={};var Oo;function Ou(){return Oo||(Oo=1,(function(e){function t(_,O){var S=_.length;_.push(O);e:for(;0<S;){var G=S-1>>>1,g=_[G];if(0<i(g,O))_[G]=O,_[S]=g,S=G;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var O=_[0],S=_.pop();if(S!==O){_[0]=S;e:for(var G=0,g=_.length,me=g>>>1;G<me;){var xe=2*(G+1)-1,m=_[xe],X=xe+1,re=_[X];if(0>i(m,S))X<g&&0>i(re,m)?(_[G]=re,_[X]=S,G=X):(_[G]=m,_[xe]=S,G=xe);else if(X<g&&0>i(re,S))_[G]=re,_[X]=S,G=X;else break e}}return O}function i(_,O){var S=_.sortIndex-O.sortIndex;return S!==0?S:_.id-O.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],f=1,c=null,h=3,d=!1,p=!1,b=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function T(_){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=_)r(u),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(u)}}function I(_){if(b=!1,T(_),!p)if(n(l)!==null)p=!0,x||(x=!0,N());else{var O=n(u);O!==null&&R(I,O.startTime-_)}}var x=!1,j=-1,z=5,H=-1;function k(){return v?!0:!(e.unstable_now()-H<z)}function $(){if(v=!1,x){var _=e.unstable_now();H=_;var O=!0;try{e:{p=!1,b&&(b=!1,C(j),j=-1),d=!0;var S=h;try{t:{for(T(_),c=n(l);c!==null&&!(c.expirationTime>_&&k());){var G=c.callback;if(typeof G=="function"){c.callback=null,h=c.priorityLevel;var g=G(c.expirationTime<=_);if(_=e.unstable_now(),typeof g=="function"){c.callback=g,T(_),O=!0;break t}c===n(l)&&r(l),T(_)}else r(l);c=n(l)}if(c!==null)O=!0;else{var me=n(u);me!==null&&R(I,me.startTime-_),O=!1}}break e}finally{c=null,h=S,d=!1}O=void 0}}finally{O?N():x=!1}}}var N;if(typeof w=="function")N=function(){w($)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,M=W.port2;W.port1.onmessage=$,N=function(){M.postMessage(null)}}else N=function(){y($,0)};function R(_,O){j=y(function(){_(e.unstable_now())},O)}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(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(_){switch(h){case 1:case 2:case 3:var O=3;break;default:O=h}var S=h;h=O;try{return _()}finally{h=S}},e.unstable_requestPaint=function(){v=!0},e.unstable_runWithPriority=function(_,O){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var S=h;h=_;try{return O()}finally{h=S}},e.unstable_scheduleCallback=function(_,O,S){var G=e.unstable_now();switch(typeof S=="object"&&S!==null?(S=S.delay,S=typeof S=="number"&&0<S?G+S:G):S=G,_){case 1:var g=-1;break;case 2:g=250;break;case 5:g=1073741823;break;case 4:g=1e4;break;default:g=5e3}return g=S+g,_={id:f++,callback:O,priorityLevel:_,startTime:S,expirationTime:g,sortIndex:-1},S>G?(_.sortIndex=S,t(u,_),n(l)===null&&_===n(u)&&(b?(C(j),j=-1):b=!0,R(I,S-G))):(_.sortIndex=g,t(l,_),p||d||(p=!0,x||(x=!0,N()))),_},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(_){var O=h;return function(){var S=h;h=O;try{return _.apply(this,arguments)}finally{h=S}}}})(Jr)),Jr}var Po;function n0(){return Po||(Po=1,Xr.exports=Ou()),Xr.exports}const Do=e=>{let t;const n=new Set,r=(u,f)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const h=t;t=f??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(d=>d(t,h))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u))},l=t=e(r,i,a);return a},Pu=(e=>e?Do(e):Do),Du=e=>e;function Nu(e,t=Du){const n=L.useSyncExternalStore(e.subscribe,L.useCallback(()=>t(e.getState()),[e,t]),L.useCallback(()=>t(e.getInitialState()),[e,t]));return L.useDebugValue(n),n}const No=e=>{const t=Pu(e),n=r=>Nu(t,r);return Object.assign(n,t),n},r0=(e=>e?No(e):No);function A(e,t,n){function r(a,l){var u;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(u=a._zod).traits??(u.traits=new Set),a._zod.traits.add(e),t(a,l);for(const f in s.prototype)f in a||Object.defineProperty(a,f,{value:s.prototype[f].bind(a)});a._zod.constr=s,a._zod.def=l}const i=n?.Parent??Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function s(a){var l;const u=n?.Parent?new o:this;r(u,a),(l=u._zod).deferred??(l.deferred=[]);for(const f of u._zod.deferred)f();return u}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class sn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Sa extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Ca={};function Dt(e){return Ca}function Lu(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 _i(e,t){return typeof t=="bigint"?t.toString():t}function Pr(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Ji(e){return e==null}function Ki(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function $u(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const l=r.match(/\d?e-(\d?)/);l?.[1]&&(i=Number.parseInt(l[1]))}const o=n>i?n:i,s=Number.parseInt(e.toFixed(o).replace(".","")),a=Number.parseInt(t.toFixed(o).replace(".",""));return s%a/10**o}const Lo=Symbol("evaluating");function ge(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Lo)return r===void 0&&(r=Lo,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function Yt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Gt(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function $o(e){return JSON.stringify(e)}const Ea="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Nn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Mu=Pr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function un(e){if(Nn(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Nn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Aa(e){return un(e)?{...e}:Array.isArray(e)?[...e]:e}const Fu=new Set(["string","number","symbol"]);function cn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ft(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Y(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 ju(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Zu={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 Bu(e,t){const n=e._zod.def,r=Gt(e._zod.def,{get shape(){const i={};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(i[o]=n.shape[o])}return Yt(this,"shape",i),i},checks:[]});return Ft(e,r)}function Vu(e,t){const n=e._zod.def,r=Gt(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete i[o]}return Yt(this,"shape",i),i},checks:[]});return Ft(e,r)}function Uu(e,t){if(!un(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=Gt(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return Yt(this,"shape",o),o},checks:[]});return Ft(e,i)}function Hu(e,t){if(!un(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 Yt(this,"shape",r),r},checks:e._zod.def.checks};return Ft(e,n)}function Wu(e,t){const n=Gt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Yt(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Ft(e,n)}function qu(e,t,n){const r=Gt(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(n)for(const s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=e?new e({type:"optional",innerType:i[s]}):i[s])}else for(const s in i)o[s]=e?new e({type:"optional",innerType:i[s]}):i[s];return Yt(this,"shape",o),o},checks:[]});return Ft(t,r)}function Yu(e,t,n){const r=Gt(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(n)for(const s in n){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=new e({type:"nonoptional",innerType:i[s]}))}else for(const s in i)o[s]=new e({type:"nonoptional",innerType:i[s]});return Yt(this,"shape",o),o},checks:[]});return Ft(t,r)}function rn(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 on(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Qn(e){return typeof e=="string"?e:e?.message}function Nt(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=Qn(e.inst?._zod.def?.error?.(e))??Qn(t?.error?.(e))??Qn(n.customError?.(e))??Qn(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Qi(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ln(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Ta=(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,_i,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},za=A("$ZodError",Ta),Ia=A("$ZodError",Ta,{Parent:Error});function Gu(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 Xu(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>r({issues:s}));else if(o.code==="invalid_key")r({issues:o.issues});else if(o.code==="invalid_element")r({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let s=n,a=0;for(;a<o.path.length;){const l=o.path[a];a===o.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(t(o))):s[l]=s[l]||{_errors:[]},s=s[l],a++}}};return r(e),n}const eo=e=>(t,n,r,i)=>{const o=r?Object.assign(r,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new sn;if(s.issues.length){const a=new(i?.Err??e)(s.issues.map(l=>Nt(l,o,Dt())));throw Ea(a,i?.callee),a}return s.value},to=e=>async(t,n,r,i)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(i?.Err??e)(s.issues.map(l=>Nt(l,o,Dt())));throw Ea(a,i?.callee),a}return s.value},Dr=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new sn;return o.issues.length?{success:!1,error:new(e??za)(o.issues.map(s=>Nt(s,i,Dt())))}:{success:!0,data:o.value}},Ju=Dr(Ia),Nr=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(s=>Nt(s,i,Dt())))}:{success:!0,data:o.value}},Ku=Nr(Ia),Qu=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return eo(e)(t,n,i)},ec=e=>(t,n,r)=>eo(e)(t,n,r),tc=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return to(e)(t,n,i)},nc=e=>async(t,n,r)=>to(e)(t,n,r),rc=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Dr(e)(t,n,i)},ic=e=>(t,n,r)=>Dr(e)(t,n,r),oc=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Nr(e)(t,n,i)},sc=e=>async(t,n,r)=>Nr(e)(t,n,r),ac=/^[cC][^\s-]{8,}$/,lc=/^[0-9a-z]+$/,uc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,cc=/^[0-9a-vA-V]{20}$/,fc=/^[A-Za-z0-9]{27}$/,dc=/^[a-zA-Z0-9_-]{21}$/,hc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,pc=/^([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})$/,Mo=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)$/,mc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,gc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function yc(){return new RegExp(gc,"u")}const bc=/^(?:(?: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])$/,vc=/^(([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}|:))$/,xc=/^((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])$/,kc=/^(([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])$/,wc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ra=/^[A-Za-z0-9_-]*$/,_c=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Sc=/^\+(?:[0-9]){6,14}[0-9]$/,Oa="(?:(?:\\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])))",Cc=new RegExp(`^${Oa}$`);function Pa(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 Ec(e){return new RegExp(`^${Pa(e)}$`)}function Ac(e){const t=Pa({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(`^${Oa}T(?:${r})$`)}const Tc=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},zc=/^-?\d+$/,Ic=/^-?\d+(?:\.\d+)?/,Rc=/^(?:true|false)$/i,Oc=/^[^A-Z]*$/,Pc=/^[^a-z]*$/,Ve=A("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Da={number:"number",bigint:"bigint",object:"date"},Na=A("$ZodCheckLessThan",(e,t)=>{Ve.init(e,t);const n=Da[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),La=A("$ZodCheckGreaterThan",(e,t)=>{Ve.init(e,t);const n=Da[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Dc=A("$ZodCheckMultipleOf",(e,t)=>{Ve.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):$u(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})}}),Nc=A("$ZodCheckNumberFormat",(e,t)=>{Ve.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,o]=Zu[t.format];e._zod.onattach.push(s=>{const a=s._zod.bag;a.format=t.format,a.minimum=i,a.maximum=o,n&&(a.pattern=zc)}),e._zod.check=s=>{const a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):s.issues.push({input:a,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}}a<i&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),a>o&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inst:e})}}),Lc=A("$ZodCheckMaxLength",(e,t)=>{var n;Ve.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Ji(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 s=Qi(i);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),$c=A("$ZodCheckMinLength",(e,t)=>{var n;Ve.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Ji(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 s=Qi(i);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Mc=A("$ZodCheckLengthEquals",(e,t)=>{var n;Ve.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Ji(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,o=i.length;if(o===t.length)return;const s=Qi(i),a=o>t.length;r.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Lr=A("$ZodCheckStringFormat",(e,t)=>{var n,r;Ve.init(e,t),e._zod.onattach.push(i=>{const o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Fc=A("$ZodCheckRegex",(e,t)=>{Lr.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})}}),jc=A("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Oc),Lr.init(e,t)}),Zc=A("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Pc),Lr.init(e,t)}),Bc=A("$ZodCheckIncludes",(e,t)=>{Ve.init(e,t);const n=cn(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),Vc=A("$ZodCheckStartsWith",(e,t)=>{Ve.init(e,t);const n=new RegExp(`^${cn(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})}}),Uc=A("$ZodCheckEndsWith",(e,t)=>{Ve.init(e,t);const n=new RegExp(`.*${cn(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})}}),Hc=A("$ZodCheckOverwrite",(e,t)=>{Ve.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Wc{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(s=>s),i=Math.min(...r.map(s=>s.length-s.trimStart().length)),o=r.map(s=>s.slice(i)).map(s=>" ".repeat(this.indent*2)+s);for(const s of o)this.content.push(s)}compile(){const t=Function,n=this?.args,i=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,i.join(`
|
|
3
|
-
`))}}const qc={major:4,minor:1,patch:12},ke=A("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=qc;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const o of i._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(s,a,l)=>{let u=rn(s),f;for(const c of a){if(c._zod.def.when){if(!c._zod.def.when(s))continue}else if(u)continue;const h=s.issues.length,d=c._zod.check(s);if(d instanceof Promise&&l?.async===!1)throw new sn;if(f||d instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await d,s.issues.length!==h&&(u||(u=rn(s,h)))});else{if(s.issues.length===h)continue;u||(u=rn(s,h))}}return f?f.then(()=>s):s},o=(s,a,l)=>{if(rn(s))return s.aborted=!0,s;const u=i(a,r,l);if(u instanceof Promise){if(l.async===!1)throw new sn;return u.then(f=>e._zod.parse(f,l))}return e._zod.parse(u,l)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){const u=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return u instanceof Promise?u.then(f=>o(f,s,a)):o(u,s,a)}const l=e._zod.parse(s,a);if(l instanceof Promise){if(a.async===!1)throw new sn;return l.then(u=>i(u,r,a))}return i(l,r,a)}}e["~standard"]={validate:i=>{try{const o=Ju(e,i);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Ku(e,i).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),no=A("$ZodString",(e,t)=>{ke.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Tc(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}}),ve=A("$ZodStringFormat",(e,t)=>{Lr.init(e,t),no.init(e,t)}),Yc=A("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=pc),ve.init(e,t)}),Gc=A("$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=Mo(r))}else t.pattern??(t.pattern=Mo());ve.init(e,t)}),Xc=A("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=mc),ve.init(e,t)}),Jc=A("$ZodURL",(e,t)=>{ve.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:_c.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})}}}),Kc=A("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=yc()),ve.init(e,t)}),Qc=A("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=dc),ve.init(e,t)}),ef=A("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ac),ve.init(e,t)}),tf=A("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=lc),ve.init(e,t)}),nf=A("$ZodULID",(e,t)=>{t.pattern??(t.pattern=uc),ve.init(e,t)}),rf=A("$ZodXID",(e,t)=>{t.pattern??(t.pattern=cc),ve.init(e,t)}),of=A("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=fc),ve.init(e,t)}),sf=A("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ac(t)),ve.init(e,t)}),af=A("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Cc),ve.init(e,t)}),lf=A("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ec(t)),ve.init(e,t)}),uf=A("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=hc),ve.init(e,t)}),cf=A("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=bc),ve.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),ff=A("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=vc),ve.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),df=A("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=xc),ve.init(e,t)}),hf=A("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=kc),ve.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,o]=r;if(!o)throw new Error;const s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>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 $a(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const pf=A("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=wc),ve.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{$a(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function mf(e){if(!Ra.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return $a(n)}const gf=A("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ra),ve.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{mf(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),yf=A("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Sc),ve.init(e,t)});function bf(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 vf=A("$ZodJWT",(e,t)=>{ve.init(e,t),e._zod.check=n=>{bf(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ma=A("$ZodNumber",(e,t)=>{ke.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ic,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),xf=A("$ZodNumber",(e,t)=>{Nc.init(e,t),Ma.init(e,t)}),kf=A("$ZodBoolean",(e,t)=>{ke.init(e,t),e._zod.pattern=Rc,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}}),wf=A("$ZodUnknown",(e,t)=>{ke.init(e,t),e._zod.parse=n=>n}),_f=A("$ZodNever",(e,t)=>{ke.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Fo(e,t,n){e.issues.length&&t.issues.push(...on(n,e.issues)),t.value[n]=e.value}const Sf=A("$ZodArray",(e,t)=>{ke.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const o=[];for(let s=0;s<i.length;s++){const a=i[s],l=t.element._zod.run({value:a,issues:[]},r);l instanceof Promise?o.push(l.then(u=>Fo(u,n,s))):Fo(l,n,s)}return o.length?Promise.all(o).then(()=>n):n}});function mr(e,t,n,r){e.issues.length&&t.issues.push(...on(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Fa(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=ju(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function ja(e,t,n,r,i,o){const s=[],a=i.keySet,l=i.catchall._zod,u=l.def.type;for(const f of Object.keys(t)){if(a.has(f))continue;if(u==="never"){s.push(f);continue}const c=l.run({value:t[f],issues:[]},r);c instanceof Promise?e.push(c.then(h=>mr(h,n,f,t))):mr(c,n,f,t)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const Cf=A("$ZodObject",(e,t)=>{if(ke.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...a};return Object.defineProperty(t,"shape",{value:l}),l}})}const r=Pr(()=>Fa(t));ge(e._zod,"propValues",()=>{const a=t.shape,l={};for(const u in a){const f=a[u]._zod;if(f.values){l[u]??(l[u]=new Set);for(const c of f.values)l[u].add(c)}}return l});const i=Nn,o=t.catchall;let s;e._zod.parse=(a,l)=>{s??(s=r.value);const u=a.value;if(!i(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};const f=[],c=s.shape;for(const h of s.keys){const p=c[h]._zod.run({value:u[h],issues:[]},l);p instanceof Promise?f.push(p.then(b=>mr(b,a,h,u))):mr(p,a,h,u)}return o?ja(f,u,a,l,r.value,e):f.length?Promise.all(f).then(()=>a):a}}),Ef=A("$ZodObjectJIT",(e,t)=>{Cf.init(e,t);const n=e._zod.parse,r=Pr(()=>Fa(t)),i=h=>{const d=new Wc(["shape","payload","ctx"]),p=r.value,b=w=>{const T=$o(w);return`shape[${T}]._zod.run({ value: input[${T}], issues: [] }, ctx)`};d.write("const input = payload.value;");const v=Object.create(null);let y=0;for(const w of p.keys)v[w]=`key_${y++}`;d.write("const newResult = {};");for(const w of p.keys){const T=v[w],I=$o(w);d.write(`const ${T} = ${b(w)};`),d.write(`
|
|
4
|
-
if (${T}.issues.length) {
|
|
5
|
-
payload.issues = payload.issues.concat(${T}.issues.map(iss => ({
|
|
6
|
-
...iss,
|
|
7
|
-
path: iss.path ? [${I}, ...iss.path] : [${I}]
|
|
8
|
-
})));
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (${T}.value === undefined) {
|
|
13
|
-
if (${I} in input) {
|
|
14
|
-
newResult[${I}] = undefined;
|
|
15
|
-
}
|
|
16
|
-
} else {
|
|
17
|
-
newResult[${I}] = ${T}.value;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
`)}d.write("payload.value = newResult;"),d.write("return payload;");const C=d.compile();return(w,T)=>C(h,w,T)};let o;const s=Nn,a=!Ca.jitless,u=a&&Mu.value,f=t.catchall;let c;e._zod.parse=(h,d)=>{c??(c=r.value);const p=h.value;return s(p)?a&&u&&d?.async===!1&&d.jitless!==!0?(o||(o=i(t.shape)),h=o(h,d),f?ja([],p,h,d,c,e):h):n(h,d):(h.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),h)}});function jo(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const i=e.filter(o=>!rn(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(s=>Nt(s,r,Dt())))}),t)}const Za=A("$ZodUnion",(e,t)=>{ke.init(e,t),ge(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ge(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ge(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),ge(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Ki(o.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(n)return r(i,o);let s=!1;const a=[];for(const l of t.options){const u=l._zod.run({value:i.value,issues:[]},o);if(u instanceof Promise)a.push(u),s=!0;else{if(u.issues.length===0)return u;a.push(u)}}return s?Promise.all(a).then(l=>jo(l,i,e,o)):jo(a,i,e,o)}}),Af=A("$ZodDiscriminatedUnion",(e,t)=>{Za.init(e,t);const n=e._zod.parse;ge(e._zod,"propValues",()=>{const i={};for(const o of t.options){const s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const[a,l]of Object.entries(s)){i[a]||(i[a]=new Set);for(const u of l)i[a].add(u)}}return i});const r=Pr(()=>{const i=t.options,o=new Map;for(const s of i){const a=s._zod.propValues?.[t.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const l of a){if(o.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);o.set(l,s)}}return o});e._zod.parse=(i,o)=>{const s=i.value;if(!Nn(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),i;const a=r.value.get(s?.[t.discriminator]);return a?a._zod.run(i,o):t.unionFallback?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),i)}}),Tf=A("$ZodIntersection",(e,t)=>{ke.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,o=t.left._zod.run({value:i,issues:[]},r),s=t.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([l,u])=>Zo(n,l,u)):Zo(n,o,s)}});function Si(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(un(e)&&un(t)){const n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};for(const o of r){const s=Si(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};i[o]=s.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],o=t[r],s=Si(i,o);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Zo(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),rn(e))return e;const r=Si(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 zf=A("$ZodRecord",(e,t)=>{ke.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!un(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;const o=[];if(t.keyType._zod.values){const s=t.keyType._zod.values;n.value={};for(const l of s)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){const u=t.valueType._zod.run({value:i[l],issues:[]},r);u instanceof Promise?o.push(u.then(f=>{f.issues.length&&n.issues.push(...on(l,f.issues)),n.value[l]=f.value})):(u.issues.length&&n.issues.push(...on(l,u.issues)),n.value[l]=u.value)}let a;for(const l in i)s.has(l)||(a=a??[],a.push(l));a&&a.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:a})}else{n.value={};for(const s of Reflect.ownKeys(i)){if(s==="__proto__")continue;const a=t.keyType._zod.run({value:s,issues:[]},r);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(a.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:a.issues.map(u=>Nt(u,r,Dt())),input:s,path:[s],inst:e}),n.value[a.value]=a.value;continue}const l=t.valueType._zod.run({value:i[s],issues:[]},r);l instanceof Promise?o.push(l.then(u=>{u.issues.length&&n.issues.push(...on(s,u.issues)),n.value[a.value]=u.value})):(l.issues.length&&n.issues.push(...on(s,l.issues)),n.value[a.value]=l.value)}}return o.length?Promise.all(o).then(()=>n):n}}),If=A("$ZodEnum",(e,t)=>{ke.init(e,t);const n=Lu(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>Fu.has(typeof i)).map(i=>typeof i=="string"?cn(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{const s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:n,input:s,inst:e}),i}}),Rf=A("$ZodLiteral",(e,t)=>{if(ke.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?cn(n):n?cn(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{const i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),Of=A("$ZodTransform",(e,t)=>{ke.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Sa(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(s=>(n.value=s,n));if(i instanceof Promise)throw new sn;return n.value=i,n}});function Bo(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Pf=A("$ZodOptional",(e,t)=>{ke.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ge(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ge(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Ki(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>Bo(o,n.value)):Bo(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Df=A("$ZodNullable",(e,t)=>{ke.init(e,t),ge(e._zod,"optin",()=>t.innerType._zod.optin),ge(e._zod,"optout",()=>t.innerType._zod.optout),ge(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Ki(n.source)}|null)$`):void 0}),ge(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)}),Nf=A("$ZodDefault",(e,t)=>{ke.init(e,t),e._zod.optin="optional",ge(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>Vo(o,t)):Vo(i,t)}});function Vo(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Lf=A("$ZodPrefault",(e,t)=>{ke.init(e,t),e._zod.optin="optional",ge(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))}),$f=A("$ZodNonOptional",(e,t)=>{ke.init(e,t),ge(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>Uo(o,e)):Uo(i,e)}});function Uo(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 Mf=A("$ZodCatch",(e,t)=>{ke.init(e,t),ge(e._zod,"optin",()=>t.innerType._zod.optin),ge(e._zod,"optout",()=>t.innerType._zod.optout),ge(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>Nt(s,r,Dt()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(o=>Nt(o,r,Dt()))},input:n.value}),n.issues=[]),n)}}),Ff=A("$ZodPipe",(e,t)=>{ke.init(e,t),ge(e._zod,"values",()=>t.in._zod.values),ge(e._zod,"optin",()=>t.in._zod.optin),ge(e._zod,"optout",()=>t.out._zod.optout),ge(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=t.out._zod.run(n,r);return o instanceof Promise?o.then(s=>er(s,t.in,r)):er(o,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(o=>er(o,t.out,r)):er(i,t.out,r)}});function er(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const jf=A("$ZodReadonly",(e,t)=>{ke.init(e,t),ge(e._zod,"propValues",()=>t.innerType._zod.propValues),ge(e._zod,"values",()=>t.innerType._zod.values),ge(e._zod,"optin",()=>t.innerType._zod.optin),ge(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(Ho):Ho(i)}});function Ho(e){return e.value=Object.freeze(e.value),e}const Zf=A("$ZodCustom",(e,t)=>{Ve.init(e,t),ke.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(o=>Wo(o,n,r,e));Wo(i,n,r,e)}});function Wo(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(Ln(i))}}class Bf{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 Vf(){return new Bf}const tr=Vf();function Uf(e,t){return new e({type:"string",...Y(t)})}function Hf(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Y(t)})}function qo(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Y(t)})}function Wf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Y(t)})}function qf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Y(t)})}function Yf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Y(t)})}function Gf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Y(t)})}function Xf(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Y(t)})}function Jf(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Y(t)})}function Kf(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Y(t)})}function Qf(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Y(t)})}function ed(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Y(t)})}function td(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Y(t)})}function nd(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Y(t)})}function rd(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Y(t)})}function id(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Y(t)})}function od(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Y(t)})}function sd(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Y(t)})}function ad(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Y(t)})}function ld(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Y(t)})}function ud(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Y(t)})}function cd(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Y(t)})}function fd(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Y(t)})}function dd(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Y(t)})}function hd(e,t){return new e({type:"string",format:"date",check:"string_format",...Y(t)})}function pd(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Y(t)})}function md(e,t){return new e({type:"string",format:"duration",check:"string_format",...Y(t)})}function gd(e,t){return new e({type:"number",checks:[],...Y(t)})}function yd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Y(t)})}function bd(e,t){return new e({type:"boolean",...Y(t)})}function vd(e){return new e({type:"unknown"})}function xd(e,t){return new e({type:"never",...Y(t)})}function Yo(e,t){return new Na({check:"less_than",...Y(t),value:e,inclusive:!1})}function Kr(e,t){return new Na({check:"less_than",...Y(t),value:e,inclusive:!0})}function Go(e,t){return new La({check:"greater_than",...Y(t),value:e,inclusive:!1})}function Qr(e,t){return new La({check:"greater_than",...Y(t),value:e,inclusive:!0})}function Xo(e,t){return new Dc({check:"multiple_of",...Y(t),value:e})}function Ba(e,t){return new Lc({check:"max_length",...Y(t),maximum:e})}function gr(e,t){return new $c({check:"min_length",...Y(t),minimum:e})}function Va(e,t){return new Mc({check:"length_equals",...Y(t),length:e})}function kd(e,t){return new Fc({check:"string_format",format:"regex",...Y(t),pattern:e})}function wd(e){return new jc({check:"string_format",format:"lowercase",...Y(e)})}function _d(e){return new Zc({check:"string_format",format:"uppercase",...Y(e)})}function Sd(e,t){return new Bc({check:"string_format",format:"includes",...Y(t),includes:e})}function Cd(e,t){return new Vc({check:"string_format",format:"starts_with",...Y(t),prefix:e})}function Ed(e,t){return new Uc({check:"string_format",format:"ends_with",...Y(t),suffix:e})}function Vn(e){return new Hc({check:"overwrite",tx:e})}function Ad(e){return Vn(t=>t.normalize(e))}function Td(){return Vn(e=>e.trim())}function zd(){return Vn(e=>e.toLowerCase())}function Id(){return Vn(e=>e.toUpperCase())}function Rd(e,t,n){return new e({type:"array",element:t,...Y(n)})}function Od(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Y(n)})}function Pd(e){const t=Dd(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Ln(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(Ln(i))}},e(n.value,n)));return t}function Dd(e,t){const n=new Ve({check:"custom",...Y(t)});return n._zod.check=e,n}const Nd=A("ZodISODateTime",(e,t)=>{sf.init(e,t),we.init(e,t)});function Ld(e){return dd(Nd,e)}const $d=A("ZodISODate",(e,t)=>{af.init(e,t),we.init(e,t)});function Md(e){return hd($d,e)}const Fd=A("ZodISOTime",(e,t)=>{lf.init(e,t),we.init(e,t)});function jd(e){return pd(Fd,e)}const Zd=A("ZodISODuration",(e,t)=>{uf.init(e,t),we.init(e,t)});function Bd(e){return md(Zd,e)}const Vd=(e,t)=>{za.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Xu(e,n)},flatten:{value:n=>Gu(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,_i,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,_i,2)}},isEmpty:{get(){return e.issues.length===0}}})},nt=A("ZodError",Vd,{Parent:Error}),Ud=eo(nt),Hd=to(nt),Wd=Dr(nt),qd=Nr(nt),Yd=Qu(nt),Gd=ec(nt),Xd=tc(nt),Jd=nc(nt),Kd=rc(nt),Qd=ic(nt),eh=oc(nt),th=sc(nt),_e=A("ZodType",(e,t)=>(ke.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Gt(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(n,r)=>Ft(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>Ud(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Wd(e,n,r),e.parseAsync=async(n,r)=>Hd(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>qd(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Yd(e,n,r),e.decode=(n,r)=>Gd(e,n,r),e.encodeAsync=async(n,r)=>Xd(e,n,r),e.decodeAsync=async(n,r)=>Jd(e,n,r),e.safeEncode=(n,r)=>Kd(e,n,r),e.safeDecode=(n,r)=>Qd(e,n,r),e.safeEncodeAsync=async(n,r)=>eh(e,n,r),e.safeDecodeAsync=async(n,r)=>th(e,n,r),e.refine=(n,r)=>e.check(Gh(n,r)),e.superRefine=n=>e.check(Xh(n)),e.overwrite=n=>e.check(Vn(n)),e.optional=()=>es(e),e.nullable=()=>ts(e),e.nullish=()=>es(ts(e)),e.nonoptional=n=>Bh(e,n),e.array=()=>Eh(e),e.or=n=>Th([e,n]),e.and=n=>Rh(e,n),e.transform=n=>ns(e,Lh(n)),e.default=n=>Fh(e,n),e.prefault=n=>Zh(e,n),e.catch=n=>Uh(e,n),e.pipe=n=>ns(e,n),e.readonly=()=>qh(e),e.describe=n=>{const r=e.clone();return tr.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return tr.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return tr.get(e);const r=e.clone();return tr.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ua=A("_ZodString",(e,t)=>{no.init(e,t),_e.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(kd(...r)),e.includes=(...r)=>e.check(Sd(...r)),e.startsWith=(...r)=>e.check(Cd(...r)),e.endsWith=(...r)=>e.check(Ed(...r)),e.min=(...r)=>e.check(gr(...r)),e.max=(...r)=>e.check(Ba(...r)),e.length=(...r)=>e.check(Va(...r)),e.nonempty=(...r)=>e.check(gr(1,...r)),e.lowercase=r=>e.check(wd(r)),e.uppercase=r=>e.check(_d(r)),e.trim=()=>e.check(Td()),e.normalize=(...r)=>e.check(Ad(...r)),e.toLowerCase=()=>e.check(zd()),e.toUpperCase=()=>e.check(Id())}),nh=A("ZodString",(e,t)=>{no.init(e,t),Ua.init(e,t),e.email=n=>e.check(Hf(rh,n)),e.url=n=>e.check(Xf(ih,n)),e.jwt=n=>e.check(fd(vh,n)),e.emoji=n=>e.check(Jf(oh,n)),e.guid=n=>e.check(qo(Jo,n)),e.uuid=n=>e.check(Wf(nr,n)),e.uuidv4=n=>e.check(qf(nr,n)),e.uuidv6=n=>e.check(Yf(nr,n)),e.uuidv7=n=>e.check(Gf(nr,n)),e.nanoid=n=>e.check(Kf(sh,n)),e.guid=n=>e.check(qo(Jo,n)),e.cuid=n=>e.check(Qf(ah,n)),e.cuid2=n=>e.check(ed(lh,n)),e.ulid=n=>e.check(td(uh,n)),e.base64=n=>e.check(ld(gh,n)),e.base64url=n=>e.check(ud(yh,n)),e.xid=n=>e.check(nd(ch,n)),e.ksuid=n=>e.check(rd(fh,n)),e.ipv4=n=>e.check(id(dh,n)),e.ipv6=n=>e.check(od(hh,n)),e.cidrv4=n=>e.check(sd(ph,n)),e.cidrv6=n=>e.check(ad(mh,n)),e.e164=n=>e.check(cd(bh,n)),e.datetime=n=>e.check(Ld(n)),e.date=n=>e.check(Md(n)),e.time=n=>e.check(jd(n)),e.duration=n=>e.check(Bd(n))});function i0(e){return Uf(nh,e)}const we=A("ZodStringFormat",(e,t)=>{ve.init(e,t),Ua.init(e,t)}),rh=A("ZodEmail",(e,t)=>{Xc.init(e,t),we.init(e,t)}),Jo=A("ZodGUID",(e,t)=>{Yc.init(e,t),we.init(e,t)}),nr=A("ZodUUID",(e,t)=>{Gc.init(e,t),we.init(e,t)}),ih=A("ZodURL",(e,t)=>{Jc.init(e,t),we.init(e,t)}),oh=A("ZodEmoji",(e,t)=>{Kc.init(e,t),we.init(e,t)}),sh=A("ZodNanoID",(e,t)=>{Qc.init(e,t),we.init(e,t)}),ah=A("ZodCUID",(e,t)=>{ef.init(e,t),we.init(e,t)}),lh=A("ZodCUID2",(e,t)=>{tf.init(e,t),we.init(e,t)}),uh=A("ZodULID",(e,t)=>{nf.init(e,t),we.init(e,t)}),ch=A("ZodXID",(e,t)=>{rf.init(e,t),we.init(e,t)}),fh=A("ZodKSUID",(e,t)=>{of.init(e,t),we.init(e,t)}),dh=A("ZodIPv4",(e,t)=>{cf.init(e,t),we.init(e,t)}),hh=A("ZodIPv6",(e,t)=>{ff.init(e,t),we.init(e,t)}),ph=A("ZodCIDRv4",(e,t)=>{df.init(e,t),we.init(e,t)}),mh=A("ZodCIDRv6",(e,t)=>{hf.init(e,t),we.init(e,t)}),gh=A("ZodBase64",(e,t)=>{pf.init(e,t),we.init(e,t)}),yh=A("ZodBase64URL",(e,t)=>{gf.init(e,t),we.init(e,t)}),bh=A("ZodE164",(e,t)=>{yf.init(e,t),we.init(e,t)}),vh=A("ZodJWT",(e,t)=>{vf.init(e,t),we.init(e,t)}),Ha=A("ZodNumber",(e,t)=>{Ma.init(e,t),_e.init(e,t),e.gt=(r,i)=>e.check(Go(r,i)),e.gte=(r,i)=>e.check(Qr(r,i)),e.min=(r,i)=>e.check(Qr(r,i)),e.lt=(r,i)=>e.check(Yo(r,i)),e.lte=(r,i)=>e.check(Kr(r,i)),e.max=(r,i)=>e.check(Kr(r,i)),e.int=r=>e.check(Ko(r)),e.safe=r=>e.check(Ko(r)),e.positive=r=>e.check(Go(0,r)),e.nonnegative=r=>e.check(Qr(0,r)),e.negative=r=>e.check(Yo(0,r)),e.nonpositive=r=>e.check(Kr(0,r)),e.multipleOf=(r,i)=>e.check(Xo(r,i)),e.step=(r,i)=>e.check(Xo(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 o0(e){return gd(Ha,e)}const xh=A("ZodNumberFormat",(e,t)=>{xf.init(e,t),Ha.init(e,t)});function Ko(e){return yd(xh,e)}const kh=A("ZodBoolean",(e,t)=>{kf.init(e,t),_e.init(e,t)});function s0(e){return bd(kh,e)}const wh=A("ZodUnknown",(e,t)=>{wf.init(e,t),_e.init(e,t)});function Qo(){return vd(wh)}const _h=A("ZodNever",(e,t)=>{_f.init(e,t),_e.init(e,t)});function Sh(e){return xd(_h,e)}const Ch=A("ZodArray",(e,t)=>{Sf.init(e,t),_e.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(gr(n,r)),e.nonempty=n=>e.check(gr(1,n)),e.max=(n,r)=>e.check(Ba(n,r)),e.length=(n,r)=>e.check(Va(n,r)),e.unwrap=()=>e.element});function Eh(e,t){return Rd(Ch,e,t)}const Ah=A("ZodObject",(e,t)=>{Ef.init(e,t),_e.init(e,t),ge(e,"shape",()=>t.shape),e.keyof=()=>Ph(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Qo()}),e.loose=()=>e.clone({...e._zod.def,catchall:Qo()}),e.strict=()=>e.clone({...e._zod.def,catchall:Sh()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Uu(e,n),e.safeExtend=n=>Hu(e,n),e.merge=n=>Wu(e,n),e.pick=n=>Bu(e,n),e.omit=n=>Vu(e,n),e.partial=(...n)=>qu(qa,e,n[0]),e.required=(...n)=>Yu(Ya,e,n[0])});function a0(e,t){const n={type:"object",shape:e??{},...Y(t)};return new Ah(n)}const Wa=A("ZodUnion",(e,t)=>{Za.init(e,t),_e.init(e,t),e.options=t.options});function Th(e,t){return new Wa({type:"union",options:e,...Y(t)})}const zh=A("ZodDiscriminatedUnion",(e,t)=>{Wa.init(e,t),Af.init(e,t)});function l0(e,t,n){return new zh({type:"union",options:t,discriminator:e,...Y(n)})}const Ih=A("ZodIntersection",(e,t)=>{Tf.init(e,t),_e.init(e,t)});function Rh(e,t){return new Ih({type:"intersection",left:e,right:t})}const Oh=A("ZodRecord",(e,t)=>{zf.init(e,t),_e.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function u0(e,t,n){return new Oh({type:"record",keyType:e,valueType:t,...Y(n)})}const Ci=A("ZodEnum",(e,t)=>{If.init(e,t),_e.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const o={};for(const s of r)if(n.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Ci({...t,checks:[],...Y(i),entries:o})},e.exclude=(r,i)=>{const o={...t.entries};for(const s of r)if(n.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new Ci({...t,checks:[],...Y(i),entries:o})}});function Ph(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Ci({type:"enum",entries:n,...Y(t)})}const Dh=A("ZodLiteral",(e,t)=>{Rf.init(e,t),_e.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 c0(e,t){return new Dh({type:"literal",values:Array.isArray(e)?e:[e],...Y(t)})}const Nh=A("ZodTransform",(e,t)=>{Of.init(e,t),_e.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Sa(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Ln(o,n.value,t));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(Ln(s))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function Lh(e){return new Nh({type:"transform",transform:e})}const qa=A("ZodOptional",(e,t)=>{Pf.init(e,t),_e.init(e,t),e.unwrap=()=>e._zod.def.innerType});function es(e){return new qa({type:"optional",innerType:e})}const $h=A("ZodNullable",(e,t)=>{Df.init(e,t),_e.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ts(e){return new $h({type:"nullable",innerType:e})}const Mh=A("ZodDefault",(e,t)=>{Nf.init(e,t),_e.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Fh(e,t){return new Mh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Aa(t)}})}const jh=A("ZodPrefault",(e,t)=>{Lf.init(e,t),_e.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Zh(e,t){return new jh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Aa(t)}})}const Ya=A("ZodNonOptional",(e,t)=>{$f.init(e,t),_e.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Bh(e,t){return new Ya({type:"nonoptional",innerType:e,...Y(t)})}const Vh=A("ZodCatch",(e,t)=>{Mf.init(e,t),_e.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Uh(e,t){return new Vh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Hh=A("ZodPipe",(e,t)=>{Ff.init(e,t),_e.init(e,t),e.in=t.in,e.out=t.out});function ns(e,t){return new Hh({type:"pipe",in:e,out:t})}const Wh=A("ZodReadonly",(e,t)=>{jf.init(e,t),_e.init(e,t),e.unwrap=()=>e._zod.def.innerType});function qh(e){return new Wh({type:"readonly",innerType:e})}const Yh=A("ZodCustom",(e,t)=>{Zf.init(e,t),_e.init(e,t)});function Gh(e,t={}){return Od(Yh,e,t)}function Xh(e){return Pd(e)}var he;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const s of i)o[s]=s;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),s={};for(const a of o)s[a]=i[a];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&o.push(s);return o},e.find=(i,o)=>{for(const s of i)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(he||(he={}));var rs;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(rs||(rs={}));const U=he.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ot=e=>{switch(typeof e){case"undefined":return U.undefined;case"string":return U.string;case"number":return Number.isNaN(e)?U.nan:U.number;case"boolean":return U.boolean;case"function":return U.function;case"bigint":return U.bigint;case"symbol":return U.symbol;case"object":return Array.isArray(e)?U.array:e===null?U.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?U.promise:typeof Map<"u"&&e instanceof Map?U.map:typeof Set<"u"&&e instanceof Set?U.set:typeof Date<"u"&&e instanceof Date?U.date:U.object;default:return U.unknown}},D=he.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 kt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,l=0;for(;l<s.path.length;){const u=s.path[l];l===s.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(s))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return i(this),r}static assert(t){if(!(t instanceof kt))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,he.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const o=i.path[0];n[o]=n[o]||[],n[o].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}kt.create=e=>new kt(e);const Ei=(e,t)=>{let n;switch(e.code){case D.invalid_type:e.received===U.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case D.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,he.jsonStringifyReplacer)}`;break;case D.unrecognized_keys:n=`Unrecognized key(s) in object: ${he.joinValues(e.keys,", ")}`;break;case D.invalid_union:n="Invalid input";break;case D.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${he.joinValues(e.options)}`;break;case D.invalid_enum_value:n=`Invalid enum value. Expected ${he.joinValues(e.options)}, received '${e.received}'`;break;case D.invalid_arguments:n="Invalid function arguments";break;case D.invalid_return_type:n="Invalid function return type";break;case D.invalid_date:n="Invalid date";break;case D.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}"`:he.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case D.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 D.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 D.custom:n="Invalid input";break;case D.invalid_intersection_types:n="Intersection results could not be merged";break;case D.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case D.not_finite:n="Number must be finite";break;default:n=t.defaultError,he.assertNever(e)}return{message:n}};let Jh=Ei;function Kh(){return Jh}const Qh=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],s={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(s,{data:t,defaultError:a}).message;return{...i,path:o,message:a}};function Z(e,t){const n=Kh(),r=Qh({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ei?void 0:Ei].filter(i=>!!i)});e.common.issues.push(r)}class Me{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 ee;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const o=await i.key,s=await i.value;r.push({key:o,value:s})}return Me.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:s}=i;if(o.status==="aborted"||s.status==="aborted")return ee;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[o.value]=s.value)}return{status:t.value,value:r}}}const ee=Object.freeze({status:"aborted"}),Rn=e=>({status:"dirty",value:e}),rt=e=>({status:"valid",value:e}),is=e=>e.status==="aborted",os=e=>e.status==="dirty",fn=e=>e.status==="valid",yr=e=>typeof Promise<"u"&&e instanceof Promise;var q;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(q||(q={}));class mt{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 ss=(e,t)=>{if(fn(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 kt(e.common.issues);return this._error=n,this._error}}};function ie(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:(s,a)=>{const{message:l}=e;return s.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:i}}class ue{get description(){return this._def.description}_getType(t){return Ot(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ot(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Me,ctx:{common:t.parent.common,data:t.data,parsedType:Ot(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(yr(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:Ot(t)},i=this._parseSync({data:t,path:r.path,parent:r});return ss(r,i)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ot(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return fn(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=>fn(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:Ot(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(yr(i)?i:Promise.resolve(i));return ss(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const s=t(i),a=()=>o.addIssue({code:D.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(a(),!1)):s?!0:(a(),!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 pn({schema:this,typeName:Q.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 Pt.create(this,this._def)}nullable(){return mn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ht.create(this)}promise(){return wr.create(this,this._def)}or(t){return vr.create([this,t],this._def)}and(t){return xr.create(this,t,this._def)}transform(t){return new pn({...ie(this._def),schema:this,typeName:Q.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Oi({...ie(this._def),innerType:this,defaultValue:n,typeName:Q.ZodDefault})}brand(){return new wp({typeName:Q.ZodBranded,type:this,...ie(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Pi({...ie(this._def),innerType:this,catchValue:n,typeName:Q.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ro.create(this,t)}readonly(){return Di.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ep=/^c[^\s-]{8,}$/i,tp=/^[0-9a-z]+$/,np=/^[0-9A-HJKMNP-TV-Z]{26}$/i,rp=/^[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,ip=/^[a-z0-9_-]{21}$/i,op=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,sp=/^[-+]?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)?)??$/,ap=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,lp="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ei;const up=/^(?:(?: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])$/,cp=/^(?:(?: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])$/,fp=/^(([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]))$/,dp=/^(([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])$/,hp=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,pp=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ga="((\\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])))",mp=new RegExp(`^${Ga}$`);function Xa(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 gp(e){return new RegExp(`^${Xa(e)}$`)}function yp(e){let t=`${Ga}T${Xa(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 bp(e,t){return!!((t==="v4"||!t)&&up.test(e)||(t==="v6"||!t)&&fp.test(e))}function vp(e,t){if(!op.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 xp(e,t){return!!((t==="v4"||!t)&&cp.test(e)||(t==="v6"||!t)&&dp.test(e))}class xt extends ue{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==U.string){const o=this._getOrReturnCtx(t);return Z(o,{code:D.invalid_type,expected:U.string,received:o.parsedType}),ee}const r=new Me;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),Z(i,{code:D.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),Z(i,{code:D.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const s=t.data.length>o.value,a=t.data.length<o.value;(s||a)&&(i=this._getOrReturnCtx(t,i),s?Z(i,{code:D.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&Z(i,{code:D.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")ap.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"email",code:D.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")ei||(ei=new RegExp(lp,"u")),ei.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"emoji",code:D.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")rp.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"uuid",code:D.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")ip.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"nanoid",code:D.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")ep.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"cuid",code:D.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")tp.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"cuid2",code:D.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")np.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"ulid",code:D.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),Z(i,{validation:"url",code:D.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"regex",code:D.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),Z(i,{code:D.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),Z(i,{code:D.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),Z(i,{code:D.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?yp(o).test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{code:D.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?mp.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{code:D.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?gp(o).test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{code:D.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?sp.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"duration",code:D.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?bp(t.data,o.version)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"ip",code:D.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?vp(t.data,o.alg)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"jwt",code:D.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?xp(t.data,o.version)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"cidr",code:D.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?hp.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"base64",code:D.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?pp.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"base64url",code:D.invalid_string,message:o.message}),r.dirty()):he.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:D.invalid_string,...q.errToObj(r)})}_addCheck(t){return new xt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...q.errToObj(t)})}url(t){return this._addCheck({kind:"url",...q.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...q.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...q.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...q.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...q.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...q.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...q.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...q.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...q.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...q.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...q.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...q.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,...q.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,...q.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...q.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...q.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...q.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...q.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...q.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...q.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...q.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...q.errToObj(n)})}nonempty(t){return this.min(1,q.errToObj(t))}trim(){return new xt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new xt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new xt({...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}}xt.create=e=>new xt({checks:[],typeName:Q.ZodString,coerce:e?.coerce??!1,...ie(e)});function kp(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return o%s/10**i}class dn extends ue{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)!==U.number){const o=this._getOrReturnCtx(t);return Z(o,{code:D.invalid_type,expected:U.number,received:o.parsedType}),ee}let r;const i=new Me;for(const o of this._def.checks)o.kind==="int"?he.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Z(r,{code:D.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:D.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:D.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?kp(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),Z(r,{code:D.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Z(r,{code:D.not_finite,message:o.message}),i.dirty()):he.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,q.toString(n))}gt(t,n){return this.setLimit("min",t,!1,q.toString(n))}lte(t,n){return this.setLimit("max",t,!0,q.toString(n))}lt(t,n){return this.setLimit("max",t,!1,q.toString(n))}setLimit(t,n,r,i){return new dn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:q.toString(i)}]})}_addCheck(t){return new dn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:q.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:q.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:q.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:q.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:q.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:q.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:q.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:q.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:q.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"&&he.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)}}dn.create=e=>new dn({checks:[],typeName:Q.ZodNumber,coerce:e?.coerce||!1,...ie(e)});class $n extends ue{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)!==U.bigint)return this._getInvalidInput(t);let r;const i=new Me;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:D.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:D.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:D.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):he.assertNever(o);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Z(n,{code:D.invalid_type,expected:U.bigint,received:n.parsedType}),ee}gte(t,n){return this.setLimit("min",t,!0,q.toString(n))}gt(t,n){return this.setLimit("min",t,!1,q.toString(n))}lte(t,n){return this.setLimit("max",t,!0,q.toString(n))}lt(t,n){return this.setLimit("max",t,!1,q.toString(n))}setLimit(t,n,r,i){return new $n({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:q.toString(i)}]})}_addCheck(t){return new $n({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:q.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:q.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:q.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:q.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:q.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}}$n.create=e=>new $n({checks:[],typeName:Q.ZodBigInt,coerce:e?.coerce??!1,...ie(e)});class Ai extends ue{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==U.boolean){const r=this._getOrReturnCtx(t);return Z(r,{code:D.invalid_type,expected:U.boolean,received:r.parsedType}),ee}return rt(t.data)}}Ai.create=e=>new Ai({typeName:Q.ZodBoolean,coerce:e?.coerce||!1,...ie(e)});class br extends ue{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==U.date){const o=this._getOrReturnCtx(t);return Z(o,{code:D.invalid_type,expected:U.date,received:o.parsedType}),ee}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return Z(o,{code:D.invalid_date}),ee}const r=new Me;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),Z(i,{code:D.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),Z(i,{code:D.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):he.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new br({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:q.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:q.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}}br.create=e=>new br({checks:[],coerce:e?.coerce||!1,typeName:Q.ZodDate,...ie(e)});class as extends ue{_parse(t){if(this._getType(t)!==U.symbol){const r=this._getOrReturnCtx(t);return Z(r,{code:D.invalid_type,expected:U.symbol,received:r.parsedType}),ee}return rt(t.data)}}as.create=e=>new as({typeName:Q.ZodSymbol,...ie(e)});class ls extends ue{_parse(t){if(this._getType(t)!==U.undefined){const r=this._getOrReturnCtx(t);return Z(r,{code:D.invalid_type,expected:U.undefined,received:r.parsedType}),ee}return rt(t.data)}}ls.create=e=>new ls({typeName:Q.ZodUndefined,...ie(e)});class Ti extends ue{_parse(t){if(this._getType(t)!==U.null){const r=this._getOrReturnCtx(t);return Z(r,{code:D.invalid_type,expected:U.null,received:r.parsedType}),ee}return rt(t.data)}}Ti.create=e=>new Ti({typeName:Q.ZodNull,...ie(e)});class us extends ue{constructor(){super(...arguments),this._any=!0}_parse(t){return rt(t.data)}}us.create=e=>new us({typeName:Q.ZodAny,...ie(e)});class zi extends ue{constructor(){super(...arguments),this._unknown=!0}_parse(t){return rt(t.data)}}zi.create=e=>new zi({typeName:Q.ZodUnknown,...ie(e)});class Lt extends ue{_parse(t){const n=this._getOrReturnCtx(t);return Z(n,{code:D.invalid_type,expected:U.never,received:n.parsedType}),ee}}Lt.create=e=>new Lt({typeName:Q.ZodNever,...ie(e)});class cs extends ue{_parse(t){if(this._getType(t)!==U.undefined){const r=this._getOrReturnCtx(t);return Z(r,{code:D.invalid_type,expected:U.void,received:r.parsedType}),ee}return rt(t.data)}}cs.create=e=>new cs({typeName:Q.ZodVoid,...ie(e)});class ht extends ue{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==U.array)return Z(n,{code:D.invalid_type,expected:U.array,received:n.parsedType}),ee;if(i.exactLength!==null){const s=n.data.length>i.exactLength.value,a=n.data.length<i.exactLength.value;(s||a)&&(Z(n,{code:s?D.too_big:D.too_small,minimum:a?i.exactLength.value:void 0,maximum:s?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&&(Z(n,{code:D.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&&(Z(n,{code:D.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((s,a)=>i.type._parseAsync(new mt(n,s,n.path,a)))).then(s=>Me.mergeArray(r,s));const o=[...n.data].map((s,a)=>i.type._parseSync(new mt(n,s,n.path,a)));return Me.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new ht({...this._def,minLength:{value:t,message:q.toString(n)}})}max(t,n){return new ht({...this._def,maxLength:{value:t,message:q.toString(n)}})}length(t,n){return new ht({...this._def,exactLength:{value:t,message:q.toString(n)}})}nonempty(t){return this.min(1,t)}}ht.create=(e,t)=>new ht({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Q.ZodArray,...ie(t)});function tn(e){if(e instanceof Ee){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Pt.create(tn(r))}return new Ee({...e._def,shape:()=>t})}else return e instanceof ht?new ht({...e._def,type:tn(e.element)}):e instanceof Pt?Pt.create(tn(e.unwrap())):e instanceof mn?mn.create(tn(e.unwrap())):e instanceof Ht?Ht.create(e.items.map(t=>tn(t))):e}class Ee extends ue{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=he.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==U.object){const u=this._getOrReturnCtx(t);return Z(u,{code:D.invalid_type,expected:U.object,received:u.parsedType}),ee}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Lt&&this._def.unknownKeys==="strip"))for(const u in i.data)s.includes(u)||a.push(u);const l=[];for(const u of s){const f=o[u],c=i.data[u];l.push({key:{status:"valid",value:u},value:f._parse(new mt(i,c,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof Lt){const u=this._def.unknownKeys;if(u==="passthrough")for(const f of a)l.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(u==="strict")a.length>0&&(Z(i,{code:D.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const f of a){const c=i.data[f];l.push({key:{status:"valid",value:f},value:u._parse(new mt(i,c,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const f of l){const c=await f.key,h=await f.value;u.push({key:c,value:h,alwaysSet:f.alwaysSet})}return u}).then(u=>Me.mergeObjectSync(r,u)):Me.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return q.errToObj,new Ee({...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:q.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Ee({...this._def,unknownKeys:"strip"})}passthrough(){return new Ee({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ee({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ee({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Q.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ee({...this._def,catchall:t})}pick(t){const n={};for(const r of he.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Ee({...this._def,shape:()=>n})}omit(t){const n={};for(const r of he.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Ee({...this._def,shape:()=>n})}deepPartial(){return tn(this)}partial(t){const n={};for(const r of he.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new Ee({...this._def,shape:()=>n})}required(t){const n={};for(const r of he.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Pt;)o=o._def.innerType;n[r]=o}return new Ee({...this._def,shape:()=>n})}keyof(){return Ja(he.objectKeys(this.shape))}}Ee.create=(e,t)=>new Ee({shape:()=>e,unknownKeys:"strip",catchall:Lt.create(),typeName:Q.ZodObject,...ie(t)});Ee.strictCreate=(e,t)=>new Ee({shape:()=>e,unknownKeys:"strict",catchall:Lt.create(),typeName:Q.ZodObject,...ie(t)});Ee.lazycreate=(e,t)=>new Ee({shape:e,unknownKeys:"strip",catchall:Lt.create(),typeName:Q.ZodObject,...ie(t)});class vr extends ue{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(a=>new kt(a.ctx.common.issues));return Z(n,{code:D.invalid_union,unionErrors:s}),ee}if(n.common.async)return Promise.all(r.map(async o=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let o;const s=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},f=l._parseSync({data:n.data,path:n.path,parent:u});if(f.status==="valid")return f;f.status==="dirty"&&!o&&(o={result:f,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=s.map(l=>new kt(l));return Z(n,{code:D.invalid_union,unionErrors:a}),ee}}get options(){return this._def.options}}vr.create=(e,t)=>new vr({options:e,typeName:Q.ZodUnion,...ie(t)});function Ii(e,t){const n=Ot(e),r=Ot(t);if(e===t)return{valid:!0,data:e};if(n===U.object&&r===U.object){const i=he.objectKeys(t),o=he.objectKeys(e).filter(a=>i.indexOf(a)!==-1),s={...e,...t};for(const a of o){const l=Ii(e[a],t[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===U.array&&r===U.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const s=e[o],a=t[o],l=Ii(s,a);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===U.date&&r===U.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class xr extends ue{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,s)=>{if(is(o)||is(s))return ee;const a=Ii(o.value,s.value);return a.valid?((os(o)||os(s))&&n.dirty(),{status:n.value,value:a.data}):(Z(r,{code:D.invalid_intersection_types}),ee)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,s])=>i(o,s)):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}))}}xr.create=(e,t,n)=>new xr({left:e,right:t,typeName:Q.ZodIntersection,...ie(n)});class Ht extends ue{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==U.array)return Z(r,{code:D.invalid_type,expected:U.array,received:r.parsedType}),ee;if(r.data.length<this._def.items.length)return Z(r,{code:D.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ee;!this._def.rest&&r.data.length>this._def.items.length&&(Z(r,{code:D.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((s,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new mt(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(o).then(s=>Me.mergeArray(n,s)):Me.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Ht({...this._def,rest:t})}}Ht.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ht({items:e,typeName:Q.ZodTuple,rest:null,...ie(t)})};class kr extends ue{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!==U.object)return Z(r,{code:D.invalid_type,expected:U.object,received:r.parsedType}),ee;const i=[],o=this._def.keyType,s=this._def.valueType;for(const a in r.data)i.push({key:o._parse(new mt(r,a,r.path,a)),value:s._parse(new mt(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?Me.mergeObjectAsync(n,i):Me.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ue?new kr({keyType:t,valueType:n,typeName:Q.ZodRecord,...ie(r)}):new kr({keyType:xt.create(),valueType:t,typeName:Q.ZodRecord,...ie(n)})}}class fs extends ue{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!==U.map)return Z(r,{code:D.invalid_type,expected:U.map,received:r.parsedType}),ee;const i=this._def.keyType,o=this._def.valueType,s=[...r.data.entries()].map(([a,l],u)=>({key:i._parse(new mt(r,a,r.path,[u,"key"])),value:o._parse(new mt(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of s){const u=await l.key,f=await l.value;if(u.status==="aborted"||f.status==="aborted")return ee;(u.status==="dirty"||f.status==="dirty")&&n.dirty(),a.set(u.value,f.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of s){const u=l.key,f=l.value;if(u.status==="aborted"||f.status==="aborted")return ee;(u.status==="dirty"||f.status==="dirty")&&n.dirty(),a.set(u.value,f.value)}return{status:n.value,value:a}}}}fs.create=(e,t,n)=>new fs({valueType:t,keyType:e,typeName:Q.ZodMap,...ie(n)});class Mn extends ue{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==U.set)return Z(r,{code:D.invalid_type,expected:U.set,received:r.parsedType}),ee;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(Z(r,{code:D.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&&(Z(r,{code:D.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function s(l){const u=new Set;for(const f of l){if(f.status==="aborted")return ee;f.status==="dirty"&&n.dirty(),u.add(f.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>o._parse(new mt(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(t,n){return new Mn({...this._def,minSize:{value:t,message:q.toString(n)}})}max(t,n){return new Mn({...this._def,maxSize:{value:t,message:q.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Mn.create=(e,t)=>new Mn({valueType:e,minSize:null,maxSize:null,typeName:Q.ZodSet,...ie(t)});class ds extends ue{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})}}ds.create=(e,t)=>new ds({getter:e,typeName:Q.ZodLazy,...ie(t)});class Ri extends ue{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Z(n,{received:n.data,code:D.invalid_literal,expected:this._def.value}),ee}return{status:"valid",value:t.data}}get value(){return this._def.value}}Ri.create=(e,t)=>new Ri({value:e,typeName:Q.ZodLiteral,...ie(t)});function Ja(e,t){return new hn({values:e,typeName:Q.ZodEnum,...ie(t)})}class hn extends ue{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Z(n,{expected:he.joinValues(r),received:n.parsedType,code:D.invalid_type}),ee}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 Z(n,{received:n.data,code:D.invalid_enum_value,options:r}),ee}return rt(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 hn.create(t,{...this._def,...n})}exclude(t,n=this._def){return hn.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}hn.create=Ja;class hs extends ue{_parse(t){const n=he.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==U.string&&r.parsedType!==U.number){const i=he.objectValues(n);return Z(r,{expected:he.joinValues(i),received:r.parsedType,code:D.invalid_type}),ee}if(this._cache||(this._cache=new Set(he.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=he.objectValues(n);return Z(r,{received:r.data,code:D.invalid_enum_value,options:i}),ee}return rt(t.data)}get enum(){return this._def.values}}hs.create=(e,t)=>new hs({values:e,typeName:Q.ZodNativeEnum,...ie(t)});class wr extends ue{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==U.promise&&n.common.async===!1)return Z(n,{code:D.invalid_type,expected:U.promise,received:n.parsedType}),ee;const r=n.parsedType===U.promise?n.data:Promise.resolve(n.data);return rt(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}wr.create=(e,t)=>new wr({type:e,typeName:Q.ZodPromise,...ie(t)});class pn extends ue{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Q.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:s=>{Z(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const s=i.transform(r.data,o);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return ee;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?ee:l.status==="dirty"||n.value==="dirty"?Rn(l.value):l});{if(n.value==="aborted")return ee;const a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?ee:a.status==="dirty"||n.value==="dirty"?Rn(a.value):a}}if(i.type==="refinement"){const s=a=>{const l=i.refinement(a,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ee:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ee:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(i.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!fn(s))return ee;const a=i.transform(s.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>fn(s)?Promise.resolve(i.transform(s.value,o)).then(a=>({status:n.value,value:a})):ee);he.assertNever(i)}}pn.create=(e,t,n)=>new pn({schema:e,typeName:Q.ZodEffects,effect:t,...ie(n)});pn.createWithPreprocess=(e,t,n)=>new pn({schema:t,effect:{type:"preprocess",transform:e},typeName:Q.ZodEffects,...ie(n)});class Pt extends ue{_parse(t){return this._getType(t)===U.undefined?rt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Pt.create=(e,t)=>new Pt({innerType:e,typeName:Q.ZodOptional,...ie(t)});class mn extends ue{_parse(t){return this._getType(t)===U.null?rt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}mn.create=(e,t)=>new mn({innerType:e,typeName:Q.ZodNullable,...ie(t)});class Oi extends ue{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===U.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Oi.create=(e,t)=>new Oi({innerType:e,typeName:Q.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ie(t)});class Pi extends ue{_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 yr(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new kt(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new kt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Pi.create=(e,t)=>new Pi({innerType:e,typeName:Q.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ie(t)});class ps extends ue{_parse(t){if(this._getType(t)!==U.nan){const r=this._getOrReturnCtx(t);return Z(r,{code:D.invalid_type,expected:U.nan,received:r.parsedType}),ee}return{status:"valid",value:t.data}}}ps.create=e=>new ps({typeName:Q.ZodNaN,...ie(e)});class wp extends ue{_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 ro extends ue{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ee:o.status==="dirty"?(n.dirty(),Rn(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?ee: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 ro({in:t,out:n,typeName:Q.ZodPipeline})}}class Di extends ue{_parse(t){const n=this._def.innerType._parse(t),r=i=>(fn(i)&&(i.value=Object.freeze(i.value)),i);return yr(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Di.create=(e,t)=>new Di({innerType:e,typeName:Q.ZodReadonly,...ie(t)});var Q;(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"})(Q||(Q={}));const f0=xt.create,d0=dn.create,h0=Ai.create,p0=Ti.create,m0=zi.create;Lt.create;const g0=ht.create,y0=Ee.create,b0=vr.create;xr.create;Ht.create;const v0=kr.create,x0=Ri.create;hn.create;wr.create;Pt.create;mn.create;function _p(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 Sp=e=>{switch(e){case"success":return Ap;case"info":return zp;case"warning":return Tp;case"error":return Ip;default:return null}},Cp=Array(12).fill(0),Ep=({visible:e,className:t})=>L.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},L.createElement("div",{className:"sonner-spinner"},Cp.map((n,r)=>L.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Ap=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.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"})),Tp=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},L.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"})),zp=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.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"})),Ip=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.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"})),Rp=L.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"},L.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),L.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Op=()=>{const[e,t]=L.useState(document.hidden);return L.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Ni=1;class Pp{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,o=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Ni++,s=this.toasts.find(l=>l.id===o),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...t,id:o,title:r}),{...l,...t,id:o,dismissible:a,title:r}):l):this.addToast({title:r,...i,dismissible:a,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,s;const a=i.then(async u=>{if(s=["resolve",u],L.isValidElement(u))o=!1,this.create({id:r,type:"default",message:u});else if(Np(u)&&!u.ok){o=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,p=typeof c=="object"&&!L.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:h,...p})}else if(u instanceof Error){o=!1;const c=typeof n.error=="function"?await n.error(u):n.error,h=typeof n.description=="function"?await n.description(u):n.description,p=typeof c=="object"&&!L.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:h,...p})}else if(n.success!==void 0){o=!1;const c=typeof n.success=="function"?await n.success(u):n.success,h=typeof n.description=="function"?await n.description(u):n.description,p=typeof c=="object"&&!L.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:h,...p})}}).catch(async u=>{if(s=["reject",u],n.error!==void 0){o=!1;const f=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,d=typeof f=="object"&&!L.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:c,...d})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,f)=>a.then(()=>s[0]==="reject"?f(s[1]):u(s[1])).catch(f));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||Ni++;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 Be=new Pp,Dp=(e,t)=>{const n=t?.id||Ni++;return Be.addToast({title:e,...t,id:n}),n},Np=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Lp=Dp,$p=()=>Be.toasts,Mp=()=>Be.getActiveToasts();Object.assign(Lp,{success:Be.success,info:Be.info,warning:Be.warning,error:Be.error,custom:Be.custom,message:Be.message,promise:Be.promise,dismiss:Be.dismiss,loading:Be.loading},{getHistory:$p,getToasts:Mp});_p("[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 rr(e){return e.label!==void 0}const Fp=3,jp="24px",Zp="16px",ms=4e3,Bp=356,Vp=14,Up=45,Hp=200;function ct(...e){return e.filter(Boolean).join(" ")}function Wp(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const qp=e=>{var t,n,r,i,o,s,a,l,u;const{invert:f,toast:c,unstyled:h,interacting:d,setHeights:p,visibleToasts:b,heights:v,index:y,toasts:C,expanded:w,removeToast:T,defaultRichColors:I,closeButton:x,style:j,cancelButtonStyle:z,actionButtonStyle:H,className:k="",descriptionClassName:$="",duration:N,position:W,gap:M,expandByDefault:R,classNames:_,icons:O,closeButtonAriaLabel:S="Close toast"}=e,[G,g]=L.useState(null),[me,xe]=L.useState(null),[m,X]=L.useState(!1),[re,de]=L.useState(!1),[pe,le]=L.useState(!1),[Te,Re]=L.useState(!1),[He,We]=L.useState(!1),[Wr,Sn]=L.useState(0),[Yn,Cn]=L.useState(0),Ct=L.useRef(c.duration||N||ms),Gn=L.useRef(null),Qe=L.useRef(null),Xn=y===0,qr=y+1<=b,Le=c.type,Et=c.dismissible!==!1,Yr=c.className||"",Gr=c.descriptionClassName||"",E=L.useMemo(()=>v.findIndex(te=>te.toastId===c.id)||0,[v,c.id]),F=L.useMemo(()=>{var te;return(te=c.closeButton)!=null?te:x},[c.closeButton,x]),K=L.useMemo(()=>c.duration||N||ms,[c.duration,N]),oe=L.useRef(0),ce=L.useRef(0),Fe=L.useRef(0),je=L.useRef(null),[it,Zt]=W.split("-"),At=L.useMemo(()=>v.reduce((te,ze,Pe)=>Pe>=E?te:te+ze.height,0),[v,E]),Oe=Op(),Tt=c.invert||f,qe=Le==="loading";ce.current=L.useMemo(()=>E*M+At,[E,At]),L.useEffect(()=>{Ct.current=K},[K]),L.useEffect(()=>{X(!0)},[]),L.useEffect(()=>{const te=Qe.current;if(te){const ze=te.getBoundingClientRect().height;return Cn(ze),p(Pe=>[{toastId:c.id,height:ze,position:c.position},...Pe]),()=>p(Pe=>Pe.filter(Ye=>Ye.toastId!==c.id))}},[p,c.id]),L.useLayoutEffect(()=>{if(!m)return;const te=Qe.current,ze=te.style.height;te.style.height="auto";const Pe=te.getBoundingClientRect().height;te.style.height=ze,Cn(Pe),p(Ye=>Ye.find(Ie=>Ie.toastId===c.id)?Ye.map(Ie=>Ie.toastId===c.id?{...Ie,height:Pe}:Ie):[{toastId:c.id,height:Pe,position:c.position},...Ye])},[m,c.title,c.description,p,c.id,c.jsx,c.action,c.cancel]);const zt=L.useCallback(()=>{de(!0),Sn(ce.current),p(te=>te.filter(ze=>ze.toastId!==c.id)),setTimeout(()=>{T(c)},Hp)},[c,T,p,ce]);L.useEffect(()=>{if(c.promise&&Le==="loading"||c.duration===1/0||c.type==="loading")return;let te;return w||d||Oe?(()=>{if(Fe.current<oe.current){const Ye=new Date().getTime()-oe.current;Ct.current=Ct.current-Ye}Fe.current=new Date().getTime()})():(()=>{Ct.current!==1/0&&(oe.current=new Date().getTime(),te=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),zt()},Ct.current))})(),()=>clearTimeout(te)},[w,d,c,Le,Oe,zt]),L.useEffect(()=>{c.delete&&(zt(),c.onDismiss==null||c.onDismiss.call(c,c))},[zt,c.delete]);function Tu(){var te;if(O?.loading){var ze;return L.createElement("div",{className:ct(_?.loader,c==null||(ze=c.classNames)==null?void 0:ze.loader,"sonner-loader"),"data-visible":Le==="loading"},O.loading)}return L.createElement(Ep,{className:ct(_?.loader,c==null||(te=c.classNames)==null?void 0:te.loader),visible:Le==="loading"})}const zu=c.icon||O?.[Le]||Sp(Le);var zo,Io;return L.createElement("li",{tabIndex:0,ref:Qe,className:ct(k,Yr,_?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,_?.default,_?.[Le],c==null||(n=c.classNames)==null?void 0:n[Le]),"data-sonner-toast":"","data-rich-colors":(zo=c.richColors)!=null?zo:I,"data-styled":!(c.jsx||c.unstyled||h),"data-mounted":m,"data-promise":!!c.promise,"data-swiped":He,"data-removed":re,"data-visible":qr,"data-y-position":it,"data-x-position":Zt,"data-index":y,"data-front":Xn,"data-swiping":pe,"data-dismissible":Et,"data-type":Le,"data-invert":Tt,"data-swipe-out":Te,"data-swipe-direction":me,"data-expanded":!!(w||R&&m),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":C.length-y,"--offset":`${re?Wr:ce.current}px`,"--initial-height":R?"auto":`${Yn}px`,...j,...c.style},onDragEnd:()=>{le(!1),g(null),je.current=null},onPointerDown:te=>{te.button!==2&&(qe||!Et||(Gn.current=new Date,Sn(ce.current),te.target.setPointerCapture(te.pointerId),te.target.tagName!=="BUTTON"&&(le(!0),je.current={x:te.clientX,y:te.clientY})))},onPointerUp:()=>{var te,ze,Pe;if(Te||!Et)return;je.current=null;const Ye=Number(((te=Qe.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Jn=Number(((ze=Qe.current)==null?void 0:ze.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ie=new Date().getTime()-((Pe=Gn.current)==null?void 0:Pe.getTime()),et=G==="x"?Ye:Jn,Kn=Math.abs(et)/Ie;if(Math.abs(et)>=Up||Kn>.11){Sn(ce.current),c.onDismiss==null||c.onDismiss.call(c,c),xe(G==="x"?Ye>0?"right":"left":Jn>0?"down":"up"),zt(),Re(!0);return}else{var ot,st;(ot=Qe.current)==null||ot.style.setProperty("--swipe-amount-x","0px"),(st=Qe.current)==null||st.style.setProperty("--swipe-amount-y","0px")}We(!1),le(!1),g(null)},onPointerMove:te=>{var ze,Pe,Ye;if(!je.current||!Et||((ze=window.getSelection())==null?void 0:ze.toString().length)>0)return;const Ie=te.clientY-je.current.y,et=te.clientX-je.current.x;var Kn;const ot=(Kn=e.swipeDirections)!=null?Kn:Wp(W);!G&&(Math.abs(et)>1||Math.abs(Ie)>1)&&g(Math.abs(et)>Math.abs(Ie)?"x":"y");let st={x:0,y:0};const Ro=Bt=>1/(1.5+Math.abs(Bt)/20);if(G==="y"){if(ot.includes("top")||ot.includes("bottom"))if(ot.includes("top")&&Ie<0||ot.includes("bottom")&&Ie>0)st.y=Ie;else{const Bt=Ie*Ro(Ie);st.y=Math.abs(Bt)<Math.abs(Ie)?Bt:Ie}}else if(G==="x"&&(ot.includes("left")||ot.includes("right")))if(ot.includes("left")&&et<0||ot.includes("right")&&et>0)st.x=et;else{const Bt=et*Ro(et);st.x=Math.abs(Bt)<Math.abs(et)?Bt:et}(Math.abs(st.x)>0||Math.abs(st.y)>0)&&We(!0),(Pe=Qe.current)==null||Pe.style.setProperty("--swipe-amount-x",`${st.x}px`),(Ye=Qe.current)==null||Ye.style.setProperty("--swipe-amount-y",`${st.y}px`)}},F&&!c.jsx&&Le!=="loading"?L.createElement("button",{"aria-label":S,"data-disabled":qe,"data-close-button":!0,onClick:qe||!Et?()=>{}:()=>{zt(),c.onDismiss==null||c.onDismiss.call(c,c)},className:ct(_?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Io=O?.close)!=null?Io:Rp):null,(Le||c.icon||c.promise)&&c.icon!==null&&(O?.[Le]!==null||c.icon)?L.createElement("div",{"data-icon":"",className:ct(_?.icon,c==null||(i=c.classNames)==null?void 0:i.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Tu():null,c.type!=="loading"?zu:null):null,L.createElement("div",{"data-content":"",className:ct(_?.content,c==null||(o=c.classNames)==null?void 0:o.content)},L.createElement("div",{"data-title":"",className:ct(_?.title,c==null||(s=c.classNames)==null?void 0:s.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?L.createElement("div",{"data-description":"",className:ct($,Gr,_?.description,c==null||(a=c.classNames)==null?void 0:a.description)},typeof c.description=="function"?c.description():c.description):null),L.isValidElement(c.cancel)?c.cancel:c.cancel&&rr(c.cancel)?L.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||z,onClick:te=>{rr(c.cancel)&&Et&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,te),zt())},className:ct(_?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,L.isValidElement(c.action)?c.action:c.action&&rr(c.action)?L.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||H,onClick:te=>{rr(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,te),!te.defaultPrevented&&zt())},className:ct(_?.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function gs(){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 Yp(e,t){const n={};return[e,t].forEach((r,i)=>{const o=i===1,s=o?"--mobile-offset":"--offset",a=o?Zp:jp;function l(u){["top","right","bottom","left"].forEach(f=>{n[`${s}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=a:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}const k0=L.forwardRef(function(t,n){const{id:r,invert:i,position:o="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:l,className:u,offset:f,mobileOffset:c,theme:h="light",richColors:d,duration:p,style:b,visibleToasts:v=Fp,toastOptions:y,dir:C=gs(),gap:w=Vp,icons:T,containerAriaLabel:I="Notifications"}=t,[x,j]=L.useState([]),z=L.useMemo(()=>r?x.filter(m=>m.toasterId===r):x.filter(m=>!m.toasterId),[x,r]),H=L.useMemo(()=>Array.from(new Set([o].concat(z.filter(m=>m.position).map(m=>m.position)))),[z,o]),[k,$]=L.useState([]),[N,W]=L.useState(!1),[M,R]=L.useState(!1),[_,O]=L.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),S=L.useRef(null),G=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=L.useRef(null),me=L.useRef(!1),xe=L.useCallback(m=>{j(X=>{var re;return(re=X.find(de=>de.id===m.id))!=null&&re.delete||Be.dismiss(m.id),X.filter(({id:de})=>de!==m.id)})},[]);return L.useEffect(()=>Be.subscribe(m=>{if(m.dismiss){requestAnimationFrame(()=>{j(X=>X.map(re=>re.id===m.id?{...re,delete:!0}:re))});return}setTimeout(()=>{Iu.flushSync(()=>{j(X=>{const re=X.findIndex(de=>de.id===m.id);return re!==-1?[...X.slice(0,re),{...X[re],...m},...X.slice(re+1)]:[m,...X]})})})}),[x]),L.useEffect(()=>{if(h!=="system"){O(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?O("dark"):O("light")),typeof window>"u")return;const m=window.matchMedia("(prefers-color-scheme: dark)");try{m.addEventListener("change",({matches:X})=>{O(X?"dark":"light")})}catch{m.addListener(({matches:re})=>{try{O(re?"dark":"light")}catch(de){console.error(de)}})}},[h]),L.useEffect(()=>{x.length<=1&&W(!1)},[x]),L.useEffect(()=>{const m=X=>{var re;if(s.every(le=>X[le]||X.code===le)){var pe;W(!0),(pe=S.current)==null||pe.focus()}X.code==="Escape"&&(document.activeElement===S.current||(re=S.current)!=null&&re.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[s]),L.useEffect(()=>{if(S.current)return()=>{g.current&&(g.current.focus({preventScroll:!0}),g.current=null,me.current=!1)}},[S.current]),L.createElement("section",{ref:n,"aria-label":`${I} ${G}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},H.map((m,X)=>{var re;const[de,pe]=m.split("-");return z.length?L.createElement("ol",{key:m,dir:C==="auto"?gs():C,tabIndex:-1,ref:S,className:u,"data-sonner-toaster":!0,"data-sonner-theme":_,"data-y-position":de,"data-x-position":pe,style:{"--front-toast-height":`${((re=k[0])==null?void 0:re.height)||0}px`,"--width":`${Bp}px`,"--gap":`${w}px`,...b,...Yp(f,c)},onBlur:le=>{me.current&&!le.currentTarget.contains(le.relatedTarget)&&(me.current=!1,g.current&&(g.current.focus({preventScroll:!0}),g.current=null))},onFocus:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||me.current||(me.current=!0,g.current=le.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{M||W(!1)},onDragEnd:()=>W(!1),onPointerDown:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||R(!0)},onPointerUp:()=>R(!1)},z.filter(le=>!le.position&&X===0||le.position===m).map((le,Te)=>{var Re,He;return L.createElement(qp,{key:le.id,icons:T,index:Te,toast:le,defaultRichColors:d,duration:(Re=y?.duration)!=null?Re:p,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:i,visibleToasts:v,closeButton:(He=y?.closeButton)!=null?He:l,interacting:M,position:m,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:xe,toasts:z.filter(We=>We.position==le.position),heights:k.filter(We=>We.position==le.position),setHeights:$,expandByDefault:a,gap:w,expanded:N,swipeDirections:t.swipeDirections})})):null}))});function Ka(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=Ka(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Gp(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ka(e))&&(r&&(r+=" "),r+=t);return r}const ys=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bs=Gp,w0=(e,t)=>n=>{var r;if(t?.variants==null)return bs(e,n?.class,n?.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(u=>{const f=n?.[u],c=o?.[u];if(f===null)return null;const h=ys(f)||ys(c);return i[u][h]}),a=n&&Object.entries(n).reduce((u,f)=>{let[c,h]=f;return h===void 0||(u[c]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:h,...d}=f;return Object.entries(d).every(p=>{let[b,v]=p;return Array.isArray(v)?v.includes({...o,...a}[b]):{...o,...a}[b]===v})?[...u,c,h]:u},[]);return bs(e,s,l,n?.class,n?.className)},Xp=(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},Jp=(e,t)=>({classGroupId:e,validator:t}),Qa=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),_r="-",vs=[],Kp="arbitrary..",Qp=e=>{const t=tm(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return em(s);const a=s.split(_r),l=a[0]===""&&a.length>1?1:0;return el(a,l,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const l=r[s],u=n[s];return l?u?Xp(u,l):l:u||vs}return n[s]||vs}}},el=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const u=el(e,t+1,o);if(u)return u}const s=n.validators;if(s===null)return;const a=t===0?e.join(_r):e.slice(t).join(_r),l=s.length;for(let u=0;u<l;u++){const f=s[u];if(f.validator(a))return f.classGroupId}},em=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?Kp+r:void 0})(),tm=e=>{const{theme:t,classGroups:n}=e;return nm(n,t)},nm=(e,t)=>{const n=Qa();for(const r in e){const i=e[r];io(i,n,r,t)}return n},io=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const s=e[o];rm(s,t,n,r)}},rm=(e,t,n,r)=>{if(typeof e=="string"){im(e,t,n);return}if(typeof e=="function"){om(e,t,n,r);return}sm(e,t,n,r)},im=(e,t,n)=>{const r=e===""?t:tl(t,e);r.classGroupId=n},om=(e,t,n,r)=>{if(am(e)){io(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Jp(n,e))},sm=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let s=0;s<o;s++){const[a,l]=i[s];io(l,tl(t,a),n,r)}},tl=(e,t)=>{let n=e;const r=t.split(_r),i=r.length;for(let o=0;o<i;o++){const s=r[o];let a=n.nextPart.get(s);a||(a=Qa(),n.nextPart.set(s,a)),n=a}return n},am=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,lm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,s)=>{n[o]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let s=n[o];if(s!==void 0)return s;if((s=r[o])!==void 0)return i(o,s),s},set(o,s){o in n?n[o]=s:i(o,s)}}},Li="!",xs=":",um=[],ks=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),cm=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let s=0,a=0,l=0,u;const f=i.length;for(let b=0;b<f;b++){const v=i[b];if(s===0&&a===0){if(v===xs){o.push(i.slice(l,b)),l=b+1;continue}if(v==="/"){u=b;continue}}v==="["?s++:v==="]"?s--:v==="("?a++:v===")"&&a--}const c=o.length===0?i:i.slice(l);let h=c,d=!1;c.endsWith(Li)?(h=c.slice(0,-1),d=!0):c.startsWith(Li)&&(h=c.slice(1),d=!0);const p=u&&u>l?u-l:void 0;return ks(o,d,h,p)};if(t){const i=t+xs,o=r;r=s=>s.startsWith(i)?o(s.slice(i.length)):ks(um,!1,s,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},fm=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const s=n[o],a=s[0]==="[",l=t.has(s);a||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},dm=e=>({cache:lm(e.cacheSize),parseClassName:cm(e),sortModifiers:fm(e),...Qp(e)}),hm=/\s+/,pm=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],a=e.trim().split(hm);let l="";for(let u=a.length-1;u>=0;u-=1){const f=a[u],{isExternal:c,modifiers:h,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:b}=n(f);if(c){l=f+(l.length>0?" "+l:l);continue}let v=!!b,y=r(v?p.substring(0,b):p);if(!y){if(!v){l=f+(l.length>0?" "+l:l);continue}if(y=r(p),!y){l=f+(l.length>0?" "+l:l);continue}v=!1}const C=h.length===0?"":h.length===1?h[0]:o(h).join(":"),w=d?C+Li:C,T=w+y;if(s.indexOf(T)>-1)continue;s.push(T);const I=i(y,v);for(let x=0;x<I.length;++x){const j=I[x];s.push(w+j)}l=f+(l.length>0?" "+l:l)}return l},mm=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=nl(n))&&(i&&(i+=" "),i+=r);return i},nl=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=nl(e[r]))&&(n&&(n+=" "),n+=t);return n},gm=(e,...t)=>{let n,r,i,o;const s=l=>{const u=t.reduce((f,c)=>c(f),e());return n=dm(u),r=n.cache.get,i=n.cache.set,o=a,a(l)},a=l=>{const u=r(l);if(u)return u;const f=pm(l,n);return i(l,f),f};return o=s,(...l)=>o(mm(...l))},ym=[],Ae=e=>{const t=n=>n[e]||ym;return t.isThemeGetter=!0,t},rl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,il=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bm=/^\d+\/\d+$/,vm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xm=/\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$/,km=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,wm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_m=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jt=e=>bm.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),It=e=>!!e&&Number.isInteger(Number(e)),ti=e=>e.endsWith("%")&&se(e.slice(0,-1)),vt=e=>vm.test(e),Sm=()=>!0,Cm=e=>xm.test(e)&&!km.test(e),ol=()=>!1,Em=e=>wm.test(e),Am=e=>_m.test(e),Tm=e=>!B(e)&&!V(e),zm=e=>bn(e,ll,ol),B=e=>rl.test(e),Vt=e=>bn(e,ul,Cm),ni=e=>bn(e,Dm,se),ws=e=>bn(e,sl,ol),Im=e=>bn(e,al,Am),ir=e=>bn(e,cl,Em),V=e=>il.test(e),En=e=>vn(e,ul),Rm=e=>vn(e,Nm),_s=e=>vn(e,sl),Om=e=>vn(e,ll),Pm=e=>vn(e,al),or=e=>vn(e,cl,!0),bn=(e,t,n)=>{const r=rl.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},vn=(e,t,n=!1)=>{const r=il.exec(e);return r?r[1]?t(r[1]):n:!1},sl=e=>e==="position"||e==="percentage",al=e=>e==="image"||e==="url",ll=e=>e==="length"||e==="size"||e==="bg-size",ul=e=>e==="length",Dm=e=>e==="number",Nm=e=>e==="family-name",cl=e=>e==="shadow",Lm=()=>{const e=Ae("color"),t=Ae("font"),n=Ae("text"),r=Ae("font-weight"),i=Ae("tracking"),o=Ae("leading"),s=Ae("breakpoint"),a=Ae("container"),l=Ae("spacing"),u=Ae("radius"),f=Ae("shadow"),c=Ae("inset-shadow"),h=Ae("text-shadow"),d=Ae("drop-shadow"),p=Ae("blur"),b=Ae("perspective"),v=Ae("aspect"),y=Ae("ease"),C=Ae("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...T(),V,B],x=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],z=()=>[V,B,l],H=()=>[Jt,"full","auto",...z()],k=()=>[It,"none","subgrid",V,B],$=()=>["auto",{span:["full",It,V,B]},It,V,B],N=()=>[It,"auto",V,B],W=()=>["auto","min","max","fr",V,B],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...z()],O=()=>[Jt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],S=()=>[e,V,B],G=()=>[...T(),_s,ws,{position:[V,B]}],g=()=>["no-repeat",{repeat:["","x","y","space","round"]}],me=()=>["auto","cover","contain",Om,zm,{size:[V,B]}],xe=()=>[ti,En,Vt],m=()=>["","none","full",u,V,B],X=()=>["",se,En,Vt],re=()=>["solid","dashed","dotted","double"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[se,ti,_s,ws],le=()=>["","none",p,V,B],Te=()=>["none",se,V,B],Re=()=>["none",se,V,B],He=()=>[se,V,B],We=()=>[Jt,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[vt],breakpoint:[vt],color:[Sm],container:[vt],"drop-shadow":[vt],ease:["in","out","in-out"],font:[Tm],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[vt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[vt],shadow:[vt],spacing:["px",se],text:[vt],"text-shadow":[vt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jt,B,V,v]}],container:["container"],columns:[{columns:[se,B,V,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:I()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],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:[It,"auto",V,B]}],basis:[{basis:[Jt,"full","auto",a,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,Jt,"auto","initial","none",B]}],grow:[{grow:["",se,V,B]}],shrink:[{shrink:["",se,V,B]}],order:[{order:[It,"first","last","none",V,B]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[a,"screen",...O()]}],"min-w":[{"min-w":[a,"screen","none",...O()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",n,En,Vt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,V,ni]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ti,B]}],"font-family":[{font:[Rm,B,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,V,B]}],"line-clamp":[{"line-clamp":[se,"none",V,ni]}],leading:[{leading:[o,...z()]}],"list-image":[{"list-image":["none",V,B]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",V,B]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",V,Vt]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[se,"auto",V,B]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V,B]}],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",V,B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:G()}],"bg-repeat":[{bg:g()}],"bg-size":[{bg:me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},It,V,B],radial:["",V,B],conic:[It,V,B]},Pm,Im]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:xe()}],"gradient-via-pos":[{via:xe()}],"gradient-to-pos":[{to:xe()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:m()}],"rounded-s":[{"rounded-s":m()}],"rounded-e":[{"rounded-e":m()}],"rounded-t":[{"rounded-t":m()}],"rounded-r":[{"rounded-r":m()}],"rounded-b":[{"rounded-b":m()}],"rounded-l":[{"rounded-l":m()}],"rounded-ss":[{"rounded-ss":m()}],"rounded-se":[{"rounded-se":m()}],"rounded-ee":[{"rounded-ee":m()}],"rounded-es":[{"rounded-es":m()}],"rounded-tl":[{"rounded-tl":m()}],"rounded-tr":[{"rounded-tr":m()}],"rounded-br":[{"rounded-br":m()}],"rounded-bl":[{"rounded-bl":m()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[se,V,B]}],"outline-w":[{outline:["",se,En,Vt]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",f,or,ir]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",c,or,ir]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[se,Vt]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",h,or,ir]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[se,V,B]}],"mix-blend":[{"mix-blend":[...de(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":de()}],"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":[se]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[V,B]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[se]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:G()}],"mask-repeat":[{mask:g()}],"mask-size":[{mask:me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",V,B]}],filter:[{filter:["","none",V,B]}],blur:[{blur:le()}],brightness:[{brightness:[se,V,B]}],contrast:[{contrast:[se,V,B]}],"drop-shadow":[{"drop-shadow":["","none",d,or,ir]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",se,V,B]}],"hue-rotate":[{"hue-rotate":[se,V,B]}],invert:[{invert:["",se,V,B]}],saturate:[{saturate:[se,V,B]}],sepia:[{sepia:["",se,V,B]}],"backdrop-filter":[{"backdrop-filter":["","none",V,B]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[se,V,B]}],"backdrop-contrast":[{"backdrop-contrast":[se,V,B]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,V,B]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,V,B]}],"backdrop-invert":[{"backdrop-invert":["",se,V,B]}],"backdrop-opacity":[{"backdrop-opacity":[se,V,B]}],"backdrop-saturate":[{"backdrop-saturate":[se,V,B]}],"backdrop-sepia":[{"backdrop-sepia":["",se,V,B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",V,B]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",V,B]}],ease:[{ease:["linear","initial",y,V,B]}],delay:[{delay:[se,V,B]}],animate:[{animate:["none",C,V,B]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,V,B]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:Te()}],"rotate-x":[{"rotate-x":Te()}],"rotate-y":[{"rotate-y":Te()}],"rotate-z":[{"rotate-z":Te()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:He()}],"skew-x":[{"skew-x":He()}],"skew-y":[{"skew-y":He()}],transform:[{transform:[V,B,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:We()}],"translate-x":[{"translate-x":We()}],"translate-y":[{"translate-y":We()}],"translate-z":[{"translate-z":We()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",V,B]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",V,B]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[se,En,Vt,ni]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},_0=gm(Lm);var Sr=function(){return Sr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Sr.apply(this,arguments)};function $m(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 S0(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function ri(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Mm(e,t){var n=Se.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 Fm=typeof window<"u"?Se.useLayoutEffect:Se.useEffect,Ss=new WeakMap;function C0(e,t){var n=Mm(null,function(r){return e.forEach(function(i){return ri(i,r)})});return Fm(function(){var r=Ss.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(a){o.has(a)||ri(a,null)}),o.forEach(function(a){i.has(a)||ri(a,s)})}Ss.set(n,e)},[e]),n}function jm(e){return e}function Zm(e,t){t===void 0&&(t=jm);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var f=s;s=[],f.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),n}}}};return i}function E0(e){e===void 0&&(e={});var t=Zm(null);return t.options=Sr({async:!0,ssr:!1},e),t}var fl=function(e){var t=e.sideCar,n=$m(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 Se.createElement(r,Sr({},n))};fl.isSideCarExport=!0;function A0(e,t){return e.useMedium(t),fl}var T0=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__},Bm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kt=new WeakMap,sr=new WeakMap,ar={},ii=0,dl=function(e){return e&&(e.host||dl(e.parentNode))},Vm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=dl(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})},Um=function(e,t,n,r){var i=Vm(t,Array.isArray(e)?e:[e]);ar[n]||(ar[n]=new WeakMap);var o=ar[n],s=[],a=new Set,l=new Set(i),u=function(c){!c||a.has(c)||(a.add(c),u(c.parentNode))};i.forEach(u);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(h){if(a.has(h))f(h);else try{var d=h.getAttribute(r),p=d!==null&&d!=="false",b=(Kt.get(h)||0)+1,v=(o.get(h)||0)+1;Kt.set(h,b),o.set(h,v),s.push(h),b===1&&p&&sr.set(h,!0),v===1&&h.setAttribute(n,"true"),p||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return f(t),a.clear(),ii++,function(){s.forEach(function(c){var h=Kt.get(c)-1,d=o.get(c)-1;Kt.set(c,h),o.set(c,d),h||(sr.has(c)||c.removeAttribute(r),sr.delete(c)),d||c.removeAttribute(n)}),ii--,ii||(Kt=new WeakMap,Kt=new WeakMap,sr=new WeakMap,ar={})}},z0=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=Bm(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),Um(r,i,n,"aria-hidden")):function(){return null}};const Hm=["top","right","bottom","left"],$t=Math.min,Xe=Math.max,Cr=Math.round,lr=Math.floor,pt=e=>({x:e,y:e}),Wm={left:"right",right:"left",bottom:"top",top:"bottom"},qm={start:"end",end:"start"};function $i(e,t,n){return Xe(e,$t(t,n))}function wt(e,t){return typeof e=="function"?e(t):e}function _t(e){return e.split("-")[0]}function xn(e){return e.split("-")[1]}function oo(e){return e==="x"?"y":"x"}function so(e){return e==="y"?"height":"width"}const Ym=new Set(["top","bottom"]);function dt(e){return Ym.has(_t(e))?"y":"x"}function ao(e){return oo(dt(e))}function Gm(e,t,n){n===void 0&&(n=!1);const r=xn(e),i=ao(e),o=so(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Er(s)),[s,Er(s)]}function Xm(e){const t=Er(e);return[Mi(e),t,Mi(t)]}function Mi(e){return e.replace(/start|end/g,t=>qm[t])}const Cs=["left","right"],Es=["right","left"],Jm=["top","bottom"],Km=["bottom","top"];function Qm(e,t,n){switch(e){case"top":case"bottom":return n?t?Es:Cs:t?Cs:Es;case"left":case"right":return t?Jm:Km;default:return[]}}function eg(e,t,n,r){const i=xn(e);let o=Qm(_t(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Mi)))),o}function Er(e){return e.replace(/left|right|bottom|top/g,t=>Wm[t])}function tg(e){return{top:0,right:0,bottom:0,left:0,...e}}function hl(e){return typeof e!="number"?tg(e):{top:e,right:e,bottom:e,left:e}}function Ar(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 As(e,t,n){let{reference:r,floating:i}=e;const o=dt(t),s=ao(t),a=so(s),l=_t(t),u=o==="y",f=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let d;switch(l){case"top":d={x:f,y:r.y-i.height};break;case"bottom":d={x:f,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:c};break;case"left":d={x:r.x-i.width,y:c};break;default:d={x:r.x,y:r.y}}switch(xn(t)){case"start":d[s]-=h*(n&&u?-1:1);break;case"end":d[s]+=h*(n&&u?-1:1);break}return d}const ng=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:c}=As(u,r,l),h=r,d={},p=0;for(let b=0;b<a.length;b++){const{name:v,fn:y}=a[b],{x:C,y:w,data:T,reset:I}=await y({x:f,y:c,initialPlacement:r,placement:h,strategy:i,middlewareData:d,rects:u,platform:s,elements:{reference:e,floating:t}});f=C??f,c=w??c,d={...d,[v]:{...d[v],...T}},I&&p<=50&&(p++,typeof I=="object"&&(I.placement&&(h=I.placement),I.rects&&(u=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:f,y:c}=As(u,h,l)),b=-1)}return{x:f,y:c,placement:h,strategy:i,middlewareData:d}};async function Fn(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:h=!1,padding:d=0}=wt(t,e),p=hl(d),v=a[h?c==="floating"?"reference":"floating":c],y=Ar(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),C=c==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),T=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},I=Ar(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:w,strategy:l}):C);return{top:(y.top-I.top+p.top)/T.y,bottom:(I.bottom-y.bottom+p.bottom)/T.y,left:(y.left-I.left+p.left)/T.x,right:(I.right-y.right+p.right)/T.x}}const rg=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:f=0}=wt(e,t)||{};if(u==null)return{};const c=hl(f),h={x:n,y:r},d=ao(i),p=so(d),b=await s.getDimensions(u),v=d==="y",y=v?"top":"left",C=v?"bottom":"right",w=v?"clientHeight":"clientWidth",T=o.reference[p]+o.reference[d]-h[d]-o.floating[p],I=h[d]-o.reference[d],x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let j=x?x[w]:0;(!j||!await(s.isElement==null?void 0:s.isElement(x)))&&(j=a.floating[w]||o.floating[p]);const z=T/2-I/2,H=j/2-b[p]/2-1,k=$t(c[y],H),$=$t(c[C],H),N=k,W=j-b[p]-$,M=j/2-b[p]/2+z,R=$i(N,M,W),_=!l.arrow&&xn(i)!=null&&M!==R&&o.reference[p]/2-(M<N?k:$)-b[p]/2<0,O=_?M<N?M-N:M-W:0;return{[d]:h[d]+O,data:{[d]:R,centerOffset:M-R-O,..._&&{alignmentOffset:O}},reset:_}}}),ig=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:b=!0,...v}=wt(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=_t(i),C=dt(a),w=_t(a)===a,T=await(l.isRTL==null?void 0:l.isRTL(u.floating)),I=h||(w||!b?[Er(a)]:Xm(a)),x=p!=="none";!h&&x&&I.push(...eg(a,b,p,T));const j=[a,...I],z=await Fn(t,v),H=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&H.push(z[y]),c){const M=Gm(i,s,T);H.push(z[M[0]],z[M[1]])}if(k=[...k,{placement:i,overflows:H}],!H.every(M=>M<=0)){var $,N;const M=((($=o.flip)==null?void 0:$.index)||0)+1,R=j[M];if(R&&(!(c==="alignment"?C!==dt(R):!1)||k.every(S=>dt(S.placement)===C?S.overflows[0]>0:!0)))return{data:{index:M,overflows:k},reset:{placement:R}};let _=(N=k.filter(O=>O.overflows[0]<=0).sort((O,S)=>O.overflows[1]-S.overflows[1])[0])==null?void 0:N.placement;if(!_)switch(d){case"bestFit":{var W;const O=(W=k.filter(S=>{if(x){const G=dt(S.placement);return G===C||G==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(G=>G>0).reduce((G,g)=>G+g,0)]).sort((S,G)=>S[1]-G[1])[0])==null?void 0:W[0];O&&(_=O);break}case"initialPlacement":_=a;break}if(i!==_)return{reset:{placement:_}}}return{}}}};function Ts(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zs(e){return Hm.some(t=>e[t]>=0)}const og=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=wt(e,t);switch(r){case"referenceHidden":{const o=await Fn(t,{...i,elementContext:"reference"}),s=Ts(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:zs(s)}}}case"escaped":{const o=await Fn(t,{...i,altBoundary:!0}),s=Ts(o,n.floating);return{data:{escapedOffsets:s,escaped:zs(s)}}}default:return{}}}}},pl=new Set(["left","top"]);async function sg(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=_t(n),a=xn(n),l=dt(n)==="y",u=pl.has(s)?-1:1,f=o&&l?-1:1,c=wt(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof p=="number"&&(d=a==="end"?p*-1:p),l?{x:d*f,y:h*u}:{x:h*u,y:d*f}}const ag=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await sg(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},lg=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:C}=v;return{x:y,y:C}}},...l}=wt(e,t),u={x:n,y:r},f=await Fn(t,l),c=dt(_t(i)),h=oo(c);let d=u[h],p=u[c];if(o){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",C=d+f[v],w=d-f[y];d=$i(C,d,w)}if(s){const v=c==="y"?"top":"left",y=c==="y"?"bottom":"right",C=p+f[v],w=p-f[y];p=$i(C,p,w)}const b=a.fn({...t,[h]:d,[c]:p});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[h]:o,[c]:s}}}}}},ug=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=wt(e,t),f={x:n,y:r},c=dt(i),h=oo(c);let d=f[h],p=f[c];const b=wt(a,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const w=h==="y"?"height":"width",T=o.reference[h]-o.floating[w]+v.mainAxis,I=o.reference[h]+o.reference[w]-v.mainAxis;d<T?d=T:d>I&&(d=I)}if(u){var y,C;const w=h==="y"?"width":"height",T=pl.has(_t(i)),I=o.reference[c]-o.floating[w]+(T&&((y=s.offset)==null?void 0:y[c])||0)+(T?0:v.crossAxis),x=o.reference[c]+o.reference[w]+(T?0:((C=s.offset)==null?void 0:C[c])||0)-(T?v.crossAxis:0);p<I?p=I:p>x&&(p=x)}return{[h]:d,[c]:p}}}},cg=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=wt(e,t),f=await Fn(t,u),c=_t(i),h=xn(i),d=dt(i)==="y",{width:p,height:b}=o.floating;let v,y;c==="top"||c==="bottom"?(v=c,y=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=c,v=h==="end"?"top":"bottom");const C=b-f.top-f.bottom,w=p-f.left-f.right,T=$t(b-f[v],C),I=$t(p-f[y],w),x=!t.middlewareData.shift;let j=T,z=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(z=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=C),x&&!h){const k=Xe(f.left,0),$=Xe(f.right,0),N=Xe(f.top,0),W=Xe(f.bottom,0);d?z=p-2*(k!==0||$!==0?k+$:Xe(f.left,f.right)):j=b-2*(N!==0||W!==0?N+W:Xe(f.top,f.bottom))}await l({...t,availableWidth:z,availableHeight:j});const H=await s.getDimensions(a.floating);return p!==H.width||b!==H.height?{reset:{rects:!0}}:{}}}};function $r(){return typeof window<"u"}function kn(e){return ml(e)?(e.nodeName||"").toLowerCase():"#document"}function Je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yt(e){var t;return(t=(ml(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ml(e){return $r()?e instanceof Node||e instanceof Je(e).Node:!1}function lt(e){return $r()?e instanceof Element||e instanceof Je(e).Element:!1}function gt(e){return $r()?e instanceof HTMLElement||e instanceof Je(e).HTMLElement:!1}function Is(e){return!$r()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot}const fg=new Set(["inline","contents"]);function Un(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!fg.has(i)}const dg=new Set(["table","td","th"]);function hg(e){return dg.has(kn(e))}const pg=[":popover-open",":modal"];function Mr(e){return pg.some(t=>{try{return e.matches(t)}catch{return!1}})}const mg=["transform","translate","scale","rotate","perspective"],gg=["transform","translate","scale","rotate","perspective","filter"],yg=["paint","layout","strict","content"];function lo(e){const t=uo(),n=lt(e)?ut(e):e;return mg.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)||gg.some(r=>(n.willChange||"").includes(r))||yg.some(r=>(n.contain||"").includes(r))}function bg(e){let t=Mt(e);for(;gt(t)&&!gn(t);){if(lo(t))return t;if(Mr(t))return null;t=Mt(t)}return null}function uo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vg=new Set(["html","body","#document"]);function gn(e){return vg.has(kn(e))}function ut(e){return Je(e).getComputedStyle(e)}function Fr(e){return lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mt(e){if(kn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Is(e)&&e.host||yt(e);return Is(t)?t.host:t}function gl(e){const t=Mt(e);return gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:gt(t)&&Un(t)?t:gl(t)}function jn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=gl(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Je(i);if(o){const a=Fi(s);return t.concat(s,s.visualViewport||[],Un(i)?i:[],a&&n?jn(a):[])}return t.concat(i,jn(i,[],n))}function Fi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yl(e){const t=ut(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=gt(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Cr(n)!==o||Cr(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function co(e){return lt(e)?e:e.contextElement}function an(e){const t=co(e);if(!gt(t))return pt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=yl(t);let s=(o?Cr(n.width):n.width)/r,a=(o?Cr(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const xg=pt(0);function bl(e){const t=Je(e);return!uo()||!t.visualViewport?xg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Je(e)?!1:t}function Wt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=co(e);let s=pt(1);t&&(r?lt(r)&&(s=an(r)):s=an(e));const a=kg(o,n,r)?bl(o):pt(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,c=i.height/s.y;if(o){const h=Je(o),d=r&<(r)?Je(r):r;let p=h,b=Fi(p);for(;b&&r&&d!==p;){const v=an(b),y=b.getBoundingClientRect(),C=ut(b),w=y.left+(b.clientLeft+parseFloat(C.paddingLeft))*v.x,T=y.top+(b.clientTop+parseFloat(C.paddingTop))*v.y;l*=v.x,u*=v.y,f*=v.x,c*=v.y,l+=w,u+=T,p=Je(b),b=Fi(p)}}return Ar({width:f,height:c,x:l,y:u})}function jr(e,t){const n=Fr(e).scrollLeft;return t?t.left+n:Wt(yt(e)).left+n}function vl(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-jr(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function wg(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=yt(r),a=t?Mr(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=pt(1);const f=pt(0),c=gt(r);if((c||!c&&!o)&&((kn(r)!=="body"||Un(s))&&(l=Fr(r)),gt(r))){const d=Wt(r);u=an(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}const h=s&&!c&&!o?vl(s,l):pt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-l.scrollTop*u.y+f.y+h.y}}function _g(e){return Array.from(e.getClientRects())}function Sg(e){const t=yt(e),n=Fr(e),r=e.ownerDocument.body,i=Xe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Xe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+jr(e);const a=-n.scrollTop;return ut(r).direction==="rtl"&&(s+=Xe(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}const Rs=25;function Cg(e,t){const n=Je(e),r=yt(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const f=uo();(!f||f&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const u=jr(r);if(u<=0){const f=r.ownerDocument,c=f.body,h=getComputedStyle(c),d=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(r.clientWidth-c.clientWidth-d);p<=Rs&&(o-=p)}else u<=Rs&&(o+=u);return{width:o,height:s,x:a,y:l}}const Eg=new Set(["absolute","fixed"]);function Ag(e,t){const n=Wt(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=gt(e)?an(e):pt(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function Os(e,t,n){let r;if(t==="viewport")r=Cg(e,n);else if(t==="document")r=Sg(yt(e));else if(lt(t))r=Ag(t,n);else{const i=bl(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ar(r)}function xl(e,t){const n=Mt(e);return n===t||!lt(n)||gn(n)?!1:ut(n).position==="fixed"||xl(n,t)}function Tg(e,t){const n=t.get(e);if(n)return n;let r=jn(e,[],!1).filter(a=>lt(a)&&kn(a)!=="body"),i=null;const o=ut(e).position==="fixed";let s=o?Mt(e):e;for(;lt(s)&&!gn(s);){const a=ut(s),l=lo(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&Eg.has(i.position)||Un(s)&&!l&&xl(e,s))?r=r.filter(f=>f!==s):i=a,s=Mt(s)}return t.set(e,r),r}function zg(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Mr(t)?[]:Tg(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,f)=>{const c=Os(t,f,i);return u.top=Xe(c.top,u.top),u.right=$t(c.right,u.right),u.bottom=$t(c.bottom,u.bottom),u.left=Xe(c.left,u.left),u},Os(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ig(e){const{width:t,height:n}=yl(e);return{width:t,height:n}}function Rg(e,t,n){const r=gt(t),i=yt(t),o=n==="fixed",s=Wt(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=pt(0);function u(){l.x=jr(i)}if(r||!r&&!o)if((kn(t)!=="body"||Un(i))&&(a=Fr(t)),r){const d=Wt(t,!0,o,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&u();o&&!r&&i&&u();const f=i&&!r&&!o?vl(i,a):pt(0),c=s.left+a.scrollLeft-l.x-f.x,h=s.top+a.scrollTop-l.y-f.y;return{x:c,y:h,width:s.width,height:s.height}}function oi(e){return ut(e).position==="static"}function Ps(e,t){if(!gt(e)||ut(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return yt(e)===n&&(n=n.ownerDocument.body),n}function kl(e,t){const n=Je(e);if(Mr(e))return n;if(!gt(e)){let i=Mt(e);for(;i&&!gn(i);){if(lt(i)&&!oi(i))return i;i=Mt(i)}return n}let r=Ps(e,t);for(;r&&hg(r)&&oi(r);)r=Ps(r,t);return r&&gn(r)&&oi(r)&&!lo(r)?n:r||bg(e)||n}const Og=async function(e){const t=this.getOffsetParent||kl,n=this.getDimensions,r=await n(e.floating);return{reference:Rg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Pg(e){return ut(e).direction==="rtl"}const Dg={convertOffsetParentRelativeRectToViewportRelativeRect:wg,getDocumentElement:yt,getClippingRect:zg,getOffsetParent:kl,getElementRects:Og,getClientRects:_g,getDimensions:Ig,getScale:an,isElement:lt,isRTL:Pg};function wl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ng(e,t){let n=null,r;const i=yt(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:f,top:c,width:h,height:d}=u;if(a||t(),!h||!d)return;const p=lr(c),b=lr(i.clientWidth-(f+h)),v=lr(i.clientHeight-(c+d)),y=lr(f),w={rootMargin:-p+"px "+-b+"px "+-v+"px "+-y+"px",threshold:Xe(0,$t(1,l))||1};let T=!0;function I(x){const j=x[0].intersectionRatio;if(j!==l){if(!T)return s();j?s(!1,j):r=setTimeout(()=>{s(!1,1e-7)},1e3)}j===1&&!wl(u,e.getBoundingClientRect())&&s(),T=!1}try{n=new IntersectionObserver(I,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(I,w)}n.observe(e)}return s(!0),o}function I0(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=co(e),f=i||o?[...u?jn(u):[],...jn(t)]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const c=u&&a?Ng(u,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(y=>{let[C]=y;C&&C.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=d)==null||w.observe(t)})),n()}),u&&!l&&d.observe(u),d.observe(t));let p,b=l?Wt(e):null;l&&v();function v(){const y=Wt(e);b&&!wl(b,y)&&n(),b=y,p=requestAnimationFrame(v)}return n(),()=>{var y;f.forEach(C=>{i&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),c?.(),(y=d)==null||y.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const Lg=ag,$g=lg,Mg=ig,Fg=cg,jg=og,Ds=rg,Zg=ug,Bg=(e,t,n)=>{const r=new Map,i={platform:Dg,...n},o={...i.platform,_c:r};return ng(e,t,{...i,platform:o})};var Vg=typeof document<"u",Ug=function(){},hr=Vg?Se.useLayoutEffect:Ug;function Tr(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(!Tr(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Tr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function _l(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ns(e,t){const n=_l(e);return Math.round(t*n)/n}function si(e){const t=Se.useRef(e);return hr(()=>{t.current=e}),t}function R0(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,c]=Se.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,d]=Se.useState(r);Tr(h,r)||d(r);const[p,b]=Se.useState(null),[v,y]=Se.useState(null),C=Se.useCallback(S=>{S!==x.current&&(x.current=S,b(S))},[]),w=Se.useCallback(S=>{S!==j.current&&(j.current=S,y(S))},[]),T=o||p,I=s||v,x=Se.useRef(null),j=Se.useRef(null),z=Se.useRef(f),H=l!=null,k=si(l),$=si(i),N=si(u),W=Se.useCallback(()=>{if(!x.current||!j.current)return;const S={placement:t,strategy:n,middleware:h};$.current&&(S.platform=$.current),Bg(x.current,j.current,S).then(G=>{const g={...G,isPositioned:N.current!==!1};M.current&&!Tr(z.current,g)&&(z.current=g,Ru.flushSync(()=>{c(g)}))})},[h,t,n,$,N]);hr(()=>{u===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,c(S=>({...S,isPositioned:!1})))},[u]);const M=Se.useRef(!1);hr(()=>(M.current=!0,()=>{M.current=!1}),[]),hr(()=>{if(T&&(x.current=T),I&&(j.current=I),T&&I){if(k.current)return k.current(T,I,W);W()}},[T,I,W,k,H]);const R=Se.useMemo(()=>({reference:x,floating:j,setReference:C,setFloating:w}),[C,w]),_=Se.useMemo(()=>({reference:T,floating:I}),[T,I]),O=Se.useMemo(()=>{const S={position:n,left:0,top:0};if(!_.floating)return S;const G=Ns(_.floating,f.x),g=Ns(_.floating,f.y);return a?{...S,transform:"translate("+G+"px, "+g+"px)",..._l(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:g}},[n,a,_.floating,f.x,f.y]);return Se.useMemo(()=>({...f,update:W,refs:R,elements:_,floatingStyles:O}),[f,W,R,_,O])}const Hg=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?Ds({element:r.current,padding:i}).fn(n):{}:r?Ds({element:r,padding:i}).fn(n):{}}}},O0=(e,t)=>({...Lg(e),options:[e,t]}),P0=(e,t)=>({...$g(e),options:[e,t]}),D0=(e,t)=>({...Zg(e),options:[e,t]}),N0=(e,t)=>({...Mg(e),options:[e,t]}),L0=(e,t)=>({...Fg(e),options:[e,t]}),$0=(e,t)=>({...jg(e),options:[e,t]}),M0=(e,t)=>({...Hg(e),options:[e,t]});function F0(){}function Wg(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const qg=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yg=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Gg={};function Ls(e,t){return(Gg.jsx?Yg:qg).test(e)}const Xg=/[ \t\n\f\r]/g;function Jg(e){return typeof e=="object"?e.type==="text"?$s(e.value):!1:$s(e)}function $s(e){return e.replace(Xg,"")===""}class Hn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Hn.prototype.normal={};Hn.prototype.property={};Hn.prototype.space=void 0;function Sl(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Hn(n,r,t)}function ji(e){return e.toLowerCase()}class Ue{constructor(t,n){this.attribute=n,this.property=t}}Ue.prototype.attribute="";Ue.prototype.booleanish=!1;Ue.prototype.boolean=!1;Ue.prototype.commaOrSpaceSeparated=!1;Ue.prototype.commaSeparated=!1;Ue.prototype.defined=!1;Ue.prototype.mustUseProperty=!1;Ue.prototype.number=!1;Ue.prototype.overloadedBoolean=!1;Ue.prototype.property="";Ue.prototype.spaceSeparated=!1;Ue.prototype.space=void 0;let Kg=0;const ne=Xt(),Ce=Xt(),Zi=Xt(),P=Xt(),be=Xt(),ln=Xt(),Ge=Xt();function Xt(){return 2**++Kg}const Bi=Object.freeze(Object.defineProperty({__proto__:null,boolean:ne,booleanish:Ce,commaOrSpaceSeparated:Ge,commaSeparated:ln,number:P,overloadedBoolean:Zi,spaceSeparated:be},Symbol.toStringTag,{value:"Module"})),ai=Object.keys(Bi);class fo extends Ue{constructor(t,n,r,i){let o=-1;if(super(t,n),Ms(this,"space",i),typeof r=="number")for(;++o<ai.length;){const s=ai[o];Ms(this,ai[o],(r&Bi[s])===Bi[s])}}}fo.prototype.defined=!0;function Ms(e,t,n){n&&(e[t]=n)}function wn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new fo(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ji(r)]=r,n[ji(o.attribute)]=r}return new Hn(t,n,e.space)}const Cl=wn({properties:{ariaActiveDescendant:null,ariaAtomic:Ce,ariaAutoComplete:null,ariaBusy:Ce,ariaChecked:Ce,ariaColCount:P,ariaColIndex:P,ariaColSpan:P,ariaControls:be,ariaCurrent:null,ariaDescribedBy:be,ariaDetails:null,ariaDisabled:Ce,ariaDropEffect:be,ariaErrorMessage:null,ariaExpanded:Ce,ariaFlowTo:be,ariaGrabbed:Ce,ariaHasPopup:null,ariaHidden:Ce,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:be,ariaLevel:P,ariaLive:null,ariaModal:Ce,ariaMultiLine:Ce,ariaMultiSelectable:Ce,ariaOrientation:null,ariaOwns:be,ariaPlaceholder:null,ariaPosInSet:P,ariaPressed:Ce,ariaReadOnly:Ce,ariaRelevant:null,ariaRequired:Ce,ariaRoleDescription:be,ariaRowCount:P,ariaRowIndex:P,ariaRowSpan:P,ariaSelected:Ce,ariaSetSize:P,ariaSort:null,ariaValueMax:P,ariaValueMin:P,ariaValueNow:P,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function El(e,t){return t in e?e[t]:t}function Al(e,t){return El(e,t.toLowerCase())}const Qg=wn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ln,acceptCharset:be,accessKey:be,action:null,allow:null,allowFullScreen:ne,allowPaymentRequest:ne,allowUserMedia:ne,alt:null,as:null,async:ne,autoCapitalize:null,autoComplete:be,autoFocus:ne,autoPlay:ne,blocking:be,capture:null,charSet:null,checked:ne,cite:null,className:be,cols:P,colSpan:null,content:null,contentEditable:Ce,controls:ne,controlsList:be,coords:P|ln,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne,defer:ne,dir:null,dirName:null,disabled:ne,download:Zi,draggable:Ce,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne,formTarget:null,headers:be,height:P,hidden:Zi,high:P,href:null,hrefLang:null,htmlFor:be,httpEquiv:be,id:null,imageSizes:null,imageSrcSet:null,inert:ne,inputMode:null,integrity:null,is:null,isMap:ne,itemId:null,itemProp:be,itemRef:be,itemScope:ne,itemType:be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne,low:P,manifest:null,max:null,maxLength:P,media:null,method:null,min:null,minLength:P,multiple:ne,muted:ne,name:null,nonce:null,noModule:ne,noValidate:ne,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:ne,optimum:P,pattern:null,ping:be,placeholder:null,playsInline:ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne,referrerPolicy:null,rel:be,required:ne,reversed:ne,rows:P,rowSpan:P,sandbox:be,scope:null,scoped:ne,seamless:ne,selected:ne,shadowRootClonable:ne,shadowRootDelegatesFocus:ne,shadowRootMode:null,shape:null,size:P,sizes:null,slot:null,span:P,spellCheck:Ce,src:null,srcDoc:null,srcLang:null,srcSet:null,start:P,step:null,style:null,tabIndex:P,target:null,title:null,translate:null,type:null,typeMustMatch:ne,useMap:null,value:Ce,width:P,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:be,axis:null,background:null,bgColor:null,border:P,borderColor:null,bottomMargin:P,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ne,declare:ne,event:null,face:null,frame:null,frameBorder:null,hSpace:P,leftMargin:P,link:null,longDesc:null,lowSrc:null,marginHeight:P,marginWidth:P,noResize:ne,noHref:ne,noShade:ne,noWrap:ne,object:null,profile:null,prompt:null,rev:null,rightMargin:P,rules:null,scheme:null,scrolling:Ce,standby:null,summary:null,text:null,topMargin:P,valueType:null,version:null,vAlign:null,vLink:null,vSpace:P,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ne,disableRemotePlayback:ne,prefix:null,property:null,results:P,security:null,unselectable:null},space:"html",transform:Al}),ey=wn({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:Ge,accentHeight:P,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:P,amplitude:P,arabicForm:null,ascent:P,attributeName:null,attributeType:null,azimuth:P,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:P,by:null,calcMode:null,capHeight:P,className:be,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:P,diffuseConstant:P,direction:null,display:null,dur:null,divisor:P,dominantBaseline:null,download:ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:P,enableBackground:null,end:null,event:null,exponent:P,externalResourcesRequired:null,fill:null,fillOpacity:P,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:ln,g2:ln,glyphName:ln,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:P,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:P,horizOriginX:P,horizOriginY:P,id:null,ideographic:P,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:P,k:P,k1:P,k2:P,k3:P,k4:P,kernelMatrix:Ge,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:P,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:P,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:P,overlineThickness:P,paintOrder:null,panose1:null,path:null,pathLength:P,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:P,pointsAtY:P,pointsAtZ:P,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ge,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ge,rev:Ge,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ge,requiredFeatures:Ge,requiredFonts:Ge,requiredFormats:Ge,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:P,specularExponent:P,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:P,strikethroughThickness:P,string:null,stroke:null,strokeDashArray:Ge,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:P,strokeOpacity:P,strokeWidth:null,style:null,surfaceScale:P,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ge,tabIndex:P,tableValues:null,target:null,targetX:P,targetY:P,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ge,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:P,underlineThickness:P,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:P,values:null,vAlphabetic:P,vMathematical:P,vectorEffect:null,vHanging:P,vIdeographic:P,version:null,vertAdvY:P,vertOriginX:P,vertOriginY:P,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:P,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:El}),Tl=wn({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()}}),zl=wn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Al}),Il=wn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ty={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"},ny=/[A-Z]/g,Fs=/-[a-z]/g,ry=/^data[-\w.:]+$/i;function iy(e,t){const n=ji(t);let r=t,i=Ue;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ry.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Fs,sy);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Fs.test(o)){let s=o.replace(ny,oy);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=fo}return new i(r,t)}function oy(e){return"-"+e.toLowerCase()}function sy(e){return e.charAt(1).toUpperCase()}const ay=Sl([Cl,Qg,Tl,zl,Il],"html"),ho=Sl([Cl,ey,Tl,zl,Il],"svg");function ly(e){return e.join(" ").trim()}var Qt={},li,js;function uy(){if(js)return li;js=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
|
|
21
|
-
`,u="/",f="*",c="",h="comment",d="declaration";function p(v,y){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];y=y||{};var C=1,w=1;function T(M){var R=M.match(t);R&&(C+=R.length);var _=M.lastIndexOf(l);w=~_?M.length-_:w+M.length}function I(){var M={line:C,column:w};return function(R){return R.position=new x(M),H(),R}}function x(M){this.start=M,this.end={line:C,column:w},this.source=y.source}x.prototype.content=v;function j(M){var R=new Error(y.source+":"+C+":"+w+": "+M);if(R.reason=M,R.filename=y.source,R.line=C,R.column=w,R.source=v,!y.silent)throw R}function z(M){var R=M.exec(v);if(R){var _=R[0];return T(_),v=v.slice(_.length),R}}function H(){z(n)}function k(M){var R;for(M=M||[];R=$();)R!==!1&&M.push(R);return M}function $(){var M=I();if(!(u!=v.charAt(0)||f!=v.charAt(1))){for(var R=2;c!=v.charAt(R)&&(f!=v.charAt(R)||u!=v.charAt(R+1));)++R;if(R+=2,c===v.charAt(R-1))return j("End of comment missing");var _=v.slice(2,R-2);return w+=2,T(_),v=v.slice(R),w+=2,M({type:h,comment:_})}}function N(){var M=I(),R=z(r);if(R){if($(),!z(i))return j("property missing ':'");var _=z(o),O=M({type:d,property:b(R[0].replace(e,c)),value:_?b(_[0].replace(e,c)):c});return z(s),O}}function W(){var M=[];k(M);for(var R;R=N();)R!==!1&&(M.push(R),k(M));return M}return H(),W()}function b(v){return v?v.replace(a,c):c}return li=p,li}var Zs;function cy(){if(Zs)return Qt;Zs=1;var e=Qt&&Qt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.default=n;const t=e(uy());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const s=(0,t.default)(r),a=typeof i=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:f}=l;a?i(u,f,l):f&&(o=o||{},o[u]=f)}),o}return Qt}var An={},Bs;function fy(){if(Bs)return An;Bs=1,Object.defineProperty(An,"__esModule",{value:!0}),An.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||n.test(u)||e.test(u)},s=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},l=function(u,f){return f===void 0&&(f={}),o(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(t,s))};return An.camelCase=l,An}var Tn,Vs;function dy(){if(Vs)return Tn;Vs=1;var e=Tn&&Tn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(cy()),n=fy();function r(i,o){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(a,l){a&&l&&(s[(0,n.camelCase)(a,o)]=l)}),s}return r.default=r,Tn=r,Tn}var hy=dy();const py=_a(hy),Rl=Ol("end"),po=Ol("start");function Ol(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 my(e){const t=po(e),n=Rl(e);if(t&&n)return{start:t,end:n}}function On(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Us(e.position):"start"in e||"end"in e?Us(e):"line"in e||"column"in e?Vi(e):""}function Vi(e){return Hs(e&&e.line)+":"+Hs(e&&e.column)}function Us(e){return Vi(e&&e.start)+"-"+Vi(e&&e.end)}function Hs(e){return e&&typeof e=="number"?e:1}class Ne extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=On(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ne.prototype.file="";Ne.prototype.name="";Ne.prototype.reason="";Ne.prototype.message="";Ne.prototype.stack="";Ne.prototype.column=void 0;Ne.prototype.line=void 0;Ne.prototype.ancestors=void 0;Ne.prototype.cause=void 0;Ne.prototype.fatal=void 0;Ne.prototype.place=void 0;Ne.prototype.ruleId=void 0;Ne.prototype.source=void 0;const mo={}.hasOwnProperty,gy=new Map,yy=/[A-Z]/g,by=new Set(["table","tbody","thead","tfoot","tr"]),vy=new Set(["td","th"]),Pl="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function j0(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=Ay(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=Ey(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"?ho:ay,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Dl(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Dl(e,t,n){if(t.type==="element")return xy(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ky(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return _y(e,t,n);if(t.type==="mdxjsEsm")return wy(e,t);if(t.type==="root")return Sy(e,t,n);if(t.type==="text")return Cy(e,t)}function xy(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ho,e.schema=i),e.ancestors.push(t);const o=Ll(e,t.tagName,!1),s=Ty(e,t);let a=yo(e,t);return by.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Jg(l):!0})),Nl(e,s,o,t),go(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function ky(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Zn(e,t.position)}function wy(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Zn(e,t.position)}function _y(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=ho,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Ll(e,t.name,!0),s=zy(e,t),a=yo(e,t);return Nl(e,s,o,t),go(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Sy(e,t,n){const r={};return go(r,yo(e,t)),e.create(t,e.Fragment,r,n)}function Cy(e,t){return t.value}function Nl(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function go(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ey(e,t,n){return r;function r(i,o,s,a){const u=Array.isArray(s.children)?n:t;return a?u(o,s,a):u(o,s)}}function Ay(e,t){return n;function n(r,i,o,s){const a=Array.isArray(o.children),l=po(r);return t(i,o,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Ty(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&mo.call(t.properties,i)){const o=Iy(e,i,t.properties[i]);if(o){const[s,a]=o;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&vy.has(t.tagName)?r=a:n[s]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function zy(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Zn(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Zn(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function yo(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:gy;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=i.get(l)||0;s=l+"-"+u,i.set(l,u+1)}}const a=Dl(e,o,s);a!==void 0&&n.push(a)}return n}function Iy(e,t,n){const r=iy(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Wg(n):ly(n)),r.property==="style"){let i=typeof n=="object"?n:Ry(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Oy(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ty[r.property]||r.property:r.attribute,n]}}function Ry(e,t){try{return py(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Ne("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=Pl+"#cannot-parse-style-attribute",i}}function Ll(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const a=Ls(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=s}else r=Ls(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return mo.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Zn(e)}function Zn(e,t){const n=new Ne("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=Pl+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Oy(e){const t={};let n;for(n in e)mo.call(e,n)&&(t[Py(n)]=e[n]);return t}function Py(e){let t=e.replace(yy,Dy);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Dy(e){return"-"+e.toLowerCase()}const Z0={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"]},Ny={};function bo(e,t){const n=Ny,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return $l(e,r,i)}function $l(e,t,n){if(Ly(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 Ws(e.children,t,n)}return Array.isArray(e)?Ws(e,t,n):""}function Ws(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=$l(e[i],t,n);return r.join("")}function Ly(e){return!!(e&&typeof e=="object")}const qs=document.createElement("i");function vo(e){const t="&"+e+";";qs.innerHTML=t;const n=qs.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ke(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function tt(e,t){return e.length>0?(Ke(e,e.length,0,t),e):t}const Ys={}.hasOwnProperty;function Ml(e){const t={};let n=-1;for(;++n<e.length;)$y(t,e[n]);return t}function $y(e,t){let n;for(n in t){const i=(Ys.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){Ys.call(i,s)||(i[s]=[]);const a=o[s];My(i[s],Array.isArray(a)?a:a?[a]:[])}}}function My(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ke(e,0,0,r)}function Fl(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function at(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $e=jt(/[A-Za-z]/),De=jt(/[\dA-Za-z]/),Fy=jt(/[#-'*+\--9=?A-Z^-~]/);function zr(e){return e!==null&&(e<32||e===127)}const Ui=jt(/\d/),jy=jt(/[\dA-Fa-f]/),Zy=jt(/[!-/:-@[-`{-~]/);function J(e){return e!==null&&e<-2}function ye(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}const Zr=jt(new RegExp("\\p{P}|\\p{S}","u")),qt=jt(/\s/);function jt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function _n(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&De(e.charCodeAt(n+1))&&De(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function fe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(l){return ae(l)?(e.enter(n),a(l)):t(l)}function a(l){return ae(l)&&o++<i?(e.consume(l),a):(e.exit(n),t(l))}}const By={tokenize:Vy};function Vy(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),fe(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return J(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}const Uy={tokenize:Hy},Gs={tokenize:Wy};function Hy(e){const t=this,n=[];let r=0,i,o,s;return a;function a(w){if(r<n.length){const T=n[r];return t.containerState=T[1],e.attempt(T[0].continuation,l,u)(w)}return u(w)}function l(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&C();const T=t.events.length;let I=T,x;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){x=t.events[I][1].end;break}y(r);let j=T;for(;j<t.events.length;)t.events[j][1].end={...x},j++;return Ke(t.events,I+1,0,t.events.slice(T)),t.events.length=j,u(w)}return a(w)}function u(w){if(r===n.length){if(!i)return h(w);if(i.currentConstruct&&i.currentConstruct.concrete)return p(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Gs,f,c)(w)}function f(w){return i&&C(),y(r),h(w)}function c(w){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,p(w)}function h(w){return t.containerState={},e.attempt(Gs,d,p)(w)}function d(w){return r++,n.push([t.currentConstruct,t.containerState]),h(w)}function p(w){if(w===null){i&&C(),y(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),b(w)}function b(w){if(w===null){v(e.exit("chunkFlow"),!0),y(0),e.consume(w);return}return J(w)?(e.consume(w),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(w),b)}function v(w,T){const I=t.sliceStream(w);if(T&&I.push(null),w.previous=o,o&&(o.next=w),o=w,i.defineSkip(w.start),i.write(I),t.parser.lazy[w.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<s&&(!i.events[x][1].end||i.events[x][1].end.offset>s))return;const j=t.events.length;let z=j,H,k;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(H){k=t.events[z][1].end;break}H=!0}for(y(r),x=j;x<t.events.length;)t.events[x][1].end={...k},x++;Ke(t.events,z+1,0,t.events.slice(j)),t.events.length=x}}function y(w){let T=n.length;for(;T-- >w;){const I=n[T];t.containerState=I[1],I[0].exit.call(t,e)}n.length=w}function C(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Wy(e,t,n){return fe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function yn(e){if(e===null||ye(e)||qt(e))return 1;if(Zr(e))return 2}function Br(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Hi={name:"attention",resolveAll:qy,tokenize:Yy};function qy(e,t){let n=-1,r,i,o,s,a,l,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[n][1].start};Xs(c,-l),Xs(h,l),s={type:l>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=tt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=tt(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=tt(u,Br(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=tt(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=tt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Ke(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Yy(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=yn(r);let o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;const u=e.exit("attentionSequence"),f=yn(l),c=!f||f===2&&i||n.includes(l),h=!i||i===2&&f||n.includes(r);return u._open=!!(o===42?c:c&&(i||!h)),u._close=!!(o===42?h:h&&(f||!c)),t(l)}}function Xs(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Gy={name:"autolink",tokenize:Xy};function Xy(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(d){return $e(d)?(e.consume(d),s):d===64?n(d):u(d)}function s(d){return d===43||d===45||d===46||De(d)?(r=1,a(d)):u(d)}function a(d){return d===58?(e.consume(d),r=0,l):(d===43||d===45||d===46||De(d))&&r++<32?(e.consume(d),a):(r=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||zr(d)?n(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),f):Fy(d)?(e.consume(d),u):n(d)}function f(d){return De(d)?c(d):n(d)}function c(d){return d===46?(e.consume(d),r=0,f):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):h(d)}function h(d){if((d===45||De(d))&&r++<63){const p=d===45?h:c;return e.consume(d),p}return n(d)}}const Wn={partial:!0,tokenize:Jy};function Jy(e,t,n){return r;function r(o){return ae(o)?fe(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||J(o)?t(o):n(o)}}const jl={continuation:{tokenize:Qy},exit:eb,name:"blockQuote",tokenize:Ky};function Ky(e,t,n){const r=this;return i;function i(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return ae(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function Qy(e,t,n){const r=this;return i;function i(s){return ae(s)?fe(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(jl,t,n)(s)}}function eb(e){e.exit("blockQuote")}const Zl={name:"characterEscape",tokenize:tb};function tb(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Zy(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Bl={name:"characterReference",tokenize:nb};function nb(e,t,n){const r=this;let i=0,o,s;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=De,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=jy,f):(e.enter("characterReferenceValue"),o=7,s=Ui,f(c))}function f(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return s===De&&!vo(r.sliceSerialize(h))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(c)&&i++<o?(e.consume(c),f):n(c)}}const Js={partial:!0,tokenize:ib},Ks={concrete:!0,name:"codeFenced",tokenize:rb};function rb(e,t,n){const r=this,i={partial:!0,tokenize:I};let o=0,s=0,a;return l;function l(x){return u(x)}function u(x){const j=r.events[r.events.length-1];return o=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,a=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(x)}function f(x){return x===a?(s++,e.consume(x),f):s<3?n(x):(e.exit("codeFencedFenceSequence"),ae(x)?fe(e,c,"whitespace")(x):c(x))}function c(x){return x===null||J(x)?(e.exit("codeFencedFence"),r.interrupt?t(x):e.check(Js,b,T)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===null||J(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(x)):ae(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),fe(e,d,"whitespace")(x)):x===96&&x===a?n(x):(e.consume(x),h)}function d(x){return x===null||J(x)?c(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===null||J(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(x)):x===96&&x===a?n(x):(e.consume(x),p)}function b(x){return e.attempt(i,T,v)(x)}function v(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),y}function y(x){return o>0&&ae(x)?fe(e,C,"linePrefix",o+1)(x):C(x)}function C(x){return x===null||J(x)?e.check(Js,b,T)(x):(e.enter("codeFlowValue"),w(x))}function w(x){return x===null||J(x)?(e.exit("codeFlowValue"),C(x)):(e.consume(x),w)}function T(x){return e.exit("codeFenced"),t(x)}function I(x,j,z){let H=0;return k;function k(R){return x.enter("lineEnding"),x.consume(R),x.exit("lineEnding"),$}function $(R){return x.enter("codeFencedFence"),ae(R)?fe(x,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):N(R)}function N(R){return R===a?(x.enter("codeFencedFenceSequence"),W(R)):z(R)}function W(R){return R===a?(H++,x.consume(R),W):H>=s?(x.exit("codeFencedFenceSequence"),ae(R)?fe(x,M,"whitespace")(R):M(R)):z(R)}function M(R){return R===null||J(R)?(x.exit("codeFencedFence"),j(R)):z(R)}}}function ib(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const ui={name:"codeIndented",tokenize:sb},ob={partial:!0,tokenize:ab};function sb(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),fe(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):J(u)?e.attempt(ob,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||J(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function ab(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):J(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):fe(e,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):J(s)?i(s):n(s)}}const lb={name:"codeText",previous:cb,resolve:ub,tokenize:fb};function ub(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function cb(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function fb(e,t,n){let r=0,i,o;return s;function s(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),l(c))}function l(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),l):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):J(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||J(c)?(e.exit("codeTextData"),l(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",u(c))}}class db{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&zn(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),zn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),zn(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);zn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);zn(this.left,n.reverse())}}}function zn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Vl(e){const t={};let n=-1,r,i,o,s,a,l,u;const f=new db(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,hb(f,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(s=f.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return Ke(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function hb(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],u={};let f,c,h=-1,d=n,p=0,b=0;const v=[b];for(;d;){for(;e.get(++i)[1]!==d;);o.push(i),d._tokenizer||(f=r.sliceStream(d),d.next||f.push(null),c&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),c=d,d=d.next}for(d=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(b=h+1,v.push(b),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):v.pop(),h=v.length;h--;){const y=a.slice(v[h],v[h+1]),C=o.pop();l.push([C,C+y.length-1]),e.splice(C,2,y)}for(l.reverse(),h=-1;++h<l.length;)u[p+l[h][0]]=p+l[h][1],p+=l[h][1]-l[h][0]-1;return u}const pb={resolve:gb,tokenize:yb},mb={partial:!0,tokenize:bb};function gb(e){return Vl(e),e}function yb(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):J(a)?e.check(mb,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function bb(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),fe(e,o,"linePrefix")}function o(s){if(s===null||J(s))return n(s);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Ul(e,t,n,r,i,o,s,a,l){const u=l||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),h):y===null||y===32||y===41||zr(y)?n(y):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),b(y))}function h(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(e.exit("chunkString"),e.exit(a),h(y)):y===null||y===60||J(y)?n(y):(e.consume(y),y===92?p:d)}function p(y){return y===60||y===62||y===92?(e.consume(y),d):d(y)}function b(y){return!f&&(y===null||y===41||ye(y))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(y)):f<u&&y===40?(e.consume(y),f++,b):y===41?(e.consume(y),f--,b):y===null||y===32||y===40||zr(y)?n(y):(e.consume(y),y===92?v:b)}function v(y){return y===40||y===41||y===92?(e.consume(y),b):b(y)}}function Hl(e,t,n,r,i,o){const s=this;let a=0,l;return u;function u(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(o),f}function f(d){return a>999||d===null||d===91||d===93&&!l||d===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):d===93?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):J(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===null||d===91||d===93||J(d)||a++>999?(e.exit("chunkString"),f(d)):(e.consume(d),l||(l=!ae(d)),d===92?h:c)}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function Wl(e,t,n,r,i,o){let s;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,l):n(h)}function l(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),u(h))}function u(h){return h===s?(e.exit(o),l(s)):h===null?n(h):J(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),fe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===s||h===null||J(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:f)}function c(h){return h===s||h===92?(e.consume(h),f):f(h)}}function Pn(e,t){let n;return r;function r(i){return J(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ae(i)?fe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const vb={name:"definition",tokenize:kb},xb={partial:!0,tokenize:wb};function kb(e,t,n){const r=this;let i;return o;function o(d){return e.enter("definition"),s(d)}function s(d){return Hl.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function a(d){return i=at(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):n(d)}function l(d){return ye(d)?Pn(e,u)(d):u(d)}function u(d){return Ul(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function f(d){return e.attempt(xb,c,c)(d)}function c(d){return ae(d)?fe(e,h,"whitespace")(d):h(d)}function h(d){return d===null||J(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function wb(e,t,n){return r;function r(a){return ye(a)?Pn(e,i)(a):n(a)}function i(a){return Wl(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return ae(a)?fe(e,s,"whitespace")(a):s(a)}function s(a){return a===null||J(a)?t(a):n(a)}}const _b={name:"hardBreakEscape",tokenize:Sb};function Sb(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return J(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Cb={name:"headingAtx",resolve:Eb,tokenize:Ab};function Eb(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ke(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Ab(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),s(f)}function s(f){return f===35&&r++<6?(e.consume(f),s):f===null||ye(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||J(f)?(e.exit("atxHeading"),t(f)):ae(f)?fe(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||ye(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const Tb=["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"],Qs=["pre","script","style","textarea"],zb={concrete:!0,name:"htmlFlow",resolveTo:Ob,tokenize:Pb},Ib={partial:!0,tokenize:Nb},Rb={partial:!0,tokenize:Db};function Ob(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Pb(e,t,n){const r=this;let i,o,s,a,l;return u;function u(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),h):m===47?(e.consume(m),o=!0,b):m===63?(e.consume(m),i=3,r.interrupt?t:g):$e(m)?(e.consume(m),s=String.fromCharCode(m),v):n(m)}function h(m){return m===45?(e.consume(m),i=2,d):m===91?(e.consume(m),i=5,a=0,p):$e(m)?(e.consume(m),i=4,r.interrupt?t:g):n(m)}function d(m){return m===45?(e.consume(m),r.interrupt?t:g):n(m)}function p(m){const X="CDATA[";return m===X.charCodeAt(a++)?(e.consume(m),a===X.length?r.interrupt?t:N:p):n(m)}function b(m){return $e(m)?(e.consume(m),s=String.fromCharCode(m),v):n(m)}function v(m){if(m===null||m===47||m===62||ye(m)){const X=m===47,re=s.toLowerCase();return!X&&!o&&Qs.includes(re)?(i=1,r.interrupt?t(m):N(m)):Tb.includes(s.toLowerCase())?(i=6,X?(e.consume(m),y):r.interrupt?t(m):N(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(m):o?C(m):w(m))}return m===45||De(m)?(e.consume(m),s+=String.fromCharCode(m),v):n(m)}function y(m){return m===62?(e.consume(m),r.interrupt?t:N):n(m)}function C(m){return ae(m)?(e.consume(m),C):k(m)}function w(m){return m===47?(e.consume(m),k):m===58||m===95||$e(m)?(e.consume(m),T):ae(m)?(e.consume(m),w):k(m)}function T(m){return m===45||m===46||m===58||m===95||De(m)?(e.consume(m),T):I(m)}function I(m){return m===61?(e.consume(m),x):ae(m)?(e.consume(m),I):w(m)}function x(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),l=m,j):ae(m)?(e.consume(m),x):z(m)}function j(m){return m===l?(e.consume(m),l=null,H):m===null||J(m)?n(m):(e.consume(m),j)}function z(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||ye(m)?I(m):(e.consume(m),z)}function H(m){return m===47||m===62||ae(m)?w(m):n(m)}function k(m){return m===62?(e.consume(m),$):n(m)}function $(m){return m===null||J(m)?N(m):ae(m)?(e.consume(m),$):n(m)}function N(m){return m===45&&i===2?(e.consume(m),_):m===60&&i===1?(e.consume(m),O):m===62&&i===4?(e.consume(m),me):m===63&&i===3?(e.consume(m),g):m===93&&i===5?(e.consume(m),G):J(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ib,xe,W)(m)):m===null||J(m)?(e.exit("htmlFlowData"),W(m)):(e.consume(m),N)}function W(m){return e.check(Rb,M,xe)(m)}function M(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),R}function R(m){return m===null||J(m)?W(m):(e.enter("htmlFlowData"),N(m))}function _(m){return m===45?(e.consume(m),g):N(m)}function O(m){return m===47?(e.consume(m),s="",S):N(m)}function S(m){if(m===62){const X=s.toLowerCase();return Qs.includes(X)?(e.consume(m),me):N(m)}return $e(m)&&s.length<8?(e.consume(m),s+=String.fromCharCode(m),S):N(m)}function G(m){return m===93?(e.consume(m),g):N(m)}function g(m){return m===62?(e.consume(m),me):m===45&&i===2?(e.consume(m),g):N(m)}function me(m){return m===null||J(m)?(e.exit("htmlFlowData"),xe(m)):(e.consume(m),me)}function xe(m){return e.exit("htmlFlow"),t(m)}}function Db(e,t,n){const r=this;return i;function i(s){return J(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function Nb(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Wn,t,n)}}const Lb={name:"htmlText",tokenize:$b};function $b(e,t,n){const r=this;let i,o,s;return a;function a(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),l}function l(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),I):g===63?(e.consume(g),w):$e(g)?(e.consume(g),z):n(g)}function u(g){return g===45?(e.consume(g),f):g===91?(e.consume(g),o=0,p):$e(g)?(e.consume(g),C):n(g)}function f(g){return g===45?(e.consume(g),d):n(g)}function c(g){return g===null?n(g):g===45?(e.consume(g),h):J(g)?(s=c,O(g)):(e.consume(g),c)}function h(g){return g===45?(e.consume(g),d):c(g)}function d(g){return g===62?_(g):g===45?h(g):c(g)}function p(g){const me="CDATA[";return g===me.charCodeAt(o++)?(e.consume(g),o===me.length?b:p):n(g)}function b(g){return g===null?n(g):g===93?(e.consume(g),v):J(g)?(s=b,O(g)):(e.consume(g),b)}function v(g){return g===93?(e.consume(g),y):b(g)}function y(g){return g===62?_(g):g===93?(e.consume(g),y):b(g)}function C(g){return g===null||g===62?_(g):J(g)?(s=C,O(g)):(e.consume(g),C)}function w(g){return g===null?n(g):g===63?(e.consume(g),T):J(g)?(s=w,O(g)):(e.consume(g),w)}function T(g){return g===62?_(g):w(g)}function I(g){return $e(g)?(e.consume(g),x):n(g)}function x(g){return g===45||De(g)?(e.consume(g),x):j(g)}function j(g){return J(g)?(s=j,O(g)):ae(g)?(e.consume(g),j):_(g)}function z(g){return g===45||De(g)?(e.consume(g),z):g===47||g===62||ye(g)?H(g):n(g)}function H(g){return g===47?(e.consume(g),_):g===58||g===95||$e(g)?(e.consume(g),k):J(g)?(s=H,O(g)):ae(g)?(e.consume(g),H):_(g)}function k(g){return g===45||g===46||g===58||g===95||De(g)?(e.consume(g),k):$(g)}function $(g){return g===61?(e.consume(g),N):J(g)?(s=$,O(g)):ae(g)?(e.consume(g),$):H(g)}function N(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),i=g,W):J(g)?(s=N,O(g)):ae(g)?(e.consume(g),N):(e.consume(g),M)}function W(g){return g===i?(e.consume(g),i=void 0,R):g===null?n(g):J(g)?(s=W,O(g)):(e.consume(g),W)}function M(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||ye(g)?H(g):(e.consume(g),M)}function R(g){return g===47||g===62||ye(g)?H(g):n(g)}function _(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function O(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),S}function S(g){return ae(g)?fe(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):G(g)}function G(g){return e.enter("htmlTextData"),s(g)}}const xo={name:"labelEnd",resolveAll:Zb,resolveTo:Bb,tokenize:Vb},Mb={tokenize:Ub},Fb={tokenize:Hb},jb={tokenize:Wb};function Zb(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ke(e,0,e.length,n),e}function Bb(e,t){let n=e.length,r=0,i,o,s,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=tt(a,e.slice(o+1,o+r+3)),a=tt(a,[["enter",f,t]]),a=tt(a,Br(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),a=tt(a,[["exit",f,t],e[s-2],e[s-1],["exit",u,t]]),a=tt(a,e.slice(s+1)),a=tt(a,[["exit",l,t]]),Ke(e,o,e.length,a),e}function Vb(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(h){return o?o._inactive?c(h):(s=r.parser.defined.includes(at(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(Mb,f,s?f:c)(h):h===91?e.attempt(Fb,f,s?u:c)(h):s?f(h):c(h)}function u(h){return e.attempt(jb,f,c)(h)}function f(h){return t(h)}function c(h){return o._balanced=!0,n(h)}}function Ub(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return ye(c)?Pn(e,o)(c):o(c)}function o(c){return c===41?f(c):Ul(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function s(c){return ye(c)?Pn(e,l)(c):f(c)}function a(c){return n(c)}function l(c){return c===34||c===39||c===40?Wl(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return ye(c)?Pn(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function Hb(e,t,n){const r=this;return i;function i(a){return Hl.call(r,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(at(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function Wb(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const qb={name:"labelStartImage",resolveAll:xo.resolveAll,tokenize:Yb};function Yb(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Gb={name:"labelStartLink",resolveAll:xo.resolveAll,tokenize:Xb};function Xb(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const ci={name:"lineEnding",tokenize:Jb};function Jb(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),fe(e,t,"linePrefix")}}const pr={name:"thematicBreak",tokenize:Kb};function Kb(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||J(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),ae(u)?fe(e,a,"whitespace")(u):a(u))}}const Ze={continuation:{tokenize:nv},exit:iv,name:"list",tokenize:tv},Qb={partial:!0,tokenize:ov},ev={partial:!0,tokenize:rv};function tv(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(d){const p=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Ui(d)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(pr,n,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return n(d)}function l(d){return Ui(d)&&++s<10?(e.consume(d),l):(!r.interrupt||s<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):n(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Wn,r.interrupt?n:f,e.attempt(Qb,h,c))}function f(d){return r.containerState.initialBlankLine=!0,o++,h(d)}function c(d){return ae(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),h):n(d)}function h(d){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function nv(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Wn,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,fe(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!ae(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ev,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,fe(e,e.attempt(Ze,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function rv(e,t,n){const r=this;return fe(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function iv(e){e.exit(this.containerState.type)}function ov(e,t,n){const r=this;return fe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!ae(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const ea={name:"setextUnderline",resolveTo:sv,tokenize:av};function sv(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function av(e,t,n){const r=this;let i;return o;function o(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),ae(u)?fe(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||J(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const lv={tokenize:uv};function uv(e){const t=this,n=e.attempt(Wn,r,e.attempt(this.parser.constructs.flowInitial,i,fe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(pb,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const cv={resolveAll:Yl()},fv=ql("string"),dv=ql("text");function ql(e){return{resolveAll:Yl(e==="text"?hv:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,a);return s;function s(f){return u(f)?o(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return u(f)?(n.exit("data"),o(f)):(n.consume(f),l)}function u(f){if(f===null)return!0;const c=i[f];let h=-1;if(c)for(;++h<c.length;){const d=c[h];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function Yl(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function hv(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,s=-1,a=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},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 pv={42:Ze,43:Ze,45:Ze,48:Ze,49:Ze,50:Ze,51:Ze,52:Ze,53:Ze,54:Ze,55:Ze,56:Ze,57:Ze,62:jl},mv={91:vb},gv={[-2]:ui,[-1]:ui,32:ui},yv={35:Cb,42:pr,45:[ea,pr],60:zb,61:ea,95:pr,96:Ks,126:Ks},bv={38:Bl,92:Zl},vv={[-5]:ci,[-4]:ci,[-3]:ci,33:qb,38:Bl,42:Hi,60:[Gy,Lb],91:Gb,92:[_b,Zl],93:xo,95:Hi,96:lb},xv={null:[Hi,cv]},kv={null:[42,95]},wv={null:[]},_v=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:kv,contentInitial:mv,disable:wv,document:pv,flow:yv,flowInitial:gv,insideSpan:xv,string:bv,text:vv},Symbol.toStringTag,{value:"Module"}));function Sv(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const l={attempt:j(I),check:j(x),consume:C,enter:w,exit:T,interrupt:j(x,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:p,parser:e,previous:null,sliceSerialize:h,sliceStream:d,write:c};let f=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function c($){return s=tt(s,$),v(),s[s.length-1]!==null?[]:(z(t,0),u.events=Br(o,u.events,u),u.events)}function h($,N){return Ev(d($),N)}function d($){return Cv(s,$)}function p(){const{_bufferIndex:$,_index:N,line:W,column:M,offset:R}=r;return{_bufferIndex:$,_index:N,line:W,column:M,offset:R}}function b($){i[$.line]=$.column,k()}function v(){let $;for(;r._index<s.length;){const N=s[r._index];if(typeof N=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<N.length;)y(N.charCodeAt(r._bufferIndex));else y(N)}}function y($){f=f($)}function C($){J($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,k()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=$}function w($,N){const W=N||{};return W.type=$,W.start=p(),u.events.push(["enter",W,u]),a.push(W),W}function T($){const N=a.pop();return N.end=p(),u.events.push(["exit",N,u]),N}function I($,N){z($,N.from)}function x($,N){N.restore()}function j($,N){return W;function W(M,R,_){let O,S,G,g;return Array.isArray(M)?xe(M):"tokenize"in M?xe([M]):me(M);function me(de){return pe;function pe(le){const Te=le!==null&&de[le],Re=le!==null&&de.null,He=[...Array.isArray(Te)?Te:Te?[Te]:[],...Array.isArray(Re)?Re:Re?[Re]:[]];return xe(He)(le)}}function xe(de){return O=de,S=0,de.length===0?_:m(de[S])}function m(de){return pe;function pe(le){return g=H(),G=de,de.partial||(u.currentConstruct=de),de.name&&u.parser.constructs.disable.null.includes(de.name)?re():de.tokenize.call(N?Object.assign(Object.create(u),N):u,l,X,re)(le)}}function X(de){return $(G,g),R}function re(de){return g.restore(),++S<O.length?m(O[S]):_}}}function z($,N){$.resolveAll&&!o.includes($)&&o.push($),$.resolve&&Ke(u.events,N,u.events.length-N,$.resolve(u.events.slice(N),u)),$.resolveTo&&(u.events=$.resolveTo(u.events,u))}function H(){const $=p(),N=u.previous,W=u.currentConstruct,M=u.events.length,R=Array.from(a);return{from:M,restore:_};function _(){r=$,u.previous=N,u.currentConstruct=W,u.events.length=M,a=R,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Cv(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function Ev(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
|
|
22
|
-
`;break}case-3:{s=`\r
|
|
23
|
-
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function Av(e){const r={constructs:Ml([_v,...(e||{}).extensions||[]]),content:i(By),defined:[],document:i(Uy),flow:i(lv),lazy:{},string:i(fv),text:i(dv)};return r;function i(o){return s;function s(a){return Sv(r,o,a)}}}function Tv(e){for(;!Vl(e););return e}const ta=/[\0\t\n\r]/g;function zv(){let e=1,t="",n=!0,r;return i;function i(o,s,a){const l=[];let u,f,c,h,d;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(ta.lastIndex=c,u=ta.exec(o),h=u&&u.index!==void 0?u.index:o.length,d=o.charCodeAt(h),!u){t=o.slice(c);break}if(d===10&&c===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),c<h&&(l.push(o.slice(c,h)),e+=h-c),d){case 0:{l.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,l.push(-2);e++<f;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Iv=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Rv(e){return e.replace(Iv,Ov)}function Ov(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Fl(n.slice(o?2:1),o?16:10)}return vo(n)||e}const Gl={}.hasOwnProperty;function Pv(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Dv(n)(Tv(Av(n).document().write(zv()(e,t,!0))))}function Dv(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Qe),autolinkProtocol:H,autolinkEmail:H,atxHeading:o(Yn),blockQuote:o(Re),characterEscape:H,characterReference:H,codeFenced:o(He),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(He,s),codeText:o(We,s),codeTextData:H,data:H,codeFlowValue:H,definition:o(Wr),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Sn),hardBreakEscape:o(Cn),hardBreakTrailing:o(Cn),htmlFlow:o(Ct,s),htmlFlowData:H,htmlText:o(Ct,s),htmlTextData:H,image:o(Gn),label:s,link:o(Qe),listItem:o(qr),listItemValue:h,listOrdered:o(Xn,c),listUnordered:o(Xn),paragraph:o(Le),reference:m,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Yn),strong:o(Et),thematicBreak:o(Gr)},exit:{atxHeading:l(),atxHeadingSequence:I,autolink:l(),autolinkEmail:Te,autolinkProtocol:le,blockQuote:l(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:re,characterReferenceMarkerNumeric:re,characterReferenceValue:de,characterReference:pe,codeFenced:l(v),codeFencedFence:b,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:k,codeIndented:l(y),codeText:l(R),codeTextData:k,data:k,definition:l(),definitionDestinationString:T,definitionLabelString:C,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(N),hardBreakTrailing:l(N),htmlFlow:l(W),htmlFlowData:k,htmlText:l(M),htmlTextData:k,image:l(O),label:G,labelText:S,lineEnding:$,link:l(_),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:X,resourceDestinationString:g,resourceTitleString:me,resource:xe,setextHeading:l(z),setextHeadingLineSequence:j,setextHeadingText:x,strong:l(),thematicBreak:l()}};Xl(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(E){let F={type:"root",children:[]};const K={stack:[F],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:f,data:n},oe=[];let ce=-1;for(;++ce<E.length;)if(E[ce][1].type==="listOrdered"||E[ce][1].type==="listUnordered")if(E[ce][0]==="enter")oe.push(ce);else{const Fe=oe.pop();ce=i(E,Fe,ce)}for(ce=-1;++ce<E.length;){const Fe=t[E[ce][0]];Gl.call(Fe,E[ce][1].type)&&Fe[E[ce][1].type].call(Object.assign({sliceSerialize:E[ce][2].sliceSerialize},K),E[ce][1])}if(K.tokenStack.length>0){const Fe=K.tokenStack[K.tokenStack.length-1];(Fe[1]||na).call(K,void 0,Fe[0])}for(F.position={start:Rt(E.length>0?E[0][1].start:{line:1,column:1,offset:0}),end:Rt(E.length>0?E[E.length-2][1].end:{line:1,column:1,offset:0})},ce=-1;++ce<t.transforms.length;)F=t.transforms[ce](F)||F;return F}function i(E,F,K){let oe=F-1,ce=-1,Fe=!1,je,it,Zt,At;for(;++oe<=K;){const Oe=E[oe];switch(Oe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Oe[0]==="enter"?ce++:ce--,At=void 0;break}case"lineEndingBlank":{Oe[0]==="enter"&&(je&&!At&&!ce&&!Zt&&(Zt=oe),At=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:At=void 0}if(!ce&&Oe[0]==="enter"&&Oe[1].type==="listItemPrefix"||ce===-1&&Oe[0]==="exit"&&(Oe[1].type==="listUnordered"||Oe[1].type==="listOrdered")){if(je){let Tt=oe;for(it=void 0;Tt--;){const qe=E[Tt];if(qe[1].type==="lineEnding"||qe[1].type==="lineEndingBlank"){if(qe[0]==="exit")continue;it&&(E[it][1].type="lineEndingBlank",Fe=!0),qe[1].type="lineEnding",it=Tt}else if(!(qe[1].type==="linePrefix"||qe[1].type==="blockQuotePrefix"||qe[1].type==="blockQuotePrefixWhitespace"||qe[1].type==="blockQuoteMarker"||qe[1].type==="listItemIndent"))break}Zt&&(!it||Zt<it)&&(je._spread=!0),je.end=Object.assign({},it?E[it][1].start:Oe[1].end),E.splice(it||oe,0,["exit",je,Oe[2]]),oe++,K++}if(Oe[1].type==="listItemPrefix"){const Tt={type:"listItem",_spread:!1,start:Object.assign({},Oe[1].start),end:void 0};je=Tt,E.splice(oe,0,["enter",Tt,Oe[2]]),oe++,K++,Zt=void 0,At=!0}}}return E[F][1]._spread=Fe,K}function o(E,F){return K;function K(oe){a.call(this,E(oe),oe),F&&F.call(this,oe)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(E,F,K){this.stack[this.stack.length-1].children.push(E),this.stack.push(E),this.tokenStack.push([F,K||void 0]),E.position={start:Rt(F.start),end:void 0}}function l(E){return F;function F(K){E&&E.call(this,K),u.call(this,K)}}function u(E,F){const K=this.stack.pop(),oe=this.tokenStack.pop();if(oe)oe[0].type!==E.type&&(F?F.call(this,E,oe[0]):(oe[1]||na).call(this,E,oe[0]));else throw new Error("Cannot close `"+E.type+"` ("+On({start:E.start,end:E.end})+"): it’s not open");K.position.end=Rt(E.end)}function f(){return bo(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(E){if(this.data.expectingFirstListItemValue){const F=this.stack[this.stack.length-2];F.start=Number.parseInt(this.sliceSerialize(E),10),this.data.expectingFirstListItemValue=void 0}}function d(){const E=this.resume(),F=this.stack[this.stack.length-1];F.lang=E}function p(){const E=this.resume(),F=this.stack[this.stack.length-1];F.meta=E}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const E=this.resume(),F=this.stack[this.stack.length-1];F.value=E.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const E=this.resume(),F=this.stack[this.stack.length-1];F.value=E.replace(/(\r?\n|\r)$/g,"")}function C(E){const F=this.resume(),K=this.stack[this.stack.length-1];K.label=F,K.identifier=at(this.sliceSerialize(E)).toLowerCase()}function w(){const E=this.resume(),F=this.stack[this.stack.length-1];F.title=E}function T(){const E=this.resume(),F=this.stack[this.stack.length-1];F.url=E}function I(E){const F=this.stack[this.stack.length-1];if(!F.depth){const K=this.sliceSerialize(E).length;F.depth=K}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function j(E){const F=this.stack[this.stack.length-1];F.depth=this.sliceSerialize(E).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function H(E){const K=this.stack[this.stack.length-1].children;let oe=K[K.length-1];(!oe||oe.type!=="text")&&(oe=Yr(),oe.position={start:Rt(E.start),end:void 0},K.push(oe)),this.stack.push(oe)}function k(E){const F=this.stack.pop();F.value+=this.sliceSerialize(E),F.position.end=Rt(E.end)}function $(E){const F=this.stack[this.stack.length-1];if(this.data.atHardBreak){const K=F.children[F.children.length-1];K.position.end=Rt(E.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(F.type)&&(H.call(this,E),k.call(this,E))}function N(){this.data.atHardBreak=!0}function W(){const E=this.resume(),F=this.stack[this.stack.length-1];F.value=E}function M(){const E=this.resume(),F=this.stack[this.stack.length-1];F.value=E}function R(){const E=this.resume(),F=this.stack[this.stack.length-1];F.value=E}function _(){const E=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";E.type+="Reference",E.referenceType=F,delete E.url,delete E.title}else delete E.identifier,delete E.label;this.data.referenceType=void 0}function O(){const E=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";E.type+="Reference",E.referenceType=F,delete E.url,delete E.title}else delete E.identifier,delete E.label;this.data.referenceType=void 0}function S(E){const F=this.sliceSerialize(E),K=this.stack[this.stack.length-2];K.label=Rv(F),K.identifier=at(F).toLowerCase()}function G(){const E=this.stack[this.stack.length-1],F=this.resume(),K=this.stack[this.stack.length-1];if(this.data.inReference=!0,K.type==="link"){const oe=E.children;K.children=oe}else K.alt=F}function g(){const E=this.resume(),F=this.stack[this.stack.length-1];F.url=E}function me(){const E=this.resume(),F=this.stack[this.stack.length-1];F.title=E}function xe(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function X(E){const F=this.resume(),K=this.stack[this.stack.length-1];K.label=F,K.identifier=at(this.sliceSerialize(E)).toLowerCase(),this.data.referenceType="full"}function re(E){this.data.characterReferenceType=E.type}function de(E){const F=this.sliceSerialize(E),K=this.data.characterReferenceType;let oe;K?(oe=Fl(F,K==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):oe=vo(F);const ce=this.stack[this.stack.length-1];ce.value+=oe}function pe(E){const F=this.stack.pop();F.position.end=Rt(E.end)}function le(E){k.call(this,E);const F=this.stack[this.stack.length-1];F.url=this.sliceSerialize(E)}function Te(E){k.call(this,E);const F=this.stack[this.stack.length-1];F.url="mailto:"+this.sliceSerialize(E)}function Re(){return{type:"blockquote",children:[]}}function He(){return{type:"code",lang:null,meta:null,value:""}}function We(){return{type:"inlineCode",value:""}}function Wr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Sn(){return{type:"emphasis",children:[]}}function Yn(){return{type:"heading",depth:0,children:[]}}function Cn(){return{type:"break"}}function Ct(){return{type:"html",value:""}}function Gn(){return{type:"image",title:null,url:"",alt:null}}function Qe(){return{type:"link",title:null,url:"",children:[]}}function Xn(E){return{type:"list",ordered:E.type==="listOrdered",start:null,spread:E._spread,children:[]}}function qr(E){return{type:"listItem",spread:E._spread,checked:null,children:[]}}function Le(){return{type:"paragraph",children:[]}}function Et(){return{type:"strong",children:[]}}function Yr(){return{type:"text",value:""}}function Gr(){return{type:"thematicBreak"}}}function Rt(e){return{line:e.line,column:e.column,offset:e.offset}}function Xl(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Xl(e,r):Nv(e,r)}}function Nv(e,t){let n;for(n in t)if(Gl.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 na(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+On({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+On({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+On({start:t.start,end:t.end})+") is still open")}function B0(e){const t=this;t.parser=n;function n(r){return Pv(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Lv(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 $v(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
24
|
-
`}]}function Mv(e,t){const n=t.value?t.value+`
|
|
25
|
-
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function Fv(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jv(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Zv(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=_n(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Bv(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 Vv(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Jl(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Uv(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Jl(e,t);const i={src:_n(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Hv(e,t){const n={src:_n(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 Wv(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 qv(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Jl(e,t);const i={href:_n(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Yv(e,t){const n={href:_n(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 Gv(e,t,n){const r=e.all(t),i=n?Xv(n):Kl(t),o={},s=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&s.push({type:"text",value:`
|
|
26
|
-
`}),f.type==="element"&&f.tagName==="p"&&!i?s.push(...f.children):s.push(f)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
27
|
-
`});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function Xv(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=Kl(n[r])}return t}function Kl(e){const t=e.spread;return t??e.children.length>1}function Jv(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 s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Kv(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Qv(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function ex(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tx(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=po(t.children[1]),l=Rl(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function nx(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<a;){const c=t.children[l],h={},d=s?s[l]:void 0;d&&(h.align=d);let p={type:"element",tagName:o,properties:h,children:[]};c&&(p.children=e.all(c),e.patch(c,p),p=e.applyData(c,p)),u.push(p)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function rx(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ra=9,ia=32;function ix(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(oa(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(oa(t.slice(i),i>0,!1)),o.join("")}function oa(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===ra||o===ia;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===ra||o===ia;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ox(e,t){const n={type:"text",value:ix(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function sx(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const ax={blockquote:Lv,break:$v,code:Mv,delete:Fv,emphasis:jv,footnoteReference:Zv,heading:Bv,html:Vv,imageReference:Uv,image:Hv,inlineCode:Wv,linkReference:qv,link:Yv,listItem:Gv,list:Jv,paragraph:Kv,root:Qv,strong:ex,table:tx,tableCell:rx,tableRow:nx,text:ox,thematicBreak:sx,toml:ur,yaml:ur,definition:ur,footnoteDefinition:ur};function ur(){}const Ql=-1,Vr=0,Dn=1,Ir=2,ko=3,wo=4,_o=5,So=6,eu=7,tu=8,sa=typeof self=="object"?self:globalThis,lx=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case Vr:case Ql:return n(s,i);case Dn:{const a=n([],i);for(const l of s)a.push(r(l));return a}case Ir:{const a=n({},i);for(const[l,u]of s)a[r(l)]=r(u);return a}case ko:return n(new Date(s),i);case wo:{const{source:a,flags:l}=s;return n(new RegExp(a,l),i)}case _o:{const a=n(new Map,i);for(const[l,u]of s)a.set(r(l),r(u));return a}case So:{const a=n(new Set,i);for(const l of s)a.add(r(l));return a}case eu:{const{name:a,message:l}=s;return n(new sa[a](l),i)}case tu:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return n(new DataView(a),s)}}return n(new sa[o](s),i)};return r},aa=e=>lx(new Map,e)(0),en="",{toString:ux}={},{keys:cx}=Object,In=e=>{const t=typeof e;if(t!=="object"||!e)return[Vr,t];const n=ux.call(e).slice(8,-1);switch(n){case"Array":return[Dn,en];case"Object":return[Ir,en];case"Date":return[ko,en];case"RegExp":return[wo,en];case"Map":return[_o,en];case"Set":return[So,en];case"DataView":return[Dn,n]}return n.includes("Array")?[Dn,n]:n.includes("Error")?[eu,n]:[Ir,n]},cr=([e,t])=>e===Vr&&(t==="function"||t==="symbol"),fx=(e,t,n,r)=>{const i=(s,a)=>{const l=r.push(s)-1;return n.set(a,l),l},o=s=>{if(n.has(s))return n.get(s);let[a,l]=In(s);switch(a){case Vr:{let f=s;switch(l){case"bigint":a=tu,f=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);f=null;break;case"undefined":return i([Ql],s)}return i([a,f],s)}case Dn:{if(l){let h=s;return l==="DataView"?h=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(s)),i([l,[...h]],s)}const f=[],c=i([a,f],s);for(const h of s)f.push(o(h));return c}case Ir:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const f=[],c=i([a,f],s);for(const h of cx(s))(e||!cr(In(s[h])))&&f.push([o(h),o(s[h])]);return c}case ko:return i([a,s.toISOString()],s);case wo:{const{source:f,flags:c}=s;return i([a,{source:f,flags:c}],s)}case _o:{const f=[],c=i([a,f],s);for(const[h,d]of s)(e||!(cr(In(h))||cr(In(d))))&&f.push([o(h),o(d)]);return c}case So:{const f=[],c=i([a,f],s);for(const h of s)(e||!cr(In(h)))&&f.push(o(h));return c}}const{message:u}=s;return i([a,{name:l,message:u}],s)};return o},la=(e,{json:t,lossy:n}={})=>{const r=[];return fx(!(t||n),!!t,new Map,r)(e),r},Rr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?aa(la(e,t)):structuredClone(e):(e,t)=>aa(la(e,t));function dx(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 hx(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function px(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||dx,r=e.options.footnoteBackLabel||hx,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),h=_n(c.toLowerCase());let d=0;const p=[],b=e.footnoteCounts.get(c);for(;b!==void 0&&++d<=b;){p.length>0&&p.push({type:"text",value:" "});let C=typeof n=="string"?n:n(l,d);typeof C=="string"&&(C={type:"text",value:C}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,d),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const v=f[f.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const C=v.children[v.children.length-1];C&&C.type==="text"?C.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...p)}else f.push(...p);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(u,y),a.push(y)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Rr(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
28
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
29
|
-
`}]}}const Ur=(function(e){if(e==null)return bx;if(typeof e=="function")return Hr(e);if(typeof e=="object")return Array.isArray(e)?mx(e):gx(e);if(typeof e=="string")return yx(e);throw new Error("Expected function, string, or object as test")});function mx(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ur(e[n]);return Hr(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function gx(e){const t=e;return Hr(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function yx(e){return Hr(t);function t(n){return n&&n.type===e}}function Hr(e){return t;function t(n,r,i){return!!(vx(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function bx(){return!0}function vx(e){return e!==null&&typeof e=="object"&&"type"in e}const nu=[],xx=!0,Wi=!1,kx="skip";function ru(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Ur(i),s=r?-1:1;a(e,void 0,[])();function a(l,u,f){const c=l&&typeof l=="object"?l:{};if(typeof c.type=="string"){const d=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return h;function h(){let d=nu,p,b,v;if((!t||o(l,u,f[f.length-1]||void 0))&&(d=wx(n(l,f)),d[0]===Wi))return d;if("children"in l&&l.children){const y=l;if(y.children&&d[0]!==kx)for(b=(r?y.children.length:-1)+s,v=f.concat(y);b>-1&&b<y.children.length;){const C=y.children[b];if(p=a(C,b,v)(),p[0]===Wi)return p;b=typeof p[1]=="number"?p[1]:b+s}}return d}}}function wx(e){return Array.isArray(e)?e:typeof e=="number"?[xx,e]:e==null?nu:[e]}function iu(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),ru(e,o,a,i);function a(l,u){const f=u[u.length-1],c=f?f.children.indexOf(l):void 0;return s(l,c,f)}}const qi={}.hasOwnProperty,_x={};function Sx(e,t){const n=t||_x,r=new Map,i=new Map,o=new Map,s={...ax,...n.handlers},a={all:u,applyData:Ex,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:n,patch:Cx,wrap:Tx};return iu(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,h=String(f.identifier).toUpperCase();c.has(h)||c.set(h,f)}}),a;function l(f,c){const h=f.type,d=a.handlers[h];if(qi.call(a.handlers,h)&&d)return d(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in f){const{children:b,...v}=f,y=Rr(v);return y.children=a.all(f),y}return Rr(f)}return(a.options.unknownHandler||Ax)(a,f,c)}function u(f){const c=[];if("children"in f){const h=f.children;let d=-1;for(;++d<h.length;){const p=a.one(h[d],f);if(p){if(d&&h[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=ua(p.value)),!Array.isArray(p)&&p.type==="element")){const b=p.children[0];b&&b.type==="text"&&(b.value=ua(b.value))}Array.isArray(p)?c.push(...p):c.push(p)}}}return c}}function Cx(e,t){e.position&&(t.position=my(e))}function Ex(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,Rr(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Ax(e,t){const n=t.data||{},r="value"in t&&!(qi.call(n,"hProperties")||qi.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 Tx(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 ua(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ca(e,t){const n=Sx(e,t),r=n.one(e,void 0),i=px(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
33
|
-
`},i),o}function V0(e,t){return e&&"run"in e?async function(n,r){const i=ca(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ca(n,{file:r,...e||t})}}function fa(e){if(e)throw e}var fi,da;function zx(){if(da)return fi;da=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},o=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!c)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},s=function(u,f){n&&f.name==="__proto__"?n(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},a=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return fi=function l(){var u,f,c,h,d,p,b=arguments[0],v=1,y=arguments.length,C=!1;for(typeof b=="boolean"&&(C=b,b=arguments[1]||{},v=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});v<y;++v)if(u=arguments[v],u!=null)for(f in u)c=a(b,f),h=a(u,f),b!==h&&(C&&h&&(o(h)||(d=i(h)))?(d?(d=!1,p=c&&i(c)?c:[]):p=c&&o(c)?c:{},s(b,{name:f,newValue:l(C,p,h)})):typeof h<"u"&&s(b,{name:f,newValue:h}));return b},fi}var Ix=zx();const di=_a(Ix);function Yi(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 Rx(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(l,...u){const f=e[++o];let c=-1;if(l){s(l);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?Ox(f,a)(...u):s(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 Ox(e,t){let n;return r;function r(...s){const a=e.length>s.length;let l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){const f=u;if(a&&n)throw f;return i(f)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){n||(n=!0,t(s,...a))}function o(s){i(null,s)}}const ft={basename:Px,dirname:Dx,extname:Nx,join:Lx,sep:"/"};function Px(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');qn(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Dx(e){if(qn(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 Nx(e){qn(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Lx(...e){let t=-1,n;for(;++t<e.length;)qn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":$x(n)}function $x(e){qn(e);const t=e.codePointAt(0)===47;let n=Mx(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Mx(e,t){let n="",r=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return n}function qn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Fx={cwd:jx};function jx(){return"/"}function Gi(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Zx(e){if(typeof e=="string")e=new URL(e);else if(!Gi(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 Bx(e)}function Bx(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 hi=["history","path","basename","stem","extname","dirname"];class Vx{constructor(t){let n;t?Gi(t)?n={path:t}:typeof t=="string"||Ux(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Fx.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<hi.length;){const o=hi[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)hi.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ft.basename(this.path):void 0}set basename(t){mi(t,"basename"),pi(t,"basename"),this.path=ft.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ft.dirname(this.path):void 0}set dirname(t){ha(this.basename,"dirname"),this.path=ft.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ft.extname(this.path):void 0}set extname(t){if(pi(t,"extname"),ha(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=ft.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Gi(t)&&(t=Zx(t)),mi(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ft.basename(this.path,this.extname):void 0}set stem(t){mi(t,"stem"),pi(t,"stem"),this.path=ft.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 Ne(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 pi(e,t){if(e&&e.includes(ft.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ft.sep+"`")}function mi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ha(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Ux(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Hx=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Wx={}.hasOwnProperty;class Co extends Hx{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=Rx()}copy(){const t=new Co;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(di(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(bi("data",this.frozen),this.namespace[t]=n,this):Wx.call(this.namespace,t)&&this.namespace[t]||void 0:t?(bi("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=fr(t),r=this.parser||this.Parser;return gi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),gi("process",this.parser||this.Parser),yi("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const a=fr(t),l=r.parse(a);r.run(l,a,function(f,c,h){if(f||!c||!h)return u(f);const d=c,p=r.stringify(d,h);Yx(p)?h.value=p:h.result=p,u(f,h)});function u(f,c){f||!c?s(f):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),gi("processSync",this.parser||this.Parser),yi("processSync",this.compiler||this.Compiler),this.process(t,i),ma("processSync","process",n),r;function i(o,s){n=!0,fa(o),r=s}}run(t,n,r){pa(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,a){const l=fr(n);i.run(t,l,u);function u(f,c,h){const d=c||t;f?a(f):s?s(d):r(void 0,d,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),ma("runSync","run",r),i;function o(s,a){fa(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=fr(n),i=this.compiler||this.Compiler;return yi("stringify",i),pa(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(bi("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;l(f,c)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(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");a(u.plugins),u.settings&&(i.settings=di(!0,i.settings,u.settings))}function a(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,f){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===u){h=c;break}if(h===-1)r.push([u,...f]);else if(f.length>0){let[d,...p]=f;const b=r[h][1];Yi(b)&&Yi(d)&&(d=di(!0,b,d)),r[h]=[u,d,...p]}}}}const U0=new Co().freeze();function gi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function yi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function bi(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 pa(e){if(!Yi(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ma(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function fr(e){return qx(e)?e:new Vx(e)}function qx(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Yx(e){return typeof e=="string"||Gx(e)}function Gx(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function ga(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 Xx(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Jx(e,t,n){const i=Ur((n||{}).ignore||[]),o=Kx(t);let s=-1;for(;++s<o.length;)ru(e,"text",a);function a(u,f){let c=-1,h;for(;++c<f.length;){const d=f[c],p=h?h.children:void 0;if(i(d,p?p.indexOf(d):void 0,h))return;h=d}if(h)return l(u,f)}function l(u,f){const c=f[f.length-1],h=o[s][0],d=o[s][1];let p=0;const v=c.children.indexOf(u);let y=!1,C=[];h.lastIndex=0;let w=h.exec(u.value);for(;w;){const T=w.index,I={index:w.index,input:w.input,stack:[...f,u]};let x=d(...w,I);if(typeof x=="string"&&(x=x.length>0?{type:"text",value:x}:void 0),x===!1?h.lastIndex=T+1:(p!==T&&C.push({type:"text",value:u.value.slice(p,T)}),Array.isArray(x)?C.push(...x):x&&C.push(x),p=T+w[0].length,y=!0),!h.global)break;w=h.exec(u.value)}return y?(p<u.value.length&&C.push({type:"text",value:u.value.slice(p)}),c.children.splice(v,1,...C)):C=[u],v+C.length}}function Kx(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([Qx(i[0]),ek(i[1])])}return t}function Qx(e){return typeof e=="string"?new RegExp(Xx(e),"g"):e}function ek(e){return typeof e=="function"?e:function(){return e}}const vi="phrasing",xi=["autolink","link","image","label"];function tk(){return{transforms:[lk],enter:{literalAutolink:rk,literalAutolinkEmail:ki,literalAutolinkHttp:ki,literalAutolinkWww:ki},exit:{literalAutolink:ak,literalAutolinkEmail:sk,literalAutolinkHttp:ik,literalAutolinkWww:ok}}}function nk(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:vi,notInConstruct:xi},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:vi,notInConstruct:xi},{character:":",before:"[ps]",after:"\\/",inConstruct:vi,notInConstruct:xi}]}}function rk(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ki(e){this.config.enter.autolinkProtocol.call(this,e)}function ik(e){this.config.exit.autolinkProtocol.call(this,e)}function ok(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function sk(e){this.config.exit.autolinkEmail.call(this,e)}function ak(e){this.exit(e)}function lk(e){Jx(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,uk],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ck]],{ignore:["link","linkReference"]})}function uk(e,t,n,r,i){let o="";if(!ou(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!fk(n)))return!1;const s=dk(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function ck(e,t,n,r){return!ou(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function fk(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 dk(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=ga(e,"(");let o=ga(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function ou(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||qt(n)||Zr(n))&&(!t||n!==47)}su.peek=kk;function hk(){this.buffer()}function pk(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function mk(){this.buffer()}function gk(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function yk(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=at(this.sliceSerialize(e)).toLowerCase(),n.label=t}function bk(e){this.exit(e)}function vk(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=at(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xk(e){this.exit(e)}function kk(){return"["}function su(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),s(),o+=i.move("]"),o}function wk(){return{enter:{gfmFootnoteCallString:hk,gfmFootnoteCall:pk,gfmFootnoteDefinitionLabelString:mk,gfmFootnoteDefinition:gk},exit:{gfmFootnoteCallString:yk,gfmFootnoteCall:bk,gfmFootnoteDefinitionLabelString:vk,gfmFootnoteDefinition:xk}}}function _k(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:su},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,s){const a=o.createTracker(s);let l=a.move("[^");const u=o.enter("footnoteDefinition"),f=o.enter("label");return l+=a.move(o.safe(o.associationId(r),{before:l,after:"]"})),f(),l+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),l+=a.move((t?`
|
|
34
|
-
`:" ")+o.indentLines(o.containerFlow(r,a.current()),t?au:Sk))),u(),l}}function Sk(e,t,n){return t===0?e:au(e,t,n)}function au(e,t,n){return(n?"":" ")+e}const Ck=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];lu.peek=Ik;function Ek(){return{canContainEols:["delete"],enter:{strikethrough:Tk},exit:{strikethrough:zk}}}function Ak(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ck}],handlers:{delete:lu}}}function Tk(e){this.enter({type:"delete",children:[]},e)}function zk(e){this.exit(e)}function lu(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function Ik(){return"~"}function Rk(e){return e.length}function Ok(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Rk,o=[],s=[],a=[],l=[];let u=0,f=-1;for(;++f<e.length;){const b=[],v=[];let y=-1;for(e[f].length>u&&(u=e[f].length);++y<e[f].length;){const C=Pk(e[f][y]);if(n.alignDelimiters!==!1){const w=i(C);v[y]=w,(l[y]===void 0||w>l[y])&&(l[y]=w)}b.push(C)}s[f]=b,a[f]=v}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)o[c]=ya(r[c]);else{const b=ya(r);for(;++c<u;)o[c]=b}c=-1;const h=[],d=[];for(;++c<u;){const b=o[c];let v="",y="";b===99?(v=":",y=":"):b===108?v=":":b===114&&(y=":");let C=n.alignDelimiters===!1?1:Math.max(1,l[c]-v.length-y.length);const w=v+"-".repeat(C)+y;n.alignDelimiters!==!1&&(C=v.length+C+y.length,C>l[c]&&(l[c]=C),d[c]=C),h[c]=w}s.splice(1,0,h),a.splice(1,0,d),f=-1;const p=[];for(;++f<s.length;){const b=s[f],v=a[f];c=-1;const y=[];for(;++c<u;){const C=b[c]||"";let w="",T="";if(n.alignDelimiters!==!1){const I=l[c]-(v[c]||0),x=o[c];x===114?w=" ".repeat(I):x===99?I%2?(w=" ".repeat(I/2+.5),T=" ".repeat(I/2-.5)):(w=" ".repeat(I/2),T=w):T=" ".repeat(I)}n.delimiterStart!==!1&&!c&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&C==="")&&(n.delimiterStart!==!1||c)&&y.push(" "),n.alignDelimiters!==!1&&y.push(w),y.push(C),n.alignDelimiters!==!1&&y.push(T),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&y.push("|")}p.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return p.join(`
|
|
35
|
-
`)}function Pk(e){return e==null?"":String(e)}function ya(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 Dk(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),Nk);return i(),s}function Nk(e,t,n){return">"+(n?"":" ")+e}function Lk(e,t){return ba(e,t.inConstruct,!0)&&!ba(e,t.notInConstruct,!1)}function ba(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 va(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
36
|
-
`&&Lk(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
37
|
-
`}function $k(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}function Mk(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 Fk(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 jk(e,t,n,r){const i=Fk(n),o=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(Mk(e,n)){const c=n.enter("codeIndented"),h=n.indentLines(o,Zk);return c(),h}const a=n.createTracker(r),l=i.repeat(Math.max($k(o,i)+1,3)),u=n.enter("codeFenced");let f=a.move(l);if(e.lang){const c=n.enter(`codeFencedLang${s}`);f+=a.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${s}`);f+=a.move(" "),f+=a.move(n.safe(e.meta,{before:f,after:`
|
|
38
|
-
`,encode:["`"],...a.current()})),c()}return f+=a.move(`
|
|
39
|
-
`),o&&(f+=a.move(o+`
|
|
40
|
-
`)),f+=a.move(l),u(),f}function Zk(e,t,n){return(n?"":" ")+e}function Eo(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 Bk(e,t,n,r){const i=Eo(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let a=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("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
41
|
-
`,...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),s(),u}function Vk(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 Bn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Or(e,t,n){const r=yn(e),i=yn(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}}uu.peek=Uk;function uu(e,t,n,r){const i=Vk(n),o=n.enter("emphasis"),s=n.createTracker(r),a=s.move(i);let l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const u=l.charCodeAt(0),f=Or(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(l=Bn(u)+l.slice(1));const c=l.charCodeAt(l.length-1),h=Or(r.after.charCodeAt(0),c,i);h.inside&&(l=l.slice(0,-1)+Bn(c));const d=s.move(i);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+l+d}function Uk(e,t,n){return n.options.emphasis||"*"}function Hk(e,t){let n=!1;return iu(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Wi}),!!((!e.depth||e.depth<3)&&bo(e)&&(t.options.setext||n))}function Wk(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(Hk(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),h=n.containerPhrasing(e,{...o.current(),before:`
|
|
42
|
-
`,after:`
|
|
43
|
-
`});return c(),f(),h+`
|
|
44
|
-
`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
|
|
45
|
-
`))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");o.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
46
|
-
`,...o.current()});return/^[\t ]/.test(u)&&(u=Bn(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),a(),u}cu.peek=qk;function cu(e){return e.value||""}function qk(){return"<"}fu.peek=Yk;function fu(e,t,n,r){const i=Eo(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let a=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("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),s(),u}function Yk(){return"!"}du.peek=Gk;function du(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const u=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=f,o(),i==="full"||!u||u!==c?l+=a.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function Gk(){return"!"}hu.peek=Xk;function hu(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const s=n.unsafe[o],a=n.compilePattern(s);let l;if(s.atBreak)for(;l=a.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 Xk(){return"`"}function pu(e,t){const n=bo(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))}mu.peek=Jk;function mu(e,t,n,r){const i=Eo(n),o=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(pu(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let c=s.move("<");return c+=s.move(n.containerPhrasing(e,{before:c,after:">",...s.current()})),c+=s.move(">"),a(),n.stack=f,c}a=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),a(),u}function Jk(e,t,n){return pu(e,n)?"<":"["}gu.peek=Kk;function gu(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=f,o(),i==="full"||!u||u!==c?l+=a.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function Kk(){return"["}function Ao(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 Qk(e){const t=Ao(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 ew(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 yu(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 tw(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?ew(n):Ao(n);const a=e.ordered?s==="."?")":".":Qk(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),yu(n)===s&&f){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),u}function nw(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 rw(e,t,n,r){const i=nw(n);let o=n.bulletCurrent||Ao(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),f);return l(),u;function f(c,h,d){return h?(d?"":" ".repeat(s))+c:(d?o:o+" ".repeat(s-o.length))+c}}function iw(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s}const ow=Ur(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function sw(e,t,n,r){return(e.children.some(function(s){return ow(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function aw(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}bu.peek=lw;function bu(e,t,n,r){const i=aw(n),o=n.enter("strong"),s=n.createTracker(r),a=s.move(i+i);let l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const u=l.charCodeAt(0),f=Or(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(l=Bn(u)+l.slice(1));const c=l.charCodeAt(l.length-1),h=Or(r.after.charCodeAt(0),c,i);h.inside&&(l=l.slice(0,-1)+Bn(c));const d=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+l+d}function lw(e,t,n){return n.options.strong||"*"}function uw(e,t,n,r){return n.safe(e.value,r)}function cw(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 fw(e,t,n){const r=(yu(n)+(n.options.ruleSpaces?" ":"")).repeat(cw(n));return n.options.ruleSpaces?r.slice(0,-1):r}const vu={blockquote:Dk,break:va,code:jk,definition:Bk,emphasis:uu,hardBreak:va,heading:Wk,html:cu,image:fu,imageReference:du,inlineCode:hu,link:mu,linkReference:gu,list:tw,listItem:rw,paragraph:iw,root:sw,strong:bu,text:uw,thematicBreak:fw};function dw(){return{enter:{table:hw,tableData:xa,tableHeader:xa,tableRow:mw},exit:{codeText:gw,table:pw,tableData:wi,tableHeader:wi,tableRow:wi}}}function hw(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function pw(e){this.exit(e),this.data.inTable=void 0}function mw(e){this.enter({type:"tableRow",children:[]},e)}function wi(e){this.exit(e)}function xa(e){this.enter({type:"tableCell",children:[]},e)}function gw(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,yw));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function yw(e,t){return t==="|"?t:e}function bw(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
47
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:s,tableCell:l,tableRow:a}};function s(d,p,b,v){return u(f(d,b,v),d.align)}function a(d,p,b,v){const y=c(d,b,v),C=u([y]);return C.slice(0,C.indexOf(`
|
|
48
|
-
`))}function l(d,p,b,v){const y=b.enter("tableCell"),C=b.enter("phrasing"),w=b.containerPhrasing(d,{...v,before:o,after:o});return C(),y(),w}function u(d,p){return Ok(d,{align:p,alignDelimiters:r,padding:n,stringLength:i})}function f(d,p,b){const v=d.children;let y=-1;const C=[],w=p.enter("table");for(;++y<v.length;)C[y]=c(v[y],p,b);return w(),C}function c(d,p,b){const v=d.children;let y=-1;const C=[],w=p.enter("tableRow");for(;++y<v.length;)C[y]=l(v[y],d,p,b);return w(),C}function h(d,p,b){let v=vu.inlineCode(d,p,b);return b.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function vw(){return{exit:{taskListCheckValueChecked:ka,taskListCheckValueUnchecked:ka,paragraph:kw}}}function xw(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ww}}}function ka(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function kw(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,s;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){s=a;break}}s===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 ww(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(s);let l=vu.listItem(e,t,n,{...r,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(f){return f+s}}function H0(){return[tk(),wk(),Ek(),dw(),vw()]}function W0(e){return{extensions:[nk(),_k(e),Ak(),bw(e),xw()]}}const _w={tokenize:zw,partial:!0},xu={tokenize:Iw,partial:!0},ku={tokenize:Rw,partial:!0},wu={tokenize:Ow,partial:!0},Sw={tokenize:Pw,partial:!0},_u={name:"wwwAutolink",tokenize:Aw,previous:Cu},Su={name:"protocolAutolink",tokenize:Tw,previous:Eu},St={name:"emailAutolink",tokenize:Ew,previous:Au},bt={};function Cw(){return{text:bt}}let Ut=48;for(;Ut<123;)bt[Ut]=St,Ut++,Ut===58?Ut=65:Ut===91&&(Ut=97);bt[43]=St;bt[45]=St;bt[46]=St;bt[95]=St;bt[72]=[St,Su];bt[104]=[St,Su];bt[87]=[St,_u];bt[119]=[St,_u];function Ew(e,t,n){const r=this;let i,o;return s;function s(c){return!Xi(c)||!Au.call(r,r.previous)||To(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Xi(c)?(e.consume(c),a):c===64?(e.consume(c),l):n(c)}function l(c){return c===46?e.check(Sw,f,u)(c):c===45||c===95||De(c)?(o=!0,e.consume(c),l):f(c)}function u(c){return e.consume(c),i=!0,l}function f(c){return o&&i&&$e(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function Aw(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!Cu.call(r,r.previous)||To(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(_w,e.attempt(xu,e.attempt(ku,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function Tw(e,t,n){const r=this;let i="",o=!1;return s;function s(c){return(c===72||c===104)&&Eu.call(r,r.previous)&&!To(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if($e(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),l}return n(c)}function l(c){return c===47?(e.consume(c),o?u:(o=!0,l)):n(c)}function u(c){return c===null||zr(c)||ye(c)||qt(c)||Zr(c)?n(c):e.attempt(xu,e.attempt(ku,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function zw(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),o):n(s)}function o(s){return s===null?n(s):t(s)}}function Iw(e,t,n){let r,i,o;return s;function s(u){return u===46||u===95?e.check(wu,l,a)(u):u===null||ye(u)||qt(u)||u!==45&&Zr(u)?l(u):(o=!0,e.consume(u),s)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),s}function l(u){return i||r||!o?n(u):t(u)}}function Rw(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(wu,t,o)(s):s===null||ye(s)||qt(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&r++,e.consume(s),i}}function Ow(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||ye(a)||qt(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||ye(a)||qt(a)?t(a):r(a)}function o(a){return $e(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),r):$e(a)?(e.consume(a),s):n(a)}}function Pw(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return De(o)?n(o):t(o)}}function Cu(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ye(e)}function Eu(e){return!$e(e)}function Au(e){return!(e===47||Xi(e))}function Xi(e){return e===43||e===45||e===46||e===95||De(e)}function To(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 Dw={tokenize:Bw,partial:!0};function Nw(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Fw,continuation:{tokenize:jw},exit:Zw}},text:{91:{name:"gfmFootnoteCall",tokenize:Mw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Lw,resolveTo:$w}}}}function Lw(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return n(l);const u=at(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function $w(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function Mw(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,s;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(o>999||c===93&&!s||c===null||c===91||ye(c))return n(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(at(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ye(c)||(s=!0),o++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function Fw(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0,a;return l;function l(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(p)}function f(p){if(s>999||p===93&&!a||p===null||p===91||ye(p))return n(p);if(p===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return o=at(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return ye(p)||(a=!0),s++,e.consume(p),p===92?c:f}function c(p){return p===91||p===92||p===93?(e.consume(p),s++,f):f(p)}function h(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),i.includes(o)||i.push(o),fe(e,d,"gfmFootnoteDefinitionWhitespace")):n(p)}function d(p){return t(p)}}function jw(e,t,n){return e.check(Wn,t,e.attempt(Dw,t,n))}function Zw(e){e.exit("gfmFootnoteDefinition")}function Bw(e,t,n){const r=this;return fe(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):n(o)}}function Vw(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},c={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},h=[["enter",f,a],["enter",s[u][1],a],["exit",s[u][1],a],["enter",c,a]],d=a.parser.constructs.insideSpan.null;d&&Ke(h,h.length,0,Br(d,s.slice(u+1,l),a)),Ke(h,h.length,0,[["exit",c,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",f,a]]),Ke(s,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function o(s,a,l){const u=this.previous,f=this.events;let c=0;return h;function h(p){return u===126&&f[f.length-1][1].type!=="characterEscape"?l(p):(s.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const b=yn(u);if(p===126)return c>1?l(p):(s.consume(p),c++,d);if(c<2&&!n)return l(p);const v=s.exit("strikethroughSequenceTemporary"),y=yn(p);return v._open=!y||y===2&&!!b,v._close=!b||b===2&&!!y,a(p)}}}class Uw{constructor(){this.map=[]}add(t,n,r){Hw(this,t,n,r)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function Hw(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 Ww(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function qw(){return{flow:{null:{name:"table",tokenize:Yw,resolveAll:Gw}}}}function Yw(e,t,n){const r=this;let i=0,o=0,s;return a;function a(k){let $=r.events.length-1;for(;$>-1;){const M=r.events[$][1].type;if(M==="lineEnding"||M==="linePrefix")$--;else break}const N=$>-1?r.events[$][1].type:null,W=N==="tableHead"||N==="tableRow"?x:l;return W===x&&r.parser.lazy[r.now().line]?n(k):W(k)}function l(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(s=!0,o+=1),f(k)}function f(k){return k===null?n(k):J(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),d):n(k):ae(k)?fe(e,f,"whitespace")(k):(o+=1,s&&(s=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),s=!0,f):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||ye(k)?(e.exit("data"),f(k)):(e.consume(k),k===92?h:c)}function h(k){return k===92||k===124?(e.consume(k),c):c(k)}function d(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),s=!1,ae(k)?fe(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):p(k))}function p(k){return k===45||k===58?v(k):k===124?(s=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),b):I(k)}function b(k){return ae(k)?fe(e,v,"whitespace")(k):v(k)}function v(k){return k===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),y):k===45?(o+=1,y(k)):k===null||J(k)?T(k):I(k)}function y(k){return k===45?(e.enter("tableDelimiterFiller"),C(k)):I(k)}function C(k){return k===45?(e.consume(k),C):k===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(k))}function w(k){return ae(k)?fe(e,T,"whitespace")(k):T(k)}function T(k){return k===124?p(k):k===null||J(k)?!s||i!==o?I(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):I(k)}function I(k){return n(k)}function x(k){return e.enter("tableRow"),j(k)}function j(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),j):k===null||J(k)?(e.exit("tableRow"),t(k)):ae(k)?fe(e,j,"whitespace")(k):(e.enter("data"),z(k))}function z(k){return k===null||k===124||ye(k)?(e.exit("data"),j(k)):(e.consume(k),k===92?H:z)}function H(k){return k===92||k===124?(e.consume(k),z):z(k)}}function Gw(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,f,c;const h=new Uw;for(;++n<e.length;){const d=e[n],p=d[1];d[0]==="enter"?p.type==="tableHead"?(a=!1,l!==0&&(wa(h,t,l,u,f),f=void 0,l=0),u={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(n,0,[["enter",u,t]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(n,0,[["enter",f,t]])),i=p.type==="tableDelimiterRow"?2:f?3:1):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],c=dr(h,t,o,i,void 0,c),o=[0,0,0,0]),s[2]=n)):p.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(s[0]=s[1],c=dr(h,t,o,i,void 0,c)),o=s,s=[o[1],n,0,0])):p.type==="tableHead"?(a=!0,l=n):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=n,o[1]!==0?(s[0]=s[1],c=dr(h,t,o,i,n,c)):s[1]!==0&&(c=dr(h,t,s,i,n,c)),i=0):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&wa(h,t,l,u,f),h.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=Ww(t.events,n))}return e}function dr(e,t,n,r,i,o){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},nn(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=nn(t.events,n[1]);if(o={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=nn(t.events,n[2]),f=nn(t.events,n[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const h=t.events[n[2]],d=t.events[n[3]];if(h[1].end=Object.assign({},d[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const p=n[2]+1,b=n[3]-n[2]-1;e.add(p,b,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},nn(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function wa(e,t,n,r,i){const o=[],s=nn(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function nn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Xw={name:"tasklistCheck",tokenize:Kw};function Jw(){return{text:{91:Xw}}}function Kw(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return ye(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return J(l)?t(l):ae(l)?e.check({tokenize:Qw},t,n)(l):n(l)}}function Qw(e,t,n){return fe(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function q0(e){return Ml([Cw(),Nw(),Vw(e),qw(),Jw()])}export{w0 as $,Sr as A,T0 as B,S0 as C,A0 as D,U0 as E,B0 as F,V0 as G,F0 as H,iu as I,j0 as J,Z0 as K,r0 as L,a0 as M,u0 as N,Qo as O,i0 as P,o0 as Q,s0 as R,Ld as S,Ph as T,Eh as U,Vx as V,c0 as W,l0 as X,_0 as Y,Gp as Z,$m as _,d0 as a,k0 as a0,b0 as b,g0 as c,h0 as d,H0 as e,W0 as f,q0 as g,z0 as h,R0 as i,O0 as j,P0 as k,x0 as l,N0 as m,p0 as n,y0 as o,L0 as p,M0 as q,v0 as r,f0 as s,$0 as t,m0 as u,D0 as v,I0 as w,n0 as x,E0 as y,C0 as z};
|