UNPKG

@kaiachain/kaia-chat-ui

Version:

A customizable chat UI component for by Kaia

31 lines (29 loc) 151 kB
(function(qe,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],te):(qe=typeof globalThis<"u"?globalThis:qe||self,te(qe["kaia-chat-ui"]={},qe.React))})(this,function(qe,te){"use strict";function vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cn={exports:{}},un={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Et;function ii(){if(Et)return un;Et=1;var e=te,n=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,u){var s,f={},g=null,p=null;u!==void 0&&(g=""+u),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(p=c.ref);for(s in c)r.call(c,s)&&!l.hasOwnProperty(s)&&(f[s]=c[s]);if(a&&a.defaultProps)for(s in c=a.defaultProps,c)f[s]===void 0&&(f[s]=c[s]);return{$$typeof:n,type:a,key:g,ref:p,props:f,_owner:i.current}}return un.Fragment=t,un.jsx=o,un.jsxs=o,un}var sn={},It;function li(){if(It)return sn;It=1;var e={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */return e.NODE_ENV!=="production"&&function(){var n=te,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),C=Symbol.iterator,O="@@iterator";function k(h){if(h===null||typeof h!="object")return null;var b=C&&h[C]||h[O];return typeof b=="function"?b:null}var P=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(h){{for(var b=arguments.length,T=new Array(b>1?b-1:0),F=1;F<b;F++)T[F-1]=arguments[F];W("error",h,T)}}function W(h,b,T){{var F=P.ReactDebugCurrentFrame,K=F.getStackAddendum();K!==""&&(b+="%s",T=T.concat([K]));var Q=T.map(function(Y){return String(Y)});Q.unshift("Warning: "+b),Function.prototype.apply.call(console[h],console,Q)}}var Z=!1,x=!1,U=!1,X=!1,B=!1,H;H=Symbol.for("react.module.reference");function R(h){return!!(typeof h=="string"||typeof h=="function"||h===i||h===o||B||h===l||h===s||h===f||X||h===S||Z||x||U||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===g||h.$$typeof===a||h.$$typeof===c||h.$$typeof===u||h.$$typeof===H||h.getModuleId!==void 0))}function A(h,b,T){var F=h.displayName;if(F)return F;var K=b.displayName||b.name||"";return K!==""?T+"("+K+")":T}function _(h){return h.displayName||"Context"}function I(h){if(h==null)return null;if(typeof h.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case i:return"Fragment";case r:return"Portal";case o:return"Profiler";case l:return"StrictMode";case s:return"Suspense";case f:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case c:var b=h;return _(b)+".Consumer";case a:var T=h;return _(T._context)+".Provider";case u:return A(h,h.render,"ForwardRef");case g:var F=h.displayName||null;return F!==null?F:I(h.type)||"Memo";case p:{var K=h,Q=K._payload,Y=K._init;try{return I(Y(Q))}catch{return null}}}return null}var L=Object.assign,G=0,re,ce,we,d,pe,Ce,m;function he(){}he.__reactDisabledLog=!0;function Re(){{if(G===0){re=console.log,ce=console.info,we=console.warn,d=console.error,pe=console.group,Ce=console.groupCollapsed,m=console.groupEnd;var h={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}G++}}function le(){{if(G--,G===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},h,{value:re}),info:L({},h,{value:ce}),warn:L({},h,{value:we}),error:L({},h,{value:d}),group:L({},h,{value:pe}),groupCollapsed:L({},h,{value:Ce}),groupEnd:L({},h,{value:m})})}G<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Te=P.ReactCurrentDispatcher,de;function M(h,b,T){{if(de===void 0)try{throw Error()}catch(K){var F=K.stack.trim().match(/\n( *(at )?)/);de=F&&F[1]||""}return` `+de+h}}var ie=!1,me;{var Fe=typeof WeakMap=="function"?WeakMap:Map;me=new Fe}function Me(h,b){if(!h||ie)return"";{var T=me.get(h);if(T!==void 0)return T}var F;ie=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Q;Q=Te.current,Te.current=null,Re();try{if(b){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(ve){F=ve}Reflect.construct(h,[],Y)}else{try{Y.call()}catch(ve){F=ve}h.call(Y.prototype)}}else{try{throw Error()}catch(ve){F=ve}h()}}catch(ve){if(ve&&F&&typeof ve.stack=="string"){for(var q=ve.stack.split(` `),ye=F.stack.split(` `),oe=q.length-1,ue=ye.length-1;oe>=1&&ue>=0&&q[oe]!==ye[ue];)ue--;for(;oe>=1&&ue>=0;oe--,ue--)if(q[oe]!==ye[ue]){if(oe!==1||ue!==1)do if(oe--,ue--,ue<0||q[oe]!==ye[ue]){var _e=` `+q[oe].replace(" at new "," at ");return h.displayName&&_e.includes("<anonymous>")&&(_e=_e.replace("<anonymous>",h.displayName)),typeof h=="function"&&me.set(h,_e),_e}while(oe>=1&&ue>=0);break}}}finally{ie=!1,Te.current=Q,le(),Error.prepareStackTrace=K}var an=h?h.displayName||h.name:"",Je=an?M(an):"";return typeof h=="function"&&me.set(h,Je),Je}function rn(h,b,T){return Me(h,!1)}function ln(h){var b=h.prototype;return!!(b&&b.isReactComponent)}function Ye(h,b,T){if(h==null)return"";if(typeof h=="function")return Me(h,ln(h));if(typeof h=="string")return M(h);switch(h){case s:return M("Suspense");case f:return M("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case u:return rn(h.render);case g:return Ye(h.type,b,T);case p:{var F=h,K=F._payload,Q=F._init;try{return Ye(Q(K),b,T)}catch{}}}return""}var Ve=Object.prototype.hasOwnProperty,Ln={},bn=P.ReactDebugCurrentFrame;function $e(h){if(h){var b=h._owner,T=Ye(h.type,h._source,b?b.type:null);bn.setExtraStackFrame(T)}else bn.setExtraStackFrame(null)}function gt(h,b,T,F,K){{var Q=Function.call.bind(Ve);for(var Y in h)if(Q(h,Y)){var q=void 0;try{if(typeof h[Y]!="function"){var ye=Error((F||"React class")+": "+T+" type `"+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[Y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ye.name="Invariant Violation",ye}q=h[Y](b,Y,F,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(oe){q=oe}q&&!(q instanceof Error)&&($e(K),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",F||"React class",T,Y,typeof q),$e(null)),q instanceof Error&&!(q.message in Ln)&&(Ln[q.message]=!0,$e(K),E("Failed %s type: %s",T,q.message),$e(null))}}}var yt=Array.isArray;function wn(h){return yt(h)}function xt(h){{var b=typeof Symbol=="function"&&Symbol.toStringTag,T=b&&h[Symbol.toStringTag]||h.constructor.name||"Object";return T}}function kt(h){try{return y(h),!1}catch{return!0}}function y(h){return""+h}function v(h){if(kt(h))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(h)),y(h)}var z=P.ReactCurrentOwner,V={key:!0,ref:!0,__self:!0,__source:!0},J,Se;function Ne(h){if(Ve.call(h,"ref")){var b=Object.getOwnPropertyDescriptor(h,"ref").get;if(b&&b.isReactWarning)return!1}return h.ref!==void 0}function Ae(h){if(Ve.call(h,"key")){var b=Object.getOwnPropertyDescriptor(h,"key").get;if(b&&b.isReactWarning)return!1}return h.key!==void 0}function Xe(h,b){typeof h.ref=="string"&&z.current}function Ze(h,b){{var T=function(){J||(J=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};T.isReactWarning=!0,Object.defineProperty(h,"key",{get:T,configurable:!0})}}function ge(h,b){{var T=function(){Se||(Se=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};T.isReactWarning=!0,Object.defineProperty(h,"ref",{get:T,configurable:!0})}}var He=function(h,b,T,F,K,Q,Y){var q={$$typeof:t,type:h,key:b,ref:T,props:Y,_owner:Q};return q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q};function Le(h,b,T,F,K){{var Q,Y={},q=null,ye=null;T!==void 0&&(v(T),q=""+T),Ae(b)&&(v(b.key),q=""+b.key),Ne(b)&&(ye=b.ref,Xe(b,K));for(Q in b)Ve.call(b,Q)&&!V.hasOwnProperty(Q)&&(Y[Q]=b[Q]);if(h&&h.defaultProps){var oe=h.defaultProps;for(Q in oe)Y[Q]===void 0&&(Y[Q]=oe[Q])}if(q||ye){var ue=typeof h=="function"?h.displayName||h.name||"Unknown":h;q&&Ze(Y,ue),ye&&ge(Y,ue)}return He(h,q,ye,K,F,z.current,Y)}}var bt=P.ReactCurrentOwner,Kr=P.ReactDebugCurrentFrame;function on(h){if(h){var b=h._owner,T=Ye(h.type,h._source,b?b.type:null);Kr.setExtraStackFrame(T)}else Kr.setExtraStackFrame(null)}var wt;wt=!1;function Ct(h){return typeof h=="object"&&h!==null&&h.$$typeof===t}function Gr(){{if(bt.current){var h=I(bt.current.type);if(h)return` Check the render method of \``+h+"`."}return""}}function zu(h){return""}var Qr={};function Fu(h){{var b=Gr();if(!b){var T=typeof h=="string"?h:h.displayName||h.name;T&&(b=` Check the top-level render call using <`+T+">.")}return b}}function ei(h,b){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var T=Fu(b);if(Qr[T])return;Qr[T]=!0;var F="";h&&h._owner&&h._owner!==bt.current&&(F=" It was passed a child from "+I(h._owner.type)+"."),on(h),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,F),on(null)}}function ni(h,b){{if(typeof h!="object")return;if(wn(h))for(var T=0;T<h.length;T++){var F=h[T];Ct(F)&&ei(F,b)}else if(Ct(h))h._store&&(h._store.validated=!0);else if(h){var K=k(h);if(typeof K=="function"&&K!==h.entries)for(var Q=K.call(h),Y;!(Y=Q.next()).done;)Ct(Y.value)&&ei(Y.value,b)}}}function Mu(h){{var b=h.type;if(b==null||typeof b=="string")return;var T;if(typeof b=="function")T=b.propTypes;else if(typeof b=="object"&&(b.$$typeof===u||b.$$typeof===g))T=b.propTypes;else return;if(T){var F=I(b);gt(T,h.props,"prop",F,h)}else if(b.PropTypes!==void 0&&!wt){wt=!0;var K=I(b);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",K||"Unknown")}typeof b.getDefaultProps=="function"&&!b.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nu(h){{for(var b=Object.keys(h.props),T=0;T<b.length;T++){var F=b[T];if(F!=="children"&&F!=="key"){on(h),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),on(null);break}}h.ref!==null&&(on(h),E("Invalid attribute `ref` supplied to `React.Fragment`."),on(null))}}var ti={};function ri(h,b,T,F,K,Q){{var Y=R(h);if(!Y){var q="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ye=zu();ye?q+=ye:q+=Gr();var oe;h===null?oe="null":wn(h)?oe="array":h!==void 0&&h.$$typeof===t?(oe="<"+(I(h.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof h,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,q)}var ue=Le(h,b,T,K,Q);if(ue==null)return ue;if(Y){var _e=b.children;if(_e!==void 0)if(F)if(wn(_e)){for(var an=0;an<_e.length;an++)ni(_e[an],h);Object.freeze&&Object.freeze(_e)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ni(_e,h)}if(Ve.call(b,"key")){var Je=I(h),ve=Object.keys(b).filter(function(qu){return qu!=="key"}),St=ve.length>0?"{key: someKey, "+ve.join(": ..., ")+": ...}":"{key: someKey}";if(!ti[Je+St]){var Hu=ve.length>0?"{"+ve.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,St,Je,Hu,Je),ti[Je+St]=!0}}return h===i?Nu(ue):Mu(ue),ue}}function ju(h,b,T){return ri(h,b,T,!0)}function Bu(h,b,T){return ri(h,b,T,!1)}var Uu=Bu,Vu=ju;sn.Fragment=i,sn.jsx=Uu,sn.jsxs=Vu}(),sn}var Tt;function oi(){if(Tt)return Cn.exports;Tt=1;var e={};return e.NODE_ENV==="production"?Cn.exports=ii():Cn.exports=li(),Cn.exports}var N=oi();const se=[];for(let e=0;e<256;++e)se.push((e+256).toString(16).slice(1));function ai(e,n=0){return(se[e[n+0]]+se[e[n+1]]+se[e[n+2]]+se[e[n+3]]+"-"+se[e[n+4]]+se[e[n+5]]+"-"+se[e[n+6]]+se[e[n+7]]+"-"+se[e[n+8]]+se[e[n+9]]+"-"+se[e[n+10]]+se[e[n+11]]+se[e[n+12]]+se[e[n+13]]+se[e[n+14]]+se[e[n+15]]).toLowerCase()}let On;const ui=new Uint8Array(16);function si(){if(!On){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");On=crypto.getRandomValues.bind(crypto)}return On(ui)}const Pt={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ci(e,n,t){var i;if(Pt.randomUUID&&!e)return Pt.randomUUID();e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??si();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ai(r)}function Yu(){}function $u(){}function fi(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const pi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,di={};function _t(e,n){return(di.jsx?hi:pi).test(e)}const mi=/[ \t\n\f\r]/g;function gi(e){return typeof e=="object"?e.type==="text"?Rt(e.value):!1:Rt(e)}function Rt(e){return e.replace(mi,"")===""}class cn{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}cn.prototype.normal={},cn.prototype.property={},cn.prototype.space=void 0;function At(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new cn(t,r,n)}function Dn(e){return e.toLowerCase()}class xe{constructor(n,t){this.attribute=t,this.property=n}}xe.prototype.attribute="",xe.prototype.booleanish=!1,xe.prototype.boolean=!1,xe.prototype.commaOrSpaceSeparated=!1,xe.prototype.commaSeparated=!1,xe.prototype.defined=!1,xe.prototype.mustUseProperty=!1,xe.prototype.number=!1,xe.prototype.overloadedBoolean=!1,xe.prototype.property="",xe.prototype.spaceSeparated=!1,xe.prototype.space=void 0;let yi=0;const j=We(),ae=We(),Lt=We(),w=We(),ee=We(),Ke=We(),Ee=We();function We(){return 2**++yi}const zn=Object.freeze(Object.defineProperty({__proto__:null,boolean:j,booleanish:ae,commaOrSpaceSeparated:Ee,commaSeparated:Ke,number:w,overloadedBoolean:Lt,spaceSeparated:ee},Symbol.toStringTag,{value:"Module"})),Fn=Object.keys(zn);class Mn extends xe{constructor(n,t,r,i){let l=-1;if(super(n,t),Ot(this,"space",i),typeof r=="number")for(;++l<Fn.length;){const o=Fn[l];Ot(this,Fn[l],(r&zn[o])===zn[o])}}}Mn.prototype.defined=!0;function Ot(e,n,t){t&&(e[n]=t)}function Ge(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Mn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[Dn(r)]=r,t[Dn(l.attribute)]=r}return new cn(n,t,e.space)}const Dt=Ge({properties:{ariaActiveDescendant:null,ariaAtomic:ae,ariaAutoComplete:null,ariaBusy:ae,ariaChecked:ae,ariaColCount:w,ariaColIndex:w,ariaColSpan:w,ariaControls:ee,ariaCurrent:null,ariaDescribedBy:ee,ariaDetails:null,ariaDisabled:ae,ariaDropEffect:ee,ariaErrorMessage:null,ariaExpanded:ae,ariaFlowTo:ee,ariaGrabbed:ae,ariaHasPopup:null,ariaHidden:ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ee,ariaLevel:w,ariaLive:null,ariaModal:ae,ariaMultiLine:ae,ariaMultiSelectable:ae,ariaOrientation:null,ariaOwns:ee,ariaPlaceholder:null,ariaPosInSet:w,ariaPressed:ae,ariaReadOnly:ae,ariaRelevant:null,ariaRequired:ae,ariaRoleDescription:ee,ariaRowCount:w,ariaRowIndex:w,ariaRowSpan:w,ariaSelected:ae,ariaSetSize:w,ariaSort:null,ariaValueMax:w,ariaValueMin:w,ariaValueNow:w,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function zt(e,n){return n in e?e[n]:n}function Ft(e,n){return zt(e,n.toLowerCase())}const xi=Ge({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ke,acceptCharset:ee,accessKey:ee,action:null,allow:null,allowFullScreen:j,allowPaymentRequest:j,allowUserMedia:j,alt:null,as:null,async:j,autoCapitalize:null,autoComplete:ee,autoFocus:j,autoPlay:j,blocking:ee,capture:null,charSet:null,checked:j,cite:null,className:ee,cols:w,colSpan:null,content:null,contentEditable:ae,controls:j,controlsList:ee,coords:w|Ke,crossOrigin:null,data:null,dateTime:null,decoding:null,default:j,defer:j,dir:null,dirName:null,disabled:j,download:Lt,draggable:ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:j,formTarget:null,headers:ee,height:w,hidden:j,high:w,href:null,hrefLang:null,htmlFor:ee,httpEquiv:ee,id:null,imageSizes:null,imageSrcSet:null,inert:j,inputMode:null,integrity:null,is:null,isMap:j,itemId:null,itemProp:ee,itemRef:ee,itemScope:j,itemType:ee,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:j,low:w,manifest:null,max:null,maxLength:w,media:null,method:null,min:null,minLength:w,multiple:j,muted:j,name:null,nonce:null,noModule:j,noValidate:j,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:j,optimum:w,pattern:null,ping:ee,placeholder:null,playsInline:j,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:j,referrerPolicy:null,rel:ee,required:j,reversed:j,rows:w,rowSpan:w,sandbox:ee,scope:null,scoped:j,seamless:j,selected:j,shadowRootClonable:j,shadowRootDelegatesFocus:j,shadowRootMode:null,shape:null,size:w,sizes:null,slot:null,span:w,spellCheck:ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:w,step:null,style:null,tabIndex:w,target:null,title:null,translate:null,type:null,typeMustMatch:j,useMap:null,value:ae,width:w,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ee,axis:null,background:null,bgColor:null,border:w,borderColor:null,bottomMargin:w,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:j,declare:j,event:null,face:null,frame:null,frameBorder:null,hSpace:w,leftMargin:w,link:null,longDesc:null,lowSrc:null,marginHeight:w,marginWidth:w,noResize:j,noHref:j,noShade:j,noWrap:j,object:null,profile:null,prompt:null,rev:null,rightMargin:w,rules:null,scheme:null,scrolling:ae,standby:null,summary:null,text:null,topMargin:w,valueType:null,version:null,vAlign:null,vLink:null,vSpace:w,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:j,disableRemotePlayback:j,prefix:null,property:null,results:w,security:null,unselectable:null},space:"html",transform:Ft}),ki=Ge({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:Ee,accentHeight:w,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:w,amplitude:w,arabicForm:null,ascent:w,attributeName:null,attributeType:null,azimuth:w,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:w,by:null,calcMode:null,capHeight:w,className:ee,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:w,diffuseConstant:w,direction:null,display:null,dur:null,divisor:w,dominantBaseline:null,download:j,dx:null,dy:null,edgeMode:null,editable:null,elevation:w,enableBackground:null,end:null,event:null,exponent:w,externalResourcesRequired:null,fill:null,fillOpacity:w,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:Ke,g2:Ke,glyphName:Ke,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:w,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:w,horizOriginX:w,horizOriginY:w,id:null,ideographic:w,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:w,k:w,k1:w,k2:w,k3:w,k4:w,kernelMatrix:Ee,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:w,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:w,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:w,overlineThickness:w,paintOrder:null,panose1:null,path:null,pathLength:w,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ee,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:w,pointsAtY:w,pointsAtZ:w,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ee,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ee,rev:Ee,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ee,requiredFeatures:Ee,requiredFonts:Ee,requiredFormats:Ee,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:w,specularExponent:w,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:w,strikethroughThickness:w,string:null,stroke:null,strokeDashArray:Ee,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:w,strokeOpacity:w,strokeWidth:null,style:null,surfaceScale:w,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ee,tabIndex:w,tableValues:null,target:null,targetX:w,targetY:w,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ee,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:w,underlineThickness:w,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:w,values:null,vAlphabetic:w,vMathematical:w,vectorEffect:null,vHanging:w,vIdeographic:w,version:null,vertAdvY:w,vertOriginX:w,vertOriginY:w,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:w,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:zt}),Mt=Ge({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Nt=Ge({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ft}),jt=Ge({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),bi={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"},wi=/[A-Z]/g,Bt=/-[a-z]/g,Ci=/^data[-\w.:]+$/i;function Si(e,n){const t=Dn(n);let r=n,i=xe;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Ci.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(Bt,Ei);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!Bt.test(l)){let o=l.replace(wi,vi);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Mn}return new i(r,n)}function vi(e){return"-"+e.toLowerCase()}function Ei(e){return e.charAt(1).toUpperCase()}const Ii=At([Dt,xi,Mt,Nt,jt],"html"),Nn=At([Dt,ki,Mt,Nt,jt],"svg");function Ti(e){return e.join(" ").trim()}var Qe={},jn,Ut;function Pi(){if(Ut)return jn;Ut=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,c=` `,u="/",s="*",f="",g="comment",p="declaration";jn=function(C,O){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];O=O||{};var k=1,P=1;function E(_){var I=_.match(n);I&&(k+=I.length);var L=_.lastIndexOf(c);P=~L?_.length-L:P+_.length}function W(){var _={line:k,column:P};return function(I){return I.position=new Z(_),X(),I}}function Z(_){this.start=_,this.end={line:k,column:P},this.source=O.source}Z.prototype.content=C;function x(_){var I=new Error(O.source+":"+k+":"+P+": "+_);if(I.reason=_,I.filename=O.source,I.line=k,I.column=P,I.source=C,!O.silent)throw I}function U(_){var I=_.exec(C);if(I){var L=I[0];return E(L),C=C.slice(L.length),I}}function X(){U(t)}function B(_){var I;for(_=_||[];I=H();)I!==!1&&_.push(I);return _}function H(){var _=W();if(!(u!=C.charAt(0)||s!=C.charAt(1))){for(var I=2;f!=C.charAt(I)&&(s!=C.charAt(I)||u!=C.charAt(I+1));)++I;if(I+=2,f===C.charAt(I-1))return x("End of comment missing");var L=C.slice(2,I-2);return P+=2,E(L),C=C.slice(I),P+=2,_({type:g,comment:L})}}function R(){var _=W(),I=U(r);if(I){if(H(),!U(i))return x("property missing ':'");var L=U(l),G=_({type:p,property:S(I[0].replace(e,f)),value:L?S(L[0].replace(e,f)):f});return U(o),G}}function A(){var _=[];B(_);for(var I;I=R();)I!==!1&&(_.push(I),B(_));return _}return X(),A()};function S(C){return C?C.replace(a,f):f}return jn}var Vt;function _i(){if(Vt)return Qe;Vt=1;var e=Qe&&Qe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.default=t;var n=e(Pi());function t(r,i){var l=null;if(!r||typeof r!="string")return l;var o=(0,n.default)(r),a=typeof i=="function";return o.forEach(function(c){if(c.type==="declaration"){var u=c.property,s=c.value;a?i(u,s,c):s&&(l=l||{},l[u]=s)}}),l}return Qe}var fn={},Ht;function Ri(){if(Ht)return fn;Ht=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||t.test(u)||e.test(u)},o=function(u,s){return s.toUpperCase()},a=function(u,s){return"".concat(s,"-")},c=function(u,s){return s===void 0&&(s={}),l(u)?u:(u=u.toLowerCase(),s.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,o))};return fn.camelCase=c,fn}var pn,qt;function Ai(){if(qt)return pn;qt=1;var e=pn&&pn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(_i()),t=Ri();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(a,c){a&&c&&(o[(0,t.camelCase)(a,l)]=c)}),o}return r.default=r,pn=r,pn}var Li=Ai();const Oi=vt(Li),Wt=Yt("end"),Bn=Yt("start");function Yt(e){return n;function n(t){const r=t&&t.position&&t.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 Di(e){const n=Bn(e),t=Wt(e);if(n&&t)return{start:n,end:t}}function hn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?$t(e.position):"start"in e||"end"in e?$t(e):"line"in e||"column"in e?Un(e):""}function Un(e){return Xt(e&&e.line)+":"+Xt(e&&e.column)}function $t(e){return Un(e&&e.start)+"-"+Un(e&&e.end)}function Xt(e){return e&&typeof e=="number"?e:1}class fe extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?l.ruleId=r:(l.source=r.slice(0,c),l.ruleId=r.slice(c+1))}if(!l.place&&l.ancestors&&l.ancestors){const c=l.ancestors[l.ancestors.length-1];c&&(l.place=c.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.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=hn(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}fe.prototype.file="",fe.prototype.name="",fe.prototype.reason="",fe.prototype.message="",fe.prototype.stack="",fe.prototype.column=void 0,fe.prototype.line=void 0,fe.prototype.ancestors=void 0,fe.prototype.cause=void 0,fe.prototype.fatal=void 0,fe.prototype.place=void 0,fe.prototype.ruleId=void 0,fe.prototype.source=void 0;const Vn={}.hasOwnProperty,zi=new Map,Fi=/[A-Z]/g,Mi=new Set(["table","tbody","thead","tfoot","tr"]),Ni=new Set(["td","th"]),Zt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ji(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=$i(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Yi(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Nn:Ii,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=Jt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Jt(e,n,t){if(n.type==="element")return Bi(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Ui(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Hi(e,n,t);if(n.type==="mdxjsEsm")return Vi(e,n);if(n.type==="root")return qi(e,n,t);if(n.type==="text")return Wi(e,n)}function Bi(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Nn,e.schema=i),e.ancestors.push(n);const l=Gt(e,n.tagName,!1),o=Xi(e,n);let a=qn(e,n);return Mi.has(n.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!gi(c):!0})),Kt(e,o,l,n),Hn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Ui(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}dn(e,n.position)}function Vi(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);dn(e,n.position)}function Hi(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Nn,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Gt(e,n.name,!0),o=Zi(e,n),a=qn(e,n);return Kt(e,o,l,n),Hn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function qi(e,n,t){const r={};return Hn(r,qn(e,n)),e.create(n,e.Fragment,r,t)}function Wi(e,n){return n.value}function Kt(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Hn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Yi(e,n,t){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?t:n;return a?u(l,o,a):u(l,o)}}function $i(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),c=Bn(r);return n(i,l,o,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Xi(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Vn.call(n.properties,i)){const l=Ji(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Ni.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Zi(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else dn(e,n.position);else{const i=r.name;let l;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,l=e.evaluater.evaluateExpression(a.expression)}else dn(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function qn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:zi;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const c=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(c){const u=i.get(c)||0;o=c+"-"+u,i.set(c,u+1)}}const a=Jt(e,l,o);a!==void 0&&t.push(a)}return t}function Ji(e,n,t){const r=Si(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?fi(t):Ti(t)),r.property==="style"){let i=typeof t=="object"?t:Ki(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Gi(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?bi[r.property]||r.property:r.attribute,t]}}function Ki(e,n){try{return Oi(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new fe("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=Zt+"#cannot-parse-style-attribute",i}}function Gt(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const a=_t(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=_t(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Vn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);dn(e)}function dn(e,n){const t=new fe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Zt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Gi(e){const n={};let t;for(t in e)Vn.call(e,t)&&(n[Qi(t)]=e[t]);return n}function Qi(e){let n=e.replace(Fi,el);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function el(e){return"-"+e.toLowerCase()}const Wn={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"]},nl={};function tl(e,n){const t=nl,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Qt(e,r,i)}function Qt(e,n,t){if(rl(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return er(e.children,n,t)}return Array.isArray(e)?er(e,n,t):""}function er(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Qt(e[i],n,t);return r.join("")}function rl(e){return!!(e&&typeof e=="object")}const nr=document.createElement("i");function Yn(e){const n="&"+e+";";nr.innerHTML=n;const t=nr.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Oe(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function Pe(e,n){return e.length>0?(Oe(e,e.length,0,n),e):n}const tr={}.hasOwnProperty;function il(e){const n={};let t=-1;for(;++t<e.length;)ll(n,e[t]);return n}function ll(e,n){let t;for(t in n){const i=(tr.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){tr.call(i,o)||(i[o]=[]);const a=l[o];ol(i[o],Array.isArray(a)?a:a?[a]:[])}}}function ol(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);Oe(e,0,0,r)}function rr(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function en(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const De=je(/[A-Za-z]/),Ie=je(/[\dA-Za-z]/),al=je(/[#-'*+\--9=?A-Z^-~]/);function $n(e){return e!==null&&(e<32||e===127)}const Xn=je(/\d/),ul=je(/[\dA-Fa-f]/),sl=je(/[!-/:-@[-`{-~]/);function D(e){return e!==null&&e<-2}function ke(e){return e!==null&&(e<0||e===32)}function $(e){return e===-2||e===-1||e===32}const cl=je(new RegExp("\\p{P}|\\p{S}","u")),fl=je(/\s/);function je(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function nn(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&Ie(e.charCodeAt(t+1))&&Ie(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function ne(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(c){return $(c)?(e.enter(t),a(c)):n(c)}function a(c){return $(c)&&l++<i?(e.consume(c),a):(e.exit(t),n(c))}}const pl={tokenize:hl};function hl(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ne(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const c=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=c),t=c,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return D(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const dl={tokenize:ml},ir={tokenize:gl};function ml(e){const n=this,t=[];let r=0,i,l,o;return a;function a(E){if(r<t.length){const W=t[r];return n.containerState=W[1],e.attempt(W[0].continuation,c,u)(E)}return u(E)}function c(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&P();const W=n.events.length;let Z=W,x;for(;Z--;)if(n.events[Z][0]==="exit"&&n.events[Z][1].type==="chunkFlow"){x=n.events[Z][1].end;break}k(r);let U=W;for(;U<n.events.length;)n.events[U][1].end={...x},U++;return Oe(n.events,Z+1,0,n.events.slice(W)),n.events.length=U,u(E)}return a(E)}function u(E){if(r===t.length){if(!i)return g(E);if(i.currentConstruct&&i.currentConstruct.concrete)return S(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(ir,s,f)(E)}function s(E){return i&&P(),k(r),g(E)}function f(E){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,S(E)}function g(E){return n.containerState={},e.attempt(ir,p,S)(E)}function p(E){return r++,t.push([n.currentConstruct,n.containerState]),g(E)}function S(E){if(E===null){i&&P(),k(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),C(E)}function C(E){if(E===null){O(e.exit("chunkFlow"),!0),k(0),e.consume(E);return}return D(E)?(e.consume(E),O(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(E),C)}function O(E,W){const Z=n.sliceStream(E);if(W&&Z.push(null),E.previous=l,l&&(l.next=E),l=E,i.defineSkip(E.start),i.write(Z),n.parser.lazy[E.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<o&&(!i.events[x][1].end||i.events[x][1].end.offset>o))return;const U=n.events.length;let X=U,B,H;for(;X--;)if(n.events[X][0]==="exit"&&n.events[X][1].type==="chunkFlow"){if(B){H=n.ev