chainlit 1.1.300rc3__py3-none-any.whl → 1.1.300rc4__py3-none-any.whl
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.
Potentially problematic release.
This version of chainlit might be problematic. Click here for more details.
- chainlit/copilot/dist/index.js +3 -3
- chainlit/frontend/dist/assets/{DailyMotion-863636d0.js → DailyMotion-1a2b7d60.js} +1 -1
- chainlit/frontend/dist/assets/{Facebook-0280efb3.js → Facebook-8422f48c.js} +1 -1
- chainlit/frontend/dist/assets/{FilePlayer-1528f89e.js → FilePlayer-a0a41349.js} +1 -1
- chainlit/frontend/dist/assets/{Kaltura-1f532b59.js → Kaltura-aa7990f2.js} +1 -1
- chainlit/frontend/dist/assets/{Mixcloud-021e94e9.js → Mixcloud-1647b3e4.js} +1 -1
- chainlit/frontend/dist/assets/{Mux-1b653abe.js → Mux-7e57be81.js} +1 -1
- chainlit/frontend/dist/assets/{Preview-de062677.js → Preview-cb89b2c6.js} +1 -1
- chainlit/frontend/dist/assets/{SoundCloud-4f28b9a5.js → SoundCloud-c0d86d55.js} +1 -1
- chainlit/frontend/dist/assets/{Streamable-5f54a48c.js → Streamable-57c43c18.js} +1 -1
- chainlit/frontend/dist/assets/{Twitch-2a06480f.js → Twitch-bed3f21d.js} +1 -1
- chainlit/frontend/dist/assets/{Vidyard-2f2482c5.js → Vidyard-4dd76e44.js} +1 -1
- chainlit/frontend/dist/assets/{Vimeo-57df3f2a.js → Vimeo-93bb5ae2.js} +1 -1
- chainlit/frontend/dist/assets/{Wistia-5b0cff10.js → Wistia-97199246.js} +1 -1
- chainlit/frontend/dist/assets/{YouTube-c07cbcf8.js → YouTube-fe1a7afe.js} +1 -1
- chainlit/frontend/dist/assets/{index-a73a8747.js → index-919bea8f.js} +3 -3
- chainlit/frontend/dist/assets/{index-67745611.css → index-aaf974a9.css} +1 -1
- chainlit/frontend/dist/assets/{react-plotly-1085244e.js → react-plotly-b416b8f9.js} +1 -1
- chainlit/frontend/dist/index.html +2 -2
- {chainlit-1.1.300rc3.dist-info → chainlit-1.1.300rc4.dist-info}/METADATA +2 -2
- {chainlit-1.1.300rc3.dist-info → chainlit-1.1.300rc4.dist-info}/RECORD +23 -23
- {chainlit-1.1.300rc3.dist-info → chainlit-1.1.300rc4.dist-info}/WHEEL +0 -0
- {chainlit-1.1.300rc3.dist-info → chainlit-1.1.300rc4.dist-info}/entry_points.txt +0 -0
|
@@ -336,7 +336,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
336
336
|
*
|
|
337
337
|
* This source code is licensed under the MIT license found in the
|
|
338
338
|
* LICENSE file in the root directory of this source tree.
|
|
339
|
-
*/var xf=x;function B6e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var U6e=typeof Object.is=="function"?Object.is:B6e,$6e=xf.useState,z6e=xf.useEffect,H6e=xf.useLayoutEffect,G6e=xf.useDebugValue;function V6e(e,t){var n=t(),r=$6e({inst:{value:n,getSnapshot:t}}),a=r[0].inst,i=r[1];return H6e(function(){a.value=n,a.getSnapshot=t,L2(a)&&i({inst:a})},[e,n,t]),z6e(function(){return L2(a)&&i({inst:a}),e(function(){L2(a)&&i({inst:a})})},[e]),G6e(n),n}function L2(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!U6e(e,n)}catch{return!0}}function Y6e(e,t){return t()}var q6e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Y6e:V6e;JQ.useSyncExternalStore=xf.useSyncExternalStore!==void 0?xf.useSyncExternalStore:q6e;ZQ.exports=JQ;var W6e=ZQ.exports;const Rc=()=>{},_i=Rc(),M2=Object,yn=e=>e===_i,Tl=e=>typeof e=="function",Wc=(e,t)=>({...e,...t}),j6e=e=>Tl(e.then),X1=new WeakMap;let K6e=0;const Yh=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let a,i;if(M2(e)===e&&!r&&n!=RegExp){if(a=X1.get(e),a)return a;if(a=++K6e+"~",X1.set(e,a),n==Array){for(a="@",i=0;i<e.length;i++)a+=Yh(e[i])+",";X1.set(e,a)}if(n==M2){a="#";const o=M2.keys(e).sort();for(;!yn(i=o.pop());)yn(e[i])||(a+=i+":"+Yh(e[i])+",");X1.set(e,a)}}else a=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},bl=new WeakMap,k2={},Z1={},k5="undefined",gy=typeof window!=k5,a4=typeof document!=k5,Q6e=()=>gy&&typeof window.requestAnimationFrame!=k5,eX=(e,t)=>{const n=bl.get(e);return[()=>!yn(t)&&e.get(t)||k2,r=>{if(!yn(t)){const a=e.get(t);t in Z1||(Z1[t]=a),n[5](t,Wc(a,r),a||k2)}},n[6],()=>!yn(t)&&t in Z1?Z1[t]:!yn(t)&&e.get(t)||k2]};let i4=!0;const X6e=()=>i4,[o4,s4]=gy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Rc,Rc],Z6e=()=>{const e=a4&&document.visibilityState;return yn(e)||e!=="hidden"},J6e=e=>(a4&&document.addEventListener("visibilitychange",e),o4("focus",e),()=>{a4&&document.removeEventListener("visibilitychange",e),s4("focus",e)}),eLe=e=>{const t=()=>{i4=!0,e()},n=()=>{i4=!1};return o4("online",t),o4("offline",n),()=>{s4("online",t),s4("offline",n)}},tLe={isOnline:X6e,isVisible:Z6e},nLe={initFocus:J6e,initReconnect:eLe},y9=!Oe.useId,qh=!gy||"Deno"in window,rLe=e=>Q6e()?window.requestAnimationFrame(e):setTimeout(e,1),P2=qh?x.useEffect:x.useLayoutEffect,F2=typeof navigator<"u"&&navigator.connection,T9=!qh&&F2&&(["slow-2g","2g"].includes(F2.effectiveType)||F2.saveData),P5=e=>{if(Tl(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Yh(e):"",[e,t]};let aLe=0;const l4=()=>++aLe,tX=0,nX=1,rX=2,iLe=3;var hm={__proto__:null,ERROR_REVALIDATE_EVENT:iLe,FOCUS_EVENT:tX,MUTATE_EVENT:rX,RECONNECT_EVENT:nX};async function aX(...e){const[t,n,r,a]=e,i=Wc({populateCache:!0,throwOnError:!0},typeof a=="boolean"?{revalidate:a}:a||{});let o=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const c=i.revalidate!==!1,u=h=>typeof s=="function"?s(h):s!==!1,p=i.throwOnError;if(Tl(n)){const h=n,g=[],E=t.keys();for(const y of E)!/^\$(inf|sub)\$/.test(y)&&h(t.get(y)._k)&&g.push(y);return Promise.all(g.map(f))}return f(n);async function f(h){const[g]=P5(h);if(!g)return;const[E,y]=eX(t,g),[b,S,C,T]=bl.get(t),N=()=>{const W=b[g];return c&&(delete C[g],delete T[g],W&&W[0])?W[0](rX).then(()=>E().data):E().data};if(e.length<3)return N();let A=r,O;const M=l4();S[g]=[M,0];const P=!yn(l),D=E(),$=D.data,V=D._c,Z=yn(V)?$:V;if(P&&(l=Tl(l)?l(Z,$):l,y({data:l,_c:Z})),Tl(A))try{A=A(Z)}catch(W){O=W}if(A&&j6e(A))if(A=await A.catch(W=>{O=W}),M!==S[g][0]){if(O)throw O;return A}else O&&P&&u(O)&&(o=!0,y({data:Z,_c:_i}));if(o&&!O)if(Tl(o)){const W=o(A,Z);y({data:W,error:_i,_c:_i})}else y({data:A,error:_i,_c:_i});if(S[g][1]=l4(),Promise.resolve(N()).then(()=>{y({_c:_i})}),O){if(p)throw O;return}return A}}const C9=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},oLe=(e,t)=>{if(!bl.has(e)){const n=Wc(nLe,t),r={},a=aX.bind(_i,e);let i=Rc;const o={},s=(u,p)=>{const f=o[u]||[];return o[u]=f,f.push(p),()=>f.splice(f.indexOf(p),1)},l=(u,p,f)=>{e.set(u,p);const h=o[u];if(h)for(const g of h)g(p,f)},c=()=>{if(!bl.has(e)&&(bl.set(e,[r,{},{},{},a,l,s]),!qh)){const u=n.initFocus(setTimeout.bind(_i,C9.bind(_i,r,tX))),p=n.initReconnect(setTimeout.bind(_i,C9.bind(_i,r,nX)));i=()=>{u&&u(),p&&p(),bl.delete(e)}}};return c(),[e,a,c,i]}return[e,bl.get(e)[4]]},sLe=(e,t,n,r,a)=>{const i=n.errorRetryCount,o=a.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!yn(i)&&o>i||setTimeout(r,s,a)},lLe=(e,t)=>Yh(e)==Yh(t),[iX,cLe]=oLe(new Map),uLe=Wc({onLoadingSlow:Rc,onSuccess:Rc,onError:Rc,onErrorRetry:sLe,onDiscarded:Rc,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T9?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:T9?5e3:3e3,compare:lLe,isPaused:()=>!1,cache:iX,mutate:cLe,fallback:{}},tLe),dLe=(e,t)=>{const n=Wc(e,t);if(t){const{use:r,fallback:a}=e,{use:i,fallback:o}=t;r&&i&&(n.use=r.concat(i)),a&&o&&(n.fallback=Wc(a,o))}return n},pLe=x.createContext({}),fLe="$inf$",oX=gy&&window.__SWR_DEVTOOLS_USE__,mLe=oX?window.__SWR_DEVTOOLS_USE__:[],hLe=()=>{oX&&(window.__SWR_DEVTOOLS_REACT__=Oe)},gLe=e=>Tl(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],_Le=()=>Wc(uLe,x.useContext(pLe)),ELe=e=>(t,n,r)=>e(t,n&&((...i)=>{const[o]=P5(t),[,,,s]=bl.get(iX);if(o.startsWith(fLe))return n(...i);const l=s[o];return yn(l)?n(...i):(delete s[o],l)}),r),bLe=mLe.concat(ELe),SLe=e=>function(...n){const r=_Le(),[a,i,o]=gLe(n),s=dLe(r,o);let l=e;const{use:c}=s,u=(c||[]).concat(bLe);for(let p=u.length;p--;)l=u[p](l);return l(a,i||s.fetcher||null,s)},vLe=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const a=r.indexOf(n);a>=0&&(r[a]=r[r.length-1],r.pop())}};hLe();const R9=Oe.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),B2={dedupe:!0},yLe=(e,t,n)=>{const{cache:r,compare:a,suspense:i,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:p,keepPreviousData:f}=n,[h,g,E,y]=bl.get(r),[b,S]=P5(e),C=x.useRef(!1),T=x.useRef(!1),N=x.useRef(b),A=x.useRef(t),O=x.useRef(n),M=()=>O.current,P=()=>M().isVisible()&&M().isOnline(),[D,$,V,Z]=eX(r,b),W=x.useRef({}).current,ae=yn(o)?n.fallback[b]:o,he=(Le,we)=>{for(const Pe in W){const Me=Pe;if(Me==="data"){if(!a(Le[Me],we[Me])&&(!yn(Le[Me])||!a(Te,we[Me])))return!1}else if(we[Me]!==Le[Me])return!1}return!0},q=x.useMemo(()=>{const Le=(()=>!b||!t?!1:yn(s)?M().isPaused()||i?!1:yn(l)?!0:l:s)(),we=Ge=>{const at=Wc(Ge);return delete at._k,Le?{isValidating:!0,isLoading:!0,...at}:at},Pe=D(),Me=Z(),lt=we(Pe),it=Pe===Me?lt:we(Me);let nt=lt;return[()=>{const Ge=we(D());return he(Ge,nt)?(nt.data=Ge.data,nt.isLoading=Ge.isLoading,nt.isValidating=Ge.isValidating,nt.error=Ge.error,nt):(nt=Ge,Ge)},()=>it]},[r,b]),G=W6e.useSyncExternalStore(x.useCallback(Le=>V(b,(we,Pe)=>{he(Pe,we)||Le()}),[r,b]),q[0],q[1]),H=!C.current,k=h[b]&&h[b].length>0,ie=G.data,j=yn(ie)?ae:ie,F=G.error,le=x.useRef(j),Te=f?yn(ie)?le.current:ie:j,fe=(()=>k&&!yn(F)?!1:H&&!yn(s)?s:M().isPaused()?!1:i?yn(j)?!1:l:yn(j)||l)(),Ae=!!(b&&t&&H&&fe),Ce=yn(G.isValidating)?Ae:G.isValidating,Ne=yn(G.isLoading)?Ae:G.isLoading,ze=x.useCallback(async Le=>{const we=A.current;if(!b||!we||T.current||M().isPaused())return!1;let Pe,Me,lt=!0;const it=Le||{},nt=!E[b]||!it.dedupe,Ge=()=>y9?!T.current&&b===N.current&&C.current:b===N.current,at={isValidating:!1,isLoading:!1},ct=()=>{$(at)},se=()=>{const ge=E[b];ge&&ge[1]===Me&&delete E[b]},Fe={isValidating:!0};yn(D().data)&&(Fe.isLoading=!0);try{if(nt&&($(Fe),n.loadingTimeout&&yn(D().data)&&setTimeout(()=>{lt&&Ge()&&M().onLoadingSlow(b,n)},n.loadingTimeout),E[b]=[we(S),l4()]),[Pe,Me]=E[b],Pe=await Pe,nt&&setTimeout(se,n.dedupingInterval),!E[b]||E[b][1]!==Me)return nt&&Ge()&&M().onDiscarded(b),!1;at.error=_i;const ge=g[b];if(!yn(ge)&&(Me<=ge[0]||Me<=ge[1]||ge[1]===0))return ct(),nt&&Ge()&&M().onDiscarded(b),!1;const oe=D().data;at.data=a(oe,Pe)?oe:Pe,nt&&Ge()&&M().onSuccess(Pe,b,n)}catch(ge){se();const oe=M(),{shouldRetryOnError:re}=oe;oe.isPaused()||(at.error=ge,nt&&Ge()&&(oe.onError(ge,b,oe),(re===!0||Tl(re)&&re(ge))&&P()&&oe.onErrorRetry(ge,b,oe,J=>{const ue=h[b];ue&&ue[0]&&ue[0](hm.ERROR_REVALIDATE_EVENT,J)},{retryCount:(it.retryCount||0)+1,dedupe:!0})))}return lt=!1,ct(),!0},[b,r]),Ue=x.useCallback((...Le)=>aX(r,N.current,...Le),[]);if(P2(()=>{A.current=t,O.current=n,yn(ie)||(le.current=ie)}),P2(()=>{if(!b)return;const Le=ze.bind(_i,B2);let we=0;const Me=vLe(b,h,(lt,it={})=>{if(lt==hm.FOCUS_EVENT){const nt=Date.now();M().revalidateOnFocus&&nt>we&&P()&&(we=nt+M().focusThrottleInterval,Le())}else if(lt==hm.RECONNECT_EVENT)M().revalidateOnReconnect&&P()&&Le();else{if(lt==hm.MUTATE_EVENT)return ze();if(lt==hm.ERROR_REVALIDATE_EVENT)return ze(it)}});return T.current=!1,N.current=b,C.current=!0,$({_k:S}),fe&&(yn(j)||qh?Le():rLe(Le)),()=>{T.current=!0,Me()}},[b]),P2(()=>{let Le;function we(){const Me=Tl(c)?c(D().data):c;Me&&Le!==-1&&(Le=setTimeout(Pe,Me))}function Pe(){!D().error&&(u||M().isVisible())&&(p||M().isOnline())?ze(B2).then(we):we()}return we(),()=>{Le&&(clearTimeout(Le),Le=-1)}},[c,u,p,b]),x.useDebugValue(Te),i&&yn(j)&&b){if(!y9&&qh)throw new Error("Fallback data is required when using suspense in SSR.");A.current=t,O.current=n,T.current=!1;const Le=y[b];if(!yn(Le)){const we=Ue(Le);R9(we)}if(yn(F)){const we=ze(B2);yn(Te)||(we.status="fulfilled",we.value=!0),R9(we)}else throw F}return{mutate:Ue,get data(){return W.data=!0,Te},get error(){return W.error=!0,F},get isValidating(){return W.isValidating=!0,Ce},get isLoading(){return W.isLoading=!0,Ne}}},TLe=SLe(yLe),CLe=async e=>{const t=await fetch(e);if(!t.ok)throw new Error("Network response was not ok");const n=t.headers.get("content-type");return n&&n.includes("application/json")?t.json():t.text()},sX=e=>TLe(e,CLe),RLe=x.lazy(()=>ja(()=>import("./react-plotly-1085244e.js").then(e=>e.r),[])),xLe=({element:e})=>{const{data:t,error:n,isLoading:r}=sX(e.url||null);if(r)return _.jsx("div",{children:"Loading..."});if(n)return _.jsx("div",{children:"An error occured"});let a;if(t)a=t;else return null;return _.jsx(x.Suspense,{fallback:_.jsx("div",{children:"Loading..."}),children:_.jsx(RLe,{className:`${e.display}-plotly`,data:a.data,layout:a.layout,frames:a.frames,config:a.config,style:{width:"100%",height:"100%",borderRadius:"1rem",overflow:"hidden"},useResizeHandler:!0})})},lX=e=>_.jsx(XQ,{prefix:"Failed to load chart.",children:_.jsx(xLe,{...e})});function x9(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function cX(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ALe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,OLe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,NLe={};function A9(e,t){return((t||NLe).jsx?OLe:ALe).test(e)}const ILe=/[ \t\n\f\r]/g;function wLe(e){return typeof e=="object"?e.type==="text"?O9(e.value):!1:O9(e)}function O9(e){return e.replace(ILe,"")===""}let Mg=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Mg.prototype.property={};Mg.prototype.normal={};Mg.prototype.space=null;function uX(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new Mg(n,r,t)}function Wh(e){return e.toLowerCase()}let Go=class{constructor(t,n){this.property=t,this.attribute=n}};Go.prototype.space=null;Go.prototype.boolean=!1;Go.prototype.booleanish=!1;Go.prototype.overloadedBoolean=!1;Go.prototype.number=!1;Go.prototype.commaSeparated=!1;Go.prototype.spaceSeparated=!1;Go.prototype.commaOrSpaceSeparated=!1;Go.prototype.mustUseProperty=!1;Go.prototype.defined=!1;let DLe=0;const Xt=yd(),$r=yd(),dX=yd(),ht=yd(),Wn=yd(),Jp=yd(),$i=yd();function yd(){return 2**++DLe}const c4=Object.freeze(Object.defineProperty({__proto__:null,boolean:Xt,booleanish:$r,commaOrSpaceSeparated:$i,commaSeparated:Jp,number:ht,overloadedBoolean:dX,spaceSeparated:Wn},Symbol.toStringTag,{value:"Module"})),U2=Object.keys(c4);class F5 extends Go{constructor(t,n,r,a){let i=-1;if(super(t,n),N9(this,"space",a),typeof r=="number")for(;++i<U2.length;){const o=U2[i];N9(this,U2[i],(r&c4[o])===c4[o])}}}F5.prototype.defined=!0;function N9(e,t,n){n&&(e[t]=n)}const LLe={}.hasOwnProperty;function Jf(e){const t={},n={};let r;for(r in e.properties)if(LLe.call(e.properties,r)){const a=e.properties[r],i=new F5(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Wh(r)]=r,n[Wh(i.attribute)]=r}return new Mg(t,n,e.space)}const pX=Jf({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),fX=Jf({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function mX(e,t){return t in e?e[t]:t}function hX(e,t){return mX(e,t.toLowerCase())}const gX=Jf({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:hX,properties:{xmlns:null,xmlnsXLink:null}}),_X=Jf({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:$r,ariaAutoComplete:null,ariaBusy:$r,ariaChecked:$r,ariaColCount:ht,ariaColIndex:ht,ariaColSpan:ht,ariaControls:Wn,ariaCurrent:null,ariaDescribedBy:Wn,ariaDetails:null,ariaDisabled:$r,ariaDropEffect:Wn,ariaErrorMessage:null,ariaExpanded:$r,ariaFlowTo:Wn,ariaGrabbed:$r,ariaHasPopup:null,ariaHidden:$r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Wn,ariaLevel:ht,ariaLive:null,ariaModal:$r,ariaMultiLine:$r,ariaMultiSelectable:$r,ariaOrientation:null,ariaOwns:Wn,ariaPlaceholder:null,ariaPosInSet:ht,ariaPressed:$r,ariaReadOnly:$r,ariaRelevant:null,ariaRequired:$r,ariaRoleDescription:Wn,ariaRowCount:ht,ariaRowIndex:ht,ariaRowSpan:ht,ariaSelected:$r,ariaSetSize:ht,ariaSort:null,ariaValueMax:ht,ariaValueMin:ht,ariaValueNow:ht,ariaValueText:null,role:null}}),MLe=Jf({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:hX,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Jp,acceptCharset:Wn,accessKey:Wn,action:null,allow:null,allowFullScreen:Xt,allowPaymentRequest:Xt,allowUserMedia:Xt,alt:null,as:null,async:Xt,autoCapitalize:null,autoComplete:Wn,autoFocus:Xt,autoPlay:Xt,blocking:Wn,capture:null,charSet:null,checked:Xt,cite:null,className:Wn,cols:ht,colSpan:null,content:null,contentEditable:$r,controls:Xt,controlsList:Wn,coords:ht|Jp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xt,defer:Xt,dir:null,dirName:null,disabled:Xt,download:dX,draggable:$r,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xt,formTarget:null,headers:Wn,height:ht,hidden:Xt,high:ht,href:null,hrefLang:null,htmlFor:Wn,httpEquiv:Wn,id:null,imageSizes:null,imageSrcSet:null,inert:Xt,inputMode:null,integrity:null,is:null,isMap:Xt,itemId:null,itemProp:Wn,itemRef:Wn,itemScope:Xt,itemType:Wn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xt,low:ht,manifest:null,max:null,maxLength:ht,media:null,method:null,min:null,minLength:ht,multiple:Xt,muted:Xt,name:null,nonce:null,noModule:Xt,noValidate:Xt,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:Xt,optimum:ht,pattern:null,ping:Wn,placeholder:null,playsInline:Xt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Xt,referrerPolicy:null,rel:Wn,required:Xt,reversed:Xt,rows:ht,rowSpan:ht,sandbox:Wn,scope:null,scoped:Xt,seamless:Xt,selected:Xt,shadowRootClonable:Xt,shadowRootDelegatesFocus:Xt,shadowRootMode:null,shape:null,size:ht,sizes:null,slot:null,span:ht,spellCheck:$r,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ht,step:null,style:null,tabIndex:ht,target:null,title:null,translate:null,type:null,typeMustMatch:Xt,useMap:null,value:$r,width:ht,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Wn,axis:null,background:null,bgColor:null,border:ht,borderColor:null,bottomMargin:ht,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xt,declare:Xt,event:null,face:null,frame:null,frameBorder:null,hSpace:ht,leftMargin:ht,link:null,longDesc:null,lowSrc:null,marginHeight:ht,marginWidth:ht,noResize:Xt,noHref:Xt,noShade:Xt,noWrap:Xt,object:null,profile:null,prompt:null,rev:null,rightMargin:ht,rules:null,scheme:null,scrolling:$r,standby:null,summary:null,text:null,topMargin:ht,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ht,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Xt,disableRemotePlayback:Xt,prefix:null,property:null,results:ht,security:null,unselectable:null}}),kLe=Jf({space:"svg",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"},transform:mX,properties:{about:$i,accentHeight:ht,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ht,amplitude:ht,arabicForm:null,ascent:ht,attributeName:null,attributeType:null,azimuth:ht,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ht,by:null,calcMode:null,capHeight:ht,className:Wn,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:ht,diffuseConstant:ht,direction:null,display:null,dur:null,divisor:ht,dominantBaseline:null,download:Xt,dx:null,dy:null,edgeMode:null,editable:null,elevation:ht,enableBackground:null,end:null,event:null,exponent:ht,externalResourcesRequired:null,fill:null,fillOpacity:ht,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:Jp,g2:Jp,glyphName:Jp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ht,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ht,horizOriginX:ht,horizOriginY:ht,id:null,ideographic:ht,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ht,k:ht,k1:ht,k2:ht,k3:ht,k4:ht,kernelMatrix:$i,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ht,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:ht,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:ht,overlineThickness:ht,paintOrder:null,panose1:null,path:null,pathLength:ht,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Wn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ht,pointsAtY:ht,pointsAtZ:ht,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$i,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$i,rev:$i,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$i,requiredFeatures:$i,requiredFonts:$i,requiredFormats:$i,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:ht,specularExponent:ht,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ht,strikethroughThickness:ht,string:null,stroke:null,strokeDashArray:$i,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ht,strokeOpacity:ht,strokeWidth:null,style:null,surfaceScale:ht,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$i,tabIndex:ht,tableValues:null,target:null,targetX:ht,targetY:ht,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$i,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ht,underlineThickness:ht,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ht,values:null,vAlphabetic:ht,vMathematical:ht,vectorEffect:null,vHanging:ht,vIdeographic:ht,version:null,vertAdvY:ht,vertOriginX:ht,vertOriginY:ht,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ht,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),PLe=/^data[-\w.:]+$/i,I9=/-[a-z]/g,FLe=/[A-Z]/g;function _y(e,t){const n=Wh(t);let r=t,a=Go;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&PLe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(I9,ULe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!I9.test(i)){let o=i.replace(FLe,BLe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=F5}return new a(r,t)}function BLe(e){return"-"+e.toLowerCase()}function ULe(e){return e.charAt(1).toUpperCase()}const $Le={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"},kg=uX([fX,pX,gX,_X,MLe],"html"),su=uX([fX,pX,gX,_X,kLe],"svg");function w9(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function EX(e){return e.join(" ").trim()}var bX={},D9=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zLe=/\n/g,HLe=/^\s*/,GLe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,VLe=/^:\s*/,YLe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,qLe=/^[;\s]*/,WLe=/^\s+|\s+$/g,jLe=`
|
|
339
|
+
*/var xf=x;function B6e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var U6e=typeof Object.is=="function"?Object.is:B6e,$6e=xf.useState,z6e=xf.useEffect,H6e=xf.useLayoutEffect,G6e=xf.useDebugValue;function V6e(e,t){var n=t(),r=$6e({inst:{value:n,getSnapshot:t}}),a=r[0].inst,i=r[1];return H6e(function(){a.value=n,a.getSnapshot=t,L2(a)&&i({inst:a})},[e,n,t]),z6e(function(){return L2(a)&&i({inst:a}),e(function(){L2(a)&&i({inst:a})})},[e]),G6e(n),n}function L2(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!U6e(e,n)}catch{return!0}}function Y6e(e,t){return t()}var q6e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Y6e:V6e;JQ.useSyncExternalStore=xf.useSyncExternalStore!==void 0?xf.useSyncExternalStore:q6e;ZQ.exports=JQ;var W6e=ZQ.exports;const Rc=()=>{},_i=Rc(),M2=Object,yn=e=>e===_i,Tl=e=>typeof e=="function",Wc=(e,t)=>({...e,...t}),j6e=e=>Tl(e.then),X1=new WeakMap;let K6e=0;const Yh=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let a,i;if(M2(e)===e&&!r&&n!=RegExp){if(a=X1.get(e),a)return a;if(a=++K6e+"~",X1.set(e,a),n==Array){for(a="@",i=0;i<e.length;i++)a+=Yh(e[i])+",";X1.set(e,a)}if(n==M2){a="#";const o=M2.keys(e).sort();for(;!yn(i=o.pop());)yn(e[i])||(a+=i+":"+Yh(e[i])+",");X1.set(e,a)}}else a=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},bl=new WeakMap,k2={},Z1={},k5="undefined",gy=typeof window!=k5,a4=typeof document!=k5,Q6e=()=>gy&&typeof window.requestAnimationFrame!=k5,eX=(e,t)=>{const n=bl.get(e);return[()=>!yn(t)&&e.get(t)||k2,r=>{if(!yn(t)){const a=e.get(t);t in Z1||(Z1[t]=a),n[5](t,Wc(a,r),a||k2)}},n[6],()=>!yn(t)&&t in Z1?Z1[t]:!yn(t)&&e.get(t)||k2]};let i4=!0;const X6e=()=>i4,[o4,s4]=gy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Rc,Rc],Z6e=()=>{const e=a4&&document.visibilityState;return yn(e)||e!=="hidden"},J6e=e=>(a4&&document.addEventListener("visibilitychange",e),o4("focus",e),()=>{a4&&document.removeEventListener("visibilitychange",e),s4("focus",e)}),eLe=e=>{const t=()=>{i4=!0,e()},n=()=>{i4=!1};return o4("online",t),o4("offline",n),()=>{s4("online",t),s4("offline",n)}},tLe={isOnline:X6e,isVisible:Z6e},nLe={initFocus:J6e,initReconnect:eLe},y9=!Oe.useId,qh=!gy||"Deno"in window,rLe=e=>Q6e()?window.requestAnimationFrame(e):setTimeout(e,1),P2=qh?x.useEffect:x.useLayoutEffect,F2=typeof navigator<"u"&&navigator.connection,T9=!qh&&F2&&(["slow-2g","2g"].includes(F2.effectiveType)||F2.saveData),P5=e=>{if(Tl(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Yh(e):"",[e,t]};let aLe=0;const l4=()=>++aLe,tX=0,nX=1,rX=2,iLe=3;var hm={__proto__:null,ERROR_REVALIDATE_EVENT:iLe,FOCUS_EVENT:tX,MUTATE_EVENT:rX,RECONNECT_EVENT:nX};async function aX(...e){const[t,n,r,a]=e,i=Wc({populateCache:!0,throwOnError:!0},typeof a=="boolean"?{revalidate:a}:a||{});let o=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const c=i.revalidate!==!1,u=h=>typeof s=="function"?s(h):s!==!1,p=i.throwOnError;if(Tl(n)){const h=n,g=[],E=t.keys();for(const y of E)!/^\$(inf|sub)\$/.test(y)&&h(t.get(y)._k)&&g.push(y);return Promise.all(g.map(f))}return f(n);async function f(h){const[g]=P5(h);if(!g)return;const[E,y]=eX(t,g),[b,S,C,T]=bl.get(t),N=()=>{const W=b[g];return c&&(delete C[g],delete T[g],W&&W[0])?W[0](rX).then(()=>E().data):E().data};if(e.length<3)return N();let A=r,O;const M=l4();S[g]=[M,0];const P=!yn(l),D=E(),$=D.data,V=D._c,Z=yn(V)?$:V;if(P&&(l=Tl(l)?l(Z,$):l,y({data:l,_c:Z})),Tl(A))try{A=A(Z)}catch(W){O=W}if(A&&j6e(A))if(A=await A.catch(W=>{O=W}),M!==S[g][0]){if(O)throw O;return A}else O&&P&&u(O)&&(o=!0,y({data:Z,_c:_i}));if(o&&!O)if(Tl(o)){const W=o(A,Z);y({data:W,error:_i,_c:_i})}else y({data:A,error:_i,_c:_i});if(S[g][1]=l4(),Promise.resolve(N()).then(()=>{y({_c:_i})}),O){if(p)throw O;return}return A}}const C9=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},oLe=(e,t)=>{if(!bl.has(e)){const n=Wc(nLe,t),r={},a=aX.bind(_i,e);let i=Rc;const o={},s=(u,p)=>{const f=o[u]||[];return o[u]=f,f.push(p),()=>f.splice(f.indexOf(p),1)},l=(u,p,f)=>{e.set(u,p);const h=o[u];if(h)for(const g of h)g(p,f)},c=()=>{if(!bl.has(e)&&(bl.set(e,[r,{},{},{},a,l,s]),!qh)){const u=n.initFocus(setTimeout.bind(_i,C9.bind(_i,r,tX))),p=n.initReconnect(setTimeout.bind(_i,C9.bind(_i,r,nX)));i=()=>{u&&u(),p&&p(),bl.delete(e)}}};return c(),[e,a,c,i]}return[e,bl.get(e)[4]]},sLe=(e,t,n,r,a)=>{const i=n.errorRetryCount,o=a.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!yn(i)&&o>i||setTimeout(r,s,a)},lLe=(e,t)=>Yh(e)==Yh(t),[iX,cLe]=oLe(new Map),uLe=Wc({onLoadingSlow:Rc,onSuccess:Rc,onError:Rc,onErrorRetry:sLe,onDiscarded:Rc,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T9?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:T9?5e3:3e3,compare:lLe,isPaused:()=>!1,cache:iX,mutate:cLe,fallback:{}},tLe),dLe=(e,t)=>{const n=Wc(e,t);if(t){const{use:r,fallback:a}=e,{use:i,fallback:o}=t;r&&i&&(n.use=r.concat(i)),a&&o&&(n.fallback=Wc(a,o))}return n},pLe=x.createContext({}),fLe="$inf$",oX=gy&&window.__SWR_DEVTOOLS_USE__,mLe=oX?window.__SWR_DEVTOOLS_USE__:[],hLe=()=>{oX&&(window.__SWR_DEVTOOLS_REACT__=Oe)},gLe=e=>Tl(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],_Le=()=>Wc(uLe,x.useContext(pLe)),ELe=e=>(t,n,r)=>e(t,n&&((...i)=>{const[o]=P5(t),[,,,s]=bl.get(iX);if(o.startsWith(fLe))return n(...i);const l=s[o];return yn(l)?n(...i):(delete s[o],l)}),r),bLe=mLe.concat(ELe),SLe=e=>function(...n){const r=_Le(),[a,i,o]=gLe(n),s=dLe(r,o);let l=e;const{use:c}=s,u=(c||[]).concat(bLe);for(let p=u.length;p--;)l=u[p](l);return l(a,i||s.fetcher||null,s)},vLe=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const a=r.indexOf(n);a>=0&&(r[a]=r[r.length-1],r.pop())}};hLe();const R9=Oe.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),B2={dedupe:!0},yLe=(e,t,n)=>{const{cache:r,compare:a,suspense:i,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:p,keepPreviousData:f}=n,[h,g,E,y]=bl.get(r),[b,S]=P5(e),C=x.useRef(!1),T=x.useRef(!1),N=x.useRef(b),A=x.useRef(t),O=x.useRef(n),M=()=>O.current,P=()=>M().isVisible()&&M().isOnline(),[D,$,V,Z]=eX(r,b),W=x.useRef({}).current,ae=yn(o)?n.fallback[b]:o,he=(Le,we)=>{for(const Pe in W){const Me=Pe;if(Me==="data"){if(!a(Le[Me],we[Me])&&(!yn(Le[Me])||!a(Te,we[Me])))return!1}else if(we[Me]!==Le[Me])return!1}return!0},q=x.useMemo(()=>{const Le=(()=>!b||!t?!1:yn(s)?M().isPaused()||i?!1:yn(l)?!0:l:s)(),we=Ge=>{const at=Wc(Ge);return delete at._k,Le?{isValidating:!0,isLoading:!0,...at}:at},Pe=D(),Me=Z(),lt=we(Pe),it=Pe===Me?lt:we(Me);let nt=lt;return[()=>{const Ge=we(D());return he(Ge,nt)?(nt.data=Ge.data,nt.isLoading=Ge.isLoading,nt.isValidating=Ge.isValidating,nt.error=Ge.error,nt):(nt=Ge,Ge)},()=>it]},[r,b]),G=W6e.useSyncExternalStore(x.useCallback(Le=>V(b,(we,Pe)=>{he(Pe,we)||Le()}),[r,b]),q[0],q[1]),H=!C.current,k=h[b]&&h[b].length>0,ie=G.data,j=yn(ie)?ae:ie,F=G.error,le=x.useRef(j),Te=f?yn(ie)?le.current:ie:j,fe=(()=>k&&!yn(F)?!1:H&&!yn(s)?s:M().isPaused()?!1:i?yn(j)?!1:l:yn(j)||l)(),Ae=!!(b&&t&&H&&fe),Ce=yn(G.isValidating)?Ae:G.isValidating,Ne=yn(G.isLoading)?Ae:G.isLoading,ze=x.useCallback(async Le=>{const we=A.current;if(!b||!we||T.current||M().isPaused())return!1;let Pe,Me,lt=!0;const it=Le||{},nt=!E[b]||!it.dedupe,Ge=()=>y9?!T.current&&b===N.current&&C.current:b===N.current,at={isValidating:!1,isLoading:!1},ct=()=>{$(at)},se=()=>{const ge=E[b];ge&&ge[1]===Me&&delete E[b]},Fe={isValidating:!0};yn(D().data)&&(Fe.isLoading=!0);try{if(nt&&($(Fe),n.loadingTimeout&&yn(D().data)&&setTimeout(()=>{lt&&Ge()&&M().onLoadingSlow(b,n)},n.loadingTimeout),E[b]=[we(S),l4()]),[Pe,Me]=E[b],Pe=await Pe,nt&&setTimeout(se,n.dedupingInterval),!E[b]||E[b][1]!==Me)return nt&&Ge()&&M().onDiscarded(b),!1;at.error=_i;const ge=g[b];if(!yn(ge)&&(Me<=ge[0]||Me<=ge[1]||ge[1]===0))return ct(),nt&&Ge()&&M().onDiscarded(b),!1;const oe=D().data;at.data=a(oe,Pe)?oe:Pe,nt&&Ge()&&M().onSuccess(Pe,b,n)}catch(ge){se();const oe=M(),{shouldRetryOnError:re}=oe;oe.isPaused()||(at.error=ge,nt&&Ge()&&(oe.onError(ge,b,oe),(re===!0||Tl(re)&&re(ge))&&P()&&oe.onErrorRetry(ge,b,oe,J=>{const ue=h[b];ue&&ue[0]&&ue[0](hm.ERROR_REVALIDATE_EVENT,J)},{retryCount:(it.retryCount||0)+1,dedupe:!0})))}return lt=!1,ct(),!0},[b,r]),Ue=x.useCallback((...Le)=>aX(r,N.current,...Le),[]);if(P2(()=>{A.current=t,O.current=n,yn(ie)||(le.current=ie)}),P2(()=>{if(!b)return;const Le=ze.bind(_i,B2);let we=0;const Me=vLe(b,h,(lt,it={})=>{if(lt==hm.FOCUS_EVENT){const nt=Date.now();M().revalidateOnFocus&&nt>we&&P()&&(we=nt+M().focusThrottleInterval,Le())}else if(lt==hm.RECONNECT_EVENT)M().revalidateOnReconnect&&P()&&Le();else{if(lt==hm.MUTATE_EVENT)return ze();if(lt==hm.ERROR_REVALIDATE_EVENT)return ze(it)}});return T.current=!1,N.current=b,C.current=!0,$({_k:S}),fe&&(yn(j)||qh?Le():rLe(Le)),()=>{T.current=!0,Me()}},[b]),P2(()=>{let Le;function we(){const Me=Tl(c)?c(D().data):c;Me&&Le!==-1&&(Le=setTimeout(Pe,Me))}function Pe(){!D().error&&(u||M().isVisible())&&(p||M().isOnline())?ze(B2).then(we):we()}return we(),()=>{Le&&(clearTimeout(Le),Le=-1)}},[c,u,p,b]),x.useDebugValue(Te),i&&yn(j)&&b){if(!y9&&qh)throw new Error("Fallback data is required when using suspense in SSR.");A.current=t,O.current=n,T.current=!1;const Le=y[b];if(!yn(Le)){const we=Ue(Le);R9(we)}if(yn(F)){const we=ze(B2);yn(Te)||(we.status="fulfilled",we.value=!0),R9(we)}else throw F}return{mutate:Ue,get data(){return W.data=!0,Te},get error(){return W.error=!0,F},get isValidating(){return W.isValidating=!0,Ce},get isLoading(){return W.isLoading=!0,Ne}}},TLe=SLe(yLe),CLe=async e=>{const t=await fetch(e);if(!t.ok)throw new Error("Network response was not ok");const n=t.headers.get("content-type");return n&&n.includes("application/json")?t.json():t.text()},sX=e=>TLe(e,CLe),RLe=x.lazy(()=>ja(()=>import("./react-plotly-b416b8f9.js").then(e=>e.r),[])),xLe=({element:e})=>{const{data:t,error:n,isLoading:r}=sX(e.url||null);if(r)return _.jsx("div",{children:"Loading..."});if(n)return _.jsx("div",{children:"An error occured"});let a;if(t)a=t;else return null;return _.jsx(x.Suspense,{fallback:_.jsx("div",{children:"Loading..."}),children:_.jsx(RLe,{className:`${e.display}-plotly`,data:a.data,layout:a.layout,frames:a.frames,config:a.config,style:{width:"100%",height:"100%",borderRadius:"1rem",overflow:"hidden"},useResizeHandler:!0})})},lX=e=>_.jsx(XQ,{prefix:"Failed to load chart.",children:_.jsx(xLe,{...e})});function x9(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function cX(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ALe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,OLe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,NLe={};function A9(e,t){return((t||NLe).jsx?OLe:ALe).test(e)}const ILe=/[ \t\n\f\r]/g;function wLe(e){return typeof e=="object"?e.type==="text"?O9(e.value):!1:O9(e)}function O9(e){return e.replace(ILe,"")===""}let Mg=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Mg.prototype.property={};Mg.prototype.normal={};Mg.prototype.space=null;function uX(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new Mg(n,r,t)}function Wh(e){return e.toLowerCase()}let Go=class{constructor(t,n){this.property=t,this.attribute=n}};Go.prototype.space=null;Go.prototype.boolean=!1;Go.prototype.booleanish=!1;Go.prototype.overloadedBoolean=!1;Go.prototype.number=!1;Go.prototype.commaSeparated=!1;Go.prototype.spaceSeparated=!1;Go.prototype.commaOrSpaceSeparated=!1;Go.prototype.mustUseProperty=!1;Go.prototype.defined=!1;let DLe=0;const Xt=yd(),$r=yd(),dX=yd(),ht=yd(),Wn=yd(),Jp=yd(),$i=yd();function yd(){return 2**++DLe}const c4=Object.freeze(Object.defineProperty({__proto__:null,boolean:Xt,booleanish:$r,commaOrSpaceSeparated:$i,commaSeparated:Jp,number:ht,overloadedBoolean:dX,spaceSeparated:Wn},Symbol.toStringTag,{value:"Module"})),U2=Object.keys(c4);class F5 extends Go{constructor(t,n,r,a){let i=-1;if(super(t,n),N9(this,"space",a),typeof r=="number")for(;++i<U2.length;){const o=U2[i];N9(this,U2[i],(r&c4[o])===c4[o])}}}F5.prototype.defined=!0;function N9(e,t,n){n&&(e[t]=n)}const LLe={}.hasOwnProperty;function Jf(e){const t={},n={};let r;for(r in e.properties)if(LLe.call(e.properties,r)){const a=e.properties[r],i=new F5(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Wh(r)]=r,n[Wh(i.attribute)]=r}return new Mg(t,n,e.space)}const pX=Jf({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),fX=Jf({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function mX(e,t){return t in e?e[t]:t}function hX(e,t){return mX(e,t.toLowerCase())}const gX=Jf({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:hX,properties:{xmlns:null,xmlnsXLink:null}}),_X=Jf({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:$r,ariaAutoComplete:null,ariaBusy:$r,ariaChecked:$r,ariaColCount:ht,ariaColIndex:ht,ariaColSpan:ht,ariaControls:Wn,ariaCurrent:null,ariaDescribedBy:Wn,ariaDetails:null,ariaDisabled:$r,ariaDropEffect:Wn,ariaErrorMessage:null,ariaExpanded:$r,ariaFlowTo:Wn,ariaGrabbed:$r,ariaHasPopup:null,ariaHidden:$r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Wn,ariaLevel:ht,ariaLive:null,ariaModal:$r,ariaMultiLine:$r,ariaMultiSelectable:$r,ariaOrientation:null,ariaOwns:Wn,ariaPlaceholder:null,ariaPosInSet:ht,ariaPressed:$r,ariaReadOnly:$r,ariaRelevant:null,ariaRequired:$r,ariaRoleDescription:Wn,ariaRowCount:ht,ariaRowIndex:ht,ariaRowSpan:ht,ariaSelected:$r,ariaSetSize:ht,ariaSort:null,ariaValueMax:ht,ariaValueMin:ht,ariaValueNow:ht,ariaValueText:null,role:null}}),MLe=Jf({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:hX,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Jp,acceptCharset:Wn,accessKey:Wn,action:null,allow:null,allowFullScreen:Xt,allowPaymentRequest:Xt,allowUserMedia:Xt,alt:null,as:null,async:Xt,autoCapitalize:null,autoComplete:Wn,autoFocus:Xt,autoPlay:Xt,blocking:Wn,capture:null,charSet:null,checked:Xt,cite:null,className:Wn,cols:ht,colSpan:null,content:null,contentEditable:$r,controls:Xt,controlsList:Wn,coords:ht|Jp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xt,defer:Xt,dir:null,dirName:null,disabled:Xt,download:dX,draggable:$r,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xt,formTarget:null,headers:Wn,height:ht,hidden:Xt,high:ht,href:null,hrefLang:null,htmlFor:Wn,httpEquiv:Wn,id:null,imageSizes:null,imageSrcSet:null,inert:Xt,inputMode:null,integrity:null,is:null,isMap:Xt,itemId:null,itemProp:Wn,itemRef:Wn,itemScope:Xt,itemType:Wn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xt,low:ht,manifest:null,max:null,maxLength:ht,media:null,method:null,min:null,minLength:ht,multiple:Xt,muted:Xt,name:null,nonce:null,noModule:Xt,noValidate:Xt,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:Xt,optimum:ht,pattern:null,ping:Wn,placeholder:null,playsInline:Xt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Xt,referrerPolicy:null,rel:Wn,required:Xt,reversed:Xt,rows:ht,rowSpan:ht,sandbox:Wn,scope:null,scoped:Xt,seamless:Xt,selected:Xt,shadowRootClonable:Xt,shadowRootDelegatesFocus:Xt,shadowRootMode:null,shape:null,size:ht,sizes:null,slot:null,span:ht,spellCheck:$r,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ht,step:null,style:null,tabIndex:ht,target:null,title:null,translate:null,type:null,typeMustMatch:Xt,useMap:null,value:$r,width:ht,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Wn,axis:null,background:null,bgColor:null,border:ht,borderColor:null,bottomMargin:ht,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xt,declare:Xt,event:null,face:null,frame:null,frameBorder:null,hSpace:ht,leftMargin:ht,link:null,longDesc:null,lowSrc:null,marginHeight:ht,marginWidth:ht,noResize:Xt,noHref:Xt,noShade:Xt,noWrap:Xt,object:null,profile:null,prompt:null,rev:null,rightMargin:ht,rules:null,scheme:null,scrolling:$r,standby:null,summary:null,text:null,topMargin:ht,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ht,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Xt,disableRemotePlayback:Xt,prefix:null,property:null,results:ht,security:null,unselectable:null}}),kLe=Jf({space:"svg",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"},transform:mX,properties:{about:$i,accentHeight:ht,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ht,amplitude:ht,arabicForm:null,ascent:ht,attributeName:null,attributeType:null,azimuth:ht,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ht,by:null,calcMode:null,capHeight:ht,className:Wn,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:ht,diffuseConstant:ht,direction:null,display:null,dur:null,divisor:ht,dominantBaseline:null,download:Xt,dx:null,dy:null,edgeMode:null,editable:null,elevation:ht,enableBackground:null,end:null,event:null,exponent:ht,externalResourcesRequired:null,fill:null,fillOpacity:ht,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:Jp,g2:Jp,glyphName:Jp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ht,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ht,horizOriginX:ht,horizOriginY:ht,id:null,ideographic:ht,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ht,k:ht,k1:ht,k2:ht,k3:ht,k4:ht,kernelMatrix:$i,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ht,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:ht,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:ht,overlineThickness:ht,paintOrder:null,panose1:null,path:null,pathLength:ht,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Wn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ht,pointsAtY:ht,pointsAtZ:ht,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$i,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$i,rev:$i,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$i,requiredFeatures:$i,requiredFonts:$i,requiredFormats:$i,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:ht,specularExponent:ht,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ht,strikethroughThickness:ht,string:null,stroke:null,strokeDashArray:$i,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ht,strokeOpacity:ht,strokeWidth:null,style:null,surfaceScale:ht,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$i,tabIndex:ht,tableValues:null,target:null,targetX:ht,targetY:ht,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$i,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ht,underlineThickness:ht,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ht,values:null,vAlphabetic:ht,vMathematical:ht,vectorEffect:null,vHanging:ht,vIdeographic:ht,version:null,vertAdvY:ht,vertOriginX:ht,vertOriginY:ht,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ht,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),PLe=/^data[-\w.:]+$/i,I9=/-[a-z]/g,FLe=/[A-Z]/g;function _y(e,t){const n=Wh(t);let r=t,a=Go;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&PLe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(I9,ULe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!I9.test(i)){let o=i.replace(FLe,BLe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=F5}return new a(r,t)}function BLe(e){return"-"+e.toLowerCase()}function ULe(e){return e.charAt(1).toUpperCase()}const $Le={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"},kg=uX([fX,pX,gX,_X,MLe],"html"),su=uX([fX,pX,gX,_X,kLe],"svg");function w9(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function EX(e){return e.join(" ").trim()}var bX={},D9=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zLe=/\n/g,HLe=/^\s*/,GLe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,VLe=/^:\s*/,YLe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,qLe=/^[;\s]*/,WLe=/^\s+|\s+$/g,jLe=`
|
|
340
340
|
`,L9="/",M9="*",Bu="",KLe="comment",QLe="declaration",XLe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(g){var E=g.match(zLe);E&&(n+=E.length);var y=g.lastIndexOf(jLe);r=~y?g.length-y:r+g.length}function i(){var g={line:n,column:r};return function(E){return E.position=new o(g),c(),E}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(g){var E=new Error(t.source+":"+n+":"+r+": "+g);if(E.reason=g,E.filename=t.source,E.line=n,E.column=r,E.source=e,!t.silent)throw E}function l(g){var E=g.exec(e);if(E){var y=E[0];return a(y),e=e.slice(y.length),E}}function c(){l(HLe)}function u(g){var E;for(g=g||[];E=p();)E!==!1&&g.push(E);return g}function p(){var g=i();if(!(L9!=e.charAt(0)||M9!=e.charAt(1))){for(var E=2;Bu!=e.charAt(E)&&(M9!=e.charAt(E)||L9!=e.charAt(E+1));)++E;if(E+=2,Bu===e.charAt(E-1))return s("End of comment missing");var y=e.slice(2,E-2);return r+=2,a(y),e=e.slice(E),r+=2,g({type:KLe,comment:y})}}function f(){var g=i(),E=l(GLe);if(E){if(p(),!l(VLe))return s("property missing ':'");var y=l(YLe),b=g({type:QLe,property:k9(E[0].replace(D9,Bu)),value:y?k9(y[0].replace(D9,Bu)):Bu});return l(qLe),b}}function h(){var g=[];u(g);for(var E;E=f();)E!==!1&&(g.push(E),u(g));return g}return c(),h()};function k9(e){return e?e.replace(WLe,Bu):Bu}var ZLe=aa&&aa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bX,"__esModule",{value:!0});var JLe=ZLe(XLe);function eMe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,JLe.default)(e),a=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var o=i.property,s=i.value;a?t(o,s,i):s&&(n=n||{},n[o]=s)}}),n}var P9=bX.default=eMe;const tMe=P9.default||P9,Ey=SX("end"),qs=SX("start");function SX(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 nMe(e){const t=qs(e),n=Ey(e);if(t&&n)return{start:t,end:n}}function ah(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?F9(e.position):"start"in e||"end"in e?F9(e):"line"in e||"column"in e?u4(e):""}function u4(e){return B9(e&&e.line)+":"+B9(e&&e.column)}function F9(e){return u4(e&&e.start)+"-"+u4(e&&e.end)}function B9(e){return e&&typeof e=="number"?e:1}class Ua extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=ah(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ua.prototype.file="";Ua.prototype.name="";Ua.prototype.reason="";Ua.prototype.message="";Ua.prototype.stack="";Ua.prototype.column=void 0;Ua.prototype.line=void 0;Ua.prototype.ancestors=void 0;Ua.prototype.cause=void 0;Ua.prototype.fatal=void 0;Ua.prototype.place=void 0;Ua.prototype.ruleId=void 0;Ua.prototype.source=void 0;const B5={}.hasOwnProperty,rMe=new Map,aMe=/[A-Z]/g,iMe=/-([a-z])/g,oMe=new Set(["table","tbody","thead","tfoot","tr"]),sMe=new Set(["td","th"]),vX="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function lMe(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=gMe(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=hMe(n,t.jsx,t.jsxs)}const a={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"?su:kg,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=yX(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function yX(e,t,n){if(t.type==="element")return cMe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return uMe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return pMe(e,t,n);if(t.type==="mdxjsEsm")return dMe(e,t);if(t.type==="root")return fMe(e,t,n);if(t.type==="text")return mMe(e,t)}function cMe(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=su,e.schema=a),e.ancestors.push(t);const i=CX(e,t.tagName,!1),o=_Me(e,t);let s=$5(e,t);return oMe.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!wLe(l):!0})),TX(e,o,i,t),U5(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function uMe(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)}jh(e,t.position)}function dMe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);jh(e,t.position)}function pMe(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=su,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:CX(e,t.name,!0),o=EMe(e,t),s=$5(e,t);return TX(e,o,i,t),U5(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function fMe(e,t,n){const r={};return U5(r,$5(e,t)),e.create(t,e.Fragment,r,n)}function mMe(e,t){return t.value}function TX(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function U5(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function hMe(e,t,n){return r;function r(a,i,o,s){const c=Array.isArray(o.children)?n:t;return s?c(i,o,s):c(i,o)}}function gMe(e,t){return n;function n(r,a,i,o){const s=Array.isArray(i.children),l=qs(r);return t(a,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function _Me(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&B5.call(t.properties,a)){const i=bMe(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&sMe.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function EMe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else jh(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else jh(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function $5(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:rMe;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=a.get(l)||0;o=l+"-"+c,a.set(l,c+1)}}const s=yX(e,i,o);s!==void 0&&n.push(s)}return n}function bMe(e,t,n){const r=_y(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?cX(n):EX(n)),r.property==="style"){let a=typeof n=="object"?n:SMe(e,String(n));return e.stylePropertyNameCase==="css"&&(a=vMe(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?$Le[r.property]||r.property:r.attribute,n]}}function SMe(e,t){const n={};try{tMe(t,r)}catch(a){if(!e.ignoreInvalidStyle){const i=a,o=new Ua("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=vX+"#cannot-parse-style-attribute",o}}return n;function r(a,i){let o=a;o.slice(0,2)!=="--"&&(o.slice(0,4)==="-ms-"&&(o="ms-"+o.slice(4)),o=o.replace(iMe,TMe)),n[o]=i}}function CX(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,o;for(;++i<a.length;){const s=A9(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=o}else r=A9(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return B5.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);jh(e)}function jh(e,t){const n=new Ua("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=vX+"#cannot-handle-mdx-estrees-without-createevaluater",n}function vMe(e){const t={};let n;for(n in e)B5.call(e,n)&&(t[yMe(n)]=e[n]);return t}function yMe(e){let t=e.replace(aMe,CMe);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function TMe(e,t){return t.toUpperCase()}function CMe(e){return"-"+e.toLowerCase()}const $2={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"]},RMe={};function z5(e,t){const n=t||RMe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return RX(e,r,a)}function RX(e,t,n){if(xMe(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 U9(e.children,t,n)}return Array.isArray(e)?U9(e,t,n):""}function U9(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=RX(e[a],t,n);return r.join("")}function xMe(e){return!!(e&&typeof e=="object")}const $9=document.createElement("i");function H5(e){const t="&"+e+";";$9.innerHTML=t;const n=$9.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function wo(e,t,n,r){const a=e.length;let i=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function To(e,t){return e.length>0?(wo(e,e.length,0,t),e):t}const z9={}.hasOwnProperty;function xX(e){const t={};let n=-1;for(;++n<e.length;)AMe(t,e[n]);return t}function AMe(e,t){let n;for(n in t){const a=(z9.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){z9.call(a,o)||(a[o]=[]);const s=i[o];OMe(a[o],Array.isArray(s)?s:s?[s]:[])}}}function OMe(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);wo(e,0,0,r)}function AX(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 ps(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ja=lu(/[A-Za-z]/),Fa=lu(/[\dA-Za-z]/),NMe=lu(/[#-'*+\--9=?A-Z^-~]/);function Wb(e){return e!==null&&(e<32||e===127)}const d4=lu(/\d/),IMe=lu(/[\dA-Fa-f]/),wMe=lu(/[!-/:-@[-`{-~]/);function Lt(e){return e!==null&&e<-2}function Hn(e){return e!==null&&(e<0||e===32)}function pn(e){return e===-2||e===-1||e===32}const by=lu(/\p{P}|\p{S}/u),hd=lu(/\s/);function lu(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function e0(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&Fa(e.charCodeAt(n+1))&&Fa(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function un(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return pn(l)?(e.enter(n),s(l)):t(l)}function s(l){return pn(l)&&i++<a?(e.consume(l),s):(e.exit(n),t(l))}}const DMe={tokenize:LMe};function LMe(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),un(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Lt(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const MMe={tokenize:kMe},H9={tokenize:PMe};function kMe(e){const t=this,n=[];let r=0,a,i,o;return s;function s(C){if(r<n.length){const T=n[r];return t.containerState=T[1],e.attempt(T[0].continuation,l,c)(C)}return c(C)}function l(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&S();const T=t.events.length;let N=T,A;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){A=t.events[N][1].end;break}b(r);let O=T;for(;O<t.events.length;)t.events[O][1].end=Object.assign({},A),O++;return wo(t.events,N+1,0,t.events.slice(T)),t.events.length=O,c(C)}return s(C)}function c(C){if(r===n.length){if(!a)return f(C);if(a.currentConstruct&&a.currentConstruct.concrete)return g(C);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(H9,u,p)(C)}function u(C){return a&&S(),b(r),f(C)}function p(C){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(C)}function f(C){return t.containerState={},e.attempt(H9,h,g)(C)}function h(C){return r++,n.push([t.currentConstruct,t.containerState]),f(C)}function g(C){if(C===null){a&&S(),b(0),e.consume(C);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:a}),E(C)}function E(C){if(C===null){y(e.exit("chunkFlow"),!0),b(0),e.consume(C);return}return Lt(C)?(e.consume(C),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(C),E)}function y(C,T){const N=t.sliceStream(C);if(T&&N.push(null),C.previous=i,i&&(i.next=C),i=C,a.defineSkip(C.start),a.write(N),t.parser.lazy[C.start.line]){let A=a.events.length;for(;A--;)if(a.events[A][1].start.offset<o&&(!a.events[A][1].end||a.events[A][1].end.offset>o))return;const O=t.events.length;let M=O,P,D;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(P){D=t.events[M][1].end;break}P=!0}for(b(r),A=O;A<t.events.length;)t.events[A][1].end=Object.assign({},D),A++;wo(t.events,M+1,0,t.events.slice(O)),t.events.length=A}}function b(C){let T=n.length;for(;T-- >C;){const N=n[T];t.containerState=N[1],N[0].exit.call(t,e)}n.length=C}function S(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function PMe(e,t,n){return un(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function jb(e){if(e===null||Hn(e)||hd(e))return 1;if(by(e))return 2}function Sy(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const p4={name:"attention",tokenize:BMe,resolveAll:FMe};function FMe(e,t){let n=-1,r,a,i,o,s,l,c,u;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 p=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);G9(p,-l),G9(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=To(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=To(c,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=To(c,Sy(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=To(c,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=To(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,wo(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function BMe(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=jb(r);let i;return o;function o(l){return i=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===i)return e.consume(l),s;const c=e.exit("attentionSequence"),u=jb(l),p=!u||u===2&&a||n.includes(l),f=!a||a===2&&u||n.includes(r);return c._open=!!(i===42?p:p&&(a||!f)),c._close=!!(i===42?f:f&&(u||!p)),t(l)}}function G9(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const UMe={name:"autolink",tokenize:$Me};function $Me(e,t,n){let r=0;return a;function a(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(h){return Ja(h)?(e.consume(h),o):h===64?n(h):c(h)}function o(h){return h===43||h===45||h===46||Fa(h)?(r=1,s(h)):c(h)}function s(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||Fa(h))&&r++<32?(e.consume(h),s):(r=0,c(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Wb(h)?n(h):(e.consume(h),l)}function c(h){return h===64?(e.consume(h),u):NMe(h)?(e.consume(h),c):n(h)}function u(h){return Fa(h)?p(h):n(h)}function p(h){return h===46?(e.consume(h),r=0,u):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):f(h)}function f(h){if((h===45||Fa(h))&&r++<63){const g=h===45?f:p;return e.consume(h),g}return n(h)}}const Pg={tokenize:zMe,partial:!0};function zMe(e,t,n){return r;function r(i){return pn(i)?un(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||Lt(i)?t(i):n(i)}}const OX={name:"blockQuote",tokenize:HMe,continuation:{tokenize:GMe},exit:VMe};function HMe(e,t,n){const r=this;return a;function a(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return pn(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function GMe(e,t,n){const r=this;return a;function a(o){return pn(o)?un(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(OX,t,n)(o)}}function VMe(e){e.exit("blockQuote")}const NX={name:"characterEscape",tokenize:YMe};function YMe(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return wMe(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const IX={name:"characterReference",tokenize:qMe};function qMe(e,t,n){const r=this;let a=0,i,o;return s;function s(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),l}function l(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,o=Fa,u(p))}function c(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=IMe,u):(e.enter("characterReferenceValue"),i=7,o=d4,u(p))}function u(p){if(p===59&&a){const f=e.exit("characterReferenceValue");return o===Fa&&!H5(r.sliceSerialize(f))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(p)&&a++<i?(e.consume(p),u):n(p)}}const V9={tokenize:jMe,partial:!0},Y9={name:"codeFenced",tokenize:WMe,concrete:!0};function WMe(e,t,n){const r=this,a={tokenize:N,partial:!0};let i=0,o=0,s;return l;function l(A){return c(A)}function c(A){const O=r.events[r.events.length-1];return i=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,s=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(A)}function u(A){return A===s?(o++,e.consume(A),u):o<3?n(A):(e.exit("codeFencedFenceSequence"),pn(A)?un(e,p,"whitespace")(A):p(A))}function p(A){return A===null||Lt(A)?(e.exit("codeFencedFence"),r.interrupt?t(A):e.check(V9,E,T)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===null||Lt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(A)):pn(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),un(e,h,"whitespace")(A)):A===96&&A===s?n(A):(e.consume(A),f)}function h(A){return A===null||Lt(A)?p(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===null||Lt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(A)):A===96&&A===s?n(A):(e.consume(A),g)}function E(A){return e.attempt(a,T,y)(A)}function y(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),b}function b(A){return i>0&&pn(A)?un(e,S,"linePrefix",i+1)(A):S(A)}function S(A){return A===null||Lt(A)?e.check(V9,E,T)(A):(e.enter("codeFlowValue"),C(A))}function C(A){return A===null||Lt(A)?(e.exit("codeFlowValue"),S(A)):(e.consume(A),C)}function T(A){return e.exit("codeFenced"),t(A)}function N(A,O,M){let P=0;return D;function D(ae){return A.enter("lineEnding"),A.consume(ae),A.exit("lineEnding"),$}function $(ae){return A.enter("codeFencedFence"),pn(ae)?un(A,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ae):V(ae)}function V(ae){return ae===s?(A.enter("codeFencedFenceSequence"),Z(ae)):M(ae)}function Z(ae){return ae===s?(P++,A.consume(ae),Z):P>=o?(A.exit("codeFencedFenceSequence"),pn(ae)?un(A,W,"whitespace")(ae):W(ae)):M(ae)}function W(ae){return ae===null||Lt(ae)?(A.exit("codeFencedFence"),O(ae)):M(ae)}}}function jMe(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const z2={name:"codeIndented",tokenize:QMe},KMe={tokenize:XMe,partial:!0};function QMe(e,t,n){const r=this;return a;function a(c){return e.enter("codeIndented"),un(e,i,"linePrefix",4+1)(c)}function i(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):Lt(c)?e.attempt(KMe,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||Lt(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function XMe(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):Lt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):un(e,i,"linePrefix",4+1)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Lt(o)?a(o):n(o)}}const ZMe={name:"codeText",tokenize:t8e,resolve:JMe,previous:e8e};function JMe(e){let t=e.length-4,n=3,r,a;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;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function e8e(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function t8e(e,t,n){let r=0,a,i;return o;function o(p){return e.enter("codeText"),e.enter("codeTextSequence"),s(p)}function s(p){return p===96?(e.consume(p),r++,s):(e.exit("codeTextSequence"),l(p))}function l(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),l):p===96?(i=e.enter("codeTextSequence"),a=0,u(p)):Lt(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||Lt(p)?(e.exit("codeTextData"),l(p)):(e.consume(p),c)}function u(p){return p===96?(e.consume(p),a++,u):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(i.type="codeTextData",c(p))}}class n8e{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 a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&gm(this.left,r),i.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),gm(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),gm(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);gm(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);gm(this.left,n.reverse())}}}function gm(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 wX(e){const t={};let n=-1,r,a,i,o,s,l,c;const u=new n8e(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,r8e(u,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,a=void 0;i--&&(o=u.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(a&&(u.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=i);a&&(r[1].end=Object.assign({},u.get(a)[1].start),s=u.slice(a,n),s.unshift(r),u.splice(a,n-a+1,s))}}return wo(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function r8e(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[],o=n._tokenizer||r.parser[n.contentType](n.start),s=o.events,l=[],c={};let u,p,f=-1,h=n,g=0,E=0;const y=[E];for(;h;){for(;e.get(++a)[1]!==h;);i.push(a),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),p&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=h,h=h.next}for(h=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(E=f+1,y.push(E),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):y.pop(),f=y.length;f--;){const b=s.slice(y[f],y[f+1]),S=i.pop();l.push([S,S+b.length-1]),e.splice(S,2,b)}for(l.reverse(),f=-1;++f<l.length;)c[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return c}const a8e={tokenize:s8e,resolve:o8e},i8e={tokenize:l8e,partial:!0};function o8e(e){return wX(e),e}function s8e(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?i(s):Lt(s)?e.check(i8e,o,i)(s):(e.consume(s),a)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function l8e(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),un(e,i,"linePrefix")}function i(o){if(o===null||Lt(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function DX(e,t,n,r,a,i,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return p;function p(b){return b===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(b),e.exit(i),f):b===null||b===32||b===41||Wb(b)?n(b):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),E(b))}function f(b){return b===62?(e.enter(i),e.consume(b),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(e.exit("chunkString"),e.exit(s),f(b)):b===null||b===60||Lt(b)?n(b):(e.consume(b),b===92?g:h)}function g(b){return b===60||b===62||b===92?(e.consume(b),h):h(b)}function E(b){return!u&&(b===null||b===41||Hn(b))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(b)):u<c&&b===40?(e.consume(b),u++,E):b===41?(e.consume(b),u--,E):b===null||b===32||b===40||Wb(b)?n(b):(e.consume(b),b===92?y:E)}function y(b){return b===40||b===41||b===92?(e.consume(b),E):E(b)}}function LX(e,t,n,r,a,i){const o=this;let s=0,l;return c;function c(h){return e.enter(r),e.enter(a),e.consume(h),e.exit(a),e.enter(i),u}function u(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(i),e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):Lt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===null||h===91||h===93||Lt(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!pn(h)),h===92?f:p)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,p):p(h)}}function MX(e,t,n,r,a,i){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(a),e.consume(f),e.exit(a),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):(e.enter(i),c(f))}function c(f){return f===o?(e.exit(i),l(o)):f===null?n(f):Lt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),un(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===o||f===null||Lt(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?p:u)}function p(f){return f===o||f===92?(e.consume(f),u):u(f)}}function ih(e,t){let n;return r;function r(a){return Lt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):pn(a)?un(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const c8e={name:"definition",tokenize:d8e},u8e={tokenize:p8e,partial:!0};function d8e(e,t,n){const r=this;let a;return i;function i(h){return e.enter("definition"),o(h)}function o(h){return LX.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return a=ps(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Hn(h)?ih(e,c)(h):c(h)}function c(h){return DX(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(u8e,p,p)(h)}function p(h){return pn(h)?un(e,f,"whitespace")(h):f(h)}function f(h){return h===null||Lt(h)?(e.exit("definition"),r.parser.defined.push(a),t(h)):n(h)}}function p8e(e,t,n){return r;function r(s){return Hn(s)?ih(e,a)(s):n(s)}function a(s){return MX(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return pn(s)?un(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Lt(s)?t(s):n(s)}}const f8e={name:"hardBreakEscape",tokenize:m8e};function m8e(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Lt(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const h8e={name:"headingAtx",tokenize:_8e,resolve:g8e};function g8e(e,t){let n=e.length-2,r=3,a,i;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&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},wo(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function _8e(e,t,n){let r=0;return a;function a(u){return e.enter("atxHeading"),i(u)}function i(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||Hn(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Lt(u)?(e.exit("atxHeading"),t(u)):pn(u)?un(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Hn(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const E8e=["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"],q9=["pre","script","style","textarea"],b8e={name:"htmlFlow",tokenize:T8e,resolveTo:y8e,concrete:!0},S8e={tokenize:R8e,partial:!0},v8e={tokenize:C8e,partial:!0};function y8e(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 T8e(e,t,n){const r=this;let a,i,o,s,l;return c;function c(F){return u(F)}function u(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),p}function p(F){return F===33?(e.consume(F),f):F===47?(e.consume(F),i=!0,E):F===63?(e.consume(F),a=3,r.interrupt?t:k):Ja(F)?(e.consume(F),o=String.fromCharCode(F),y):n(F)}function f(F){return F===45?(e.consume(F),a=2,h):F===91?(e.consume(F),a=5,s=0,g):Ja(F)?(e.consume(F),a=4,r.interrupt?t:k):n(F)}function h(F){return F===45?(e.consume(F),r.interrupt?t:k):n(F)}function g(F){const le="CDATA[";return F===le.charCodeAt(s++)?(e.consume(F),s===le.length?r.interrupt?t:V:g):n(F)}function E(F){return Ja(F)?(e.consume(F),o=String.fromCharCode(F),y):n(F)}function y(F){if(F===null||F===47||F===62||Hn(F)){const le=F===47,Te=o.toLowerCase();return!le&&!i&&q9.includes(Te)?(a=1,r.interrupt?t(F):V(F)):E8e.includes(o.toLowerCase())?(a=6,le?(e.consume(F),b):r.interrupt?t(F):V(F)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(F):i?S(F):C(F))}return F===45||Fa(F)?(e.consume(F),o+=String.fromCharCode(F),y):n(F)}function b(F){return F===62?(e.consume(F),r.interrupt?t:V):n(F)}function S(F){return pn(F)?(e.consume(F),S):D(F)}function C(F){return F===47?(e.consume(F),D):F===58||F===95||Ja(F)?(e.consume(F),T):pn(F)?(e.consume(F),C):D(F)}function T(F){return F===45||F===46||F===58||F===95||Fa(F)?(e.consume(F),T):N(F)}function N(F){return F===61?(e.consume(F),A):pn(F)?(e.consume(F),N):C(F)}function A(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),l=F,O):pn(F)?(e.consume(F),A):M(F)}function O(F){return F===l?(e.consume(F),l=null,P):F===null||Lt(F)?n(F):(e.consume(F),O)}function M(F){return F===null||F===34||F===39||F===47||F===60||F===61||F===62||F===96||Hn(F)?N(F):(e.consume(F),M)}function P(F){return F===47||F===62||pn(F)?C(F):n(F)}function D(F){return F===62?(e.consume(F),$):n(F)}function $(F){return F===null||Lt(F)?V(F):pn(F)?(e.consume(F),$):n(F)}function V(F){return F===45&&a===2?(e.consume(F),he):F===60&&a===1?(e.consume(F),q):F===62&&a===4?(e.consume(F),ie):F===63&&a===3?(e.consume(F),k):F===93&&a===5?(e.consume(F),H):Lt(F)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(S8e,j,Z)(F)):F===null||Lt(F)?(e.exit("htmlFlowData"),Z(F)):(e.consume(F),V)}function Z(F){return e.check(v8e,W,j)(F)}function W(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),ae}function ae(F){return F===null||Lt(F)?Z(F):(e.enter("htmlFlowData"),V(F))}function he(F){return F===45?(e.consume(F),k):V(F)}function q(F){return F===47?(e.consume(F),o="",G):V(F)}function G(F){if(F===62){const le=o.toLowerCase();return q9.includes(le)?(e.consume(F),ie):V(F)}return Ja(F)&&o.length<8?(e.consume(F),o+=String.fromCharCode(F),G):V(F)}function H(F){return F===93?(e.consume(F),k):V(F)}function k(F){return F===62?(e.consume(F),ie):F===45&&a===2?(e.consume(F),k):V(F)}function ie(F){return F===null||Lt(F)?(e.exit("htmlFlowData"),j(F)):(e.consume(F),ie)}function j(F){return e.exit("htmlFlow"),t(F)}}function C8e(e,t,n){const r=this;return a;function a(o){return Lt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function R8e(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Pg,t,n)}}const x8e={name:"htmlText",tokenize:A8e};function A8e(e,t,n){const r=this;let a,i,o;return s;function s(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),l}function l(k){return k===33?(e.consume(k),c):k===47?(e.consume(k),N):k===63?(e.consume(k),C):Ja(k)?(e.consume(k),M):n(k)}function c(k){return k===45?(e.consume(k),u):k===91?(e.consume(k),i=0,g):Ja(k)?(e.consume(k),S):n(k)}function u(k){return k===45?(e.consume(k),h):n(k)}function p(k){return k===null?n(k):k===45?(e.consume(k),f):Lt(k)?(o=p,q(k)):(e.consume(k),p)}function f(k){return k===45?(e.consume(k),h):p(k)}function h(k){return k===62?he(k):k===45?f(k):p(k)}function g(k){const ie="CDATA[";return k===ie.charCodeAt(i++)?(e.consume(k),i===ie.length?E:g):n(k)}function E(k){return k===null?n(k):k===93?(e.consume(k),y):Lt(k)?(o=E,q(k)):(e.consume(k),E)}function y(k){return k===93?(e.consume(k),b):E(k)}function b(k){return k===62?he(k):k===93?(e.consume(k),b):E(k)}function S(k){return k===null||k===62?he(k):Lt(k)?(o=S,q(k)):(e.consume(k),S)}function C(k){return k===null?n(k):k===63?(e.consume(k),T):Lt(k)?(o=C,q(k)):(e.consume(k),C)}function T(k){return k===62?he(k):C(k)}function N(k){return Ja(k)?(e.consume(k),A):n(k)}function A(k){return k===45||Fa(k)?(e.consume(k),A):O(k)}function O(k){return Lt(k)?(o=O,q(k)):pn(k)?(e.consume(k),O):he(k)}function M(k){return k===45||Fa(k)?(e.consume(k),M):k===47||k===62||Hn(k)?P(k):n(k)}function P(k){return k===47?(e.consume(k),he):k===58||k===95||Ja(k)?(e.consume(k),D):Lt(k)?(o=P,q(k)):pn(k)?(e.consume(k),P):he(k)}function D(k){return k===45||k===46||k===58||k===95||Fa(k)?(e.consume(k),D):$(k)}function $(k){return k===61?(e.consume(k),V):Lt(k)?(o=$,q(k)):pn(k)?(e.consume(k),$):P(k)}function V(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),a=k,Z):Lt(k)?(o=V,q(k)):pn(k)?(e.consume(k),V):(e.consume(k),W)}function Z(k){return k===a?(e.consume(k),a=void 0,ae):k===null?n(k):Lt(k)?(o=Z,q(k)):(e.consume(k),Z)}function W(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||Hn(k)?P(k):(e.consume(k),W)}function ae(k){return k===47||k===62||Hn(k)?P(k):n(k)}function he(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function q(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),G}function G(k){return pn(k)?un(e,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):H(k)}function H(k){return e.enter("htmlTextData"),o(k)}}const G5={name:"labelEnd",tokenize:L8e,resolveTo:D8e,resolveAll:w8e},O8e={tokenize:M8e},N8e={tokenize:k8e},I8e={tokenize:P8e};function w8e(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function D8e(e,t){let n=e.length,r=0,a,i,o,s;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[o][1].end)},u={type:"labelText",start:Object.assign({},e[i+r+2][1].end),end:Object.assign({},e[o-2][1].start)};return s=[["enter",l,t],["enter",c,t]],s=To(s,e.slice(i+1,i+r+3)),s=To(s,[["enter",u,t]]),s=To(s,Sy(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),s=To(s,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),s=To(s,e.slice(o+1)),s=To(s,[["exit",l,t]]),wo(e,i,e.length,s),e}function L8e(e,t,n){const r=this;let a=r.events.length,i,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return s;function s(f){return i?i._inactive?p(f):(o=r.parser.defined.includes(ps(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(O8e,u,o?u:p)(f):f===91?e.attempt(N8e,u,o?c:p)(f):o?u(f):p(f)}function c(f){return e.attempt(I8e,u,p)(f)}function u(f){return t(f)}function p(f){return i._balanced=!0,n(f)}}function M8e(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),a}function a(p){return Hn(p)?ih(e,i)(p):i(p)}function i(p){return p===41?u(p):DX(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return Hn(p)?ih(e,l)(p):u(p)}function s(p){return n(p)}function l(p){return p===34||p===39||p===40?MX(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):u(p)}function c(p){return Hn(p)?ih(e,u)(p):u(p)}function u(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function k8e(e,t,n){const r=this;return a;function a(s){return LX.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(ps(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function P8e(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const F8e={name:"labelStartImage",tokenize:B8e,resolveAll:G5.resolveAll};function B8e(e,t,n){const r=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const U8e={name:"labelStartLink",tokenize:$8e,resolveAll:G5.resolveAll};function $8e(e,t,n){const r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const H2={name:"lineEnding",tokenize:z8e};function z8e(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),un(e,t,"linePrefix")}}const qE={name:"thematicBreak",tokenize:H8e};function H8e(e,t,n){let r=0,a;return i;function i(c){return e.enter("thematicBreak"),o(c)}function o(c){return a=c,s(c)}function s(c){return c===a?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||Lt(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===a?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),pn(c)?un(e,s,"whitespace")(c):s(c))}}const fi={name:"list",tokenize:Y8e,continuation:{tokenize:q8e},exit:j8e},G8e={tokenize:K8e,partial:!0},V8e={tokenize:W8e,partial:!0};function Y8e(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:d4(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(qE,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return d4(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Pg,r.interrupt?n:u,e.attempt(G8e,f,p))}function u(h){return r.containerState.initialBlankLine=!0,i++,f(h)}function p(h){return pn(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function q8e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Pg,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,un(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!pn(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(V8e,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,un(e,e.attempt(fi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function W8e(e,t,n){const r=this;return un(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function j8e(e){e.exit(this.containerState.type)}function K8e(e,t,n){const r=this;return un(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function a(i){const o=r.events[r.events.length-1];return!pn(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const W9={name:"setextUnderline",tokenize:X8e,resolveTo:Q8e};function Q8e(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function X8e(e,t,n){const r=this;let a;return i;function i(c){let u=r.events.length,p;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){p=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),a=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===a?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),pn(c)?un(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Lt(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Z8e={tokenize:J8e};function J8e(e){const t=this,n=e.attempt(Pg,r,e.attempt(this.parser.constructs.flowInitial,a,un(e,e.attempt(this.parser.constructs.flow,a,e.attempt(a8e,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const eke={resolveAll:PX()},tke=kX("string"),nke=kX("text");function kX(e){return{tokenize:t,resolveAll:PX(e==="text"?rke:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(u){return c(u)?i(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),i(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const p=a[u];let f=-1;if(p)for(;++f<p.length;){const h=p[f];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function PX(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function rke(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],a=t.sliceStream(r);let i=a.length,o=-1,s=0,l;for(;i--;){const c=a[i];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(c===-2)l=!0,s++;else if(c!==-1){i++;break}}if(s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+i,_bufferIndex:i?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function ake(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const a={},i=[];let o=[],s=[];const l={consume:S,enter:C,exit:T,attempt:O(N),check:O(A),interrupt:O(A,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:f,now:g,defineSkip:E,write:p};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function p($){return o=To(o,$),y(),o[o.length-1]!==null?[]:(M(t,0),c.events=Sy(i,c.events,c),c.events)}function f($,V){return oke(h($),V)}function h($){return ike(o,$)}function g(){const{line:$,column:V,offset:Z,_index:W,_bufferIndex:ae}=r;return{line:$,column:V,offset:Z,_index:W,_bufferIndex:ae}}function E($){a[$.line]=$.column,D()}function y(){let $;for(;r._index<o.length;){const V=o[r._index];if(typeof V=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<V.length;)b(V.charCodeAt(r._bufferIndex));else b(V)}}function b($){u=u($)}function S($){Lt($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,D()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=$}function C($,V){const Z=V||{};return Z.type=$,Z.start=g(),c.events.push(["enter",Z,c]),s.push(Z),Z}function T($){const V=s.pop();return V.end=g(),c.events.push(["exit",V,c]),V}function N($,V){M($,V.from)}function A($,V){V.restore()}function O($,V){return Z;function Z(W,ae,he){let q,G,H,k;return Array.isArray(W)?j(W):"tokenize"in W?j([W]):ie(W);function ie(fe){return Ae;function Ae(Ce){const Ne=Ce!==null&&fe[Ce],ze=Ce!==null&&fe.null,Ue=[...Array.isArray(Ne)?Ne:Ne?[Ne]:[],...Array.isArray(ze)?ze:ze?[ze]:[]];return j(Ue)(Ce)}}function j(fe){return q=fe,G=0,fe.length===0?he:F(fe[G])}function F(fe){return Ae;function Ae(Ce){return k=P(),H=fe,fe.partial||(c.currentConstruct=fe),fe.name&&c.parser.constructs.disable.null.includes(fe.name)?Te():fe.tokenize.call(V?Object.assign(Object.create(c),V):c,l,le,Te)(Ce)}}function le(fe){return $(H,k),ae}function Te(fe){return k.restore(),++G<q.length?F(q[G]):he}}}function M($,V){$.resolveAll&&!i.includes($)&&i.push($),$.resolve&&wo(c.events,V,c.events.length-V,$.resolve(c.events.slice(V),c)),$.resolveTo&&(c.events=$.resolveTo(c.events,c))}function P(){const $=g(),V=c.previous,Z=c.currentConstruct,W=c.events.length,ae=Array.from(s);return{restore:he,from:W};function he(){r=$,c.previous=V,c.currentConstruct=Z,c.events.length=W,s=ae,D()}}function D(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function ike(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function oke(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
|
|
341
341
|
`;break}case-3:{o=`\r
|
|
342
342
|
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(i)}a=i===-2,r.push(o)}return r.join("")}const ske={42:fi,43:fi,45:fi,48:fi,49:fi,50:fi,51:fi,52:fi,53:fi,54:fi,55:fi,56:fi,57:fi,62:OX},lke={91:c8e},cke={[-2]:z2,[-1]:z2,32:z2},uke={35:h8e,42:qE,45:[W9,qE],60:b8e,61:W9,95:qE,96:Y9,126:Y9},dke={38:IX,92:NX},pke={[-5]:H2,[-4]:H2,[-3]:H2,33:F8e,38:IX,42:p4,60:[UMe,x8e],91:U8e,92:[f8e,NX],93:G5,95:p4,96:ZMe},fke={null:[p4,eke]},mke={null:[42,95]},hke={null:[]},gke=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:mke,contentInitial:lke,disable:hke,document:ske,flow:uke,flowInitial:cke,insideSpan:fke,string:dke,text:pke},Symbol.toStringTag,{value:"Module"}));function _ke(e){const n=xX([gke,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:a(DMe),document:a(MMe),flow:a(Z8e),string:a(tke),text:a(nke)};return r;function a(i){return o;function o(s){return ake(r,i,s)}}}function Eke(e){for(;!wX(e););return e}const j9=/[\0\t\n\r]/g;function bke(){let e=1,t="",n=!0,r;return a;function a(i,o,s){const l=[];let c,u,p,f,h;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),p=0,t="",n&&(i.charCodeAt(0)===65279&&p++,n=void 0);p<i.length;){if(j9.lastIndex=p,c=j9.exec(i),f=c&&c.index!==void 0?c.index:i.length,h=i.charCodeAt(f),!c){t=i.slice(p);break}if(h===10&&p===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),p<f&&(l.push(i.slice(p,f)),e+=f-p),h){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}p=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Ske=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vke(e){return e.replace(Ske,yke)}function yke(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return AX(n.slice(i?2:1),i?16:10)}return H5(n)||e}const FX={}.hasOwnProperty;function Tke(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Cke(n)(Eke(_ke(n).document().write(bke()(e,t,!0))))}function Cke(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Ge),autolinkProtocol:P,autolinkEmail:P,atxHeading:i(Me),blockQuote:i(ze),characterEscape:P,characterReference:P,codeFenced:i(Ue),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(Ue,o),codeText:i(Le,o),codeTextData:P,data:P,codeFlowValue:P,definition:i(we),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(Pe),hardBreakEscape:i(lt),hardBreakTrailing:i(lt),htmlFlow:i(it,o),htmlFlowData:P,htmlText:i(it,o),htmlTextData:P,image:i(nt),label:o,link:i(Ge),listItem:i(ct),listItemValue:f,listOrdered:i(at,p),listUnordered:i(at),paragraph:i(se),reference:F,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(Me),strong:i(Fe),thematicBreak:i(oe)},exit:{atxHeading:l(),atxHeadingSequence:N,autolink:l(),autolinkEmail:Ne,autolinkProtocol:Ce,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:Te,characterReferenceMarkerNumeric:Te,characterReferenceValue:fe,characterReference:Ae,codeFenced:l(y),codeFencedFence:E,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:D,codeIndented:l(b),codeText:l(ae),codeTextData:D,data:D,definition:l(),definitionDestinationString:T,definitionLabelString:S,definitionTitleString:C,emphasis:l(),hardBreakEscape:l(V),hardBreakTrailing:l(V),htmlFlow:l(Z),htmlFlowData:D,htmlText:l(W),htmlTextData:D,image:l(q),label:H,labelText:G,lineEnding:$,link:l(he),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:le,resourceDestinationString:k,resourceTitleString:ie,resource:j,setextHeading:l(M),setextHeadingLineSequence:O,setextHeadingText:A,strong:l(),thematicBreak:l()}};BX(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(re){let J={type:"root",children:[]};const ue={stack:[J],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:u,data:n},ve=[];let Ve=-1;for(;++Ve<re.length;)if(re[Ve][1].type==="listOrdered"||re[Ve][1].type==="listUnordered")if(re[Ve][0]==="enter")ve.push(Ve);else{const ot=ve.pop();Ve=a(re,ot,Ve)}for(Ve=-1;++Ve<re.length;){const ot=t[re[Ve][0]];FX.call(ot,re[Ve][1].type)&&ot[re[Ve][1].type].call(Object.assign({sliceSerialize:re[Ve][2].sliceSerialize},ue),re[Ve][1])}if(ue.tokenStack.length>0){const ot=ue.tokenStack[ue.tokenStack.length-1];(ot[1]||K9).call(ue,void 0,ot[0])}for(J.position={start:lc(re.length>0?re[0][1].start:{line:1,column:1,offset:0}),end:lc(re.length>0?re[re.length-2][1].end:{line:1,column:1,offset:0})},Ve=-1;++Ve<t.transforms.length;)J=t.transforms[Ve](J)||J;return J}function a(re,J,ue){let ve=J-1,Ve=-1,ot=!1,qe,Et,be,Q;for(;++ve<=ue;){const X=re[ve];switch(X[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{X[0]==="enter"?Ve++:Ve--,Q=void 0;break}case"lineEndingBlank":{X[0]==="enter"&&(qe&&!Q&&!Ve&&!be&&(be=ve),Q=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Q=void 0}if(!Ve&&X[0]==="enter"&&X[1].type==="listItemPrefix"||Ve===-1&&X[0]==="exit"&&(X[1].type==="listUnordered"||X[1].type==="listOrdered")){if(qe){let _e=ve;for(Et=void 0;_e--;){const ke=re[_e];if(ke[1].type==="lineEnding"||ke[1].type==="lineEndingBlank"){if(ke[0]==="exit")continue;Et&&(re[Et][1].type="lineEndingBlank",ot=!0),ke[1].type="lineEnding",Et=_e}else if(!(ke[1].type==="linePrefix"||ke[1].type==="blockQuotePrefix"||ke[1].type==="blockQuotePrefixWhitespace"||ke[1].type==="blockQuoteMarker"||ke[1].type==="listItemIndent"))break}be&&(!Et||be<Et)&&(qe._spread=!0),qe.end=Object.assign({},Et?re[Et][1].start:X[1].end),re.splice(Et||ve,0,["exit",qe,X[2]]),ve++,ue++}if(X[1].type==="listItemPrefix"){const _e={type:"listItem",_spread:!1,start:Object.assign({},X[1].start),end:void 0};qe=_e,re.splice(ve,0,["enter",_e,X[2]]),ve++,ue++,be=void 0,Q=!0}}}return re[J][1]._spread=ot,ue}function i(re,J){return ue;function ue(ve){s.call(this,re(ve),ve),J&&J.call(this,ve)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(re,J,ue){this.stack[this.stack.length-1].children.push(re),this.stack.push(re),this.tokenStack.push([J,ue]),re.position={start:lc(J.start),end:void 0}}function l(re){return J;function J(ue){re&&re.call(this,ue),c.call(this,ue)}}function c(re,J){const ue=this.stack.pop(),ve=this.tokenStack.pop();if(ve)ve[0].type!==re.type&&(J?J.call(this,re,ve[0]):(ve[1]||K9).call(this,re,ve[0]));else throw new Error("Cannot close `"+re.type+"` ("+ah({start:re.start,end:re.end})+"): it’s not open");ue.position.end=lc(re.end)}function u(){return z5(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function f(re){if(this.data.expectingFirstListItemValue){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(re),10),this.data.expectingFirstListItemValue=void 0}}function h(){const re=this.resume(),J=this.stack[this.stack.length-1];J.lang=re}function g(){const re=this.resume(),J=this.stack[this.stack.length-1];J.meta=re}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const re=this.resume(),J=this.stack[this.stack.length-1];J.value=re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const re=this.resume(),J=this.stack[this.stack.length-1];J.value=re.replace(/(\r?\n|\r)$/g,"")}function S(re){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.label=J,ue.identifier=ps(this.sliceSerialize(re)).toLowerCase()}function C(){const re=this.resume(),J=this.stack[this.stack.length-1];J.title=re}function T(){const re=this.resume(),J=this.stack[this.stack.length-1];J.url=re}function N(re){const J=this.stack[this.stack.length-1];if(!J.depth){const ue=this.sliceSerialize(re).length;J.depth=ue}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function O(re){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(re).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function P(re){const ue=this.stack[this.stack.length-1].children;let ve=ue[ue.length-1];(!ve||ve.type!=="text")&&(ve=ge(),ve.position={start:lc(re.start),end:void 0},ue.push(ve)),this.stack.push(ve)}function D(re){const J=this.stack.pop();J.value+=this.sliceSerialize(re),J.position.end=lc(re.end)}function $(re){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ue=J.children[J.children.length-1];ue.position.end=lc(re.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(J.type)&&(P.call(this,re),D.call(this,re))}function V(){this.data.atHardBreak=!0}function Z(){const re=this.resume(),J=this.stack[this.stack.length-1];J.value=re}function W(){const re=this.resume(),J=this.stack[this.stack.length-1];J.value=re}function ae(){const re=this.resume(),J=this.stack[this.stack.length-1];J.value=re}function he(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=J,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function q(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=J,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function G(re){const J=this.sliceSerialize(re),ue=this.stack[this.stack.length-2];ue.label=vke(J),ue.identifier=ps(J).toLowerCase()}function H(){const re=this.stack[this.stack.length-1],J=this.resume(),ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,ue.type==="link"){const ve=re.children;ue.children=ve}else ue.alt=J}function k(){const re=this.resume(),J=this.stack[this.stack.length-1];J.url=re}function ie(){const re=this.resume(),J=this.stack[this.stack.length-1];J.title=re}function j(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function le(re){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.label=J,ue.identifier=ps(this.sliceSerialize(re)).toLowerCase(),this.data.referenceType="full"}function Te(re){this.data.characterReferenceType=re.type}function fe(re){const J=this.sliceSerialize(re),ue=this.data.characterReferenceType;let ve;ue?(ve=AX(J,ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ve=H5(J);const Ve=this.stack[this.stack.length-1];Ve.value+=ve}function Ae(re){const J=this.stack.pop();J.position.end=lc(re.end)}function Ce(re){D.call(this,re);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(re)}function Ne(re){D.call(this,re);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(re)}function ze(){return{type:"blockquote",children:[]}}function Ue(){return{type:"code",lang:null,meta:null,value:""}}function Le(){return{type:"inlineCode",value:""}}function we(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pe(){return{type:"emphasis",children:[]}}function Me(){return{type:"heading",depth:0,children:[]}}function lt(){return{type:"break"}}function it(){return{type:"html",value:""}}function nt(){return{type:"image",title:null,url:"",alt:null}}function Ge(){return{type:"link",title:null,url:"",children:[]}}function at(re){return{type:"list",ordered:re.type==="listOrdered",start:null,spread:re._spread,children:[]}}function ct(re){return{type:"listItem",spread:re._spread,checked:null,children:[]}}function se(){return{type:"paragraph",children:[]}}function Fe(){return{type:"strong",children:[]}}function ge(){return{type:"text",value:""}}function oe(){return{type:"thematicBreak"}}}function lc(e){return{line:e.line,column:e.column,offset:e.offset}}function BX(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?BX(e,r):Rke(e,r)}}function Rke(e,t){let n;for(n in t)if(FX.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 K9(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ah({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ah({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ah({start:t.start,end:t.end})+") is still open")}function xke(e){const t=this;t.parser=n;function n(r){return Tke(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ake(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 Oke(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
@@ -649,7 +649,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ie=q,k=G),H===void 0&&
|
|
|
649
649
|
}
|
|
650
650
|
`,cH="";function k4({whitespace:e}){return _.jsx(_t,{component:"span",sx:{display:"inline-block",width:"12px",height:"12px",backgroundColor:"text.primary",borderRadius:"50%",animation:`1s ease-in-out 0.1s ${TWe} infinite`,ml:e?"0.5em":0}})}const CWe=()=>e=>{Bg(e,"text",(t,n,r)=>{var o;const a=/\u200B/g,i=[...((o=t.value)==null?void 0:o.matchAll(a))||[]];if(i.length>0){const s=[];let l=0;i.forEach(c=>{const[u]=c,p=c.index,f=p+u.length;p>l&&s.push({type:"text",value:t.value.slice(l,p)}),s.push({type:"blinkingCursor",data:{hName:"blinkingCursor",hProperties:{text:"Blinking Cursor"}}}),l=f}),l<t.value.length&&s.push({type:"text",value:t.value.slice(l)}),r.children.splice(n,1,...s)}})};function eg({refElements:e,allowHtml:t,latex:n,children:r}){const a=x.useMemo(()=>{let o=[];return t&&(o=[y$e,...o]),n&&(o=[bFe,...o]),o},[t,n]),i=x.useMemo(()=>{let o=[CWe,wHe];return n&&(o=[...o,HHe]),o},[n]);return _.jsx(GPe,{remarkPlugins:i,rehypePlugins:a,className:"markdown-body",components:{a({children:o,...s}){const l=o,c=e==null?void 0:e.find(u=>u.name===l);return c?_.jsx(yWe,{element:c}):_.jsx(Zp,{...s,target:"_blank",children:o})},code({...o}){return _.jsx(GHe,{...o})},pre({...o}){return _.jsx(vWe,{...o})},table({children:o,...s}){return _.jsx($De,{sx:{width:"fit-content",minWidth:"300px"},elevation:0,component:Qf,children:_.jsx(bDe,{...s,children:o})})},thead({children:o,...s}){return _.jsx(WDe,{...s,children:o})},tr({children:o,...s}){return _.jsx(e6e,{...s,children:o})},th({children:o,...s}){return _.jsx(o9,{...s,align:"right",sx:{padding:1},children:o})},td({children:o,...s}){return _.jsx(o9,{...s,align:"right",sx:{padding:1},children:o})},tbody({children:o,...s}){return _.jsx(ADe,{...s,children:o})},blinkingCursor:()=>_.jsx(k4,{whitespace:!0})},children:r})}const Zr=kn({key:"ProjectSettings",default:void 0}),Cee=kn({key:"HighlightMessage",default:null}),Ree=kn({key:"chatSettingsOpen",default:!1}),xee=({element:e})=>{var l,c;const{data:t,error:n,isLoading:r}=sX(e.url||null),a=yt(Zr),i=(l=a==null?void 0:a.features)==null?void 0:l.unsafe_allow_html,o=(c=a==null?void 0:a.features)==null?void 0:c.latex;let s="";return r?s="Loading...":n?s="An error occured":t&&(s=t),!r&&!n&&e.language&&(s=`\`\`\`${e.language}
|
|
651
651
|
${s}
|
|
652
|
-
\`\`\``),_.jsx(_t,{sx:{fontFamily:u=>u.typography.fontFamily},children:_.jsx(eg,{allowHtml:i,latex:o,children:s})})};var RWe=function(t,n,r){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=t,n.attrs&&xWe(i,n.attrs),n.text&&(i.text=""+n.text);var o="onload"in i?uH:AWe;o(i,r),i.onload||uH(i,r),a.appendChild(i)};function xWe(e,t){for(var n in t)e.setAttribute(n,t[n])}function uH(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function AWe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var OWe=function(t){return NWe(t)&&!IWe(t)};function NWe(e){return!!e&&typeof e=="object"}function IWe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||LWe(e)}var wWe=typeof Symbol=="function"&&Symbol.for,DWe=wWe?Symbol.for("react.element"):60103;function LWe(e){return e.$$typeof===DWe}function MWe(e){return Array.isArray(e)?[]:{}}function tg(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wf(MWe(e),e,t):e}function kWe(e,t,n){return e.concat(t).map(function(r){return tg(r,n)})}function PWe(e,t){if(!t.customMerge)return wf;var n=t.customMerge(e);return typeof n=="function"?n:wf}function FWe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function dH(e){return Object.keys(e).concat(FWe(e))}function Aee(e,t){try{return t in e}catch{return!1}}function BWe(e,t){return Aee(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function UWe(e,t,n){var r={};return n.isMergeableObject(e)&&dH(e).forEach(function(a){r[a]=tg(e[a],n)}),dH(t).forEach(function(a){BWe(e,a)||(Aee(e,a)&&n.isMergeableObject(t[a])?r[a]=PWe(a,n)(e[a],t[a],n):r[a]=tg(t[a],n))}),r}function wf(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||kWe,n.isMergeableObject=n.isMergeableObject||OWe,n.cloneUnlessOtherwiseSpecified=tg;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):UWe(e,t,n):tg(t,n)}wf.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return wf(r,a,n)},{})};var $We=wf,Oee=$We,zWe=Object.create,ky=Object.defineProperty,HWe=Object.getOwnPropertyDescriptor,GWe=Object.getOwnPropertyNames,VWe=Object.getPrototypeOf,YWe=Object.prototype.hasOwnProperty,qWe=(e,t)=>{for(var n in t)ky(e,n,{get:t[n],enumerable:!0})},Nee=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of GWe(t))!YWe.call(e,a)&&a!==n&&ky(e,a,{get:()=>t[a],enumerable:!(r=HWe(t,a))||r.enumerable});return e},ID=(e,t,n)=>(n=e!=null?zWe(VWe(e)):{},Nee(t||!e||!e.__esModule?ky(n,"default",{value:e,enumerable:!0}):n,e)),WWe=e=>Nee(ky({},"__esModule",{value:!0}),e),Iee={};qWe(Iee,{callPlayer:()=>cje,getConfig:()=>sje,getSDK:()=>oje,isBlobUrl:()=>dje,isMediaStream:()=>uje,lazy:()=>XWe,omit:()=>lje,parseEndTime:()=>rje,parseStartTime:()=>nje,queryString:()=>ije,randomString:()=>aje,supportsWebKitPresentationMode:()=>pje});var Py=WWe(Iee),jWe=ID(x),KWe=ID(RWe),QWe=ID(Oee);const XWe=e=>jWe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),ZWe=/[?&#](?:start|t)=([0-9hms]+)/,JWe=/[?&#]end=([0-9hms]+)/,P4=/(\d+)(h|m|s)/g,eje=/^\d+$/;function wee(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(P4))return tje(r);if(eje.test(r))return parseInt(r)}}function tje(e){let t=0,n=P4.exec(e);for(;n!==null;){const[,r,a]=n;a==="h"&&(t+=parseInt(r,10)*60*60),a==="m"&&(t+=parseInt(r,10)*60),a==="s"&&(t+=parseInt(r,10)),n=P4.exec(e)}return t}function nje(e){return wee(e,ZWe)}function rje(e){return wee(e,JWe)}function aje(){return Math.random().toString(36).substr(2,5)}function ije(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function KO(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const lp={},oje=function(t,n,r=null,a=()=>!0,i=KWe.default){const o=KO(n);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(lp[t]){lp[t].push({resolve:s,reject:l});return}lp[t]=[{resolve:s,reject:l}];const c=u=>{lp[t].forEach(p=>p.resolve(u))};if(r){const u=window[r];window[r]=function(){u&&u(),c(KO(n))}}i(t,u=>{u?(lp[t].forEach(p=>p.reject(u)),lp[t]=null):r||c(KO(n))})})};function sje(e,t){return(0,QWe.default)(t.config,e.config)}function lje(e,...t){const n=[].concat(...t),r={},a=Object.keys(e);for(const i of a)n.indexOf(i)===-1&&(r[i]=e[i]);return r}function cje(e,...t){if(!this.player||!this.player[e]){let n=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}return this.player[e](...t)}function uje(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function dje(e){return/^blob:/.test(e)}function pje(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var wD=Object.defineProperty,fje=Object.getOwnPropertyDescriptor,mje=Object.getOwnPropertyNames,hje=Object.prototype.hasOwnProperty,gje=(e,t)=>{for(var n in t)wD(e,n,{get:t[n],enumerable:!0})},_je=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of mje(t))!hje.call(e,a)&&a!==n&&wD(e,a,{get:()=>t[a],enumerable:!(r=fje(t,a))||r.enumerable});return e},Eje=e=>_je(wD({},"__esModule",{value:!0}),e),Dee={};gje(Dee,{AUDIO_EXTENSIONS:()=>DD,DASH_EXTENSIONS:()=>qee,FLV_EXTENSIONS:()=>Wee,HLS_EXTENSIONS:()=>MD,MATCH_URL_DAILYMOTION:()=>Hee,MATCH_URL_FACEBOOK:()=>Pee,MATCH_URL_FACEBOOK_WATCH:()=>Fee,MATCH_URL_KALTURA:()=>Yee,MATCH_URL_MIXCLOUD:()=>Gee,MATCH_URL_MUX:()=>kee,MATCH_URL_SOUNDCLOUD:()=>Lee,MATCH_URL_STREAMABLE:()=>Bee,MATCH_URL_TWITCH_CHANNEL:()=>zee,MATCH_URL_TWITCH_VIDEO:()=>$ee,MATCH_URL_VIDYARD:()=>Vee,MATCH_URL_VIMEO:()=>Mee,MATCH_URL_WISTIA:()=>Uee,MATCH_URL_YOUTUBE:()=>F4,VIDEO_EXTENSIONS:()=>LD,canPlay:()=>Sje});var bje=Eje(Dee),pH=Py;const F4=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,Lee=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,Mee=/vimeo\.com\/(?!progressive_redirect).+/,kee=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,Pee=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,Fee=/^https?:\/\/fb\.watch\/.+$/,Bee=/streamable\.com\/([a-z0-9]+)$/,Uee=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,$ee=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,zee=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,Hee=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,Gee=/mixcloud\.com\/([^/]+\/[^/]+)/,Vee=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,Yee=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,DD=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,LD=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,MD=/\.(m3u8)($|\?)/i,qee=/\.(mpd)($|\?)/i,Wee=/\.(flv)($|\?)/i,B4=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&B4(t)||B4(t.src))return!0;return!1}return(0,pH.isMediaStream)(e)||(0,pH.isBlobUrl)(e)?!0:DD.test(e)||LD.test(e)||MD.test(e)||qee.test(e)||Wee.test(e)},Sje={youtube:e=>e instanceof Array?e.every(t=>F4.test(t)):F4.test(e),soundcloud:e=>Lee.test(e)&&!DD.test(e),vimeo:e=>Mee.test(e)&&!LD.test(e)&&!MD.test(e),mux:e=>kee.test(e),facebook:e=>Pee.test(e)||Fee.test(e),streamable:e=>Bee.test(e),wistia:e=>Uee.test(e),twitch:e=>$ee.test(e)||zee.test(e),dailymotion:e=>Hee.test(e),mixcloud:e=>Gee.test(e),vidyard:e=>Vee.test(e),kaltura:e=>Yee.test(e),file:B4};var kD=Object.defineProperty,vje=Object.getOwnPropertyDescriptor,yje=Object.getOwnPropertyNames,Tje=Object.prototype.hasOwnProperty,Cje=(e,t)=>{for(var n in t)kD(e,n,{get:t[n],enumerable:!0})},Rje=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yje(t))!Tje.call(e,a)&&a!==n&&kD(e,a,{get:()=>t[a],enumerable:!(r=vje(t,a))||r.enumerable});return e},xje=e=>Rje(kD({},"__esModule",{value:!0}),e),jee={};Cje(jee,{default:()=>Oje});var Aje=xje(jee),di=Py,qa=bje,Oje=[{key:"youtube",name:"YouTube",canPlay:qa.canPlay.youtube,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./YouTube-c07cbcf8.js").then(e=>e.Y),[]))},{key:"soundcloud",name:"SoundCloud",canPlay:qa.canPlay.soundcloud,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./SoundCloud-4f28b9a5.js").then(e=>e.S),[]))},{key:"vimeo",name:"Vimeo",canPlay:qa.canPlay.vimeo,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Vimeo-57df3f2a.js").then(e=>e.V),[]))},{key:"mux",name:"Mux",canPlay:qa.canPlay.mux,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Mux-1b653abe.js").then(e=>e.M),[]))},{key:"facebook",name:"Facebook",canPlay:qa.canPlay.facebook,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Facebook-0280efb3.js").then(e=>e.F),[]))},{key:"streamable",name:"Streamable",canPlay:qa.canPlay.streamable,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Streamable-5f54a48c.js").then(e=>e.S),[]))},{key:"wistia",name:"Wistia",canPlay:qa.canPlay.wistia,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Wistia-5b0cff10.js").then(e=>e.W),[]))},{key:"twitch",name:"Twitch",canPlay:qa.canPlay.twitch,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Twitch-2a06480f.js").then(e=>e.T),[]))},{key:"dailymotion",name:"DailyMotion",canPlay:qa.canPlay.dailymotion,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./DailyMotion-863636d0.js").then(e=>e.D),[]))},{key:"mixcloud",name:"Mixcloud",canPlay:qa.canPlay.mixcloud,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Mixcloud-021e94e9.js").then(e=>e.M),[]))},{key:"vidyard",name:"Vidyard",canPlay:qa.canPlay.vidyard,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Vidyard-2f2482c5.js").then(e=>e.V),[]))},{key:"kaltura",name:"Kaltura",canPlay:qa.canPlay.kaltura,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Kaltura-1f532b59.js").then(e=>e.K),[]))},{key:"file",name:"FilePlayer",canPlay:qa.canPlay.file,canEnablePIP:e=>qa.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,di.supportsWebKitPresentationMode)())&&!qa.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./FilePlayer-1528f89e.js").then(e=>e.F),[]))}],fH=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Nje(e,t){return!!(e===t||fH(e)&&fH(t))}function Ije(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Nje(e[n],t[n]))return!1;return!0}function wje(e,t){t===void 0&&(t=Ije);var n,r=[],a,i=!1;function o(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return i&&n===this&&t(s,r)||(a=e.apply(this,s),i=!0,n=this,r=s),a}return o}const Dje=Object.freeze(Object.defineProperty({__proto__:null,default:wje},Symbol.toStringTag,{value:"Module"})),Lje=b3(Dje);var Mje=typeof Element<"u",kje=typeof Map=="function",Pje=typeof Set=="function",Fje=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ZE(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,a;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ZE(e[r],t[r]))return!1;return!0}var i;if(kje&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!ZE(r.value[1],t.get(r.value[0])))return!1;return!0}if(Pje&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Fje&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;if(Mje&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((a[r]==="_owner"||a[r]==="__v"||a[r]==="__o")&&e.$$typeof)&&!ZE(e[a[r]],t[a[r]]))return!1;return!0}return e!==e&&t!==t}var Kee=function(t,n){try{return ZE(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},Bje=Object.create,Fy=Object.defineProperty,Uje=Object.getOwnPropertyDescriptor,$je=Object.getOwnPropertyNames,zje=Object.getPrototypeOf,Hje=Object.prototype.hasOwnProperty,Gje=(e,t)=>{for(var n in t)Fy(e,n,{get:t[n],enumerable:!0})},Qee=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $je(t))!Hje.call(e,a)&&a!==n&&Fy(e,a,{get:()=>t[a],enumerable:!(r=Uje(t,a))||r.enumerable});return e},Vje=(e,t,n)=>(n=e!=null?Bje(zje(e)):{},Qee(t||!e||!e.__esModule?Fy(n,"default",{value:e,enumerable:!0}):n,e)),Yje=e=>Qee(Fy({},"__esModule",{value:!0}),e),Xee={};Gje(Xee,{defaultProps:()=>jje,propTypes:()=>Wje});var Zee=Yje(Xee),qje=Vje(Wf);const{string:_a,bool:Wa,number:cp,array:QO,oneOfType:Sm,shape:Ui,object:La,func:jr,node:mH}=qje.default,Wje={url:Sm([_a,QO,La]),playing:Wa,loop:Wa,controls:Wa,volume:cp,muted:Wa,playbackRate:cp,width:Sm([_a,cp]),height:Sm([_a,cp]),style:La,progressInterval:cp,playsinline:Wa,pip:Wa,stopOnUnmount:Wa,light:Sm([Wa,_a,La]),playIcon:mH,previewTabIndex:cp,previewAriaLabel:_a,fallback:mH,oEmbedUrl:_a,wrapper:Sm([_a,jr,Ui({render:jr.isRequired})]),config:Ui({soundcloud:Ui({options:La}),youtube:Ui({playerVars:La,embedOptions:La,onUnstarted:jr}),facebook:Ui({appId:_a,version:_a,playerId:_a,attributes:La}),dailymotion:Ui({params:La}),vimeo:Ui({playerOptions:La,title:_a}),mux:Ui({attributes:La,version:_a}),file:Ui({attributes:La,tracks:QO,forceVideo:Wa,forceAudio:Wa,forceHLS:Wa,forceSafariHLS:Wa,forceDisableHls:Wa,forceDASH:Wa,forceFLV:Wa,hlsOptions:La,hlsVersion:_a,dashVersion:_a,flvVersion:_a}),wistia:Ui({options:La,playerId:_a,customControls:QO}),mixcloud:Ui({options:La}),twitch:Ui({options:La,playerId:_a}),vidyard:Ui({options:La})}),onReady:jr,onStart:jr,onPlay:jr,onPause:jr,onBuffer:jr,onBufferEnd:jr,onEnded:jr,onError:jr,onDuration:jr,onSeek:jr,onPlaybackRateChange:jr,onPlaybackQualityChange:jr,onProgress:jr,onClickPreview:jr,onEnablePIP:jr,onDisablePIP:jr},Ea=()=>{},jje={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Ea},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Ea,onStart:Ea,onPlay:Ea,onPause:Ea,onBuffer:Ea,onBufferEnd:Ea,onEnded:Ea,onError:Ea,onDuration:Ea,onSeek:Ea,onPlaybackRateChange:Ea,onPlaybackQualityChange:Ea,onProgress:Ea,onClickPreview:Ea,onEnablePIP:Ea,onDisablePIP:Ea};var Kje=Object.create,Yg=Object.defineProperty,Qje=Object.getOwnPropertyDescriptor,Xje=Object.getOwnPropertyNames,Zje=Object.getPrototypeOf,Jje=Object.prototype.hasOwnProperty,eKe=(e,t,n)=>t in e?Yg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tKe=(e,t)=>{for(var n in t)Yg(e,n,{get:t[n],enumerable:!0})},Jee=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Xje(t))!Jje.call(e,a)&&a!==n&&Yg(e,a,{get:()=>t[a],enumerable:!(r=Qje(t,a))||r.enumerable});return e},ete=(e,t,n)=>(n=e!=null?Kje(Zje(e)):{},Jee(t||!e||!e.__esModule?Yg(n,"default",{value:e,enumerable:!0}):n,e)),nKe=e=>Jee(Yg({},"__esModule",{value:!0}),e),wr=(e,t,n)=>(eKe(e,typeof t!="symbol"?t+"":t,n),n),tte={};tKe(tte,{default:()=>By});var rKe=nKe(tte),hH=ete(x),aKe=ete(Kee),nte=Zee,iKe=Py;const oKe=5e3;class By extends hH.Component{constructor(){super(...arguments),wr(this,"mounted",!1),wr(this,"isReady",!1),wr(this,"isPlaying",!1),wr(this,"isLoading",!0),wr(this,"loadOnReady",null),wr(this,"startOnPlay",!0),wr(this,"seekOnPlay",null),wr(this,"onDurationCalled",!1),wr(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),wr(this,"getInternalPlayer",t=>this.player?this.player[t]:null),wr(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:t,played:t/r};n!==null&&(a.loadedSeconds=n,a.loaded=n/r),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),wr(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:a}=this.props;t(),!a&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),wr(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:n,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&r!==1&&this.player.setPlaybackRate(r),t(),this.startOnPlay=!1),n(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),wr(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),wr(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),wr(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),wr(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),wr(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:n,playing:r,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:c,disableDeferredLoading:u}=this.props;if(!(0,aKe.default)(t.url,n)){if(this.isLoading&&!c.forceLoad&&!u&&!(0,iKe.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},oKe));return}if(n?n==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?hH.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}wr(By,"displayName","Player");wr(By,"propTypes",nte.propTypes);wr(By,"defaultProps",nte.defaultProps);var sKe=Object.create,qg=Object.defineProperty,lKe=Object.getOwnPropertyDescriptor,cKe=Object.getOwnPropertyNames,uKe=Object.getPrototypeOf,dKe=Object.prototype.hasOwnProperty,pKe=(e,t,n)=>t in e?qg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fKe=(e,t)=>{for(var n in t)qg(e,n,{get:t[n],enumerable:!0})},rte=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of cKe(t))!dKe.call(e,a)&&a!==n&&qg(e,a,{get:()=>t[a],enumerable:!(r=lKe(t,a))||r.enumerable});return e},Wg=(e,t,n)=>(n=e!=null?sKe(uKe(e)):{},rte(t||!e||!e.__esModule?qg(n,"default",{value:e,enumerable:!0}):n,e)),mKe=e=>rte(qg({},"__esModule",{value:!0}),e),Ir=(e,t,n)=>(pKe(e,typeof t!="symbol"?t+"":t,n),n),ate={};fKe(ate,{createReactPlayer:()=>TKe});var hKe=mKe(ate),Sp=Wg(x),gKe=Wg(Oee),XO=Wg(Lje),gH=Wg(Kee),Fm=Zee,ite=Py,_Ke=Wg(rKe);const EKe=(0,ite.lazy)(()=>ja(()=>import("./Preview-de062677.js").then(e=>e.P),[])),bKe=typeof window<"u"&&window.document&&typeof document<"u",SKe=typeof aa<"u"&&aa.window&&aa.window.document,vKe=Object.keys(Fm.propTypes),yKe=bKe||SKe?Sp.Suspense:()=>null,vm=[],TKe=(e,t)=>{var n;return n=class extends Sp.Component{constructor(){super(...arguments),Ir(this,"state",{showPreview:!!this.props.light}),Ir(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),Ir(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),Ir(this,"showPreview",()=>{this.setState({showPreview:!0})}),Ir(this,"getDuration",()=>this.player?this.player.getDuration():null),Ir(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),Ir(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),Ir(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),Ir(this,"seekTo",(r,a,i)=>{if(!this.player)return null;this.player.seekTo(r,a,i)}),Ir(this,"handleReady",()=>{this.props.onReady(this)}),Ir(this,"getActivePlayer",(0,XO.default)(r=>{for(const a of[...vm,...e])if(a.canPlay(r))return a;return t||null})),Ir(this,"getConfig",(0,XO.default)((r,a)=>{const{config:i}=this.props;return gKe.default.all([Fm.defaultProps.config,Fm.defaultProps.config[a]||{},i,i[a]||{}])})),Ir(this,"getAttributes",(0,XO.default)(r=>(0,ite.omit)(this.props,vKe))),Ir(this,"renderActivePlayer",r=>{if(!r)return null;const a=this.getActivePlayer(r);if(!a)return null;const i=this.getConfig(r,a.key);return Sp.default.createElement(_Ke.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(r,a){return!(0,gH.default)(this.props,r)||!(0,gH.default)(this.state,a)}componentDidUpdate(r){const{light:a}=this.props;!r.light&&a&&this.setState({showPreview:!0}),r.light&&!a&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,previewAriaLabel:l}=this.props;return Sp.default.createElement(EKe,{url:r,light:a,playIcon:i,previewTabIndex:o,previewAriaLabel:l,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:c}=this.state,u=this.getAttributes(r),p=typeof l=="string"?this.references.wrapper:void 0;return Sp.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...u},Sp.default.createElement(yKe,{fallback:s},c?this.renderPreview(r):this.renderActivePlayer(r)))}},Ir(n,"displayName","ReactPlayer"),Ir(n,"propTypes",Fm.propTypes),Ir(n,"defaultProps",Fm.defaultProps),Ir(n,"addCustomPlayer",r=>{vm.push(r)}),Ir(n,"removeCustomPlayers",()=>{vm.length=0}),Ir(n,"canPlay",r=>{for(const a of[...vm,...e])if(a.canPlay(r))return!0;return!1}),Ir(n,"canEnablePIP",r=>{for(const a of[...vm,...e])if(a.canEnablePIP&&a.canEnablePIP(r))return!0;return!1}),n};var CKe=Object.create,Uy=Object.defineProperty,RKe=Object.getOwnPropertyDescriptor,xKe=Object.getOwnPropertyNames,AKe=Object.getPrototypeOf,OKe=Object.prototype.hasOwnProperty,NKe=(e,t)=>{for(var n in t)Uy(e,n,{get:t[n],enumerable:!0})},ote=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of xKe(t))!OKe.call(e,a)&&a!==n&&Uy(e,a,{get:()=>t[a],enumerable:!(r=RKe(t,a))||r.enumerable});return e},IKe=(e,t,n)=>(n=e!=null?CKe(AKe(e)):{},ote(t||!e||!e.__esModule?Uy(n,"default",{value:e,enumerable:!0}):n,e)),wKe=e=>ote(Uy({},"__esModule",{value:!0}),e),ste={};NKe(ste,{default:()=>kKe});var DKe=wKe(ste),U4=IKe(Aje),LKe=hKe;const MKe=U4.default[U4.default.length-1];var kKe=(0,LKe.createReactPlayer)(U4.default,MKe);const PKe=Aa(DKe),lte=({element:e})=>e.url?_.jsx(PKe,{className:`${e.display}-video`,width:"100%",controls:!0,url:e.url,config:e.playerConfig||{}}):null,cte=({element:e})=>{switch(e==null?void 0:e.type){case"file":return _.jsx(jQ,{element:e});case"image":return _.jsx(KQ,{element:e});case"text":return _.jsx(xee,{element:e});case"pdf":return _.jsx(QQ,{element:e});case"audio":return _.jsx(HQ,{element:e});case"video":return _.jsx(lte,{element:e});case"plotly":return _.jsx(lX,{element:e});default:return null}};var PD={exports:{}},jg={},$y={exports:{}},ute={};function dte(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=dte(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function _H(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=dte(e))&&(r&&(r+=" "),r+=t);return r}const FKe=Object.freeze(Object.defineProperty({__proto__:null,clsx:_H,default:_H},Symbol.toStringTag,{value:"Module"})),BKe=b3(FKe);var xr={},Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});Xs.dontSetMe=GKe;Xs.findInArray=UKe;Xs.int=HKe;Xs.isFunction=$Ke;Xs.isNum=zKe;function UKe(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function $Ke(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function zKe(e){return typeof e=="number"&&!isNaN(e)}function HKe(e){return parseInt(e,10)}function GKe(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var Ad={};Object.defineProperty(Ad,"__esModule",{value:!0});Ad.browserPrefixToKey=fte;Ad.browserPrefixToStyle=VKe;Ad.default=void 0;Ad.getPrefix=pte;const ZO=["Moz","Webkit","O","ms"];function pte(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!n||t in n)return"";for(let r=0;r<ZO.length;r++)if(fte(t,ZO[r])in n)return ZO[r];return""}function fte(e,t){return t?"".concat(t).concat(YKe(e)):e}function VKe(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function YKe(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):e[r]==="-"?n=!0:t+=e[r];return t}Ad.default=pte();Object.defineProperty(xr,"__esModule",{value:!0});xr.addClassName=gte;xr.addEvent=jKe;xr.addUserSelectStyles=iQe;xr.createCSSTransform=tQe;xr.createSVGTransform=nQe;xr.getTouch=rQe;xr.getTouchIdentifier=aQe;xr.getTranslation=FD;xr.innerHeight=ZKe;xr.innerWidth=JKe;xr.matchesSelector=hte;xr.matchesSelectorAndParentsTo=WKe;xr.offsetXYFromParent=eQe;xr.outerHeight=QKe;xr.outerWidth=XKe;xr.removeClassName=_te;xr.removeEvent=KKe;xr.removeUserSelectStyles=oQe;var Xi=Xs,EH=qKe(Ad);function mte(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(mte=function(r){return r?n:t})(e)}function qKe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=mte(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}let hE="";function hte(e,t){return hE||(hE=(0,Xi.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,Xi.isFunction)(e[n])})),(0,Xi.isFunction)(e[hE])?e[hE](t):!1}function WKe(e,t,n){let r=e;do{if(hte(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function jKe(e,t,n,r){if(!e)return;const a={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,a):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function KKe(e,t,n,r){if(!e)return;const a={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,a):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function QKe(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Xi.int)(n.borderTopWidth),t+=(0,Xi.int)(n.borderBottomWidth),t}function XKe(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Xi.int)(n.borderLeftWidth),t+=(0,Xi.int)(n.borderRightWidth),t}function ZKe(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Xi.int)(n.paddingTop),t-=(0,Xi.int)(n.paddingBottom),t}function JKe(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Xi.int)(n.paddingLeft),t-=(0,Xi.int)(n.paddingRight),t}function eQe(e,t,n){const a=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-a.left)/n,o=(e.clientY+t.scrollTop-a.top)/n;return{x:i,y:o}}function tQe(e,t){const n=FD(e,t,"px");return{[(0,EH.browserPrefixToKey)("transform",EH.default)]:n}}function nQe(e,t){return FD(e,t,"")}function FD(e,t,n){let{x:r,y:a}=e,i="translate(".concat(r).concat(n,",").concat(a).concat(n,")");if(t){const o="".concat(typeof t.x=="string"?t.x:t.x+n),s="".concat(typeof t.y=="string"?t.y:t.y+n);i="translate(".concat(o,", ").concat(s,")")+i}return i}function rQe(e,t){return e.targetTouches&&(0,Xi.findInArray)(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&(0,Xi.findInArray)(e.changedTouches,n=>t===n.identifier)}function aQe(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function iQe(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
652
|
+
\`\`\``),_.jsx(_t,{sx:{fontFamily:u=>u.typography.fontFamily},children:_.jsx(eg,{allowHtml:i,latex:o,children:s})})};var RWe=function(t,n,r){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=t,n.attrs&&xWe(i,n.attrs),n.text&&(i.text=""+n.text);var o="onload"in i?uH:AWe;o(i,r),i.onload||uH(i,r),a.appendChild(i)};function xWe(e,t){for(var n in t)e.setAttribute(n,t[n])}function uH(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function AWe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var OWe=function(t){return NWe(t)&&!IWe(t)};function NWe(e){return!!e&&typeof e=="object"}function IWe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||LWe(e)}var wWe=typeof Symbol=="function"&&Symbol.for,DWe=wWe?Symbol.for("react.element"):60103;function LWe(e){return e.$$typeof===DWe}function MWe(e){return Array.isArray(e)?[]:{}}function tg(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wf(MWe(e),e,t):e}function kWe(e,t,n){return e.concat(t).map(function(r){return tg(r,n)})}function PWe(e,t){if(!t.customMerge)return wf;var n=t.customMerge(e);return typeof n=="function"?n:wf}function FWe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function dH(e){return Object.keys(e).concat(FWe(e))}function Aee(e,t){try{return t in e}catch{return!1}}function BWe(e,t){return Aee(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function UWe(e,t,n){var r={};return n.isMergeableObject(e)&&dH(e).forEach(function(a){r[a]=tg(e[a],n)}),dH(t).forEach(function(a){BWe(e,a)||(Aee(e,a)&&n.isMergeableObject(t[a])?r[a]=PWe(a,n)(e[a],t[a],n):r[a]=tg(t[a],n))}),r}function wf(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||kWe,n.isMergeableObject=n.isMergeableObject||OWe,n.cloneUnlessOtherwiseSpecified=tg;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):UWe(e,t,n):tg(t,n)}wf.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return wf(r,a,n)},{})};var $We=wf,Oee=$We,zWe=Object.create,ky=Object.defineProperty,HWe=Object.getOwnPropertyDescriptor,GWe=Object.getOwnPropertyNames,VWe=Object.getPrototypeOf,YWe=Object.prototype.hasOwnProperty,qWe=(e,t)=>{for(var n in t)ky(e,n,{get:t[n],enumerable:!0})},Nee=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of GWe(t))!YWe.call(e,a)&&a!==n&&ky(e,a,{get:()=>t[a],enumerable:!(r=HWe(t,a))||r.enumerable});return e},ID=(e,t,n)=>(n=e!=null?zWe(VWe(e)):{},Nee(t||!e||!e.__esModule?ky(n,"default",{value:e,enumerable:!0}):n,e)),WWe=e=>Nee(ky({},"__esModule",{value:!0}),e),Iee={};qWe(Iee,{callPlayer:()=>cje,getConfig:()=>sje,getSDK:()=>oje,isBlobUrl:()=>dje,isMediaStream:()=>uje,lazy:()=>XWe,omit:()=>lje,parseEndTime:()=>rje,parseStartTime:()=>nje,queryString:()=>ije,randomString:()=>aje,supportsWebKitPresentationMode:()=>pje});var Py=WWe(Iee),jWe=ID(x),KWe=ID(RWe),QWe=ID(Oee);const XWe=e=>jWe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),ZWe=/[?&#](?:start|t)=([0-9hms]+)/,JWe=/[?&#]end=([0-9hms]+)/,P4=/(\d+)(h|m|s)/g,eje=/^\d+$/;function wee(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(P4))return tje(r);if(eje.test(r))return parseInt(r)}}function tje(e){let t=0,n=P4.exec(e);for(;n!==null;){const[,r,a]=n;a==="h"&&(t+=parseInt(r,10)*60*60),a==="m"&&(t+=parseInt(r,10)*60),a==="s"&&(t+=parseInt(r,10)),n=P4.exec(e)}return t}function nje(e){return wee(e,ZWe)}function rje(e){return wee(e,JWe)}function aje(){return Math.random().toString(36).substr(2,5)}function ije(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function KO(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const lp={},oje=function(t,n,r=null,a=()=>!0,i=KWe.default){const o=KO(n);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(lp[t]){lp[t].push({resolve:s,reject:l});return}lp[t]=[{resolve:s,reject:l}];const c=u=>{lp[t].forEach(p=>p.resolve(u))};if(r){const u=window[r];window[r]=function(){u&&u(),c(KO(n))}}i(t,u=>{u?(lp[t].forEach(p=>p.reject(u)),lp[t]=null):r||c(KO(n))})})};function sje(e,t){return(0,QWe.default)(t.config,e.config)}function lje(e,...t){const n=[].concat(...t),r={},a=Object.keys(e);for(const i of a)n.indexOf(i)===-1&&(r[i]=e[i]);return r}function cje(e,...t){if(!this.player||!this.player[e]){let n=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}return this.player[e](...t)}function uje(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function dje(e){return/^blob:/.test(e)}function pje(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var wD=Object.defineProperty,fje=Object.getOwnPropertyDescriptor,mje=Object.getOwnPropertyNames,hje=Object.prototype.hasOwnProperty,gje=(e,t)=>{for(var n in t)wD(e,n,{get:t[n],enumerable:!0})},_je=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of mje(t))!hje.call(e,a)&&a!==n&&wD(e,a,{get:()=>t[a],enumerable:!(r=fje(t,a))||r.enumerable});return e},Eje=e=>_je(wD({},"__esModule",{value:!0}),e),Dee={};gje(Dee,{AUDIO_EXTENSIONS:()=>DD,DASH_EXTENSIONS:()=>qee,FLV_EXTENSIONS:()=>Wee,HLS_EXTENSIONS:()=>MD,MATCH_URL_DAILYMOTION:()=>Hee,MATCH_URL_FACEBOOK:()=>Pee,MATCH_URL_FACEBOOK_WATCH:()=>Fee,MATCH_URL_KALTURA:()=>Yee,MATCH_URL_MIXCLOUD:()=>Gee,MATCH_URL_MUX:()=>kee,MATCH_URL_SOUNDCLOUD:()=>Lee,MATCH_URL_STREAMABLE:()=>Bee,MATCH_URL_TWITCH_CHANNEL:()=>zee,MATCH_URL_TWITCH_VIDEO:()=>$ee,MATCH_URL_VIDYARD:()=>Vee,MATCH_URL_VIMEO:()=>Mee,MATCH_URL_WISTIA:()=>Uee,MATCH_URL_YOUTUBE:()=>F4,VIDEO_EXTENSIONS:()=>LD,canPlay:()=>Sje});var bje=Eje(Dee),pH=Py;const F4=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,Lee=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,Mee=/vimeo\.com\/(?!progressive_redirect).+/,kee=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,Pee=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,Fee=/^https?:\/\/fb\.watch\/.+$/,Bee=/streamable\.com\/([a-z0-9]+)$/,Uee=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,$ee=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,zee=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,Hee=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,Gee=/mixcloud\.com\/([^/]+\/[^/]+)/,Vee=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,Yee=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,DD=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,LD=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,MD=/\.(m3u8)($|\?)/i,qee=/\.(mpd)($|\?)/i,Wee=/\.(flv)($|\?)/i,B4=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&B4(t)||B4(t.src))return!0;return!1}return(0,pH.isMediaStream)(e)||(0,pH.isBlobUrl)(e)?!0:DD.test(e)||LD.test(e)||MD.test(e)||qee.test(e)||Wee.test(e)},Sje={youtube:e=>e instanceof Array?e.every(t=>F4.test(t)):F4.test(e),soundcloud:e=>Lee.test(e)&&!DD.test(e),vimeo:e=>Mee.test(e)&&!LD.test(e)&&!MD.test(e),mux:e=>kee.test(e),facebook:e=>Pee.test(e)||Fee.test(e),streamable:e=>Bee.test(e),wistia:e=>Uee.test(e),twitch:e=>$ee.test(e)||zee.test(e),dailymotion:e=>Hee.test(e),mixcloud:e=>Gee.test(e),vidyard:e=>Vee.test(e),kaltura:e=>Yee.test(e),file:B4};var kD=Object.defineProperty,vje=Object.getOwnPropertyDescriptor,yje=Object.getOwnPropertyNames,Tje=Object.prototype.hasOwnProperty,Cje=(e,t)=>{for(var n in t)kD(e,n,{get:t[n],enumerable:!0})},Rje=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yje(t))!Tje.call(e,a)&&a!==n&&kD(e,a,{get:()=>t[a],enumerable:!(r=vje(t,a))||r.enumerable});return e},xje=e=>Rje(kD({},"__esModule",{value:!0}),e),jee={};Cje(jee,{default:()=>Oje});var Aje=xje(jee),di=Py,qa=bje,Oje=[{key:"youtube",name:"YouTube",canPlay:qa.canPlay.youtube,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./YouTube-fe1a7afe.js").then(e=>e.Y),[]))},{key:"soundcloud",name:"SoundCloud",canPlay:qa.canPlay.soundcloud,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./SoundCloud-c0d86d55.js").then(e=>e.S),[]))},{key:"vimeo",name:"Vimeo",canPlay:qa.canPlay.vimeo,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Vimeo-93bb5ae2.js").then(e=>e.V),[]))},{key:"mux",name:"Mux",canPlay:qa.canPlay.mux,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Mux-7e57be81.js").then(e=>e.M),[]))},{key:"facebook",name:"Facebook",canPlay:qa.canPlay.facebook,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Facebook-8422f48c.js").then(e=>e.F),[]))},{key:"streamable",name:"Streamable",canPlay:qa.canPlay.streamable,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Streamable-57c43c18.js").then(e=>e.S),[]))},{key:"wistia",name:"Wistia",canPlay:qa.canPlay.wistia,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Wistia-97199246.js").then(e=>e.W),[]))},{key:"twitch",name:"Twitch",canPlay:qa.canPlay.twitch,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Twitch-bed3f21d.js").then(e=>e.T),[]))},{key:"dailymotion",name:"DailyMotion",canPlay:qa.canPlay.dailymotion,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./DailyMotion-1a2b7d60.js").then(e=>e.D),[]))},{key:"mixcloud",name:"Mixcloud",canPlay:qa.canPlay.mixcloud,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Mixcloud-1647b3e4.js").then(e=>e.M),[]))},{key:"vidyard",name:"Vidyard",canPlay:qa.canPlay.vidyard,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Vidyard-4dd76e44.js").then(e=>e.V),[]))},{key:"kaltura",name:"Kaltura",canPlay:qa.canPlay.kaltura,lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./Kaltura-aa7990f2.js").then(e=>e.K),[]))},{key:"file",name:"FilePlayer",canPlay:qa.canPlay.file,canEnablePIP:e=>qa.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,di.supportsWebKitPresentationMode)())&&!qa.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,di.lazy)(()=>ja(()=>import("./FilePlayer-a0a41349.js").then(e=>e.F),[]))}],fH=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Nje(e,t){return!!(e===t||fH(e)&&fH(t))}function Ije(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Nje(e[n],t[n]))return!1;return!0}function wje(e,t){t===void 0&&(t=Ije);var n,r=[],a,i=!1;function o(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return i&&n===this&&t(s,r)||(a=e.apply(this,s),i=!0,n=this,r=s),a}return o}const Dje=Object.freeze(Object.defineProperty({__proto__:null,default:wje},Symbol.toStringTag,{value:"Module"})),Lje=b3(Dje);var Mje=typeof Element<"u",kje=typeof Map=="function",Pje=typeof Set=="function",Fje=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ZE(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,a;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ZE(e[r],t[r]))return!1;return!0}var i;if(kje&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!ZE(r.value[1],t.get(r.value[0])))return!1;return!0}if(Pje&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Fje&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;if(Mje&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((a[r]==="_owner"||a[r]==="__v"||a[r]==="__o")&&e.$$typeof)&&!ZE(e[a[r]],t[a[r]]))return!1;return!0}return e!==e&&t!==t}var Kee=function(t,n){try{return ZE(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},Bje=Object.create,Fy=Object.defineProperty,Uje=Object.getOwnPropertyDescriptor,$je=Object.getOwnPropertyNames,zje=Object.getPrototypeOf,Hje=Object.prototype.hasOwnProperty,Gje=(e,t)=>{for(var n in t)Fy(e,n,{get:t[n],enumerable:!0})},Qee=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $je(t))!Hje.call(e,a)&&a!==n&&Fy(e,a,{get:()=>t[a],enumerable:!(r=Uje(t,a))||r.enumerable});return e},Vje=(e,t,n)=>(n=e!=null?Bje(zje(e)):{},Qee(t||!e||!e.__esModule?Fy(n,"default",{value:e,enumerable:!0}):n,e)),Yje=e=>Qee(Fy({},"__esModule",{value:!0}),e),Xee={};Gje(Xee,{defaultProps:()=>jje,propTypes:()=>Wje});var Zee=Yje(Xee),qje=Vje(Wf);const{string:_a,bool:Wa,number:cp,array:QO,oneOfType:Sm,shape:Ui,object:La,func:jr,node:mH}=qje.default,Wje={url:Sm([_a,QO,La]),playing:Wa,loop:Wa,controls:Wa,volume:cp,muted:Wa,playbackRate:cp,width:Sm([_a,cp]),height:Sm([_a,cp]),style:La,progressInterval:cp,playsinline:Wa,pip:Wa,stopOnUnmount:Wa,light:Sm([Wa,_a,La]),playIcon:mH,previewTabIndex:cp,previewAriaLabel:_a,fallback:mH,oEmbedUrl:_a,wrapper:Sm([_a,jr,Ui({render:jr.isRequired})]),config:Ui({soundcloud:Ui({options:La}),youtube:Ui({playerVars:La,embedOptions:La,onUnstarted:jr}),facebook:Ui({appId:_a,version:_a,playerId:_a,attributes:La}),dailymotion:Ui({params:La}),vimeo:Ui({playerOptions:La,title:_a}),mux:Ui({attributes:La,version:_a}),file:Ui({attributes:La,tracks:QO,forceVideo:Wa,forceAudio:Wa,forceHLS:Wa,forceSafariHLS:Wa,forceDisableHls:Wa,forceDASH:Wa,forceFLV:Wa,hlsOptions:La,hlsVersion:_a,dashVersion:_a,flvVersion:_a}),wistia:Ui({options:La,playerId:_a,customControls:QO}),mixcloud:Ui({options:La}),twitch:Ui({options:La,playerId:_a}),vidyard:Ui({options:La})}),onReady:jr,onStart:jr,onPlay:jr,onPause:jr,onBuffer:jr,onBufferEnd:jr,onEnded:jr,onError:jr,onDuration:jr,onSeek:jr,onPlaybackRateChange:jr,onPlaybackQualityChange:jr,onProgress:jr,onClickPreview:jr,onEnablePIP:jr,onDisablePIP:jr},Ea=()=>{},jje={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Ea},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Ea,onStart:Ea,onPlay:Ea,onPause:Ea,onBuffer:Ea,onBufferEnd:Ea,onEnded:Ea,onError:Ea,onDuration:Ea,onSeek:Ea,onPlaybackRateChange:Ea,onPlaybackQualityChange:Ea,onProgress:Ea,onClickPreview:Ea,onEnablePIP:Ea,onDisablePIP:Ea};var Kje=Object.create,Yg=Object.defineProperty,Qje=Object.getOwnPropertyDescriptor,Xje=Object.getOwnPropertyNames,Zje=Object.getPrototypeOf,Jje=Object.prototype.hasOwnProperty,eKe=(e,t,n)=>t in e?Yg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tKe=(e,t)=>{for(var n in t)Yg(e,n,{get:t[n],enumerable:!0})},Jee=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Xje(t))!Jje.call(e,a)&&a!==n&&Yg(e,a,{get:()=>t[a],enumerable:!(r=Qje(t,a))||r.enumerable});return e},ete=(e,t,n)=>(n=e!=null?Kje(Zje(e)):{},Jee(t||!e||!e.__esModule?Yg(n,"default",{value:e,enumerable:!0}):n,e)),nKe=e=>Jee(Yg({},"__esModule",{value:!0}),e),wr=(e,t,n)=>(eKe(e,typeof t!="symbol"?t+"":t,n),n),tte={};tKe(tte,{default:()=>By});var rKe=nKe(tte),hH=ete(x),aKe=ete(Kee),nte=Zee,iKe=Py;const oKe=5e3;class By extends hH.Component{constructor(){super(...arguments),wr(this,"mounted",!1),wr(this,"isReady",!1),wr(this,"isPlaying",!1),wr(this,"isLoading",!0),wr(this,"loadOnReady",null),wr(this,"startOnPlay",!0),wr(this,"seekOnPlay",null),wr(this,"onDurationCalled",!1),wr(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),wr(this,"getInternalPlayer",t=>this.player?this.player[t]:null),wr(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:t,played:t/r};n!==null&&(a.loadedSeconds=n,a.loaded=n/r),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),wr(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:a}=this.props;t(),!a&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),wr(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:n,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&r!==1&&this.player.setPlaybackRate(r),t(),this.startOnPlay=!1),n(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),wr(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),wr(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),wr(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),wr(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),wr(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:n,playing:r,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:c,disableDeferredLoading:u}=this.props;if(!(0,aKe.default)(t.url,n)){if(this.isLoading&&!c.forceLoad&&!u&&!(0,iKe.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},oKe));return}if(n?n==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?hH.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}wr(By,"displayName","Player");wr(By,"propTypes",nte.propTypes);wr(By,"defaultProps",nte.defaultProps);var sKe=Object.create,qg=Object.defineProperty,lKe=Object.getOwnPropertyDescriptor,cKe=Object.getOwnPropertyNames,uKe=Object.getPrototypeOf,dKe=Object.prototype.hasOwnProperty,pKe=(e,t,n)=>t in e?qg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fKe=(e,t)=>{for(var n in t)qg(e,n,{get:t[n],enumerable:!0})},rte=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of cKe(t))!dKe.call(e,a)&&a!==n&&qg(e,a,{get:()=>t[a],enumerable:!(r=lKe(t,a))||r.enumerable});return e},Wg=(e,t,n)=>(n=e!=null?sKe(uKe(e)):{},rte(t||!e||!e.__esModule?qg(n,"default",{value:e,enumerable:!0}):n,e)),mKe=e=>rte(qg({},"__esModule",{value:!0}),e),Ir=(e,t,n)=>(pKe(e,typeof t!="symbol"?t+"":t,n),n),ate={};fKe(ate,{createReactPlayer:()=>TKe});var hKe=mKe(ate),Sp=Wg(x),gKe=Wg(Oee),XO=Wg(Lje),gH=Wg(Kee),Fm=Zee,ite=Py,_Ke=Wg(rKe);const EKe=(0,ite.lazy)(()=>ja(()=>import("./Preview-cb89b2c6.js").then(e=>e.P),[])),bKe=typeof window<"u"&&window.document&&typeof document<"u",SKe=typeof aa<"u"&&aa.window&&aa.window.document,vKe=Object.keys(Fm.propTypes),yKe=bKe||SKe?Sp.Suspense:()=>null,vm=[],TKe=(e,t)=>{var n;return n=class extends Sp.Component{constructor(){super(...arguments),Ir(this,"state",{showPreview:!!this.props.light}),Ir(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),Ir(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),Ir(this,"showPreview",()=>{this.setState({showPreview:!0})}),Ir(this,"getDuration",()=>this.player?this.player.getDuration():null),Ir(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),Ir(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),Ir(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),Ir(this,"seekTo",(r,a,i)=>{if(!this.player)return null;this.player.seekTo(r,a,i)}),Ir(this,"handleReady",()=>{this.props.onReady(this)}),Ir(this,"getActivePlayer",(0,XO.default)(r=>{for(const a of[...vm,...e])if(a.canPlay(r))return a;return t||null})),Ir(this,"getConfig",(0,XO.default)((r,a)=>{const{config:i}=this.props;return gKe.default.all([Fm.defaultProps.config,Fm.defaultProps.config[a]||{},i,i[a]||{}])})),Ir(this,"getAttributes",(0,XO.default)(r=>(0,ite.omit)(this.props,vKe))),Ir(this,"renderActivePlayer",r=>{if(!r)return null;const a=this.getActivePlayer(r);if(!a)return null;const i=this.getConfig(r,a.key);return Sp.default.createElement(_Ke.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(r,a){return!(0,gH.default)(this.props,r)||!(0,gH.default)(this.state,a)}componentDidUpdate(r){const{light:a}=this.props;!r.light&&a&&this.setState({showPreview:!0}),r.light&&!a&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,previewAriaLabel:l}=this.props;return Sp.default.createElement(EKe,{url:r,light:a,playIcon:i,previewTabIndex:o,previewAriaLabel:l,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:c}=this.state,u=this.getAttributes(r),p=typeof l=="string"?this.references.wrapper:void 0;return Sp.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...u},Sp.default.createElement(yKe,{fallback:s},c?this.renderPreview(r):this.renderActivePlayer(r)))}},Ir(n,"displayName","ReactPlayer"),Ir(n,"propTypes",Fm.propTypes),Ir(n,"defaultProps",Fm.defaultProps),Ir(n,"addCustomPlayer",r=>{vm.push(r)}),Ir(n,"removeCustomPlayers",()=>{vm.length=0}),Ir(n,"canPlay",r=>{for(const a of[...vm,...e])if(a.canPlay(r))return!0;return!1}),Ir(n,"canEnablePIP",r=>{for(const a of[...vm,...e])if(a.canEnablePIP&&a.canEnablePIP(r))return!0;return!1}),n};var CKe=Object.create,Uy=Object.defineProperty,RKe=Object.getOwnPropertyDescriptor,xKe=Object.getOwnPropertyNames,AKe=Object.getPrototypeOf,OKe=Object.prototype.hasOwnProperty,NKe=(e,t)=>{for(var n in t)Uy(e,n,{get:t[n],enumerable:!0})},ote=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of xKe(t))!OKe.call(e,a)&&a!==n&&Uy(e,a,{get:()=>t[a],enumerable:!(r=RKe(t,a))||r.enumerable});return e},IKe=(e,t,n)=>(n=e!=null?CKe(AKe(e)):{},ote(t||!e||!e.__esModule?Uy(n,"default",{value:e,enumerable:!0}):n,e)),wKe=e=>ote(Uy({},"__esModule",{value:!0}),e),ste={};NKe(ste,{default:()=>kKe});var DKe=wKe(ste),U4=IKe(Aje),LKe=hKe;const MKe=U4.default[U4.default.length-1];var kKe=(0,LKe.createReactPlayer)(U4.default,MKe);const PKe=Aa(DKe),lte=({element:e})=>e.url?_.jsx(PKe,{className:`${e.display}-video`,width:"100%",controls:!0,url:e.url,config:e.playerConfig||{}}):null,cte=({element:e})=>{switch(e==null?void 0:e.type){case"file":return _.jsx(jQ,{element:e});case"image":return _.jsx(KQ,{element:e});case"text":return _.jsx(xee,{element:e});case"pdf":return _.jsx(QQ,{element:e});case"audio":return _.jsx(HQ,{element:e});case"video":return _.jsx(lte,{element:e});case"plotly":return _.jsx(lX,{element:e});default:return null}};var PD={exports:{}},jg={},$y={exports:{}},ute={};function dte(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=dte(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function _H(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=dte(e))&&(r&&(r+=" "),r+=t);return r}const FKe=Object.freeze(Object.defineProperty({__proto__:null,clsx:_H,default:_H},Symbol.toStringTag,{value:"Module"})),BKe=b3(FKe);var xr={},Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});Xs.dontSetMe=GKe;Xs.findInArray=UKe;Xs.int=HKe;Xs.isFunction=$Ke;Xs.isNum=zKe;function UKe(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function $Ke(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function zKe(e){return typeof e=="number"&&!isNaN(e)}function HKe(e){return parseInt(e,10)}function GKe(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var Ad={};Object.defineProperty(Ad,"__esModule",{value:!0});Ad.browserPrefixToKey=fte;Ad.browserPrefixToStyle=VKe;Ad.default=void 0;Ad.getPrefix=pte;const ZO=["Moz","Webkit","O","ms"];function pte(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!n||t in n)return"";for(let r=0;r<ZO.length;r++)if(fte(t,ZO[r])in n)return ZO[r];return""}function fte(e,t){return t?"".concat(t).concat(YKe(e)):e}function VKe(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function YKe(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):e[r]==="-"?n=!0:t+=e[r];return t}Ad.default=pte();Object.defineProperty(xr,"__esModule",{value:!0});xr.addClassName=gte;xr.addEvent=jKe;xr.addUserSelectStyles=iQe;xr.createCSSTransform=tQe;xr.createSVGTransform=nQe;xr.getTouch=rQe;xr.getTouchIdentifier=aQe;xr.getTranslation=FD;xr.innerHeight=ZKe;xr.innerWidth=JKe;xr.matchesSelector=hte;xr.matchesSelectorAndParentsTo=WKe;xr.offsetXYFromParent=eQe;xr.outerHeight=QKe;xr.outerWidth=XKe;xr.removeClassName=_te;xr.removeEvent=KKe;xr.removeUserSelectStyles=oQe;var Xi=Xs,EH=qKe(Ad);function mte(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(mte=function(r){return r?n:t})(e)}function qKe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=mte(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}let hE="";function hte(e,t){return hE||(hE=(0,Xi.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,Xi.isFunction)(e[n])})),(0,Xi.isFunction)(e[hE])?e[hE](t):!1}function WKe(e,t,n){let r=e;do{if(hte(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function jKe(e,t,n,r){if(!e)return;const a={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,a):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function KKe(e,t,n,r){if(!e)return;const a={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,a):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function QKe(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Xi.int)(n.borderTopWidth),t+=(0,Xi.int)(n.borderBottomWidth),t}function XKe(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Xi.int)(n.borderLeftWidth),t+=(0,Xi.int)(n.borderRightWidth),t}function ZKe(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Xi.int)(n.paddingTop),t-=(0,Xi.int)(n.paddingBottom),t}function JKe(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Xi.int)(n.paddingLeft),t-=(0,Xi.int)(n.paddingRight),t}function eQe(e,t,n){const a=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-a.left)/n,o=(e.clientY+t.scrollTop-a.top)/n;return{x:i,y:o}}function tQe(e,t){const n=FD(e,t,"px");return{[(0,EH.browserPrefixToKey)("transform",EH.default)]:n}}function nQe(e,t){return FD(e,t,"")}function FD(e,t,n){let{x:r,y:a}=e,i="translate(".concat(r).concat(n,",").concat(a).concat(n,")");if(t){const o="".concat(typeof t.x=="string"?t.x:t.x+n),s="".concat(typeof t.y=="string"?t.y:t.y+n);i="translate(".concat(o,", ").concat(s,")")+i}return i}function rQe(e,t){return e.targetTouches&&(0,Xi.findInArray)(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&(0,Xi.findInArray)(e.changedTouches,n=>t===n.identifier)}function aQe(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function iQe(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
653
653
|
`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
654
654
|
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&>e(e.body,"react-draggable-transparent-selection")}function oQe(e){if(e)try{if(e.body&&_te(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function gte(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function _te(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.canDragX=cQe;Zs.canDragY=uQe;Zs.createCoreData=pQe;Zs.createDraggableData=fQe;Zs.getBoundPosition=sQe;Zs.getControlPosition=dQe;Zs.snapToGrid=lQe;var zi=Xs,Fp=xr;function sQe(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r=="string"?r:mQe(r);const a=BD(e);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,c=o.getComputedStyle(a),u=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,zi.int)(u.paddingLeft)+(0,zi.int)(c.marginLeft),top:-a.offsetTop+(0,zi.int)(u.paddingTop)+(0,zi.int)(c.marginTop),right:(0,Fp.innerWidth)(l)-(0,Fp.outerWidth)(a)-a.offsetLeft+(0,zi.int)(u.paddingRight)-(0,zi.int)(c.marginRight),bottom:(0,Fp.innerHeight)(l)-(0,Fp.outerHeight)(a)-a.offsetTop+(0,zi.int)(u.paddingBottom)-(0,zi.int)(c.marginBottom)}}return(0,zi.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,zi.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,zi.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,zi.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}function lQe(e,t,n){const r=Math.round(t/e[0])*e[0],a=Math.round(n/e[1])*e[1];return[r,a]}function cQe(e){return e.props.axis==="both"||e.props.axis==="x"}function uQe(e){return e.props.axis==="both"||e.props.axis==="y"}function dQe(e,t,n){const r=typeof t=="number"?(0,Fp.getTouch)(e,t):null;if(typeof t=="number"&&!r)return null;const a=BD(n),i=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Fp.offsetXYFromParent)(r||e,i,n.props.scale)}function pQe(e,t,n){const r=!(0,zi.isNum)(e.lastX),a=BD(e);return r?{node:a,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:a,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function fQe(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function mQe(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function BD(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var zy={},Hy={};Object.defineProperty(Hy,"__esModule",{value:!0});Hy.default=hQe;function hQe(){}Object.defineProperty(zy,"__esModule",{value:!0});zy.default=void 0;var JO=_Qe(x),pi=UD(Wf),gQe=UD(Bf),Ma=xr,dc=Zs,eN=Xs,ym=UD(Hy);function UD(e){return e&&e.__esModule?e:{default:e}}function Ete(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ete=function(r){return r?n:t})(e)}function _Qe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ete(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Qa(e,t,n){return t=EQe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EQe(e){var t=bQe(e,"string");return typeof t=="symbol"?t:String(t)}function bQe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const Xo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let pc=Xo.mouse,Gy=class extends JO.Component{constructor(){super(...arguments),Qa(this,"dragging",!1),Qa(this,"lastX",NaN),Qa(this,"lastY",NaN),Qa(this,"touchIdentifier",null),Qa(this,"mounted",!1),Qa(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&typeof t.button=="number"&&t.button!==0)return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=n;if(this.props.disabled||!(t.target instanceof r.defaultView.Node)||this.props.handle&&!(0,Ma.matchesSelectorAndParentsTo)(t.target,this.props.handle,n)||this.props.cancel&&(0,Ma.matchesSelectorAndParentsTo)(t.target,this.props.cancel,n))return;t.type==="touchstart"&&t.preventDefault();const a=(0,Ma.getTouchIdentifier)(t);this.touchIdentifier=a;const i=(0,dc.getControlPosition)(t,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,dc.createCoreData)(this,o,s);(0,ym.default)("DraggableCore: handleDragStart: %j",l),(0,ym.default)("calling",this.props.onStart),!(this.props.onStart(t,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Ma.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,Ma.addEvent)(r,pc.move,this.handleDrag),(0,Ma.addEvent)(r,pc.stop,this.handleDragStop))}),Qa(this,"handleDrag",t=>{const n=(0,dc.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:a}=n;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,dc.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,dc.createCoreData)(this,r,a);if((0,ym.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(t,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Qa(this,"handleDragStop",t=>{if(!this.dragging)return;const n=(0,dc.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:a}=n;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,c=a-this.lastY||0;[l,c]=(0,dc.snapToGrid)(this.props.grid,l,c),r=this.lastX+l,a=this.lastY+c}const i=(0,dc.createCoreData)(this,r,a);if(this.props.onStop(t,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,Ma.removeUserSelectStyles)(s.ownerDocument),(0,ym.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,ym.default)("DraggableCore: Removing handlers"),(0,Ma.removeEvent)(s.ownerDocument,pc.move,this.handleDrag),(0,Ma.removeEvent)(s.ownerDocument,pc.stop,this.handleDragStop))}),Qa(this,"onMouseDown",t=>(pc=Xo.mouse,this.handleDragStart(t))),Qa(this,"onMouseUp",t=>(pc=Xo.mouse,this.handleDragStop(t))),Qa(this,"onTouchStart",t=>(pc=Xo.touch,this.handleDragStart(t))),Qa(this,"onTouchEnd",t=>(pc=Xo.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,Ma.addEvent)(t,Xo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:n}=t;(0,Ma.removeEvent)(n,Xo.mouse.move,this.handleDrag),(0,Ma.removeEvent)(n,Xo.touch.move,this.handleDrag),(0,Ma.removeEvent)(n,Xo.mouse.stop,this.handleDragStop),(0,Ma.removeEvent)(n,Xo.touch.stop,this.handleDragStop),(0,Ma.removeEvent)(t,Xo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Ma.removeUserSelectStyles)(n)}}findDOMNode(){var t,n;return(t=this.props)!==null&&t!==void 0&&t.nodeRef?(n=this.props)===null||n===void 0||(n=n.nodeRef)===null||n===void 0?void 0:n.current:gQe.default.findDOMNode(this)}render(){return JO.cloneElement(JO.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};zy.default=Gy;Qa(Gy,"displayName","DraggableCore");Qa(Gy,"propTypes",{allowAnyClick:pi.default.bool,children:pi.default.node.isRequired,disabled:pi.default.bool,enableUserSelectHack:pi.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:pi.default.arrayOf(pi.default.number),handle:pi.default.string,cancel:pi.default.string,nodeRef:pi.default.object,onStart:pi.default.func,onDrag:pi.default.func,onStop:pi.default.func,onMouseDown:pi.default.func,scale:pi.default.number,className:eN.dontSetMe,style:eN.dontSetMe,transform:eN.dontSetMe});Qa(Gy,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=f(x),n=u(Wf),r=u(Bf),a=u(BKe),i=xr,o=Zs,s=Xs,l=u(zy),c=u(Hy);function u(S){return S&&S.__esModule?S:{default:S}}function p(S){if(typeof WeakMap!="function")return null;var C=new WeakMap,T=new WeakMap;return(p=function(N){return N?T:C})(S)}function f(S,C){if(!C&&S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var T=p(C);if(T&&T.has(S))return T.get(S);var N={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in S)if(O!=="default"&&Object.prototype.hasOwnProperty.call(S,O)){var M=A?Object.getOwnPropertyDescriptor(S,O):null;M&&(M.get||M.set)?Object.defineProperty(N,O,M):N[O]=S[O]}return N.default=S,T&&T.set(S,N),N}function h(){return h=Object.assign?Object.assign.bind():function(S){for(var C=1;C<arguments.length;C++){var T=arguments[C];for(var N in T)Object.prototype.hasOwnProperty.call(T,N)&&(S[N]=T[N])}return S},h.apply(this,arguments)}function g(S,C,T){return C=E(C),C in S?Object.defineProperty(S,C,{value:T,enumerable:!0,configurable:!0,writable:!0}):S[C]=T,S}function E(S){var C=y(S,"string");return typeof C=="symbol"?C:String(C)}function y(S,C){if(typeof S!="object"||S===null)return S;var T=S[Symbol.toPrimitive];if(T!==void 0){var N=T.call(S,C||"default");if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(S)}class b extends t.Component{static getDerivedStateFromProps(C,T){let{position:N}=C,{prevPropsPosition:A}=T;return N&&(!A||N.x!==A.x||N.y!==A.y)?((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:N,prevPropsPosition:A}),{x:N.x,y:N.y,prevPropsPosition:{...N}}):null}constructor(C){super(C),g(this,"onDragStart",(T,N)=>{if((0,c.default)("Draggable: onDragStart: %j",N),this.props.onStart(T,(0,o.createDraggableData)(this,N))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),g(this,"onDrag",(T,N)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",N);const A=(0,o.createDraggableData)(this,N),O={x:A.x,y:A.y,slackX:0,slackY:0};if(this.props.bounds){const{x:P,y:D}=O;O.x+=this.state.slackX,O.y+=this.state.slackY;const[$,V]=(0,o.getBoundPosition)(this,O.x,O.y);O.x=$,O.y=V,O.slackX=this.state.slackX+(P-O.x),O.slackY=this.state.slackY+(D-O.y),A.x=O.x,A.y=O.y,A.deltaX=O.x-this.state.x,A.deltaY=O.y-this.state.y}if(this.props.onDrag(T,A)===!1)return!1;this.setState(O)}),g(this,"onDragStop",(T,N)=>{if(!this.state.dragging||this.props.onStop(T,(0,o.createDraggableData)(this,N))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",N);const O={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:P,y:D}=this.props.position;O.x=P,O.y=D}this.setState(O)}),this.state={dragging:!1,dragged:!1,x:C.position?C.position.x:C.defaultPosition.x,y:C.position?C.position.y:C.defaultPosition.y,prevPropsPosition:{...C.position},slackX:0,slackY:0,isElementSVG:!1},C.position&&!(C.onDrag||C.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var C,T;return(C=(T=this.props)===null||T===void 0||(T=T.nodeRef)===null||T===void 0?void 0:T.current)!==null&&C!==void 0?C:r.default.findDOMNode(this)}render(){const{axis:C,bounds:T,children:N,defaultPosition:A,defaultClassName:O,defaultClassNameDragging:M,defaultClassNameDragged:P,position:D,positionOffset:$,scale:V,...Z}=this.props;let W={},ae=null;const q=!!!D||this.state.dragging,G=D||A,H={x:(0,o.canDragX)(this)&&q?this.state.x:G.x,y:(0,o.canDragY)(this)&&q?this.state.y:G.y};this.state.isElementSVG?ae=(0,i.createSVGTransform)(H,$):W=(0,i.createCSSTransform)(H,$);const k=(0,a.default)(N.props.className||"",O,{[M]:this.state.dragging,[P]:this.state.dragged});return t.createElement(l.default,h({},Z,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(N),{className:k,style:{...N.props.style,...W},transform:ae}))}}e.default=b,g(b,"displayName","Draggable"),g(b,"propTypes",{...l.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),g(b,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(ute);const{default:bte,DraggableCore:SQe}=ute;$y.exports=bte;$y.exports.default=bte;$y.exports.DraggableCore=SQe;var vQe=$y.exports,$D={};$D.__esModule=!0;$D.cloneElement=AQe;var yQe=TQe(x);function TQe(e){return e&&e.__esModule?e:{default:e}}function bH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function SH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bH(Object(n),!0).forEach(function(r){CQe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CQe(e,t,n){return t=RQe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RQe(e){var t=xQe(e,"string");return typeof t=="symbol"?t:String(t)}function xQe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AQe(e,t){return t.style&&e.props.style&&(t.style=SH(SH({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),yQe.default.cloneElement(e,t)}var Kg={};Kg.__esModule=!0;Kg.resizableProps=void 0;var en=OQe(Wf);function OQe(e){return e&&e.__esModule?e:{default:e}}var NQe={axis:en.default.oneOf(["both","x","y","none"]),className:en.default.string,children:en.default.element.isRequired,draggableOpts:en.default.shape({allowAnyClick:en.default.bool,cancel:en.default.string,children:en.default.node,disabled:en.default.bool,enableUserSelectHack:en.default.bool,offsetParent:en.default.node,grid:en.default.arrayOf(en.default.number),handle:en.default.string,nodeRef:en.default.object,onStart:en.default.func,onDrag:en.default.func,onStop:en.default.func,onMouseDown:en.default.func,scale:en.default.number}),height:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(a.axis==="both"||a.axis==="y"){var i;return(i=en.default.number).isRequired.apply(i,n)}return en.default.number.apply(en.default,n)},handle:en.default.oneOfType([en.default.node,en.default.func]),handleSize:en.default.arrayOf(en.default.number),lockAspectRatio:en.default.bool,maxConstraints:en.default.arrayOf(en.default.number),minConstraints:en.default.arrayOf(en.default.number),onResizeStop:en.default.func,onResizeStart:en.default.func,onResize:en.default.func,resizeHandles:en.default.arrayOf(en.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:en.default.number,width:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(a.axis==="both"||a.axis==="x"){var i;return(i=en.default.number).isRequired.apply(i,n)}return en.default.number.apply(en.default,n)}};Kg.resizableProps=NQe;jg.__esModule=!0;jg.default=void 0;var Tm=MQe(x),IQe=vQe,wQe=$D,DQe=Kg,LQe=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function Ste(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ste=function(a){return a?n:t})(e)}function MQe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ste(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function $4(){return $4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$4.apply(this,arguments)}function kQe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function vH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function tN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vH(Object(n),!0).forEach(function(r){PQe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PQe(e,t,n){return t=FQe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FQe(e){var t=BQe(e,"string");return typeof t=="symbol"?t:String(t)}function BQe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UQe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,z4(e,t)}function z4(e,t){return z4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},z4(e,t)}var zD=function(e){UQe(t,e);function t(){for(var r,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r=e.call.apply(e,[this].concat(i))||this,r.handleRefs={},r.lastHandleRect=null,r.slack=null,r}var n=t.prototype;return n.componentWillUnmount=function(){this.resetData()},n.resetData=function(){this.lastHandleRect=this.slack=null},n.runConstraints=function(a,i){var o=this.props,s=o.minConstraints,l=o.maxConstraints,c=o.lockAspectRatio;if(!s&&!l&&!c)return[a,i];if(c){var u=this.props.width/this.props.height,p=a-this.props.width,f=i-this.props.height;Math.abs(p)>Math.abs(f*u)?i=a/u:a=i*u}var h=a,g=i,E=this.slack||[0,0],y=E[0],b=E[1];return a+=y,i+=b,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[y+(h-a),b+(g-i)],[a,i]},n.resizeHandler=function(a,i){var o=this;return function(s,l){var c=l.node,u=l.deltaX,p=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var g=i[0],E=i[i.length-1],y=c.getBoundingClientRect();if(o.lastHandleRect!=null){if(E==="w"){var b=y.left-o.lastHandleRect.left;u+=b}if(g==="n"){var S=y.top-o.lastHandleRect.top;p+=S}}o.lastHandleRect=y,E==="w"&&(u=-u),g==="n"&&(p=-p);var C=o.props.width+(f?u/o.props.transformScale:0),T=o.props.height+(h?p/o.props.transformScale:0),N=o.runConstraints(C,T);C=N[0],T=N[1];var A=C!==o.props.width||T!==o.props.height,O=typeof o.props[a]=="function"?o.props[a]:null,M=a==="onResize"&&!A;O&&!M&&(s.persist==null||s.persist(),O(s,{node:c,size:{width:C,height:T},handle:i})),a==="onResizeStop"&&o.resetData()}}},n.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return Tm.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=tN({ref:i},s?{}:{handleAxis:a});return Tm.cloneElement(o,l)},n.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var c=i.resizeHandles;i.transformScale;var u=kQe(i,LQe);return(0,wQe.cloneElement)(o,tN(tN({},u),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,c.map(function(p){var f,h=(f=a.handleRefs[p])!=null?f:a.handleRefs[p]=Tm.createRef();return Tm.createElement(IQe.DraggableCore,$4({},l,{nodeRef:h,key:"resizableHandle-"+p,onStop:a.resizeHandler("onResizeStop",p),onStart:a.resizeHandler("onResizeStart",p),onDrag:a.resizeHandler("onResize",p)}),a.renderResizeHandle(p,h))}))}))},t}(Tm.Component);jg.default=zD;zD.propTypes=DQe.resizableProps;zD.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var Vy={};Vy.__esModule=!0;Vy.default=void 0;var nN=VQe(x),$Qe=vte(Wf),zQe=vte(jg),HQe=Kg,GQe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function vte(e){return e&&e.__esModule?e:{default:e}}function yte(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(yte=function(a){return a?n:t})(e)}function VQe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=yte(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function H4(){return H4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H4.apply(this,arguments)}function yH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function iS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yH(Object(n),!0).forEach(function(r){YQe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YQe(e,t,n){return t=qQe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qQe(e){var t=WQe(e,"string");return typeof t=="symbol"?t:String(t)}function WQe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jQe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function KQe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,G4(e,t)}function G4(e,t){return G4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},G4(e,t)}var Tte=function(e){KQe(t,e);function t(){for(var r,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r=e.call.apply(e,[this].concat(i))||this,r.state={width:r.props.width,height:r.props.height,propsWidth:r.props.width,propsHeight:r.props.height},r.onResize=function(s,l){var c=l.size;r.props.onResize?(s.persist==null||s.persist(),r.setState(c,function(){return r.props.onResize&&r.props.onResize(s,l)})):r.setState(c)},r}t.getDerivedStateFromProps=function(a,i){return i.propsWidth!==a.width||i.propsHeight!==a.height?{width:a.width,height:a.height,propsWidth:a.width,propsHeight:a.height}:null};var n=t.prototype;return n.render=function(){var a=this.props,i=a.handle,o=a.handleSize;a.onResize;var s=a.onResizeStart,l=a.onResizeStop,c=a.draggableOpts,u=a.minConstraints,p=a.maxConstraints,f=a.lockAspectRatio,h=a.axis;a.width,a.height;var g=a.resizeHandles,E=a.style,y=a.transformScale,b=jQe(a,GQe);return nN.createElement(zQe.default,{axis:h,draggableOpts:c,handle:i,handleSize:o,height:this.state.height,lockAspectRatio:f,maxConstraints:p,minConstraints:u,onResizeStart:s,onResize:this.onResize,onResizeStop:l,resizeHandles:g,transformScale:y,width:this.state.width},nN.createElement("div",H4({},b,{style:iS(iS({},E),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(nN.Component);Vy.default=Tte;Tte.propTypes=iS(iS({},HQe.resizableProps),{},{children:$Qe.default.element});PD.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};var QQe=PD.exports.Resizable=jg.default;PD.exports.ResizableBox=Vy.default;var HD={},Cte={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Cte);var Qn=Cte.exports,rN={};const XQe=b3(J2e);var TH;function Xn(){return TH||(TH=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=XQe}(rN)),rN}var ZQe=Qn;Object.defineProperty(HD,"__esModule",{value:!0});var Df=HD.default=void 0,JQe=ZQe(Xn()),eXe=_,tXe=(0,JQe.default)((0,eXe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");Df=HD.default=tXe;const aN=400,nXe=x.forwardRef(function({...t},n){return delete t.handleAxis,_.jsx(_t,{sx:{boxSizing:"content-box",width:"4px",height:"24px",position:"absolute",top:"50%",marginTop:"-12px",left:0,cursor:"ew-resize",padding:"10px 5px"},ref:n,...t,children:_.jsx(_t,{sx:{boxSizing:"content-box",width:"100%",height:"100%",backgroundColor:"grey.300",borderRadius:"4px"}})})}),rXe=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState(aN),[a,i]=xa(mv),o=(c,u)=>r(u.size.width),{width:s}=EWe(),l=wg(c=>c.breakpoints.down("sm"));return n<aN&&l&&r(aN),_.jsx(QQe,{width:n,height:0,onResize:o,onResizeStart:()=>t(!0),onResizeStop:()=>t(!1),resizeHandles:["w"],handle:l?_.jsx(_.Fragment,{}):_.jsx(nXe,{}),axis:"x",minConstraints:[100,0],maxConstraints:[s/2,0],children:_.jsxs(aXe,{anchor:"right",isSmallScreen:l,open:!!a,variant:l?"temporary":"persistent",width:n,children:[_.jsxs(kt,{direction:"row",alignItems:"center",children:[_.jsx(fn,{noWrap:!0,fontSize:"20px",fontWeight:500,id:"side-view-title",children:a==null?void 0:a.name}),_.jsx(zn,{edge:"end",sx:{ml:"auto"},onClick:()=>i(void 0),children:_.jsx(Df,{})})]}),_.jsx(_t,{mt:"1.5rem",id:"side-view-content",sx:{height:"100%",pointerEvents:e?"none":"auto"},children:_.jsx(cte,{element:a})})]})})},aXe=je(EQ,{shouldForwardProp:e=>e!=="isSmallScreen"})(({theme:e,open:t,width:n,isSmallScreen:r})=>({width:n,flexShrink:0,display:t?"flex":"none","& .MuiDrawer-paper":{position:"inherit",width:n,maxWidth:r?"80%":"100%",backgroundColor:e.palette.background.paper,borderLeft:`1px solid ${e.palette.divider}`,flexDirection:"column",borderRadius:0,color:e.palette.text.primary,whiteSpace:"nowrap",boxSizing:"border-box",padding:"1.5rem",paddingTop:".5rem",overflowX:"hidden"}}));var GD={},iXe=Qn;Object.defineProperty(GD,"__esModule",{value:!0});var Rte=GD.default=void 0,oXe=iXe(Xn()),sXe=_,lXe=(0,oXe.default)((0,sXe.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");Rte=GD.default=lXe;const du=()=>{var e;return((e=window.theme)==null?void 0:e.layout)==="wide"?"min(60rem, 100vw)":"min(48rem, 100vw)"},cXe=({element:e,onGoBack:t})=>{const n=du();return _.jsxs(_t,{display:"flex",flexDirection:"column",flexGrow:1,p:3,gap:2,boxSizing:"border-box",mx:"auto",sx:{width:"100%",maxWidth:n,color:"text.primary"},id:"element-view",children:[_.jsxs(kt,{direction:"row",gap:1,children:[t?_.jsx(zn,{edge:"start",onClick:t,children:_.jsx(Rte,{})}):null,_.jsx(fn,{fontWeight:700,fontSize:"25px",children:e.name})]}),_.jsx(cte,{element:e})]})},uXe=({items:e})=>_.jsx(kt,{spacing:1,children:e.map((t,n)=>_.jsx(_t,{pt:.5,children:_.jsx(HQ,{element:t})},n))}),dXe=({items:e})=>_.jsx(kt,{spacing:1,direction:"row",children:e.map((t,n)=>_.jsx("div",{children:_.jsx(jQ,{element:t})},n))}),CH=e=>{switch(e.size){case"small":return 1;case"medium":return 2;case"large":return 4;default:return 2}},xte=({elements:e,renderElement:t})=>_.jsx(B4e,{sx:{margin:0,transform:"translateZ(0)",width:"100%",maxWidth:600,overflowY:"hidden"},variant:"quilted",cols:4,gap:8,children:e.map((n,r)=>{const a=CH(n),i=CH(n);return _.jsx(Y4e,{cols:a,rows:i,children:_.jsx(t,{element:n})},r)})}),pXe=({items:e})=>_.jsx(xte,{elements:e,renderElement:t=>_.jsx(KQ,{element:t.element})}),fXe=({items:e})=>_.jsx(kt,{spacing:1,children:e.map((t,n)=>_.jsx("div",{style:{maxWidth:"600px",height:"400px"},children:_.jsx(QQ,{element:t})},n))}),mXe=({items:e})=>_.jsx(kt,{spacing:1,children:e.map((t,n)=>_.jsx("div",{style:{maxWidth:"600px",height:"400px"},children:_.jsx(lX,{element:t})},n))}),hXe=({items:e})=>_.jsx(kt,{spacing:1,children:e.map((t,n)=>_.jsxs(ms,{color:"info",icon:!1,children:[_.jsx(gxe,{children:t.name}),_.jsx(xee,{element:t})]},n))}),gXe=({items:e})=>_.jsx(xte,{elements:e,renderElement:t=>_.jsx(lte,{element:t.element})}),_Xe=({elements:e})=>{var n,r,a,i,o,s,l;if(!e.length)return null;const t=e.reduce((c,u)=>(c[u.type]||(c[u.type]=[]),c[u.type].push(u),c),{});return _.jsxs(kt,{gap:1,mb:2,children:[(n=t.image)!=null&&n.length?_.jsx(pXe,{items:t.image}):null,(r=t.text)!=null&&r.length?_.jsx(hXe,{items:t.text}):null,(a=t.pdf)!=null&&a.length?_.jsx(fXe,{items:t.pdf}):null,(i=t.audio)!=null&&i.length?_.jsx(uXe,{items:t.audio}):null,(o=t.video)!=null&&o.length?_.jsx(gXe,{items:t.video}):null,(s=t.file)!=null&&s.length?_.jsx(dXe,{items:t.file}):null,(l=t.plotly)!=null&&l.length?_.jsx(mXe,{items:t.plotly}):null]})};function EXe(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const RH={};function V4(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&RH[t[0]]||(typeof t[0]=="string"&&(RH[t[0]]=new Date),EXe(...t))}const Ate=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function xH(e,t,n){e.loadNamespaces(t,Ate(e,n))}function AH(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,Ate(e,r))}function bXe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],a=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const c=t.services.backendConnector.state[`${s}|${l}`];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!a||o(i,e)))}function SXe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(V4("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(a,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!i(a.isLanguageChangingTo,e))return!1}}):bXe(e,t,n)}const vXe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,yXe={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},TXe=e=>yXe[e],CXe=e=>e.replace(vXe,TXe);let Y4={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:CXe};function RXe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Y4={...Y4,...e}}function xXe(){return Y4}let Ote;function AXe(e){Ote=e}function OXe(){return Ote}const NXe={type:"3rdParty",init(e){RXe(e.options.react),AXe(e)}},IXe=x.createContext();class wXe{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const DXe=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function Yy(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:a}=x.useContext(IXe)||{},i=n||r||OXe();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new wXe),!i){V4("You will need to pass in an i18next instance by using initReactI18next");const C=(N,A)=>typeof A=="string"?A:A&&typeof A=="object"&&typeof A.defaultValue=="string"?A.defaultValue:Array.isArray(N)?N[N.length-1]:N,T=[C,{},!1];return T.t=C,T.i18n={},T.ready=!1,T}i.options.react&&i.options.react.wait!==void 0&&V4("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...xXe(),...i.options.react,...t},{useSuspense:s,keyPrefix:l}=o;let c=e||a||i.options&&i.options.defaultNS;c=typeof c=="string"?[c]:c||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every(C=>SXe(C,i,o));function p(){return i.getFixedT(t.lng||null,o.nsMode==="fallback"?c:c[0],l)}const[f,h]=x.useState(p);let g=c.join();t.lng&&(g=`${t.lng}${g}`);const E=DXe(g),y=x.useRef(!0);x.useEffect(()=>{const{bindI18n:C,bindI18nStore:T}=o;y.current=!0,!u&&!s&&(t.lng?AH(i,t.lng,c,()=>{y.current&&h(p)}):xH(i,c,()=>{y.current&&h(p)})),u&&E&&E!==g&&y.current&&h(p);function N(){y.current&&h(p)}return C&&i&&i.on(C,N),T&&i&&i.store.on(T,N),()=>{y.current=!1,C&&i&&C.split(" ").forEach(A=>i.off(A,N)),T&&i&&T.split(" ").forEach(A=>i.store.off(A,N))}},[i,g]);const b=x.useRef(!0);x.useEffect(()=>{y.current&&!b.current&&h(p),b.current=!1},[i,l]);const S=[f,i,u];if(S.t=f,S.i18n=i,S.ready=u,u||!u&&!s)return S;throw new Promise(C=>{t.lng?AH(i,t.lng,c,()=>C()):xH(i,c,()=>C())})}const Pt=({path:e,options:t,suffix:n})=>{const{t:r,i18n:a}=Yy();return a.exists(e,t)?_.jsxs("span",{children:[r(e,t),n]}):_.jsx(Bc,{variant:"text",width:20})},ql=()=>{const{t:e,ready:t,i18n:n}=Yy();return{t:(r,a)=>n.exists(r,a)?e(r,a):"...",ready:t,i18n:n}},qy={fontFamily:["Inter","sans-serif"].join(",")},Wy={MuiButton:{defaultProps:{disableElevation:!0,disableRipple:!0,sx:{textTransform:"none"}}},MuiLink:{defaultProps:{fontWeight:500}},MuiFormHelperText:{defaultProps:{sx:{m:0,fontWeight:400,color:Mt[500]}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:"black"}}}},jy={borderRadius:8},Nte={main:M5[500],contrastText:xl},Ite={main:"rgba(239, 65, 70, 1)",contrastText:xl},LXe=(e,t)=>Kf({typography:e?{fontFamily:e}:qy,components:Wy,shape:jy,breakpoints:t,palette:{mode:"dark",success:Nte,error:Ite,background:{default:Mt[850],paper:Mt[900]},primary:{main:"#F80061",dark:El[800],light:"#FFE7EB",contrastText:xl},secondary:{main:"#9757D7",dark:"#763FB8",light:"#B87FE7",contrastText:xl},divider:Mt[800],text:{primary:Mt[200],secondary:Mt[400]}}}),MXe=(e,t)=>Kf({typography:e?{fontFamily:e}:qy,components:Wy,shape:jy,breakpoints:t,palette:{mode:"light",success:Nte,error:Ite,background:{default:Mt[50],paper:xl},primary:{main:"#F80061",dark:El[800],light:"#FFE7EB",contrastText:xl},secondary:{main:"#9757D7",dark:"#763FB8",light:"#B87FE7",contrastText:xl},divider:Mt[200],text:{primary:Mt[900],secondary:Mt[700]}}}),kXe=(e,t,n)=>e==="dark"?LXe(t,n):MXe(t,n);Kf({typography:qy,components:Wy,shape:jy,palette:{primary:{main:Mt[900]}}});Kf({typography:qy,components:Wy,shape:jy,palette:{primary:{main:Mt[200]}}});const PXe=({status:e})=>e==="running"?_.jsx(_t,{sx:{marginTop:"-2px",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",color:Mt[700]},children:_.jsx(Ag,{color:"inherit",size:18})}):_.jsxs(la,{width:24,height:24,sx:{marginTop:"-2px",fill:"none"},children:[e==="done"&&_.jsxs(_.Fragment,{children:[_.jsx("circle",{cx:12,cy:12,r:9,fill:M5[500]}),_.jsx("path",{stroke:xl,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m15.333 9.5-4.583 4.583L8.667 12"})]}),e==="ready"&&_.jsx("circle",{cx:12,cy:12,r:8.25,stroke:Mt[700],strokeWidth:1.5}),e==="failed"&&_.jsxs(_.Fragment,{children:[_.jsx("circle",{cx:12,cy:12,r:9,fill:El[500]}),_.jsx("path",{stroke:xl,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m14.5 9.5-5 5m0-5 5 5"})]})]}),OH=({index:e,task:t})=>{const n=Tn(Cee),r=da();return _.jsx(t4,{disableGutters:!0,className:`task task-status-${t.status}`,children:_.jsxs(Y3e,{disableRipple:!t.forId,sx:{color:{ready:r.palette.mode==="dark"?Mt[300]:Mt[700],running:r.palette.mode==="dark"?Mt[100]:Mt[850],done:Mt[500],failed:Mt[500]}[t.status]||r.palette.text.secondary,fontWeight:t.status==="running"?"700":"500",alignItems:"flex-start",fontSize:"14px",lineHeight:1.36,cursor:t.forId?"pointer":"default"},onClick:()=>{if(t.forId){n(t.forId);const a=document.getElementById(`message-${t.forId}`);a&&a.scrollIntoView({behavior:"smooth",block:"start",inline:"start"})}},children:[_.jsx(_t,{sx:{paddingRight:r.spacing(1),flex:"0 0 18px",width:"18px"},children:e}),_.jsx(PXe,{status:t.status}),_.jsx(_t,{sx:{paddingLeft:r.spacing(2)},children:t.title})]})})},NH=({status:e})=>{const t=da();return _.jsxs(_t,{sx:{display:"flex",alignItems:"center",flexDirection:"row",padding:t.spacing(2)},children:[_.jsx(_t,{sx:{flexGrow:"1",fontWeight:"600",paddingLeft:t.spacing(1),fontFamily:t.typography.fontFamily},children:_.jsx(Pt,{path:"components.molecules.tasklist.TaskList.title"})}),_.jsx(x5,{label:e||"?",sx:{fontWeight:"500",borderRadius:"4px",backgroundColor:t.palette.background.default,color:t.palette.mode==="dark"?Mt[500]:Mt[600]}})]})},IH=e=>({background:e.palette.background.paper,borderLeft:`1px solid ${e.palette.divider}`,width:"100%",display:"flex",flexDirection:"column",fontFamily:e.typography.fontFamily,boxShadow:e.palette.mode==="dark"?"0px 4px 20px 0px rgba(0, 0, 0, 0.20)":"0px 4px 20px 0px rgba(0, 0, 0, 0.05)"}),wte=({isMobile:e})=>{const t=da(),{tasklists:n}=au(),r=yt(ca),a=n[n.length-1],i=x.useMemo(()=>{if(!(a!=null&&a.url))return null;const p=new URL(a.url);return p.pathname+p.search},[a==null?void 0:a.url]),{isLoading:o,error:s,data:l}=gf(r,i||null,{keepPreviousData:!0});if(!i)return null;if(o&&!l)return _.jsx("div",{children:_.jsx(Pt,{path:"components.molecules.tasklist.TaskList.loading"})});if(s)return _.jsx("div",{children:_.jsx(Pt,{path:"components.molecules.tasklist.TaskList.error"})});const c=l;if(!c)return null;const u=c.tasks;if(e){let p=u.length-1;for(let h=0;h<u.length;h++)if(u[h].status==="running"||u[h].status==="ready"){p=h;break}const f=u==null?void 0:u[p];return _.jsx(_t,{component:"aside",sx:{color:t.palette.text.primary,padding:t.spacing(2),width:"100%",boxSizing:"border-box",display:{xs:"flex",md:"none"}},className:"tasklist tasklist-mobile",children:_.jsxs(_t,{sx:{...IH(t)},children:[_.jsx(NH,{status:c.status}),f&&_.jsx(Hb,{children:_.jsx(OH,{index:p+1,task:f})})]})})}return _.jsx(_t,{component:"aside",sx:{color:t.palette.text.primary,width:"380px",flexShrink:"0",display:{xs:"none",md:"flex"}},className:"tasklist tasklist-desktop",children:_.jsxs(_t,{sx:{...IH(t)},children:[_.jsx(NH,{status:c==null?void 0:c.status}),_.jsx(_t,{sx:{overflowY:"auto"},children:_.jsx(Hb,{children:u==null?void 0:u.map((p,f)=>_.jsx(OH,{index:f+1,task:p},f))})})]})})},FXe=e=>_.jsx(la,{children:_.jsxs("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[_.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),_.jsx("circle",{cx:"12",cy:"7",r:"4"})]})});function BXe(e){var n,r,a;const{user:t}=gs();return _.jsx(zn,{...e,children:_.jsx(O5,{sx:{width:32,height:32,bgcolor:"primary.main",color:"primary.contrastText"},src:((n=t==null?void 0:t.metadata)==null?void 0:n.image)||void 0,children:t?(a=(r=t.identifier)==null?void 0:r[0])==null?void 0:a.toUpperCase():_.jsx(FXe,{sx:{height:20,width:20}})})})}var VD={},UXe=Qn;Object.defineProperty(VD,"__esModule",{value:!0});var Dte=VD.default=void 0,$Xe=UXe(Xn()),zXe=_,HXe=(0,$Xe.default)((0,zXe.jsx)("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkModeOutlined");Dte=VD.default=HXe;var YD={},GXe=Qn;Object.defineProperty(YD,"__esModule",{value:!0});var Lte=YD.default=void 0,VXe=GXe(Xn()),YXe=_,qXe=(0,VXe.default)((0,YXe.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04L21 10zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"}),"Key");Lte=YD.default=qXe;var qD={},WXe=Qn;Object.defineProperty(qD,"__esModule",{value:!0});var Mte=qD.default=void 0,jXe=WXe(Xn()),KXe=_,QXe=(0,jXe.default)((0,KXe.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"}),"Logout");Mte=qD.default=QXe;var WD={},XXe=Qn;Object.defineProperty(WD,"__esModule",{value:!0});var kte=WD.default=void 0,ZXe=XXe(Xn()),JXe=_,eZe=(0,ZXe.default)((0,JXe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");kte=WD.default=eZe;const Pte=({count:e,inputProps:t})=>{const n=da();return e?t?(()=>{const i=o=>{const s=e.toString();let l=s.length*8+(o?22:0);return(s.includes(".")||s.includes(","))&&(l-=6),`${l}px`};return t?_.jsx(Lg,{id:t.id,inputProps:{type:"number",max:t.max,min:t.min,step:t.step||1,sx:{width:i(),padding:o=>o.spacing(.5,1),fontSize:"12px",fontWeight:600,color:"text.secondary",MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{display:"none"},"&:focus":{width:i(!0),MozAppearance:"auto","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{display:"flex"}}}},sx:{borderRadius:"6px",backgroundColor:o=>o.palette.mode==="light"?"grey.100":"grey.800","& fieldset":{border:"none"}},value:e,onChange:t.onChange}):null})():(()=>_.jsx(_t,{display:"flex",alignItems:"center",className:"notification-count",sx:{borderRadius:"6px",padding:"4px 8px",backgroundColor:n.palette.mode==="light"?"grey.100":"grey.800"},children:_.jsx(fn,{className:"notification-count",color:"text.secondary",sx:{fontSize:"12px",fontWeight:600},children:e})}))():null},tZe=({id:e,label:t,tooltip:n,notificationsProps:r})=>_.jsxs(_t,{display:"flex",justifyContent:"space-between",width:"100%",children:[_.jsxs(_t,{display:"flex",gap:.5,alignItems:"center",children:[_.jsx(NQ,{htmlFor:e,sx:{fontWeight:600,fontSize:"12px",color:"grey.500"},children:t}),n?_.jsx(Ca,{title:n,children:_.jsx(kte,{sx:{fontSize:12,color:"grey.600"}})}):null]}),r?_.jsx(Pte,{...r}):null]}),Qg=e=>{const{children:t,description:n,hasError:r,id:a,label:i,notificationsProps:o,tooltip:s,sx:l}=e;return _.jsxs(kt,{sx:l,gap:.5,children:[i?_.jsx(tZe,{id:a,label:i,tooltip:s,notificationsProps:o}):null,_.jsxs(vQ,{error:r,fullWidth:!0,children:[t,n?_.jsx(yQ,{children:n}):null]})]})},Fte=e=>{const{checked:t,description:n,disabled:r,hasError:a,id:i,inputProps:o,label:s,onChange:l,tooltip:c}=e;return _.jsx(Qg,{description:n,hasError:a,id:i,label:s,tooltip:c,children:_.jsx(nZe,{name:i,disabled:r,edge:"end",onChange:l,checked:t,inputProps:o})})},nZe=je(e=>_.jsx(pDe,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e}))(({theme:e})=>{const t=e.palette.mode==="dark";return{width:40,height:24,padding:0,"& .MuiSwitch-switchBase":{margin:0,padding:"4px",transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:M5[500],opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-disabled .MuiSwitch-thumb":{color:t?e.palette.grey[600]:e.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t?.3:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,boxShadow:"unset"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:e.palette.grey[400],opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}});var FV;const rZe=((FV=window.theme)==null?void 0:FV.default)||"dark",wH=localStorage.getItem("themeVariant"),aZe=wH||rZe,iZe={open:!1,defaultCollapseContent:!0,isChatHistoryOpen:!0,language:"en-US",theme:aZe},Wl=kn({key:"AppSettings",default:iZe});function oZe({anchorEl:e,open:t,handleClose:n}){var E;const{user:r,logout:a}=gs(),[i,o]=xa(Wl),s=yt(Zr),l=!!((E=s==null?void 0:s.userEnv)!=null&&E.length),c=r&&_.jsxs(t4,{sx:{display:"flex",flexDirection:"column"},children:[_.jsx(fn,{width:"100%",fontSize:"14px",fontWeight:700,children:r.id}),_.jsx(fn,{width:"100%",fontSize:"13px",fontWeight:400,children:r.identifier})]},"user-name"),u=_.jsxs(t4,{sx:{display:"flex",gap:1},children:[_.jsx(x2,{children:_.jsx(Dte,{})}),_.jsx(gwe,{id:"switch-theme",secondary:_.jsx(Pt,{path:"components.molecules.settingsModal.darkMode"})}),_.jsx(_t,{children:_.jsx(Fte,{id:"switch-theme",onChange:()=>{const y=i.theme==="light"?"dark":"light";localStorage.setItem("themeVariant",y),o(b=>({...b,theme:y}))},checked:i.theme==="dark",inputProps:{"aria-labelledby":"switch-theme"}})})]},"theme"),h=[c,u,l&&_.jsxs(Vb,{component:Kw,to:"/env",children:[_.jsx(x2,{children:_.jsx(Lte,{fontSize:"small"})}),_.jsx(Pt,{path:"components.atoms.buttons.userButton.menu.APIKeys"})]},"env"),r&&_.jsxs(Vb,{onClick:()=>{a(),n()},children:[_.jsx(x2,{children:_.jsx(Mte,{fontSize:"small"})}),_.jsx(Pt,{path:"components.atoms.buttons.userButton.menu.logout"})]},"logout")].filter(y=>!!y),g=h.reduce((y,b,S)=>S===h.length-1?[...y,b]:[...y,b,_.jsx(hQ,{sx:{my:1}},`divider-${S}`)],[]);return _.jsx(Dg,{anchorEl:e,id:"account-menu",open:t,onClose:n,PaperProps:{sx:{width:220,overflow:"visible",mt:1.5,backgroundImage:"none",border:y=>`1px solid ${y.palette.divider}`,boxShadow:y=>y.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D","& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,bgcolor:"background.default",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},transformOrigin:{horizontal:"center",vertical:"top"},anchorOrigin:{horizontal:"center",vertical:"bottom"},children:g})}function sZe(){const[e,t]=x.useState(null),n=!!e,r=i=>{t(i.currentTarget)},a=()=>{t(null)};return _.jsxs(_.Fragment,{children:[_.jsx(BXe,{onClick:r,"aria-controls":n?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":n?"true":void 0}),_.jsx(oZe,{open:n,anchorEl:e,handleClose:a})]})}const jD=({style:e})=>{const{theme:t}=yt(Wl),n=yt(ca);return _.jsx("img",{src:n.getLogoEndpoint(t),alt:"logo",style:e})};var lZe=Object.prototype;function cZe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||lZe;return e===n}var KD=cZe;function uZe(e,t){return function(n){return e(t(n))}}var Bte=uZe,dZe=Bte,pZe=dZe(Object.keys,Object),fZe=pZe,mZe=KD,hZe=fZe,gZe=Object.prototype,_Ze=gZe.hasOwnProperty;function EZe(e){if(!mZe(e))return hZe(e);var t=[];for(var n in Object(e))_Ze.call(e,n)&&n!="constructor"&&t.push(n);return t}var Ute=EZe,bZe=typeof aa=="object"&&aa&&aa.Object===Object&&aa,$te=bZe,SZe=$te,vZe=typeof self=="object"&&self&&self.Object===Object&&self,yZe=SZe||vZe||Function("return this")(),Es=yZe,TZe=Es,CZe=TZe.Symbol,Xg=CZe,DH=Xg,zte=Object.prototype,RZe=zte.hasOwnProperty,xZe=zte.toString,Cm=DH?DH.toStringTag:void 0;function AZe(e){var t=RZe.call(e,Cm),n=e[Cm];try{e[Cm]=void 0;var r=!0}catch{}var a=xZe.call(e);return r&&(t?e[Cm]=n:delete e[Cm]),a}var OZe=AZe,NZe=Object.prototype,IZe=NZe.toString;function wZe(e){return IZe.call(e)}var DZe=wZe,LH=Xg,LZe=OZe,MZe=DZe,kZe="[object Null]",PZe="[object Undefined]",MH=LH?LH.toStringTag:void 0;function FZe(e){return e==null?e===void 0?PZe:kZe:MH&&MH in Object(e)?LZe(e):MZe(e)}var o0=FZe;function BZe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pu=BZe,UZe=o0,$Ze=pu,zZe="[object AsyncFunction]",HZe="[object Function]",GZe="[object GeneratorFunction]",VZe="[object Proxy]";function YZe(e){if(!$Ze(e))return!1;var t=UZe(e);return t==HZe||t==GZe||t==zZe||t==VZe}var Hte=YZe,qZe=Es,WZe=qZe["__core-js_shared__"],jZe=WZe,iN=jZe,kH=function(){var e=/[^.]+$/.exec(iN&&iN.keys&&iN.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function KZe(e){return!!kH&&kH in e}var QZe=KZe,XZe=Function.prototype,ZZe=XZe.toString;function JZe(e){if(e!=null){try{return ZZe.call(e)}catch{}try{return e+""}catch{}}return""}var Gte=JZe,eJe=Hte,tJe=QZe,nJe=pu,rJe=Gte,aJe=/[\\^$.*+?()[\]{}|]/g,iJe=/^\[object .+?Constructor\]$/,oJe=Function.prototype,sJe=Object.prototype,lJe=oJe.toString,cJe=sJe.hasOwnProperty,uJe=RegExp("^"+lJe.call(cJe).replace(aJe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dJe(e){if(!nJe(e)||tJe(e))return!1;var t=eJe(e)?uJe:iJe;return t.test(rJe(e))}var pJe=dJe;function fJe(e,t){return e==null?void 0:e[t]}var mJe=fJe,hJe=pJe,gJe=mJe;function _Je(e,t){var n=gJe(e,t);return hJe(n)?n:void 0}var Od=_Je,EJe=Od,bJe=Es,SJe=EJe(bJe,"DataView"),vJe=SJe,yJe=Od,TJe=Es,CJe=yJe(TJe,"Map"),QD=CJe,RJe=Od,xJe=Es,AJe=RJe(xJe,"Promise"),OJe=AJe,NJe=Od,IJe=Es,wJe=NJe(IJe,"Set"),Vte=wJe,DJe=Od,LJe=Es,MJe=DJe(LJe,"WeakMap"),kJe=MJe,q4=vJe,W4=QD,j4=OJe,K4=Vte,Q4=kJe,Yte=o0,s0=Gte,PH="[object Map]",PJe="[object Object]",FH="[object Promise]",BH="[object Set]",UH="[object WeakMap]",$H="[object DataView]",FJe=s0(q4),BJe=s0(W4),UJe=s0(j4),$Je=s0(K4),zJe=s0(Q4),Mu=Yte;(q4&&Mu(new q4(new ArrayBuffer(1)))!=$H||W4&&Mu(new W4)!=PH||j4&&Mu(j4.resolve())!=FH||K4&&Mu(new K4)!=BH||Q4&&Mu(new Q4)!=UH)&&(Mu=function(e){var t=Yte(e),n=t==PJe?e.constructor:void 0,r=n?s0(n):"";if(r)switch(r){case FJe:return $H;case BJe:return PH;case UJe:return FH;case $Je:return BH;case zJe:return UH}return t});var Zg=Mu,HJe=9007199254740991;function GJe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=HJe}var XD=GJe,VJe=Hte,YJe=XD;function qJe(e){return e!=null&&YJe(e.length)&&!VJe(e)}var Jg=qJe,WJe=Array.isArray,bs=WJe;function jJe(e){return e!=null&&typeof e=="object"}var fu=jJe,KJe=o0,QJe=bs,XJe=fu,ZJe="[object String]";function JJe(e){return typeof e=="string"||!QJe(e)&&XJe(e)&&KJe(e)==ZJe}var eet=JJe;function tet(e){return function(t){return t==null?void 0:t[e]}}var qte=tet,net=qte,ret=net("length"),aet=ret,iet="\\ud800-\\udfff",oet="\\u0300-\\u036f",set="\\ufe20-\\ufe2f",cet="\\u20d0-\\u20ff",uet=oet+set+cet,det="\\ufe0e\\ufe0f",pet="\\u200d",fet=RegExp("["+pet+iet+uet+det+"]");function met(e){return fet.test(e)}var ZD=met,Wte="\\ud800-\\udfff",het="\\u0300-\\u036f",get="\\ufe20-\\ufe2f",_et="\\u20d0-\\u20ff",Eet=het+get+_et,bet="\\ufe0e\\ufe0f",vet="["+Wte+"]",X4="["+Eet+"]",Z4="\\ud83c[\\udffb-\\udfff]",yet="(?:"+X4+"|"+Z4+")",jte="[^"+Wte+"]",Kte="(?:\\ud83c[\\udde6-\\uddff]){2}",Qte="[\\ud800-\\udbff][\\udc00-\\udfff]",Tet="\\u200d",Xte=yet+"?",Zte="["+bet+"]?",Cet="(?:"+Tet+"(?:"+[jte,Kte,Qte].join("|")+")"+Zte+Xte+")*",Ret=Zte+Xte+Cet,xet="(?:"+[jte+X4+"?",X4,Kte,Qte,vet].join("|")+")",zH=RegExp(Z4+"(?="+Z4+")|"+xet+Ret,"g");function Aet(e){for(var t=zH.lastIndex=0;zH.test(e);)++t;return t}var Oet=Aet,Net=aet,Iet=ZD,wet=Oet;function Det(e){return Iet(e)?wet(e):Net(e)}var Let=Det,Met=Ute,ket=Zg,Pet=Jg,Fet=eet,Bet=Let,Uet="[object Map]",$et="[object Set]";function zet(e){if(e==null)return 0;if(Pet(e))return Fet(e)?Bet(e):e.length;var t=ket(e);return t==Uet||t==$et?e.size:Met(e).length}var Het=zet;const Jte=Aa(Het),gE=(e,...t)=>{const n={...e};for(const r of t)delete n[r];return n},Get=({description:e,hasError:t,id:n,label:r,tooltip:a,setField:i,...o})=>{var l;const s=c=>{const u=parseFloat(c.target.value),{min:p,max:f,onChange:h}=o;f&&u>f?i&&i(n,f):p&&u<p?i&&i(n,p):h&&h(c,u,0)};return _.jsx(Qg,{description:e,hasError:t,id:n,label:r,tooltip:a,notificationsProps:{count:((l=o.value)==null?void 0:l.toString())||"0",inputProps:{id:n,max:o.max,min:o.min,step:o.step||1,onChange:s}},children:_.jsx(Vet,{...o,id:n,name:n})})},Vet=je(W5e)(({theme:e})=>{const t=e.palette.mode==="light";return{width:"calc(100% - 18px)",marginLeft:"8px",color:Mt[t?300:850],height:3,"& .MuiSlider-track":{border:"none",color:Mt[500]},"& .MuiSlider-thumb":{height:15,width:15,backgroundColor:t?Mt[600]:"white",border:`4px solid ${t?Mt[300]:Mt[800]}`,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"inherit"},"&:before":{display:"none"}},"& .MuiSlider-valueLabel":{lineHeight:1.2,fontSize:12,background:"unset",padding:0,width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"#52af77",transformOrigin:"bottom left",transform:"translate(50%, -100%) rotate(-45deg) scale(0)","&:before":{display:"none"},"&.MuiSlider-valueLabelOpen":{transform:"translate(50%, -100%) rotate(-45deg) scale(1)"},"& > *":{transform:"rotate(45deg)"}}}}),ng={enter:"Enter",backspace:"Backspace"},Yet={ime:229},qet=je(x5)(({theme:e,size:t})=>`
|
|
655
655
|
max-width: 100%;
|
|
@@ -713,7 +713,7 @@ attempted value: ${o}
|
|
|
713
713
|
${o}
|
|
714
714
|
${u}`)}return{preparedContent:o,inlinedElements:s,refElements:l}},V6=e=>_.jsx(la,{children:_.jsx("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:_.jsx("path",{d:"m6 9 6 6 6-6"})})}),Ure=e=>_.jsx(la,{children:_.jsx("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:_.jsx("path",{d:"m18 15-6-6-6 6"})})}),Ugt=({children:e,defaultExpandAll:t=!1})=>{const[n,r]=M4(t),a=_.jsx(_t,{height:n?"auto":100,position:"relative",children:_.jsx(_t,{position:n?"relative":"absolute",top:0,left:0,right:0,bottom:0,children:e})});return _.jsxs(_t,{children:[_.jsx(mRe,{in:n,collapsedSize:100,timeout:0,children:a}),_.jsx(kt,{direction:"row",justifyContent:"end",children:_.jsx(Ca,{title:n?"Collapse":"Expand",children:_.jsx(zn,{onClick:r,children:n?_.jsx(Ure,{}):_.jsx(V6,{})})})})]})},$gt=25,zgt=3e3,g3=x.memo(({message:e,elements:t,preserveSize:n,allowHtml:r,latex:a})=>{let i=0,o=0;const s=e.streaming&&e.output?e.output+cH:e.output,{preparedContent:l,inlinedElements:c,refElements:u}=fV({elements:t,id:e.id,content:s,language:e.language});i+=l.split(`
|
|
715
715
|
`).length,o+=l.length;const p=_.jsx(eg,{allowHtml:r,latex:a,refElements:u,children:l});let f;if(e.input&&e.showInput){const y=e.streaming&&e.input?e.input+cH:e.input,{preparedContent:b,refElements:S}=fV({elements:t,id:e.id,content:y,language:typeof e.showInput=="string"?e.showInput:void 0});i+=b.split(`
|
|
716
|
-
`).length,o+=b.length,f=_.jsx(eg,{allowHtml:r,latex:a,refElements:S,children:b})}const h=_.jsxs(fn,{sx:{width:"100%",minHeight:"20px",fontSize:"1rem",fontFamily:y=>y.typography.fontFamily},component:"div",children:[f,f&&p?_.jsx(hQ,{sx:{my:1}}):null,p]}),E=!e.type.includes("message")&&(i>$gt||o>zgt)?_.jsx(Ugt,{defaultExpandAll:n,children:h}):h;return _.jsx(kt,{width:"100%",direction:"row",className:"message-content",children:_.jsxs(_t,{width:"100%",children:[f||l?E:null,_.jsx(_Xe,{elements:c})]})})});function Hgt({steps:e,elements:t,isRunning:n}){const[r,a]=x.useState(!1),[i,o]=x.useState(!1),s=x.useMemo(()=>n&&e.find(p=>p.start&&!p.end&&!p.isError),[e,n]),l=e.some(p=>p.output||p.input),c=e.length?e[e.length-1].isError:!1;if(!e.length)return null;const u=e[0].name;return _.jsxs(kt,{width:"100%",direction:"column",alignItems:"start",gap:1,children:[_.jsxs(_t,{display:"flex",alignItems:"center",onMouseOver:()=>o(!0),onMouseOut:()=>o(!1),onClick:()=>a(!r),id:`tool-call-${u}`,children:[_.jsxs(_t,{children:[_.jsx(fn,{variant:"button",sx:{textTransform:"none",cursor:l?"pointer":"default",color:c?"error.main":i?"text.primary":"text.secondary",fontFamily:p=>p.typography.fontFamily},children:s?_.jsxs(_.Fragment,{children:[_.jsx(Pt,{path:"components.molecules.detailsButton.using"})," ",u]}):_.jsxs(_.Fragment,{children:[_.jsx(Pt,{path:"components.molecules.detailsButton.used"})," ",u]})})," ",s&&_.jsx(b3e,{color:"inherit",sx:{borderRadius:"1rem",height:"3px"}})]}),l&&(i||r)?r?_.jsx(Ure,{sx:{height:18,with:18,cursor:"pointer"}}):_.jsx(V6,{sx:{height:18,with:18,cursor:"pointer"}}):null]}),r&&_.jsx(kt,{width:"100%",direction:"column",gap:2,sx:{borderLeft:p=>`1px solid ${p.palette.primary.main}`,boxSizing:"border-box",pl:1},children:e.filter(p=>p.output||p.input).map(p=>_.jsx(g3,{elements:t,message:p,preserveSize:!0},p.id))})]})}function Ggt(e){const t=[];let n=[];function r(a){if(a.type==="tool"&&(n.length===0||n[0].name===a.name?n.push(a):(t.push(n),n=[a])),a.steps)for(const i of a.steps)r(i)}return r(e),n.length>0&&t.push(n),t}function Vgt({message:e,elements:t,isRunning:n}){const r=x.useMemo(()=>e.steps?Ggt(e):[],[e]);return r.length?_.jsx(kt,{width:"100%",direction:"column",gap:1,children:r.map((a,i)=>_.jsx(Hgt,{steps:a,elements:t,isRunning:n},i))}):null}const Ygt=x.memo(({message:e,showAvatar:t,elements:n,actions:r,isRunning:a,isLast:i})=>{const{highlightedMessage:o,defaultCollapseContent:s,allowHtml:l,latex:c,onError:u}=x.useContext(uu),p=du(),f=e.waitForAnswer,h=e.type==="user_message",g=i&&a&&!e.streaming;return _.jsx(_t,{sx:{color:"text.primary",position:"relative"},className:"step",children:_.jsx(_t,{sx:{boxSizing:"border-box",mx:"auto",maxWidth:p,px:2,display:"flex",flexDirection:"column",position:"relative"},children:_.jsx(kt,{id:`step-${e.id}`,direction:"row",sx:{pb:2,animation:e.id&&o===e.id?`3s ease-in-out 0.1s ${qgt}`:"none",overflowX:"auto"},children:h?_.jsxs(_t,{display:"flex",flexDirection:"column",width:"100%",children:[_.jsx(_t,{sx:{px:2.5,borderRadius:"1.5rem",backgroundColor:"background.paper",maxWidth:"70%",ml:"auto"},children:_.jsx(g3,{elements:n,message:e,preserveSize:!!e.streaming||!s,allowHtml:l,latex:c})}),g&&_.jsx(_t,{mt:1,children:_.jsx(k4,{})})]}):_.jsxs(kt,{direction:"row",gap:"1rem",width:"100%",children:[_.jsx(vgt,{author:e.name,hide:!t}),_.jsxs(kt,{alignItems:"flex-start",minWidth:150,flexGrow:1,position:"relative",children:[_.jsx(Vgt,{elements:n,message:e,isRunning:a}),_.jsx(g3,{elements:n,message:e,preserveSize:!!e.streaming||!s,allowHtml:l,latex:c}),!a&&i&&f&&_.jsx(Sgt,{onError:u}),r!=null&&r.length?_.jsx(Agt,{message:e,actions:r}):null,_.jsx(Fgt,{message:e}),g&&_.jsx(_t,{my:.5,children:_.jsx(k4,{})})]})]})})})})}),qgt=zo`
|
|
716
|
+
`).length,o+=b.length,f=_.jsx(eg,{allowHtml:r,latex:a,refElements:S,children:b})}const h=_.jsxs(fn,{sx:{width:"100%",minHeight:"20px",fontSize:"1rem",fontFamily:y=>y.typography.fontFamily},component:"div",children:[f,f&&p?_.jsx(hQ,{sx:{my:1}}):null,p]}),E=!e.type.includes("message")&&(i>$gt||o>zgt)?_.jsx(Ugt,{defaultExpandAll:n,children:h}):h;return _.jsx(kt,{width:"100%",direction:"row",className:"message-content",children:_.jsxs(_t,{width:"100%",children:[f||l?E:null,_.jsx(_Xe,{elements:c})]})})});function Hgt({steps:e,elements:t,isRunning:n}){const[r,a]=x.useState(!1),[i,o]=x.useState(!1),s=x.useMemo(()=>n&&e.find(p=>p.start&&!p.end&&!p.isError),[e,n]),l=e.some(p=>p.output||p.input),c=e.length?e[e.length-1].isError:!1;if(!e.length)return null;const u=e[0].name;return _.jsxs(kt,{width:"100%",direction:"column",alignItems:"start",gap:1,children:[_.jsxs(_t,{display:"flex",alignItems:"center",onMouseOver:()=>o(!0),onMouseOut:()=>o(!1),onClick:()=>a(!r),id:`tool-call-${u}`,children:[_.jsxs(_t,{children:[_.jsx(fn,{variant:"button",sx:{textTransform:"none",cursor:l?"pointer":"default",color:c?"error.main":i?"text.primary":"text.secondary",fontFamily:p=>p.typography.fontFamily},children:s?_.jsxs(_.Fragment,{children:[_.jsx(Pt,{path:"components.molecules.detailsButton.using"})," ",u]}):_.jsxs(_.Fragment,{children:[_.jsx(Pt,{path:"components.molecules.detailsButton.used"})," ",u]})})," ",s&&_.jsx(b3e,{color:"inherit",sx:{borderRadius:"1rem",height:"3px"}})]}),l&&(i||r)?r?_.jsx(Ure,{sx:{height:18,with:18,cursor:"pointer"}}):_.jsx(V6,{sx:{height:18,with:18,cursor:"pointer"}}):null]}),r&&_.jsx(kt,{width:"100%",direction:"column",gap:2,sx:{borderLeft:p=>`1px solid ${p.palette.primary.main}`,boxSizing:"border-box",pl:1},children:e.filter(p=>p.output||p.input).map(p=>_.jsx(g3,{elements:t,message:p,preserveSize:!0},p.id))})]})}function Ggt(e){const t=[];let n=[];function r(a){if(a.type==="tool"&&(n.length===0||n[0].name===a.name?n.push(a):(t.push(n),n=[a])),a.steps)for(const i of a.steps)r(i)}return r(e),n.length>0&&t.push(n),t}function Vgt({message:e,elements:t,isRunning:n}){const r=x.useMemo(()=>e.steps?Ggt(e):[],[e]);return r.length?_.jsx(kt,{width:"100%",direction:"column",gap:1,children:r.map((a,i)=>_.jsx(Hgt,{steps:a,elements:t,isRunning:n},i))}):null}const Ygt=x.memo(({message:e,showAvatar:t,elements:n,actions:r,isRunning:a,isLast:i})=>{const{highlightedMessage:o,defaultCollapseContent:s,allowHtml:l,latex:c,onError:u}=x.useContext(uu),p=du(),f=e.waitForAnswer,h=e.type==="user_message",g=i&&a&&!e.streaming;return _.jsx(_t,{sx:{color:"text.primary",position:"relative"},className:"step",children:_.jsx(_t,{sx:{boxSizing:"border-box",mx:"auto",maxWidth:p,px:2,display:"flex",flexDirection:"column",position:"relative"},children:_.jsx(kt,{id:`step-${e.id}`,direction:"row",sx:{pb:2,animation:e.id&&o===e.id?`3s ease-in-out 0.1s ${qgt}`:"none",overflowX:"auto"},children:h?_.jsxs(_t,{display:"flex",flexDirection:"column",width:"100%",children:[_.jsx(_t,{sx:{px:2.5,borderRadius:"1.5rem",backgroundColor:"background.paper",maxWidth:"70%",ml:"auto"},children:_.jsx(g3,{elements:n,message:e,preserveSize:!!e.streaming||!s,allowHtml:l,latex:c})}),g&&_.jsx(_t,{mt:1,children:_.jsx(k4,{})})]}):_.jsxs(kt,{direction:"row",gap:"1rem",width:"100%",className:"ai-message",children:[_.jsx(vgt,{author:e.name,hide:!t}),_.jsxs(kt,{alignItems:"flex-start",minWidth:150,flexGrow:1,position:"relative",children:[_.jsx(Vgt,{elements:n,message:e,isRunning:a}),_.jsx(g3,{elements:n,message:e,preserveSize:!!e.streaming||!s,allowHtml:l,latex:c}),!a&&i&&f&&_.jsx(Sgt,{onError:u}),r!=null&&r.length?_.jsx(Agt,{message:e,actions:r}):null,_.jsx(Fgt,{message:e}),g&&_.jsx(_t,{my:.5,children:_.jsx(k4,{})})]})]})})})})}),qgt=zo`
|
|
717
717
|
from {
|
|
718
718
|
background-color: transparent;
|
|
719
719
|
}
|