@linkdlab/funcnodes_react_flow 0.3.18 → 0.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.esm.mjs +16 -16
- package/dist/esm/index.esm.mjs.map +1 -1
- package/dist/umd/index.umd.js +16 -16
- package/dist/umd/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/umd/index.umd.js
CHANGED
|
@@ -58,7 +58,7 @@ object-assign
|
|
|
58
58
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
59
59
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
60
60
|
* Copyright 2024 Fonticons, Inc.
|
|
61
|
-
*/const yy={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},by={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},vy={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},wy={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},xy={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},Cy={prefix:"fas",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"]},ky={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]},Ey={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64l128 0 0 64-128 0 0-64zM240 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l48 0 0 32L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 256 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-256 0 0-32 48 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48L240 0zM96 448l0-64 128 0 0 64L96 448zm320-64l128 0 0 64-128 0 0-64z"]},Sy={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Iy={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},_y={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},Ay={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Ny={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},Oy={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},Ry={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]};kg.autoAddCss=!1;const My=e=>{const{style:t,...n}=e;return o.createElement("span",{style:{marginLeft:"5px",...t}},o.createElement(hy,{...n}))},Ty=e=>o.createElement(My,{...e,icon:by}),Py=e=>o.createElement(My,{...e,icon:Oy}),Dy=e=>o.createElement(My,{...e,icon:Ny}),jy=e=>o.createElement(My,{...e,icon:_y}),Fy=e=>o.createElement(My,{...e,icon:vy}),Ly=e=>o.createElement(My,{...e,icon:yy}),zy=e=>o.createElement(My,{...e,icon:Ry}),By=e=>o.createElement(My,{...e,icon:Iy}),Vy=e=>o.createElement(My,{...e,icon:xy}),Gy=Vy,Wy=e=>o.createElement(My,{...e,icon:Ay}),Hy=e=>o.createElement(My,{...e,icon:ky}),Xy=e=>o.createElement(My,{...e,icon:wy}),$y=e=>o.createElement(My,{...e,icon:Ey}),Zy=e=>o.createElement(My,{...e,icon:Cy}),Yy=e=>o.createElement(My,{...e,icon:Sy}),Uy=({trigger:e,title:t,description:n,children:r,closebutton:i=!0,onOpenChange:a,buttons:s=[],open:l,setOpen:c,modal:u=!0})=>{const d=o.useContext(FV).local_state((e=>e.funcnodescontainerRef)),f=o.createElement(op,{asChild:!0},o.createElement("div",{className:"dialogconent funcnodescontainer"},t&&o.createElement(ip,{className:"dialogtitle"},t),o.createElement(ap,{className:"dialogdescription"},n),o.createElement("div",{className:"dialogchildren"},r),o.createElement("div",{style:{display:"flex",marginTop:25,justifyContent:"flex-end"}},(s||[]).map(((e,t)=>o.createElement(sp,{asChild:!0,key:t},o.createElement("button",{className:"dialogsendbutton",onClick:e.onClick},e.text))))),i&&o.createElement(sp,{asChild:!0},o.createElement("button",{className:"dialogclosebutton","aria-label":"Close"},o.createElement(Wy,null)))));return o.createElement(ep,{open:l,onOpenChange:e=>{c&&c(e),a&&a(e)},modal:u},e&&o.createElement(tp,{asChild:!0},e),o.createElement(np,{container:d},o.createElement(rp,{className:"dialogoverlay funcnodescontainer"}),f))};function Jy(t){const n=t+"CollectionProvider",[r,o]=Vu(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=t=>{const{scope:n,children:r}=t,o=e.useRef(null),a=e.useRef(new Map).current;return Bu.jsx(i,{scope:n,itemMap:a,collectionRef:o,children:r})};s.displayName=n;const l=t+"CollectionSlot",c=e.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Mu(t,a(l,n).collectionRef);return Bu.jsx(Uu,{ref:o,children:r})}));c.displayName=l;const u=t+"CollectionItemSlot",d="data-radix-collection-item",f=e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,s=e.useRef(null),l=Mu(n,s),c=a(u,r);return e.useEffect((()=>(c.itemMap.set(s,{ref:s,...i}),()=>{c.itemMap.delete(s)}))),Bu.jsx(Uu,{[d]:"",ref:l,children:o})}));return f.displayName=u,[{Provider:s,Slot:c,ItemSlot:f},function(n){const r=a(t+"CollectionConsumer",n);return e.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}var Ky=o.createContext(void 0);function qy(e){const t=o.useContext(Ky);return e||t||"ltr"}const Qy=["top","right","bottom","left"],eb=Math.min,tb=Math.max,nb=Math.round,rb=Math.floor,ob=e=>({x:e,y:e}),ib={left:"right",right:"left",bottom:"top",top:"bottom"},ab={start:"end",end:"start"};function sb(e,t,n){return tb(e,eb(t,n))}function lb(e,t){return"function"==typeof e?e(t):e}function cb(e){return e.split("-")[0]}function ub(e){return e.split("-")[1]}function db(e){return"x"===e?"y":"x"}function fb(e){return"y"===e?"height":"width"}function pb(e){return["top","bottom"].includes(cb(e))?"y":"x"}function mb(e){return db(pb(e))}function hb(e){return e.replace(/start|end/g,(e=>ab[e]))}function gb(e){return e.replace(/left|right|bottom|top/g,(e=>ib[e]))}function yb(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function bb(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function vb(e,t,n){let{reference:r,floating:o}=e;const i=pb(t),a=mb(t),s=fb(a),l=cb(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ub(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function wb(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=lb(t,e),m=yb(p),h=s[f?"floating"===d?"reference":"floating":d],g=bb(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=bb(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-w.top+m.top)/v.y,bottom:(w.bottom-g.bottom+m.bottom)/v.y,left:(g.left-w.left+m.left)/v.x,right:(w.right-g.right+m.right)/v.x}}function xb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cb(e){return Qy.some((t=>e[t]>=0))}function kb(){return"undefined"!=typeof window}function Eb(e){return _b(e)?(e.nodeName||"").toLowerCase():"#document"}function Sb(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ib(e){var t;return null==(t=(_b(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function _b(e){return!!kb()&&(e instanceof Node||e instanceof Sb(e).Node)}function Ab(e){return!!kb()&&(e instanceof Element||e instanceof Sb(e).Element)}function Nb(e){return!!kb()&&(e instanceof HTMLElement||e instanceof Sb(e).HTMLElement)}function Ob(e){return!(!kb()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Sb(e).ShadowRoot)}function Rb(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Fb(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Mb(e){return["table","td","th"].includes(Eb(e))}function Tb(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Pb(e){const t=Db(),n=Ab(e)?Fb(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Db(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function jb(e){return["html","body","#document"].includes(Eb(e))}function Fb(e){return Sb(e).getComputedStyle(e)}function Lb(e){return Ab(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zb(e){if("html"===Eb(e))return e;const t=e.assignedSlot||e.parentNode||Ob(e)&&e.host||Ib(e);return Ob(t)?t.host:t}function Bb(e){const t=zb(e);return jb(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nb(t)&&Rb(t)?t:Bb(t)}function Vb(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Bb(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Sb(o);if(i){const e=Gb(a);return t.concat(a,a.visualViewport||[],Rb(o)?o:[],e&&n?Vb(e):[])}return t.concat(o,Vb(o,[],n))}function Gb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wb(e){const t=Fb(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Nb(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=nb(n)!==i||nb(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Hb(e){return Ab(e)?e:e.contextElement}function Xb(e){const t=Hb(e);if(!Nb(t))return ob(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Wb(t);let a=(i?nb(n.width):n.width)/r,s=(i?nb(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const $b=ob(0);function Zb(e){const t=Sb(e);return Db()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:$b}function Yb(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Hb(e);let a=ob(1);t&&(r?Ab(r)&&(a=Xb(r)):a=Xb(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Sb(e))&&t}(i,n,r)?Zb(i):ob(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Sb(i),t=r&&Ab(r)?Sb(r):r;let n=e,o=Gb(n);for(;o&&r&&t!==n;){const e=Xb(o),t=o.getBoundingClientRect(),r=Fb(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Sb(o),o=Gb(n)}}return bb({width:u,height:d,x:l,y:c})}function Ub(e,t){const n=Lb(e).scrollLeft;return t?t.left+n:Yb(Ib(e)).left+n}function Jb(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Ub(e,r)),y:r.top+t.scrollTop}}function Kb(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Sb(e),r=Ib(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Db();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Ib(e),n=Lb(e),r=e.ownerDocument.body,o=tb(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=tb(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ub(e);const s=-n.scrollTop;return"rtl"===Fb(r).direction&&(a+=tb(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Ib(e));else if(Ab(t))r=function(e,t){const n=Yb(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Nb(e)?Xb(e):ob(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Zb(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return bb(r)}function qb(e,t){const n=zb(e);return!(n===t||!Ab(n)||jb(n))&&("fixed"===Fb(n).position||qb(n,t))}function Qb(e,t,n){const r=Nb(t),o=Ib(t),i="fixed"===n,a=Yb(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ob(0);if(r||!r&&!i)if(("body"!==Eb(t)||Rb(o))&&(s=Lb(t)),r){const e=Yb(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Ub(o));const c=!o||r||i?ob(0):Jb(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function ev(e){return"static"===Fb(e).position}function tv(e,t){if(!Nb(e)||"fixed"===Fb(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ib(e)===n&&(n=n.ownerDocument.body),n}function nv(e,t){const n=Sb(e);if(Tb(e))return n;if(!Nb(e)){let t=zb(e);for(;t&&!jb(t);){if(Ab(t)&&!ev(t))return t;t=zb(t)}return n}let r=tv(e,t);for(;r&&Mb(r)&&ev(r);)r=tv(r,t);return r&&jb(r)&&ev(r)&&!Pb(r)?n:r||function(e){let t=zb(e);for(;Nb(t)&&!jb(t);){if(Pb(t))return t;if(Tb(t))return null;t=zb(t)}return null}(e)||n}const rv={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Ib(r),s=!!t&&Tb(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=ob(1);const u=ob(0),d=Nb(r);if((d||!d&&!i)&&(("body"!==Eb(r)||Rb(a))&&(l=Lb(r)),Nb(r))){const e=Yb(r);c=Xb(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?ob(0):Jb(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Ib,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Tb(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Vb(e,[],!1).filter((e=>Ab(e)&&"body"!==Eb(e))),o=null;const i="fixed"===Fb(e).position;let a=i?zb(e):e;for(;Ab(a)&&!jb(a);){const t=Fb(a),n=Pb(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Rb(a)&&!n&&qb(e,a))?r=r.filter((e=>e!==a)):o=t,a=zb(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],l=a.reduce(((e,n)=>{const r=Kb(t,n,o);return e.top=tb(r.top,e.top),e.right=eb(r.right,e.right),e.bottom=eb(r.bottom,e.bottom),e.left=tb(r.left,e.left),e}),Kb(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:nv,getElementRects:async function(e){const t=this.getOffsetParent||nv,n=this.getDimensions,r=await n(e.floating);return{reference:Qb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Wb(e);return{width:t,height:n}},getScale:Xb,isElement:Ab,isRTL:function(e){return"rtl"===Fb(e).direction}};function ov(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iv(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Hb(e),u=o||i?[...c?Vb(c):[],...Vb(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=Ib(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const m={rootMargin:-rb(d)+"px "+-rb(o.clientWidth-(u+f))+"px "+-rb(o.clientHeight-(d+p))+"px "+-rb(u)+"px",threshold:tb(0,eb(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||ov(c,e.getBoundingClientRect())||a(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let h=l?Yb(e):null;return l&&function t(){const r=Yb(e);h&&!ov(h,r)&&n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const av=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=cb(n),s=ub(n),l="y"===pb(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=lb(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},sv=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=lb(e,t),c={x:n,y:r},u=await wb(t,l),d=pb(cb(o)),f=db(d);let p=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";p=sb(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";m=sb(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:a}}}}}},lv=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=lb(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=cb(o),b=pb(s),v=cb(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(v||!h?[gb(s)]:function(e){const t=gb(e);return[hb(e),t,hb(t)]}(s)),C="none"!==m;!f&&C&&x.push(...function(e,t,n,r){const o=ub(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(cb(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(hb)))),i}(s,h,m,w));const k=[s,...x],E=await wb(t,g),S=[];let I=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(E[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ub(e),o=mb(e),i=fb(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=gb(a)),[a,gb(a)]}(o,a,w);S.push(E[e[0]],E[e[1]])}if(I=[...I,{placement:o,overflows:S}],!S.every((e=>e<=0))){var _,A;const e=((null==(_=i.flip)?void 0:_.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(A=I.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var N;const e=null==(N=I.filter((e=>{if(C){const t=pb(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},cv=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=lb(e,t),u=await wb(t,c),d=cb(o),f=ub(o),p="y"===pb(o),{width:m,height:h}=i.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===f?"top":"bottom");const b=h-u.top-u.bottom,v=m-u.left-u.right,w=eb(h-u[g],b),x=eb(m-u[y],v),C=!t.middlewareData.shift;let k=w,E=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=b),C&&!f){const e=tb(u.left,0),t=tb(u.right,0),n=tb(u.top,0),r=tb(u.bottom,0);p?E=m-2*(0!==e||0!==t?e+t:tb(u.left,u.right)):k=h-2*(0!==n||0!==r?n+r:tb(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:k});const S=await a.getDimensions(s.floating);return m!==S.width||h!==S.height?{reset:{rects:!0}}:{}}}},uv=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=lb(e,t);switch(r){case"referenceHidden":{const e=xb(await wb(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Cb(e)}}}case"escaped":{const e=xb(await wb(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Cb(e)}}}default:return{}}}}},dv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=lb(e,t)||{};if(null==c)return{};const d=yb(u),f={x:n,y:r},p=mb(o),m=fb(p),h=await a.getDimensions(c),g="y"===p,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let k=C?C[v]:0;k&&await(null==a.isElement?void 0:a.isElement(C))||(k=s.floating[v]||i.floating[m]);const E=w/2-x/2,S=k/2-h[m]/2-1,I=eb(d[y],S),_=eb(d[b],S),A=I,N=k-h[m]-_,O=k/2-h[m]/2+E,R=sb(A,O,N),M=!l.arrow&&null!=ub(o)&&O!==R&&i.reference[m]/2-(O<A?I:_)-h[m]/2<0,T=M?O<A?O-A:O-N:0;return{[p]:f[p]+T,data:{[p]:R,centerOffset:O-R-T,...M&&{alignmentOffset:T}},reset:M}}}),fv=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=lb(e,t),u={x:n,y:r},d=pb(o),f=db(d);let p=u[f],m=u[d];const h=lb(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var y,b;const e="y"===f?"width":"height",t=["top","left"].includes(cb(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(y=a.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},pv=(e,t,n)=>{const r=new Map,o={platform:rv,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=vb(c,r,l),f=r,p={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:y,data:b,reset:v}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,p={...p,[i]:{...p[i],...b}},v&&m<=50&&(m++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:d}=vb(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var mv="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function hv(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!hv(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!hv(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function gv(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yv(e,t){const n=gv(e);return Math.round(t*n)/n}function bv(e){const t=o.useRef(e);return mv((()=>{t.current=e})),t}const vv=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?dv({element:n.current,padding:r}).fn(t):{}:n?dv({element:n,padding:r}).fn(t):{};var o}}),wv=(e,t)=>({...av(e),options:[e,t]}),xv=(e,t)=>({...sv(e),options:[e,t]}),Cv=(e,t)=>({...fv(e),options:[e,t]}),kv=(e,t)=>({...lv(e),options:[e,t]}),Ev=(e,t)=>({...cv(e),options:[e,t]}),Sv=(e,t)=>({...uv(e),options:[e,t]}),Iv=(e,t)=>({...vv(e),options:[e,t]});var _v=o.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return Bu.jsx(Qu.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Bu.jsx("polygon",{points:"0,0 30,0 15,10"})})}));_v.displayName="Arrow";var Av=_v;function Nv(e){const[t,n]=o.useState(void 0);return Wu((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}var Ov="Popper",[Rv,Mv]=Vu(Ov),[Tv,Pv]=Rv(Ov),Dv=e=>{const{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return Bu.jsx(Tv,{scope:t,anchor:r,onAnchorChange:i,children:n})};Dv.displayName=Ov;var jv="PopperAnchor",Fv=o.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=Pv(jv,n),s=o.useRef(null),l=Mu(t,s);return o.useEffect((()=>{a.onAnchorChange(r?.current||s.current)})),r?null:Bu.jsx(Qu.div,{...i,ref:l})}));Fv.displayName=jv;var Lv="PopperContent",[zv,Bv]=Rv(Lv),Vv=o.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:g,...y}=e,b=Pv(Lv,n),[v,w]=o.useState(null),x=Mu(t,(e=>w(e))),[C,k]=o.useState(null),E=Nv(C),S=E?.width??0,I=E?.height??0,_=r+("center"!==s?"-"+s:""),A="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},N=Array.isArray(d)?d:[d],O=N.length>0,R={padding:A,boundary:N.filter(Xv),altBoundary:O},{refs:M,floatingStyles:T,placement:P,isPositioned:D,middlewareData:j}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,p]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=o.useState(r);hv(m,r)||h(r);const[g,y]=o.useState(null),[b,v]=o.useState(null),w=o.useCallback((e=>{e!==E.current&&(E.current=e,y(e))}),[]),x=o.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),C=s||g,k=l||b,E=o.useRef(null),S=o.useRef(null),I=o.useRef(f),_=null!=u,A=bv(u),N=bv(a),O=bv(d),R=o.useCallback((()=>{if(!E.current||!S.current)return;const e={placement:t,strategy:n,middleware:m};N.current&&(e.platform=N.current),pv(E.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==O.current};M.current&&!hv(I.current,t)&&(I.current=t,i.flushSync((()=>{p(t)})))}))}),[m,t,n,N,O]);mv((()=>{!1===d&&I.current.isPositioned&&(I.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const M=o.useRef(!1);mv((()=>(M.current=!0,()=>{M.current=!1})),[]),mv((()=>{if(C&&(E.current=C),k&&(S.current=k),C&&k){if(A.current)return A.current(C,k,R);R()}}),[C,k,R,A,_]);const T=o.useMemo((()=>({reference:E,floating:S,setReference:w,setFloating:x})),[w,x]),P=o.useMemo((()=>({reference:C,floating:k})),[C,k]),D=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=yv(P.floating,f.x),r=yv(P.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...gv(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,P.floating,f.x,f.y]);return o.useMemo((()=>({...f,update:R,refs:T,elements:P,floatingStyles:D})),[f,R,T,P,D])}({strategy:"fixed",placement:_,whileElementsMounted:(...e)=>iv(...e,{animationFrame:"always"===h}),elements:{reference:b.anchor},middleware:[wv({mainAxis:a+I,alignmentAxis:l}),u&&xv({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?Cv():void 0,...R}),u&&kv({...R}),Ev({...R,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),C&&Iv({element:C,padding:c}),$v({arrowWidth:S,arrowHeight:I}),m&&Sv({strategy:"referenceHidden",...R})]}),[F,L]=Zv(P),z=Zu(g);Wu((()=>{D&&z?.()}),[D,z]);const B=j.arrow?.x,V=j.arrow?.y,G=0!==j.arrow?.centerOffset,[W,H]=o.useState();return Wu((()=>{v&&H(window.getComputedStyle(v).zIndex)}),[v]),Bu.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:D?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Bu.jsx(zv,{scope:n,placedSide:F,onArrowChange:k,arrowX:B,arrowY:V,shouldHideArrow:G,children:Bu.jsx(Qu.div,{"data-side":F,"data-align":L,...y,ref:x,style:{...y.style,animation:D?void 0:"none"}})})})}));Vv.displayName=Lv;var Gv="PopperArrow",Wv={top:"bottom",right:"left",bottom:"top",left:"right"},Hv=o.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=Bv(Gv,n),i=Wv[o.placedSide];return Bu.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:Bu.jsx(Av,{...r,ref:t,style:{...r.style,display:"block"}})})}));function Xv(e){return null!==e}Hv.displayName=Gv;var $v=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=Zv(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===l?(p=i?u:`${d}px`,m=-s+"px"):"top"===l?(p=i?u:`${d}px`,m=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",m=i?u:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,m=i?u:`${f}px`),{data:{x:p,y:m}}}});function Zv(e){const[t,n="center"]=e.split("-");return[t,n]}var Yv=Dv,Uv=Fv,Jv=Vv,Kv=Hv,qv="rovingFocusGroup.onEntryFocus",Qv={bubbles:!1,cancelable:!0},ew="RovingFocusGroup",[tw,nw,rw]=Jy(ew),[ow,iw]=Vu(ew,[rw]),[aw,sw]=ow(ew),lw=o.forwardRef(((e,t)=>Bu.jsx(tw.Provider,{scope:e.__scopeRovingFocusGroup,children:Bu.jsx(tw.Slot,{scope:e.__scopeRovingFocusGroup,children:Bu.jsx(cw,{...e,ref:t})})})));lw.displayName=ew;var cw=o.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,p=o.useRef(null),m=Mu(t,p),h=qy(a),[g=null,y]=Yu({prop:s,defaultProp:l,onChange:c}),[b,v]=o.useState(!1),w=Zu(u),x=nw(n),C=o.useRef(!1),[k,E]=o.useState(0);return o.useEffect((()=>{const e=p.current;if(e)return e.addEventListener(qv,w),()=>e.removeEventListener(qv,w)}),[w]),Bu.jsx(aw,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:g,onItemFocus:o.useCallback((e=>y(e)),[y]),onItemShiftTab:o.useCallback((()=>v(!0)),[]),onFocusableItemAdd:o.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:o.useCallback((()=>E((e=>e-1))),[]),children:Bu.jsx(Qu.div,{tabIndex:b||0===k?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:Nu(e.onMouseDown,(()=>{C.current=!0})),onFocus:Nu(e.onFocus,(e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(qv,Qv);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter((e=>e.focusable));pw([e.find((e=>e.active)),e.find((e=>e.id===g)),...e].filter(Boolean).map((e=>e.ref.current)),d)}}C.current=!1})),onBlur:Nu(e.onBlur,(()=>v(!1)))})})})),uw="RovingFocusGroupItem",dw=o.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...s}=e,l=$u(),c=a||l,u=sw(uw,n),d=u.currentTabStopId===c,f=nw(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=u;return o.useEffect((()=>{if(r)return p(),()=>m()}),[r,p,m]),Bu.jsx(tw.ItemSlot,{scope:n,id:c,focusable:r,active:i,children:Bu.jsx(Qu.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Nu(e.onMouseDown,(e=>{r?u.onItemFocus(c):e.preventDefault()})),onFocus:Nu(e.onFocus,(()=>u.onItemFocus(c))),onKeyDown:Nu(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:fw[r]}(e,u.orientation,u.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=u.loop?function(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}(n,r+1):n.slice(r+1)}setTimeout((()=>pw(n)))}}))})})}));dw.displayName=uw;var fw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pw(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var mw=lw,hw=dw,gw=["Enter"," "],yw=["ArrowUp","PageDown","End"],bw=["ArrowDown","PageUp","Home",...yw],vw={ltr:[...gw,"ArrowRight"],rtl:[...gw,"ArrowLeft"]},ww={ltr:["ArrowLeft"],rtl:["ArrowRight"]},xw="Menu",[Cw,kw,Ew]=Jy(xw),[Sw,Iw]=Vu(xw,[Ew,Mv,iw]),_w=Mv(),Aw=iw(),[Nw,Ow]=Sw(xw),[Rw,Mw]=Sw(xw),Tw=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:s=!0}=e,l=_w(t),[c,u]=o.useState(null),d=o.useRef(!1),f=Zu(a),p=qy(i);return o.useEffect((()=>{const e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),Bu.jsx(Yv,{...l,children:Bu.jsx(Nw,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:u,children:Bu.jsx(Rw,{scope:t,onClose:o.useCallback((()=>f(!1)),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:r})})})};Tw.displayName=xw;var Pw=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=_w(n);return Bu.jsx(Uv,{...o,...r,ref:t})}));Pw.displayName="MenuAnchor";var[Dw,jw]=Sw("MenuPortal",{forceMount:void 0}),Fw="MenuContent",[Lw,zw]=Sw(Fw),Bw=o.forwardRef(((e,t)=>{const n=jw(Fw,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Ow(Fw,e.__scopeMenu),a=Mw(Fw,e.__scopeMenu);return Bu.jsx(Cw.Provider,{scope:e.__scopeMenu,children:Bu.jsx(xd,{present:r||i.open,children:Bu.jsx(Cw.Slot,{scope:e.__scopeMenu,children:a.modal?Bu.jsx(Vw,{...o,ref:t}):Bu.jsx(Gw,{...o,ref:t})})})})})),Vw=o.forwardRef(((e,t)=>{const n=Ow(Fw,e.__scopeMenu),r=o.useRef(null),i=Mu(t,r);return o.useEffect((()=>{const e=r.current;if(e)return xf(e)}),[]),Bu.jsx(Ww,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Nu(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})})),Gw=o.forwardRef(((e,t)=>{const n=Ow(Fw,e.__scopeMenu);return Bu.jsx(Ww,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})})),Ww=o.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,disableOutsideScroll:h,...g}=e,y=Ow(Fw,n),b=Mw(Fw,n),v=_w(n),w=Aw(n),x=kw(n),[C,k]=o.useState(null),E=o.useRef(null),S=Mu(t,E,y.onContentChange),I=o.useRef(0),_=o.useRef(""),A=o.useRef(0),N=o.useRef(null),O=o.useRef("right"),R=o.useRef(0),M=h?mf:o.Fragment,T=h?{as:Uu,allowPinchZoom:!0}:void 0,P=e=>{const t=_.current+e,n=x().filter((e=>!e.disabled)),r=document.activeElement,o=n.find((e=>e.ref.current===r))?.textValue,i=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=function(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}(e,Math.max(i,0));1===o.length&&(a=a.filter((e=>e!==n)));const s=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return s!==n?s:void 0}(n.map((e=>e.textValue)),t,o),a=n.find((e=>e.textValue===i))?.ref.current;!function e(t){_.current=t,window.clearTimeout(I.current),""!==t&&(I.current=window.setTimeout((()=>e("")),1e3))}(t),a&&setTimeout((()=>a.focus()))};o.useEffect((()=>()=>window.clearTimeout(I.current)),[]),Ed();const D=o.useCallback((e=>O.current===N.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}(n,t)}(e,N.current?.area)),[]);return Bu.jsx(Lw,{scope:n,searchRef:_,onItemEnter:o.useCallback((e=>{D(e)&&e.preventDefault()}),[D]),onItemLeave:o.useCallback((e=>{D(e)||(E.current?.focus(),k(null))}),[D]),onTriggerLeave:o.useCallback((e=>{D(e)&&e.preventDefault()}),[D]),pointerGraceTimerRef:A,onPointerGraceIntentChange:o.useCallback((e=>{N.current=e}),[]),children:Bu.jsx(M,{...T,children:Bu.jsx(pd,{asChild:!0,trapped:i,onMountAutoFocus:Nu(a,(e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:s,children:Bu.jsx(ad,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,children:Bu.jsx(mw,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:k,onEntryFocus:Nu(c,(e=>{b.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:Bu.jsx(Jv,{role:"menu","aria-orientation":"vertical","data-state":yx(y.open),"data-radix-menu-content":"",dir:b.dir,...v,...g,ref:S,style:{outline:"none",...g.style},onKeyDown:Nu(g.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&P(e.key));const o=E.current;if(e.target!==o)return;if(!bw.includes(e.key))return;e.preventDefault();const i=x().filter((e=>!e.disabled)).map((e=>e.ref.current));yw.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)})),onBlur:Nu(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(I.current),_.current="")})),onPointerMove:Nu(e.onPointerMove,wx((e=>{const t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>R.current?"right":"left";O.current=t,R.current=e.clientX}})))})})})})})})}));Bw.displayName=Fw;var Hw=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return Bu.jsx(Qu.div,{role:"group",...r,ref:t})}));Hw.displayName="MenuGroup";var Xw=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return Bu.jsx(Qu.div,{...r,ref:t})}));Xw.displayName="MenuLabel";var $w="MenuItem",Zw="menu.itemSelect",Yw=o.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=o.useRef(null),s=Mw($w,e.__scopeMenu),l=zw($w,e.__scopeMenu),c=Mu(t,a),u=o.useRef(!1);return Bu.jsx(Uw,{...i,ref:c,disabled:n,onClick:Nu(e.onClick,(()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(Zw,{bubbles:!0,cancelable:!0});e.addEventListener(Zw,(e=>r?.(e)),{once:!0}),ed(e,t),t.defaultPrevented?u.current=!1:s.onClose()}})),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:Nu(e.onPointerUp,(e=>{u.current||e.currentTarget?.click()})),onKeyDown:Nu(e.onKeyDown,(e=>{const t=""!==l.searchRef.current;n||t&&" "===e.key||gw.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));Yw.displayName=$w;var Uw=o.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,s=zw($w,n),l=Aw(n),c=o.useRef(null),u=Mu(t,c),[d,f]=o.useState(!1),[p,m]=o.useState("");return o.useEffect((()=>{const e=c.current;e&&m((e.textContent??"").trim())}),[a.children]),Bu.jsx(Cw.ItemSlot,{scope:n,disabled:r,textValue:i??p,children:Bu.jsx(hw,{asChild:!0,...l,focusable:!r,children:Bu.jsx(Qu.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:Nu(e.onPointerMove,wx((e=>{if(r)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:Nu(e.onPointerLeave,wx((e=>s.onItemLeave(e)))),onFocus:Nu(e.onFocus,(()=>f(!0))),onBlur:Nu(e.onBlur,(()=>f(!1)))})})})})),Jw=o.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return Bu.jsx(ox,{scope:e.__scopeMenu,checked:n,children:Bu.jsx(Yw,{role:"menuitemcheckbox","aria-checked":bx(n)?"mixed":n,...o,ref:t,"data-state":vx(n),onSelect:Nu(o.onSelect,(()=>r?.(!!bx(n)||!n)),{checkForDefaultPrevented:!1})})})}));Jw.displayName="MenuCheckboxItem";var Kw="MenuRadioGroup",[qw,Qw]=Sw(Kw,{value:void 0,onValueChange:()=>{}}),ex=o.forwardRef(((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Zu(r);return Bu.jsx(qw,{scope:e.__scopeMenu,value:n,onValueChange:i,children:Bu.jsx(Hw,{...o,ref:t})})}));ex.displayName=Kw;var tx="MenuRadioItem",nx=o.forwardRef(((e,t)=>{const{value:n,...r}=e,o=Qw(tx,e.__scopeMenu),i=n===o.value;return Bu.jsx(ox,{scope:e.__scopeMenu,checked:i,children:Bu.jsx(Yw,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":vx(i),onSelect:Nu(r.onSelect,(()=>o.onValueChange?.(n)),{checkForDefaultPrevented:!1})})})}));nx.displayName=tx;var rx="MenuItemIndicator",[ox,ix]=Sw(rx,{checked:!1}),ax=o.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=ix(rx,n);return Bu.jsx(xd,{present:r||bx(i.checked)||!0===i.checked,children:Bu.jsx(Qu.span,{...o,ref:t,"data-state":vx(i.checked)})})}));ax.displayName=rx;var sx=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return Bu.jsx(Qu.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})}));sx.displayName="MenuSeparator";var lx=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=_w(n);return Bu.jsx(Kv,{...o,...r,ref:t})}));lx.displayName="MenuArrow";var cx="MenuSub",[ux,dx]=Sw(cx),fx=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Ow(cx,t),s=_w(t),[l,c]=o.useState(null),[u,d]=o.useState(null),f=Zu(i);return o.useEffect((()=>(!1===a.open&&f(!1),()=>f(!1))),[a.open,f]),Bu.jsx(Yv,{...s,children:Bu.jsx(Nw,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:d,children:Bu.jsx(ux,{scope:t,contentId:$u(),triggerId:$u(),trigger:l,onTriggerChange:c,children:n})})})};fx.displayName=cx;var px="MenuSubTrigger",mx=o.forwardRef(((e,t)=>{const n=Ow(px,e.__scopeMenu),r=Mw(px,e.__scopeMenu),i=dx(px,e.__scopeMenu),a=zw(px,e.__scopeMenu),s=o.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=a,u={__scopeMenu:e.__scopeMenu},d=o.useCallback((()=>{s.current&&window.clearTimeout(s.current),s.current=null}),[]);return o.useEffect((()=>d),[d]),o.useEffect((()=>{const e=l.current;return()=>{window.clearTimeout(e),c(null)}}),[l,c]),Bu.jsx(Pw,{asChild:!0,...u,children:Bu.jsx(Uw,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":yx(n.open),...e,ref:Ru(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Nu(e.onPointerMove,wx((t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(a.onPointerGraceIntentChange(null),s.current=window.setTimeout((()=>{n.onOpenChange(!0),d()}),100))}))),onPointerLeave:Nu(e.onPointerLeave,wx((e=>{d();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,i=o?-5:5,s=t[o?"left":"right"],c=t[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:s,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(l.current),l.current=window.setTimeout((()=>a.onPointerGraceIntentChange(null)),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}}))),onKeyDown:Nu(e.onKeyDown,(t=>{const o=""!==a.searchRef.current;e.disabled||o&&" "===t.key||vw[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())}))})})}));mx.displayName=px;var hx="MenuSubContent",gx=o.forwardRef(((e,t)=>{const n=jw(Fw,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Ow(Fw,e.__scopeMenu),s=Mw(Fw,e.__scopeMenu),l=dx(hx,e.__scopeMenu),c=o.useRef(null),u=Mu(t,c);return Bu.jsx(Cw.Provider,{scope:e.__scopeMenu,children:Bu.jsx(xd,{present:r||a.open,children:Bu.jsx(Cw.Slot,{scope:e.__scopeMenu,children:Bu.jsx(Ww,{id:l.contentId,"aria-labelledby":l.triggerId,...i,ref:u,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Nu(e.onFocusOutside,(e=>{e.target!==l.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:Nu(e.onEscapeKeyDown,(e=>{s.onClose(),e.preventDefault()})),onKeyDown:Nu(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=ww[s.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())}))})})})})}));function yx(e){return e?"open":"closed"}function bx(e){return"indeterminate"===e}function vx(e){return bx(e)?"indeterminate":e?"checked":"unchecked"}function wx(e){return t=>"mouse"===t.pointerType?e(t):void 0}gx.displayName=hx;var xx=Tw,Cx=Pw,kx=Bw,Ex=Hw,Sx=Xw,Ix=Yw,_x=Jw,Ax=ex,Nx=nx,Ox=ax,Rx=sx,Mx=lx,Tx=fx,Px=mx,Dx=gx,jx="DropdownMenu",[Fx,Lx]=Vu(jx,[Iw]),zx=Iw(),[Bx,Vx]=Fx(jx),Gx=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,c=zx(t),u=o.useRef(null),[d=!1,f]=Yu({prop:i,defaultProp:a,onChange:s});return Bu.jsx(Bx,{scope:t,triggerId:$u(),triggerRef:u,contentId:$u(),open:d,onOpenChange:f,onOpenToggle:o.useCallback((()=>f((e=>!e))),[f]),modal:l,children:Bu.jsx(xx,{...c,open:d,onOpenChange:f,dir:r,modal:l,children:n})})};Gx.displayName=jx;var Wx="DropdownMenuTrigger",Hx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Vx(Wx,n),a=zx(n);return Bu.jsx(Cx,{asChild:!0,...a,children:Bu.jsx(Qu.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Ru(t,i.triggerRef),onPointerDown:Nu(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:Nu(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));Hx.displayName=Wx;var Xx="DropdownMenuContent",$x=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Vx(Xx,n),a=zx(n),s=o.useRef(!1);return Bu.jsx(kx,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:Nu(e.onCloseAutoFocus,(e=>{s.current||i.triggerRef.current?.focus(),s.current=!1,e.preventDefault()})),onInteractOutside:Nu(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(s.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));$x.displayName=Xx;var Zx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Ex,{...o,...r,ref:t})}));Zx.displayName="DropdownMenuGroup";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Sx,{...o,...r,ref:t})})).displayName="DropdownMenuLabel";var Yx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Ix,{...o,...r,ref:t})}));Yx.displayName="DropdownMenuItem";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(_x,{...o,...r,ref:t})})).displayName="DropdownMenuCheckboxItem";var Ux=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Ax,{...o,...r,ref:t})}));Ux.displayName="DropdownMenuRadioGroup";var Jx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Nx,{...o,...r,ref:t})}));Jx.displayName="DropdownMenuRadioItem";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Ox,{...o,...r,ref:t})})).displayName="DropdownMenuItemIndicator";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Rx,{...o,...r,ref:t})})).displayName="DropdownMenuSeparator";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Mx,{...o,...r,ref:t})})).displayName="DropdownMenuArrow";var Kx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Px,{...o,...r,ref:t})}));Kx.displayName="DropdownMenuSubTrigger";var qx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Dx,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));qx.displayName="DropdownMenuSubContent";var Qx=Gx,eC=Hx,tC=$x,nC=Zx,rC=Yx,oC=Ux,iC=Jx,aC=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=zx(t),[s=!1,l]=Yu({prop:r,defaultProp:i,onChange:o});return Bu.jsx(Tx,{...a,open:s,onOpenChange:l,children:n})},sC=Kx,lC=qx;function cC(e,t){return function(e,t){return new Blob([e],{type:t})}(function(e){const t=window.atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r}(e),t)}function uC(e,t=!0){return new Promise((n=>{const r=new FileReader;r.onload=()=>{const e=r.result;t&&n(e.split(",")[1]),n(e)},r.readAsDataURL(e)}))}function dC(e){return function(e){return new Promise((t=>{const n=document.createElement("input");n.type="file",n.accept=e,n.onchange=()=>{const e=n.files?.[0];e&&t(e)},n.click()}))}(e).then(uC)}const fC=!process.env.NODE_ENV||"development"===process.env.NODE_ENV,pC={xxs:0,xs:320,s:480,m:768,l:960,xl:1280,xxl:1920},mC=o.createContext(void 0),hC=o.forwardRef(((e,t)=>{const{className:n,children:r,...i}=e,[a,s]=o.useState("m"),[l,c]=o.useState(0),[u,d]=o.useState(0),f=o.useRef(null);o.useImperativeHandle(t,(()=>f.current),[]);const p=o.useCallback((e=>{const t=e.width,n=e.height;let r="xxs";Object.entries(pC).forEach((([e,n])=>{t>=n&&(r=e)})),s((e=>e!==r?r:e)),c(t),d(n)}),[]);return o.useEffect((()=>{const e=f.current;if(!e)return;const t=new ResizeObserver((e=>{for(let t of e)p(t.contentRect)}));return t.observe(e),p(e.getBoundingClientRect()),()=>{t.disconnect()}}),[]),o.createElement(mC.Provider,{value:{wKey:a,w:l,h:u}},o.createElement("div",{ref:f,className:`size-context w-${a} ${n||""}`.trim(),...i},r))})),gC=e=>((e,t)=>e!=t&&(""==e||pC[e]<pC[t]))((()=>{const e=o.useContext(mC);if(!e)throw new Error("useSizeContext must be used within a SizeContextContainerContext");return e})().wKey,e),yC=({direction:e,className:t="",children:n,wrap:r=!1,grow:i=!1,...a})=>{let s="";"string"==typeof e?s=`direction-${e} `:"object"==typeof e&&null!==e&&Object.entries(e).forEach((([e,t])=>{s+=""===e?`direction-${t} `:`${e}-direction-${t} `}));let l="";"boolean"==typeof i?l=i?"grow ":"":"object"==typeof i&&null!==i&&Object.entries(i).forEach((([e,t])=>{l+=""===e?t?"grow ":"no-grow":t?`${e}-grow `:`${e}-no-grow`})),s+=l,r&&(s+="flex-wrap "),s=s.trim();const c=`float-container ${s} ${t}`.trim();return o.createElement("div",{className:c,...a},n)},bC=({direction:e,expanded:t=!0,children:n,className:r,maxSize:i,expanderSize:a="40px",containerStyle:s,style:l,containerClassName:c,onExpandChange:u,...d})=>{const f={up:Vy,down:By,left:Dy,right:Py}[e],p={up:By,down:Vy,left:Py,right:Dy}[e],[m,h]=o.useState(t),g=`${e} ${m?"expanded":"collapsed"}`,y="right"===e||"left"===e?{width:m?i:a}:{height:m?i:a},b="right"===e||"left"===e?{width:m?i:0}:{height:m?i:0},v="right"===e||"left"===e?{width:a}:{height:a},w=o.createElement("div",{className:`expanding_container_content ${g} ${r||""}`.trim(),style:{...l,...b},...d},n),x=o.createElement("div",{className:`expanding_container_expander ${g}`,onClick:()=>(e=>{m!==e&&(h(e),u&&u(e))})(!m),style:v},m?o.createElement(p,null):o.createElement(f,null)),C="right"===e||"down"===e?w:x,k="left"===e||"up"===e?w:x;return o.createElement("div",{className:`expanding_container ${g} ${c||""}`,style:{...s,...y}},C,k)},vC=({trigger:t,setOpen:n,open:r})=>{const[i,a]=e.useState(""),s=e.useContext(FV);return s.options.useWorkerManager?o.createElement(Uy,{setOpen:n,open:r,trigger:t,title:"New Worker",description:"Create a new worker"},o.createElement("div",null,"Name:",o.createElement("br",null),o.createElement("input",{className:"styledinput",onChange:e=>{a(e.currentTarget.value)},value:i})),o.createElement("div",null,i&&o.createElement("div",null,o.createElement("button",{className:"styledbtn",onClick:()=>{s.workermanager?.new_worker({name:i}),n(!1)}},"Create")))):null},wC=({trigger:t,setOpen:n,open:r})=>{const i=e.useContext(FV),[a,s]=e.useState(!1),l=i.workers(),c=i.worker?.uuid,u=(c?l[c]?.name:void 0)||c||"worker";return o.createElement(Uy,{setOpen:n,open:r,trigger:t,title:"Export Worker",description:"Export the worker as a .fnw file"},o.createElement("div",null,o.createElement("div",null,o.createElement("input",{type:"checkbox",className:"styledcheckbox",checked:a,onChange:e=>{s(e.currentTarget.checked)}}),"Include Files"),o.createElement("button",{className:"styledbtn",onClick:async()=>{if(!i.worker)return;!function(e,t,n){const r=cC(e,n),o=URL.createObjectURL(r),i=document.createElement("a");i.href=o,i.download=t,i.click(),URL.revokeObjectURL(o),i.remove()}(await i.worker.export({withFiles:a}),u+".fnw","application/zip"),n(!1)}},"Export")))},xC=()=>{const t=e.useContext(FV).progress_state();return o.createElement("div",{className:"statusbar"},o.createElement("span",{className:"statusbar-progressbar",style:{width:Math.min(100,100*t.progress)+"%"}}),o.createElement("span",{className:"statusbar-message"},t.message))},CC=()=>{const t=e.useContext(FV),n=t.workers(),[r,i]=e.useState(!1),[a,s]=e.useState(!1),l=t.options.useWorkerManager&&t.workermanager&&t.workermanager.open||fC,c=l&&Object.keys(n).length>0,u=t.worker&&t.worker.is_open,d=u&&l;return l||u?o.createElement(o.Fragment,null,o.createElement(Qx,null,o.createElement(eC,{asChild:!0},o.createElement("button",{className:"styledbtn"},o.createElement(yC,{direction:"row"},"Worker ",o.createElement(Ty,null)))),o.createElement(tC,{className:"headermenucontent funcnodescontainer"},o.createElement(nC,null,c&&o.createElement(aC,null,o.createElement(sC,{className:"headermenuitem submenuitem"},o.createElement(yC,{direction:"row"},"Select",o.createElement(Py,null))),o.createElement(lC,{className:"headermenucontent funcnodescontainer",sideOffset:2,alignOffset:-5},o.createElement(oC,{value:t.worker?.uuid,onValueChange:e=>{(e=>{if("__select__"!==e&&t.workers&&t.workermanager&&n[e]){if(!n[e].active&&!window.confirm("this is an inactive worker, selecting it will start it, continue?"))return;t.workermanager.set_active(e)}})(e)}},Object.keys(n).sort(((e,t)=>{if(n[e].active&&!n[t].active)return-1;if(!n[e].active&&n[t].active)return 1;const r=n[e].name||e,o=n[t].name||t;return r.localeCompare(o)})).map((e=>o.createElement(iC,{className:"headermenuitem workerselectoption"+(n[e]?.active?" active":" inactive")+" headermenuitem",key:e,value:e,disabled:e===t.worker?.uuid},n[e]?.name||e)))))),u&&o.createElement(o.Fragment,null,d&&o.createElement(rC,{className:"headermenuitem",onClick:()=>{if(t.worker)return t.workermanager?void t.workermanager?.restart_worker(t.worker.uuid):t.logger.error("no workermanager")}},"Restart"),o.createElement(rC,{className:"headermenuitem",onClick:()=>{t.worker&&t.worker.stop()}},"Stop"),o.createElement(rC,{className:"headermenuitem",onClick:()=>s(!0)},"Export"),o.createElement(rC,{className:"headermenuitem",onClick:async()=>{if(!t.worker)return;if(!window.confirm("Updateing the worker might replace the current nodespace, continue?"))return;const e=await dC(".fnw");t.worker.update_from_export(e)}},"Update")),l&&o.createElement(o.Fragment,null,o.createElement(rC,{className:"headermenuitem",onClick:()=>i(!0)},"New"))))),o.createElement(vC,{open:r,setOpen:i}),o.createElement(wC,{open:a,setOpen:s})):null},kC=()=>{const t=e.useContext(FV);return o.createElement(o.Fragment,null,o.createElement(Qx,null,o.createElement(eC,{asChild:!0},o.createElement("button",{className:"styledbtn"},o.createElement(yC,{direction:"row"},"Nodespace ",o.createElement(Ty,null)))),o.createElement(tC,{className:"headermenucontent funcnodescontainer"},o.createElement(nC,null,o.createElement(rC,{className:"headermenuitem",onClick:()=>{window.confirm("Are you sure you want to start a new flow?")&&t.worker?.clear()}},"New"),o.createElement(rC,{className:"headermenuitem",onClick:async()=>{const e=await(t.worker?.save());if(!e)return;const n=new Blob([JSON.stringify(e)],{type:"application/json"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download="flow.json",o.click(),URL.revokeObjectURL(r),o.remove()}},"Save"),o.createElement(rC,{className:"headermenuitem",onClick:async()=>{const e=document.createElement("input");e.type="file",e.accept=".json",e.onchange=async e=>{const n=e.target.files?.[0];if(!n)return;const r=new FileReader;r.onload=async e=>{const n=e.target?.result;if(!n)return;const r=JSON.parse(n);await(t.worker?.load(r))},r.readAsText(n)},e.click()}},"Load")))))},EC=({...t})=>{const n=e.useContext(FV),r=n.workerstate();return Object.keys(t).length>0&&n.logger.debug("headerprops",t),o.createElement(yC,{className:"funcnodesreactflowheader",direction:"row",wrap:!0},o.createElement(yC,{className:"headerelement m-w-6",grow:{"":!0,m:!1}},o.createElement(xC,null)),(t.showmenu||fC)&&o.createElement(yC,{direction:"row",wrap:!0},o.createElement("div",{className:"headerelement"},o.createElement(CC,null)),(n.worker&&r.is_open||fC)&&o.createElement("div",{className:"headerelement"},o.createElement(kC,null))))};const SC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,IC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_C={};function AC(e,t){return(_C.jsx?IC:SC).test(e)}const NC=/[ \t\n\f\r]/g;function OC(e){return""===e.replace(NC,"")}class RC{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function MC(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new RC(n,r,t)}function TC(e){return e.toLowerCase()}RC.prototype.property={},RC.prototype.normal={},RC.prototype.space=null;class PC{constructor(e,t){this.property=e,this.attribute=t}}PC.prototype.space=null,PC.prototype.boolean=!1,PC.prototype.booleanish=!1,PC.prototype.overloadedBoolean=!1,PC.prototype.number=!1,PC.prototype.commaSeparated=!1,PC.prototype.spaceSeparated=!1,PC.prototype.commaOrSpaceSeparated=!1,PC.prototype.mustUseProperty=!1,PC.prototype.defined=!1;let DC=0;const jC=WC(),FC=WC(),LC=WC(),zC=WC(),BC=WC(),VC=WC(),GC=WC();function WC(){return 2**++DC}var HC=Object.freeze({__proto__:null,boolean:jC,booleanish:FC,commaOrSpaceSeparated:GC,commaSeparated:VC,number:zC,overloadedBoolean:LC,spaceSeparated:BC});const XC=Object.keys(HC);class $C extends PC{constructor(e,t,n,r){let o=-1;if(super(e,t),ZC(this,"space",r),"number"==typeof n)for(;++o<XC.length;){const e=XC[o];ZC(this,XC[o],(n&HC[e])===HC[e])}}}function ZC(e,t,n){n&&(e[t]=n)}$C.prototype.defined=!0;const YC={}.hasOwnProperty;function UC(e){const t={},n={};let r;for(r in e.properties)if(YC.call(e.properties,r)){const o=e.properties[r],i=new $C(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[TC(r)]=r,n[TC(i.attribute)]=r}return new RC(t,n,e.space)}const JC=UC({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),KC=UC({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function qC(e,t){return t in e?e[t]:t}function QC(e,t){return qC(e,t.toLowerCase())}const ek=UC({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:QC,properties:{xmlns:null,xmlnsXLink:null}}),tk=UC({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:FC,ariaAutoComplete:null,ariaBusy:FC,ariaChecked:FC,ariaColCount:zC,ariaColIndex:zC,ariaColSpan:zC,ariaControls:BC,ariaCurrent:null,ariaDescribedBy:BC,ariaDetails:null,ariaDisabled:FC,ariaDropEffect:BC,ariaErrorMessage:null,ariaExpanded:FC,ariaFlowTo:BC,ariaGrabbed:FC,ariaHasPopup:null,ariaHidden:FC,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:BC,ariaLevel:zC,ariaLive:null,ariaModal:FC,ariaMultiLine:FC,ariaMultiSelectable:FC,ariaOrientation:null,ariaOwns:BC,ariaPlaceholder:null,ariaPosInSet:zC,ariaPressed:FC,ariaReadOnly:FC,ariaRelevant:null,ariaRequired:FC,ariaRoleDescription:BC,ariaRowCount:zC,ariaRowIndex:zC,ariaRowSpan:zC,ariaSelected:FC,ariaSetSize:zC,ariaSort:null,ariaValueMax:zC,ariaValueMin:zC,ariaValueNow:zC,ariaValueText:null,role:null}}),nk=UC({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:QC,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:VC,acceptCharset:BC,accessKey:BC,action:null,allow:null,allowFullScreen:jC,allowPaymentRequest:jC,allowUserMedia:jC,alt:null,as:null,async:jC,autoCapitalize:null,autoComplete:BC,autoFocus:jC,autoPlay:jC,blocking:BC,capture:null,charSet:null,checked:jC,cite:null,className:BC,cols:zC,colSpan:null,content:null,contentEditable:FC,controls:jC,controlsList:BC,coords:zC|VC,crossOrigin:null,data:null,dateTime:null,decoding:null,default:jC,defer:jC,dir:null,dirName:null,disabled:jC,download:LC,draggable:FC,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:jC,formTarget:null,headers:BC,height:zC,hidden:jC,high:zC,href:null,hrefLang:null,htmlFor:BC,httpEquiv:BC,id:null,imageSizes:null,imageSrcSet:null,inert:jC,inputMode:null,integrity:null,is:null,isMap:jC,itemId:null,itemProp:BC,itemRef:BC,itemScope:jC,itemType:BC,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:jC,low:zC,manifest:null,max:null,maxLength:zC,media:null,method:null,min:null,minLength:zC,multiple:jC,muted:jC,name:null,nonce:null,noModule:jC,noValidate:jC,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:jC,optimum:zC,pattern:null,ping:BC,placeholder:null,playsInline:jC,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:jC,referrerPolicy:null,rel:BC,required:jC,reversed:jC,rows:zC,rowSpan:zC,sandbox:BC,scope:null,scoped:jC,seamless:jC,selected:jC,shadowRootClonable:jC,shadowRootDelegatesFocus:jC,shadowRootMode:null,shape:null,size:zC,sizes:null,slot:null,span:zC,spellCheck:FC,src:null,srcDoc:null,srcLang:null,srcSet:null,start:zC,step:null,style:null,tabIndex:zC,target:null,title:null,translate:null,type:null,typeMustMatch:jC,useMap:null,value:FC,width:zC,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:BC,axis:null,background:null,bgColor:null,border:zC,borderColor:null,bottomMargin:zC,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:jC,declare:jC,event:null,face:null,frame:null,frameBorder:null,hSpace:zC,leftMargin:zC,link:null,longDesc:null,lowSrc:null,marginHeight:zC,marginWidth:zC,noResize:jC,noHref:jC,noShade:jC,noWrap:jC,object:null,profile:null,prompt:null,rev:null,rightMargin:zC,rules:null,scheme:null,scrolling:FC,standby:null,summary:null,text:null,topMargin:zC,valueType:null,version:null,vAlign:null,vLink:null,vSpace:zC,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:jC,disableRemotePlayback:jC,prefix:null,property:null,results:zC,security:null,unselectable:null}}),rk=UC({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:qC,properties:{about:GC,accentHeight:zC,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:zC,amplitude:zC,arabicForm:null,ascent:zC,attributeName:null,attributeType:null,azimuth:zC,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:zC,by:null,calcMode:null,capHeight:zC,className:BC,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:zC,diffuseConstant:zC,direction:null,display:null,dur:null,divisor:zC,dominantBaseline:null,download:jC,dx:null,dy:null,edgeMode:null,editable:null,elevation:zC,enableBackground:null,end:null,event:null,exponent:zC,externalResourcesRequired:null,fill:null,fillOpacity:zC,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:VC,g2:VC,glyphName:VC,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:zC,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:zC,horizOriginX:zC,horizOriginY:zC,id:null,ideographic:zC,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:zC,k:zC,k1:zC,k2:zC,k3:zC,k4:zC,kernelMatrix:GC,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:zC,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:zC,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:zC,overlineThickness:zC,paintOrder:null,panose1:null,path:null,pathLength:zC,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:BC,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:zC,pointsAtY:zC,pointsAtZ:zC,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:GC,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:GC,rev:GC,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:GC,requiredFeatures:GC,requiredFonts:GC,requiredFormats:GC,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:zC,specularExponent:zC,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:zC,strikethroughThickness:zC,string:null,stroke:null,strokeDashArray:GC,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:zC,strokeOpacity:zC,strokeWidth:null,style:null,surfaceScale:zC,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:GC,tabIndex:zC,tableValues:null,target:null,targetX:zC,targetY:zC,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:GC,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:zC,underlineThickness:zC,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:zC,values:null,vAlphabetic:zC,vMathematical:zC,vectorEffect:null,vHanging:zC,vIdeographic:zC,version:null,vertAdvY:zC,vertOriginX:zC,vertOriginY:zC,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:zC,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ok=/^data[-\w.:]+$/i,ik=/-[a-z]/g,ak=/[A-Z]/g;function sk(e){return"-"+e.toLowerCase()}function lk(e){return e.charAt(1).toUpperCase()}const ck={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"},uk=MC([KC,JC,ek,tk,nk],"html"),dk=MC([KC,JC,ek,tk,rk],"svg");var fk,pk,mk,hk={};var gk=function(){if(mk)return hk;mk=1;var e=hk&&hk.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hk,"__esModule",{value:!0}),hk.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var o=(0,t.default)(e),i="function"==typeof n;return o.forEach((function(e){if("declaration"===e.type){var t=e.property,o=e.value;i?n(t,o,e):o&&((r=r||{})[t]=o)}})),r};var t=e(function(){if(pk)return fk;pk=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(s,l):l}return fk=function(s,u){if("string"!=typeof s)throw new TypeError("First argument must be a string");if(!s)return[];u=u||{};var d=1,f=1;function p(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function m(){var e={line:d,column:f};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:f},this.source=u.source}function g(e){var t=new Error(u.source+":"+d+":"+f+": "+e);if(t.reason=e,t.filename=u.source,t.line=d,t.column=f,t.source=s,!u.silent)throw t}function y(e){var t=e.exec(s);if(t){var n=t[0];return p(n),s=s.slice(n.length),t}}function b(){y(n)}function v(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var e=m();if("/"==s.charAt(0)&&"*"==s.charAt(1)){for(var t=2;l!=s.charAt(t)&&("*"!=s.charAt(t)||"/"!=s.charAt(t+1));)++t;if(t+=2,l===s.charAt(t-1))return g("End of comment missing");var n=s.slice(2,t-2);return f+=2,p(n),s=s.slice(t),f+=2,e({type:"comment",comment:n})}}function x(){var t=m(),n=y(r);if(n){if(w(),!y(o))return g("property missing ':'");var s=y(i),u=t({type:"declaration",property:c(n[0].replace(e,l)),value:s?c(s[0].replace(e,l)):l});return y(a),u}}return h.prototype.content=s,b(),function(){var e,t=[];for(v(t);e=x();)!1!==e&&(t.push(e),v(t));return t}()},fk}());return hk}(),yk=l(gk),bk=yk.default||yk;const vk=xk("end"),wk=xk("start");function xk(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Ck(e){return e&&"object"==typeof e?"position"in e||"type"in e?Ek(e.position):"start"in e||"end"in e?Ek(e):"line"in e||"column"in e?kk(e):"":""}function kk(e){return Sk(e&&e.line)+":"+Sk(e&&e.column)}function Ek(e){return kk(e&&e.start)+"-"+kk(e&&e.end)}function Sk(e){return e&&"number"==typeof e?e:1}class Ik extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=Ck(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ik.prototype.file="",Ik.prototype.name="",Ik.prototype.reason="",Ik.prototype.message="",Ik.prototype.stack="",Ik.prototype.column=void 0,Ik.prototype.line=void 0,Ik.prototype.ancestors=void 0,Ik.prototype.cause=void 0,Ik.prototype.fatal=void 0,Ik.prototype.place=void 0,Ik.prototype.ruleId=void 0,Ik.prototype.source=void 0;const _k={}.hasOwnProperty,Ak=new Map,Nk=/[A-Z]/g,Ok=/-([a-z])/g,Rk=new Set(["table","tbody","thead","tfoot","tr"]),Mk=new Set(["td","th"]),Tk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Pk(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),s=wk(n);return t(r,o,i,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={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:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?dk:uk,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=Dk(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function Dk(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=dk,e.schema=o);e.ancestors.push(t);const i=Bk(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&_k.call(t.properties,o)){const i=zk(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&Mk.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=Lk(e,t);Rk.has(t.tagName)&&(s=s.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&OC(t.value):OC(t));var t})));return jk(e,a,i,t),Fk(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Vk(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=dk,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:Bk(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Vk(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else Vk(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),s=Lk(e,t);return jk(e,a,i,t),Fk(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Vk(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Fk(r,Lk(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function jk(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Fk(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Lk(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Ak;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const s=Dk(e,i,a);void 0!==s&&n.push(s)}return n}function zk(e,t,n){const r=function(e,t){const n=TC(t);let r=t,o=PC;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ok.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(ik,lk);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!ik.test(e)){let n=e.replace(ak,sk);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=$C}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):function(e){return e.join(" ").trim()}(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){const n={};try{bk(t,r)}catch(t){if(!e.ignoreInvalidStyle){const n=t,r=new Ik("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Tk+"#cannot-parse-style-attribute",r}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(Ok,Wk)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)_k.call(e,n)&&(t[Gk(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ck[r.property]||r.property:r.attribute,n]}}function Bk(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=AC(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=AC(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return _k.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Vk(e)}function Vk(e,t){const n=new Ik("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=Tk+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Gk(e){let t=e.replace(Nk,Hk);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Wk(e,t){return t.toUpperCase()}function Hk(e){return"-"+e.toLowerCase()}const Xk={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"]},$k={};function Zk(e,t){return Yk(e,"boolean"!=typeof $k.includeImageAlt||$k.includeImageAlt,"boolean"!=typeof $k.includeHtml||$k.includeHtml)}function Yk(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Uk(e.children,t,n)}return Array.isArray(e)?Uk(e,t,n):""}function Uk(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Yk(e[o],t,n);return r.join("")}const Jk=document.createElement("i");function Kk(e){const t="&"+e+";";Jk.innerHTML=t;const n=Jk.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function qk(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function Qk(e,t){return e.length>0?(qk(e,e.length,0,t),e):t}const eE={}.hasOwnProperty;function tE(e){const t={};let n=-1;for(;++n<e.length;)nE(t,e[n]);return t}function nE(e,t){let n;for(n in t){const r=(eE.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){eE.call(r,i)||(r[i]=[]);const e=o[i];rE(r[i],Array.isArray(e)?e:e?[e]:[])}}}function rE(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);qk(e,0,0,r)}function oE(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function iE(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const aE=bE(/[A-Za-z]/),sE=bE(/[\dA-Za-z]/),lE=bE(/[#-'*+\--9=?A-Z^-~]/);function cE(e){return null!==e&&(e<32||127===e)}const uE=bE(/\d/),dE=bE(/[\dA-Fa-f]/),fE=bE(/[!-/:-@[-`{-~]/);function pE(e){return null!==e&&e<-2}function mE(e){return null!==e&&(e<0||32===e)}function hE(e){return-2===e||-1===e||32===e}const gE=bE(/\p{P}|\p{S}/u),yE=bE(/\s/);function bE(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function vE(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&sE(e.charCodeAt(n+1))&&sE(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function wE(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(hE(r))return e.enter(n),a(r);return t(r)};function a(r){return hE(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const xE={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),wE(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):pE(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const CE={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return qk(t.events,i+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(o){if(a===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return m(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(kE,u,d)(o)}function u(e){return r&&b(),y(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(kE,p,m)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){return null===n?(r&&b(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),h(n))}function h(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):pE(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;qk(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},kE={tokenize:function(e,t,n){return wE(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function EE(e){return null===e||mE(e)||yE(e)?1:gE(e)?2:void 0}function SE(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const IE={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},f={...e[u][1].start};_E(d,-s),_E(f,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:f},o={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[u][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Qk(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Qk(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=Qk(l,SE(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=Qk(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=Qk(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,qk(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=EE(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),c=EE(s),u=!c||2===c&&o||n.includes(s),d=!o||2===o&&c||n.includes(r);return l._open=Boolean(42===i?u:u&&(o||!d)),l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}}};function _E(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const AE={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return aE(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||sE(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||sE(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||cE(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):lE(t)?(e.consume(t),l):n(t)}function c(e){return sE(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||sE(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const NE={partial:!0,tokenize:function(e,t,n){return function(t){return hE(t)?wE(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||pE(e)?t(e):n(e)}}};const OE={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(hE(t))return wE(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(OE,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return hE(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const RE={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return fE(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const ME={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=sE,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=dE,c):(e.enter("characterReferenceValue"),o=7,i=uE,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==sE||Kk(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<o?(e.consume(s),c):n(s)}}};const TE={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},PE={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),hE(t)?wE(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=s?(e.exit("codeFencedFenceSequence"),hE(t)?wE(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||pE(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),hE(t)?wE(e,c,"whitespace")(t):c(t))}function c(n){return null===n||pE(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(TE,p,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||pE(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):hE(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),wE(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||pE(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||pE(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,b,m)(t)}function m(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return a>0&&hE(t)?wE(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||pE(t)?e.check(TE,p,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||pE(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function b(n){return e.exit("codeFenced"),t(n)}}};const DE={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),wE(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):pE(t)?e.attempt(jE,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||pE(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},jE={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):pE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):wE(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):pE(e)?o(e):n(e)}}};const FE={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):pE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||pE(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}}};class LE{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&zE(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),zE(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),zE(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);zE(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);zE(this.left,t.reverse())}}}function zE(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 BE(e){const t={};let n,r,o,i,a,s,l,c=-1;const u=new LE(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,VE(u,c)),c=t[c],l=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return qk(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function VE(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,f=-1,p=n,m=0,h=0;const g=[h];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)"exit"===s[f][0]&&"enter"===s[f-1][0]&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){const t=s.slice(g[f],g[f+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),f=-1;++f<l.length;)c[m+l[f][0]]=m+l[f][1],m+=l[f][1]-l[f][0]-1;return c}const GE={resolve:function(e){return BE(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):pE(t)?e.check(WE,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},WE={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),wE(e,o,"linePrefix")};function o(o){if(null===o||pE(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function HE(e,t,n,r,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||cE(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||pE(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function m(o){return u||null!==o&&41!==o&&!mE(o)?u<c&&40===o?(e.consume(o),u++,m):41===o?(e.consume(o),u--,m):null===o||32===o||40===o||cE(o)?n(o):(e.consume(o),92===o?h:m):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}function h(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function XE(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):pE(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||pE(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!hE(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function $E(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):pE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),wE(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||pE(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function ZE(e,t){let n;return function r(o){if(pE(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(hE(o))return wE(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const YE={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return XE.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=iE(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return mE(t)?ZE(e,s)(t):s(t)}function s(t){return HE(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(UE,c,c)(t)}function c(t){return hE(t)?wE(e,u,"whitespace")(t):u(t)}function u(i){return null===i||pE(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},UE={partial:!0,tokenize:function(e,t,n){return function(t){return mE(t)?ZE(e,r)(t):n(t)};function r(t){return $E(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return hE(t)?wE(e,i,"whitespace")(t):i(t)}function i(e){return null===e||pE(e)?t(e):n(e)}}};const JE={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return pE(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const KE={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},qk(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||mE(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||pE(n)?(e.exit("atxHeading"),t(n)):hE(n)?wE(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||mE(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const qE=["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"],QE=["pre","script","style","textarea"],eS={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,p):63===s?(e.consume(s),o=3,r.interrupt?t:P):aE(s)?(e.consume(s),a=String.fromCharCode(s),m):n(s)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,f):aE(i)?(e.consume(i),o=4,r.interrupt?t:P):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:P):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:I:f):n(o)}function p(t){return aE(t)?(e.consume(t),a=String.fromCharCode(t),m):n(t)}function m(s){if(null===s||47===s||62===s||mE(s)){const l=47===s,c=a.toLowerCase();return l||i||!QE.includes(c)?qE.includes(a.toLowerCase())?(o=6,l?(e.consume(s),h):r.interrupt?t(s):I(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):y(s)):(o=1,r.interrupt?t(s):I(s))}return 45===s||sE(s)?(e.consume(s),a+=String.fromCharCode(s),m):n(s)}function h(o){return 62===o?(e.consume(o),r.interrupt?t:I):n(o)}function g(t){return hE(t)?(e.consume(t),g):E(t)}function y(t){return 47===t?(e.consume(t),E):58===t||95===t||aE(t)?(e.consume(t),b):hE(t)?(e.consume(t),y):E(t)}function b(t){return 45===t||46===t||58===t||95===t||sE(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),w):hE(t)?(e.consume(t),v):y(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):hE(t)?(e.consume(t),w):C(t)}function x(t){return t===l?(e.consume(t),l=null,k):null===t||pE(t)?n(t):(e.consume(t),x)}function C(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||mE(t)?v(t):(e.consume(t),C)}function k(e){return 47===e||62===e||hE(e)?y(e):n(e)}function E(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||pE(t)?I(t):hE(t)?(e.consume(t),S):n(t)}function I(t){return 45===t&&2===o?(e.consume(t),O):60===t&&1===o?(e.consume(t),R):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),P):93===t&&5===o?(e.consume(t),T):!pE(t)||6!==o&&7!==o?null===t||pE(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),I):(e.exit("htmlFlowData"),e.check(tS,j,_)(t))}function _(t){return e.check(nS,A,j)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||pE(t)?_(t):(e.enter("htmlFlowData"),I(t))}function O(t){return 45===t?(e.consume(t),P):I(t)}function R(t){return 47===t?(e.consume(t),a="",M):I(t)}function M(t){if(62===t){const n=a.toLowerCase();return QE.includes(n)?(e.consume(t),D):I(t)}return aE(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),M):I(t)}function T(t){return 93===t?(e.consume(t),P):I(t)}function P(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),P):I(t)}function D(t){return null===t||pE(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),D)}function j(n){return e.exit("htmlFlow"),t(n)}}},tS={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(NE,t,n)}}},nS={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(pE(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const rS={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),b):aE(t)?(e.consume(t),k):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):aE(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):pE(t)?(a=u,M(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?R(e):45===e?d(e):u(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?m:p):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),h):pE(t)?(a=m,M(t)):(e.consume(t),m)}function h(t){return 93===t?(e.consume(t),g):m(t)}function g(t){return 62===t?R(t):93===t?(e.consume(t),g):m(t)}function y(t){return null===t||62===t?R(t):pE(t)?(a=y,M(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):pE(t)?(a=b,M(t)):(e.consume(t),b)}function v(e){return 62===e?R(e):b(e)}function w(t){return aE(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||sE(t)?(e.consume(t),x):C(t)}function C(t){return pE(t)?(a=C,M(t)):hE(t)?(e.consume(t),C):R(t)}function k(t){return 45===t||sE(t)?(e.consume(t),k):47===t||62===t||mE(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),R):58===t||95===t||aE(t)?(e.consume(t),S):pE(t)?(a=E,M(t)):hE(t)?(e.consume(t),E):R(t)}function S(t){return 45===t||46===t||58===t||95===t||sE(t)?(e.consume(t),S):I(t)}function I(t){return 61===t?(e.consume(t),_):pE(t)?(a=I,M(t)):hE(t)?(e.consume(t),I):E(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,A):pE(t)?(a=_,M(t)):hE(t)?(e.consume(t),_):(e.consume(t),N)}function A(t){return t===o?(e.consume(t),o=void 0,O):null===t?n(t):pE(t)?(a=A,M(t)):(e.consume(t),A)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||mE(t)?E(t):(e.consume(t),N)}function O(e){return 47===e||62===e||mE(e)?E(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return hE(t)?wE(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),a(t)}}};const oS={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&qk(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",l,t],["enter",c,t]],i=Qk(i,e.slice(r+1,r+s+3)),i=Qk(i,[["enter",u,t]]),i=Qk(i,SE(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=Qk(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=Qk(i,e.slice(o+1)),i=Qk(i,[["exit",l,t]]),qk(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(iE(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(iS,c,i?c:u)(t):91===t?e.attempt(aS,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(sS,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},iS={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return mE(t)?ZE(e,o)(t):o(t)}function o(t){return 41===t?c(t):HE(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return mE(t)?ZE(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?$E(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return mE(t)?ZE(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},aS={tokenize:function(e,t,n){const r=this;return function(t){return XE.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(iE(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},sS={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const lS={name:"labelStartImage",resolveAll:oS.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const cS={name:"labelStartLink",resolveAll:oS.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const uS={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),wE(e,t,"linePrefix")}}};const dS={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||pE(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),hE(t)?wE(e,i,"whitespace")(t):i(t))}}};const fS={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(NE,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,wE(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!hE(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(mS,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,wE(e,e.attempt(fS,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:uE(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(dS,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return uE(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(NE,r.interrupt?n:c,e.attempt(pS,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return hE(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},pS={partial:!0,tokenize:function(e,t,n){const r=this;return wE(e,(function(e){const o=r.events[r.events.length-1];return!hE(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},mS={partial:!0,tokenize:function(e,t,n){const r=this;return wE(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const hS={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),hE(t)?wE(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||pE(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const gS={tokenize:function(e){const t=this,n=e.attempt(NE,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,wE(e,e.attempt(this.parser.constructs.flow,r,e.attempt(GE,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const yS={resolveAll:xS()},bS=wS("string"),vS=wS("text");function wS(e){return{resolveAll:xS("text"===e?CS:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function xS(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function CS(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const kS={42:fS,43:fS,45:fS,48:fS,49:fS,50:fS,51:fS,52:fS,53:fS,54:fS,55:fS,56:fS,57:fS,62:OE},ES={91:YE},SS={[-2]:DE,[-1]:DE,32:DE},IS={35:KE,42:dS,45:[hS,dS],60:eS,61:hS,95:dS,96:PE,126:PE},_S={38:ME,92:RE},AS={[-5]:uS,[-4]:uS,[-3]:uS,33:lS,38:ME,42:IE,60:[AE,rS],91:cS,92:[JE,RE],93:oS,95:IE,96:FE},NS={null:[IE,yS]};var OS=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:ES,disable:{null:[]},document:kS,flow:IS,flowInitial:SS,insideSpan:NS,string:_S,text:AS});function RS(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],s=[];const l={attempt:g((function(e,t){y(e,t.from)})),check:g(h),consume:function(e){pE(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=f(),c.events.push(["exit",t,c]),t},interrupt:g(h,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,b()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(a=Qk(a,e),p(),null!==a[a.length-1])return[];return y(t,0),c.events=SE(i,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function p(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)m(t.charCodeAt(r._bufferIndex));else m(t)}}function m(e){u=u(e)}function h(e,t){t.restore()}function g(e,t){return function(n,o,i){let a,u,d,p;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return a=e,u=0,0===e.length?i:h(e[u])}function h(e){return function(n){p=function(){const e=f(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(s);return{from:o,restore:a};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,s=i,b()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,y)(n)}}function g(t){return e(d,p),o}function y(e){return p.restore(),++u<a.length?h(a[u]):i}}}function y(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&qk(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function b(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const MS=/[\0\t\n\r]/g;const TS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function PS(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return oE(n.slice(t?2:1),t?16:10)}return Kk(n)||e}const DS={}.hasOwnProperty;function jS(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:i(K),blockQuote:i($),characterEscape:S,characterReference:S,codeFenced:i(Z),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(Z,a),codeText:i(Y,a),codeTextData:S,data:S,codeFlowValue:S,definition:i(U),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(J),hardBreakEscape:i(q),hardBreakTrailing:i(q),htmlFlow:i(Q,a),htmlFlowData:S,htmlText:i(Q,a),htmlTextData:S,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:f,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:z,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(K),strong:i(ie),thematicBreak:i(se)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:X,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:G,characterReference:W,codeFenced:l(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:I,codeIndented:l(y),codeText:l(R),codeTextData:I,data:I,definition:l(),definitionDestinationString:w,definitionLabelString:b,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(A),hardBreakTrailing:l(A),htmlFlow:l(N),htmlFlowData:I,htmlText:l(O),htmlTextData:I,image:l(T),label:D,labelText:P,lineEnding:_,link:l(M),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:B,resourceDestinationString:j,resourceTitleString:F,resource:L,setextHeading:l(E),setextHeadingLineSequence:k,setextHeadingText:C,strong:l(),thematicBreak:l()}};LS(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=o(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];DS.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||BS).call(i,void 0,e[0])}for(r.position={start:FS(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:FS(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||i||(i=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(s,0,["enter",o,t[2]]),s++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:FS(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Ck({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||BS).call(this,e,r[0])}n.position.end=FS(e.end)}function u(){return Zk(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function m(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function b(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=iE(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function w(){const e=this.resume();this.stack[this.stack.length-1].url=e}function x(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function S(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:FS(e.start),end:void 0},t.push(n)),this.stack.push(n)}function I(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=FS(e.end)}function _(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=FS(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(S.call(this,e),I.call(this,e))}function A(){this.data.atHardBreak=!0}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function M(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function T(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(TS,PS)}(t),n.identifier=iE(t).toLowerCase()}function D(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function j(){const e=this.resume();this.stack[this.stack.length-1].url=e}function F(){const e=this.resume();this.stack[this.stack.length-1].title=e}function L(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function B(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=iE(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function V(e){this.data.characterReferenceType=e.type}function G(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=oE(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Kk(t)}this.stack[this.stack.length-1].value+=r}function W(e){this.stack.pop().position.end=FS(e.end)}function H(e){I.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function X(e){I.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function $(){return{type:"blockquote",children:[]}}function Z(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function U(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function J(){return{type:"emphasis",children:[]}}function K(){return{type:"heading",depth:0,children:[]}}function q(){return{type:"break"}}function Q(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!BE(e););return e}(function(e){const t={constructs:tE([OS,...(e||{}).extensions||[]]),content:n(xE),defined:[],document:n(CE),flow:n(gS),lazy:{},string:n(bS),text:n(vS)};return t;function n(e){return function(n){return RS(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const s=[];let l,c,u,d,f;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(MS.lastIndex=u,l=MS.exec(o),d=l&&void 0!==l.index?l.index:o.length,f=o.charCodeAt(d),!l){n=o.slice(u);break}if(10===f&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(o.slice(u,d)),t+=d-u),f){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function FS(e){return{line:e.line,column:e.column,offset:e.offset}}function LS(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?LS(e,r):zS(e,r)}}function zS(e,t){let n;for(n in t)if(DS.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 BS(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ck({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ck({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ck({start:t.start,end:t.end})+") is still open")}function VS(e){const t=this;t.parser=function(n){return jS(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function GS(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function WS(e){const t=e.spread;return null==t?e.children.length>1:t}function HS(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(XS(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(XS(t.slice(o),o>0,!1)),i.join("")}function XS(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const $S={blockquote:function(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)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=vE(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return GS(e,t);const o={src:vE(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:vE(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return GS(e,t);const o={href:vE(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:vE(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=WS(n[r])}return t}(n):WS(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=wk(t.children[1]),a=vk(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=i?i[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:HS(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:ZS,yaml:ZS,definition:ZS,footnoteDefinition:ZS};function ZS(){}const YS="object"==typeof self?self:globalThis,US=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new YS[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new YS[i](a),o)};return r})(new Map,e)(0),JS="",{toString:KS}={},{keys:qS}=Object,QS=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=KS.call(e).slice(8,-1);switch(n){case"Array":return[1,JS];case"Object":return[2,JS];case"Date":return[3,JS];case"RegExp":return[4,JS];case"Map":return[5,JS];case"Set":return[6,JS];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},eI=([e,t])=>0===e&&("function"===t||"symbol"===t),tI=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,s]=QS(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),o([s,[...e]],r)}const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(s)switch(s){case"BigInt":return o([s,r.toString()],r);case"Boolean":case"Number":case"String":return o([s,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],l=o([a,n],r);for(const t of qS(r))!e&&eI(QS(r[t]))||n.push([i(t),i(r[t])]);return l}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!eI(QS(n))&&!eI(QS(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&eI(QS(n))||t.push(i(n));return n}}const{message:l}=r;return o([a,{name:s,message:l}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var nI="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?US(tI(e,t)):structuredClone(e):(e,t)=>US(tI(e,t));function rI(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function oI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const iI=function(e){if(null==e)return sI;if("function"==typeof e)return aI(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=iI(e[n]);return aI(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return aI(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return aI(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function aI(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function sI(){return!0}const lI=[],cI=!0,uI=!1;function dI(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=iI(o),a=r?-1:1;!function e(o,s,l){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,f=lI;if((!t||i(o,s,l[l.length-1]||void 0))&&(f=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[cI,e];return null==e?lI:[e]}(n(o,l)),f[0]===uI))return f;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==f[0])for(u=(r?t.children.length:-1)+a,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===uI)return c;u="number"==typeof c[1]?c[1]:u+a}}return f}}(e,void 0,[])()}function fI(e,t,n,r){let o,i,a;"function"==typeof t?(i=void 0,a=t,o=n):(i=t,a=n,o=r),dI(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),o)}const pI={}.hasOwnProperty,mI={};function hI(e,t){e.position&&(t.position=function(e){const t=wk(e),n=vk(e);if(t&&n)return{start:t,end:n}}(e))}function gI(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,nI(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function yI(e,t){const n=t.data||{},r=!("value"in t)||pI.call(n,"hProperties")||pI.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function bI(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function vI(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function wI(e,t){const n=function(e,t){const n=t||mI,r=new Map,o=new Map,i=new Map,a={...$S,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=s.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=vI(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=vI(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:gI,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if(pI.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=nI(n);return r.children=s.all(e),r}return nI(e)}return(s.options.unknownHandler||yI)(s,e,t)},options:n,patch:hI,wrap:bI};return fI(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),s}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||rI,r=e.options.footnoteBackLabel||oI,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[l]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),c=vE(a.toLowerCase());let u=0;const d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++u<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,m),s.push(m)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...nI(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function xI(e,t){return e&&"run"in e?async function(n,r){const o=wI(n,{file:r,...t});await e.run(o,r)}:function(n,r){return wI(n,{file:r,...e||t})}}function CI(e){if(e)throw e}var kI,EI;var SI=function(){if(EI)return kI;EI=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return kI=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,p=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(m&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(m,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},kI}(),II=l(SI);function _I(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function AI(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const s=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(o);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(a&&a.then&&"function"==typeof a.then?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(s,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const NI={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');OI(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(OI(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){OI(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)OI(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){OI(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function OI(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const RI={cwd:function(){return"/"}};function MI(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function TI(e){if("string"==typeof e)e=new URL(e);else if(!MI(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const PI=["history","path","basename","stem","extname","dirname"];class DI{constructor(e){let t;t=e?MI(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":RI.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<PI.length;){const e=PI[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)PI.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?NI.basename(this.path):void 0}set basename(e){FI(e,"basename"),jI(e,"basename"),this.path=NI.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?NI.dirname(this.path):void 0}set dirname(e){LI(this.basename,"dirname"),this.path=NI.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?NI.extname(this.path):void 0}set extname(e){if(jI(e,"extname"),LI(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=NI.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){MI(e)&&(e=TI(e)),FI(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?NI.basename(this.path,this.extname):void 0}set stem(e){FI(e,"stem"),jI(e,"stem"),this.path=NI.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Ik(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function jI(e,t){if(e&&e.includes(NI.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+NI.sep+"`")}function FI(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function LI(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const zI=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},BI={}.hasOwnProperty;class VI extends zI{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=AI()}copy(){const e=new VI;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(II(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(XI("data",this.frozen),this.namespace[e]=t,this):BI.call(this.namespace,e)&&this.namespace[e]||void 0:e?(XI("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=YI(e),n=this.parser||this.Parser;return WI("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),WI("process",this.parser||this.Parser),HI("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=YI(e),a=n.parse(i);function s(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,(function(e,t,r){if(e||!t||!r)return s(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,s(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),WI("processSync",this.parser||this.Parser),HI("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,CI(e),t=r})),ZI("processSync","process",n),t}run(e,t,n){$I(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=YI(t);r.run(e,a,(function(t,r,a){const s=r||e;t?i(t):o?o(s):n(void 0,s,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){CI(e),n=t,r=!0})),ZI("runSync","run",r),n}stringify(e,t){this.freeze();const n=YI(t),r=this.compiler||this.Compiler;return HI("stringify",r),$I(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(XI("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=II(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function s(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];_I(a)&&_I(r)&&(r=II(!0,a,r)),n[o]=[e,r,...i]}}}}const GI=(new VI).freeze();function WI(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function HI(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function XI(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function $I(e){if(!_I(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function ZI(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function YI(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new DI(e)}const UI=[],JI={allowDangerousHtml:!0},KI=/^(https?|ircs?|mailto|xmpp)$/i,qI=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function QI(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,a=e.disallowedElements,s=e.rehypePlugins||UI,l=e.remarkPlugins||UI,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...JI}:JI,u=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||e_,p=GI().use(VS).use(l).use(xI,c).use(s),m=new DI;"string"==typeof r&&(m.value=r);for(const t of qI)Object.hasOwn(e,t.from)&&(t.from,t.to&&t.to,t.id);const h=p.parse(m);let g=p.runSync(h,m);return o&&(g={type:"element",tagName:"div",properties:{className:o},children:"root"===g.type?g.children:[g]}),fI(g,(function(e,r,o){if("raw"===e.type&&o&&"number"==typeof r)return u?o.children.splice(r,1):o.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in Xk)if(Object.hasOwn(Xk,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Xk[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=f(String(n||""),t,e))}}if("element"===e.type){let i=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!i&&n&&"number"==typeof r&&(i=!n(e,r,o)),i&&o&&"number"==typeof r)return d&&e.children?o.children.splice(r,1,...e.children):o.children.splice(r,1),r}})),Pk(g,{Fragment:Bu.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Bu.jsx,jsxs:Bu.jsxs,passKeys:!0,passNode:!0})}function e_(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||KI.test(e.slice(0,t))?e:""}function t_(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function n_(e,t,n){const r=iI((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([r_(e[0]),o_(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)dI(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],a=o[i][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,o={index:d.index,input:d.input,stack:[...t,e]};let i=a(...d,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function r_(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function o_(e){return"function"==typeof e?e:function(){return e}}const i_="phrasing",a_=["autolink","link","image","label"];function s_(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function l_(e){this.config.enter.autolinkProtocol.call(this,e)}function c_(e){this.config.exit.autolinkProtocol.call(this,e)}function u_(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function d_(e){this.config.exit.autolinkEmail.call(this,e)}function f_(e){this.exit(e)}function p_(e){n_(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,m_],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,h_]],{ignore:["link","linkReference"]})}function m_(e,t,n,r,o){let i="";if(!g_(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=t_(e,"(");let i=t_(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function h_(e,t,n,r){return!(!g_(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function g_(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||yE(n)||gE(n))&&(!t||47!==n)}function y_(){this.buffer()}function b_(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function v_(){this.buffer()}function w_(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function x_(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=iE(this.sliceSerialize(e)).toLowerCase(),n.label=t}function C_(e){this.exit(e)}function k_(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=iE(this.sliceSerialize(e)).toLowerCase(),n.label=t}function E_(e){this.exit(e)}function S_(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),a(),i+=o.move("]"),i}function I_(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let a=i.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");a+=i.move(r.safe(r.associationId(e),{before:a,after:"]"})),l(),a+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),a+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?A_:__)));return s(),a},footnoteReference:S_},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function __(e,t,n){return 0===t?e:A_(e,t,n)}function A_(e,t,n){return(n?"":" ")+e}S_.peek=function(){return"["};const N_=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function O_(e){this.enter({type:"delete",children:[]},e)}function R_(e){this.exit(e)}function M_(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function T_(e){return e.length}function P_(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function D_(e,t,n){return">"+(n?"":" ")+e}function j_(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function F_(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&(i=n.stack,a=n.unsafe[o],j_(i,a.inConstruct,!0)&&!j_(i,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var i,a;return"\\\n"}function L_(e,t,n){return(n?"":" ")+e}function z_(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function B_(e){return"&#x"+e.toString(16).toUpperCase()+";"}function V_(e,t,n){const r=EE(e),o=EE(t);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function G_(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r),s=a.move(o);let l=a.move(n.containerPhrasing(e,{after:o,before:s,...a.current()}));const c=l.charCodeAt(0),u=V_(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(l=B_(c)+l.slice(1));const d=l.charCodeAt(l.length-1),f=V_(r.after.charCodeAt(0),d,o);f.inside&&(l=l.slice(0,-1)+B_(d));const p=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+p}function W_(e){return e.value||""}function H_(e,t,n,r){const o=z_(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),c+=l.move(")"),a(),c}function X_(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function $_(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function Z_(e,t){const n=Zk(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Y_(e,t,n,r){const o=z_(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(Z_(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),l()),c+=a.move(")"),s(),c}function U_(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function J_(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function K_(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}M_.peek=function(){return"~"},G_.peek=function(e,t,n){return n.options.emphasis||"*"},W_.peek=function(){return"<"},H_.peek=function(){return"!"},X_.peek=function(){return"!"},$_.peek=function(){return"`"},Y_.peek=function(e,t,n){return Z_(e,n)?"<":"["},U_.peek=function(){return"["};const q_=iI(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Q_(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r),s=a.move(o+o);let l=a.move(n.containerPhrasing(e,{after:o,before:s,...a.current()}));const c=l.charCodeAt(0),u=V_(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(l=B_(c)+l.slice(1));const d=l.charCodeAt(l.length-1),f=V_(r.after.charCodeAt(0),d,o);f.inside&&(l=l.slice(0,-1)+B_(d));const p=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+p}Q_.peek=function(e,t,n){return n.options.strong||"*"};const eA={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),D_);return o(),a},break:F_,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,L_);return e(),t}const s=n.createTracker(r),l=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),i&&(u+=s.move(i+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const o=z_(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),a(),c},emphasis:G_,hardBreak:F_,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return fI(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,uI})),Boolean((!e.depth||e.depth<3)&&Zk(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=B_(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:W_,image:H_,imageReference:X_,inlineCode:$_,link:Y_,linkReference:U_,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):J_(n);const s=e.ordered?"."===a?")":".":function(e){const t=J_(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),K_(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||J_(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}));return l(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some((function(e){return q_(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Q_,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(K_(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function tA(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function nA(e){this.exit(e),this.data.inTable=void 0}function rA(e){this.enter({type:"tableRow",children:[]},e)}function oA(e){this.exit(e)}function iA(e){this.enter({type:"tableCell",children:[]},e)}function aA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,sA));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function sA(e,t){return"|"===t?t:e}function lA(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=eA.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=l(r[o],t,n);return a(),i}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const o=l(e,n,r),i=s([o]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:i,after:i});return a(),o(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||T_,i=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const a=null==(d=e[u][i])?"":String(d);if(!1!==n.alignDelimiters){const e=o(a);r[i]=e,(void 0===l[i]||e>l[i])&&(l[i]=e)}t.push(a)}a[u]=t,s[u]=r}var d;let f=-1;if("object"==typeof r&&"length"in r)for(;++f<c;)i[f]=P_(r[f]);else{const e=P_(r);for(;++f<c;)i[f]=e}f=-1;const p=[],m=[];for(;++f<c;){const e=i[f];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,l[f]-t.length-r.length);const a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>l[f]&&(l[f]=o),m[f]=o),p[f]=a}a.splice(1,0,p),s.splice(1,0,m),u=-1;const h=[];for(;++u<a.length;){const e=a[u],t=s[u];f=-1;const r=[];for(;++f<c;){const o=e[f]||"";let a="",s="";if(!1!==n.alignDelimiters){const e=l[f]-(t[f]||0),n=i[f];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),s=a):s=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!f||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&f===c-1||r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function l(e,t,n){const r=e.children;let o=-1;const i=[],s=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,t,n);return s(),i}}function cA(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function uA(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function dA(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(a);let l=eA.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),l}const fA={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},pA={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(hA,l,s)(t):null===t||mE(t)||yE(t)||45!==t&&gE(t)?l(t):(i=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function l(e){return o||r||!i?n(e):t(e)}},partial:!0},mA={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(hA,t,i)(a):null===a||mE(a)||yE(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},hA={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||mE(a)||yE(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||mE(e)||yE(e)?t(e):r(e)}function i(e){return aE(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):aE(t)?(e.consume(t),a):n(t)}},partial:!0},gA={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return sE(e)?n(e):t(e)}},partial:!0},yA={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!CA.call(r,r.previous)||IA(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(fA,e.attempt(pA,e.attempt(mA,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:CA},bA={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&kA.call(r,r.previous)&&!IA(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(aE(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),i?l:(i=!0,s)):n(t)}function l(t){return null===t||cE(t)||mE(t)||yE(t)||gE(t)?n(t):e.attempt(pA,e.attempt(mA,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:kA},vA={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!SA(t)||!EA.call(r,r.previous)||IA(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return SA(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(gA,c,l)(t):45===t||95===t||sE(t)?(i=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),o=!0,s}function c(a){return i&&o&&aE(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:EA},wA={};let xA=48;for(;xA<123;)wA[xA]=vA,xA++,58===xA?xA=65:91===xA&&(xA=97);function CA(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||mE(e)}function kA(e){return!aE(e)}function EA(e){return!(47===e||SA(e))}function SA(e){return 43===e||45===e||46===e||95===e||sE(e)}function IA(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}wA[43]=vA,wA[45]=vA,wA[46]=vA,wA[95]=vA,wA[72]=[vA,bA],wA[104]=[vA,bA],wA[87]=[vA,yA],wA[119]=[vA,yA];const _A={tokenize:function(e,t,n){const r=this;return wE(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function AA(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const s=iE(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function NA(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function OA(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!i||null===s||91===s||mE(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(iE(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return mE(s)||(i=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function RA(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||mE(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=iE(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return mE(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),wE(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function MA(e,t,n){return e.check(NE,t,e.attempt(_A,t,n))}function TA(e){e.exit("gfmFootnoteDefinition")}function PA(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const l=EE(o);if(126===i)return a>1?r(i):(e.consume(i),a++,s);if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=EE(i);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&qk(a,a.length,0,SE(s,e.slice(r+1,n),t)),qk(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),qk(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class DA{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function jA(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function FA(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?w:s;if(i===w&&r.parser.lazy[r.now().line])return n(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return o=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):pE(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):hE(t)?wE(e,l,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||mE(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,hE(t)?wE(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?m(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):v(t)}function p(t){return hE(t)?wE(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(a+=1,h(t)):null===t||pE(t)?b(t):v(t)}function h(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):v(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return hE(t)?wE(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?f(n):(null===n||pE(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function w(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||pE(n)?(e.exit("tableRow"),t(n)):hE(n)?wE(e,x,"whitespace")(n):(e.enter("data"),C(n))}function C(t){return null===t||124===t||mE(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?k:C)}function k(t){return 92===t||124===t?(e.consume(t),C):C(t)}}function LA(e,t){let n,r,o,i=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const f=new DA;for(;++i<e.length;){const p=e[i],m=p[1];"enter"===p[0]?"tableHead"===m.type?(u=!1,0!==d&&(BA(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(i,0,[["enter",n,t]])):"tableRow"===m.type||"tableDelimiterRow"===m.type?(a=!0,o=void 0,l=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(i,0,[["enter",r,t]])),s="tableDelimiterRow"===m.type?2:r?3:1):!s||"data"!==m.type&&"tableDelimiterMarker"!==m.type&&"tableDelimiterFiller"!==m.type?"tableCellDivider"===m.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],o=zA(f,t,l,s,void 0,o)),l=c,c=[l[1],i,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],o=zA(f,t,l,s,void 0,o),l=[0,0,0,0]),c[2]=i)):"tableHead"===m.type?(u=!0,d=i):"tableRow"===m.type||"tableDelimiterRow"===m.type?(d=i,0!==l[1]?(c[0]=c[1],o=zA(f,t,l,s,i,o)):0!==c[1]&&(o=zA(f,t,c,s,i,o)),s=0):!s||"data"!==m.type&&"tableDelimiterMarker"!==m.type&&"tableDelimiterFiller"!==m.type||(c[3]=i)}for(0!==d&&BA(f,t,d,n,r),f.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=jA(t.events,i))}return e}function zA(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},VA(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=VA(t.events,n[1]);if(i={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=VA(t.events,n[2]),i=VA(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},VA(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function BA(e,t,n,r,o){const i=[],a=VA(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function VA(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const GA={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return mE(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return pE(r)?t(r):hE(r)?e.check({tokenize:WA},t,n)(r):n(r)}}};function WA(e,t,n){return wE(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const HA={};function XA(e){const t=e||HA,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return tE([{text:wA},{document:{91:{name:"gfmFootnoteDefinition",tokenize:RA,continuation:{tokenize:MA},exit:TA}},text:{91:{name:"gfmFootnoteCall",tokenize:OA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:AA,resolveTo:NA}}},PA(e),{flow:{null:{name:"table",tokenize:FA,resolveAll:LA}}},{text:{91:GA}}])}(t)),o.push([{transforms:[p_],enter:{literalAutolink:s_,literalAutolinkEmail:l_,literalAutolinkHttp:l_,literalAutolinkWww:l_},exit:{literalAutolink:f_,literalAutolinkEmail:d_,literalAutolinkHttp:c_,literalAutolinkWww:u_}},{enter:{gfmFootnoteCallString:y_,gfmFootnoteCall:b_,gfmFootnoteDefinitionLabelString:v_,gfmFootnoteDefinition:w_},exit:{gfmFootnoteCallString:x_,gfmFootnoteCall:C_,gfmFootnoteDefinitionLabelString:k_,gfmFootnoteDefinition:E_}},{canContainEols:["delete"],enter:{strikethrough:O_},exit:{strikethrough:R_}},{enter:{table:tA,tableData:iA,tableHeader:iA,tableRow:rA},exit:{codeText:aA,table:nA,tableData:oA,tableHeader:oA,tableRow:oA}},{exit:{taskListCheckValueChecked:cA,taskListCheckValueUnchecked:cA,paragraph:uA}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:i_,notInConstruct:a_},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:i_,notInConstruct:a_},{character:":",before:"[ps]",after:"\\/",inConstruct:i_,notInConstruct:a_}]},I_(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:N_}],handlers:{delete:M_}},lA(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:dA}}]}}(t))}const $A=({item:t})=>{const n=e.useContext(FV);return o.createElement("div",{className:"libnodeentry",onClick:e=>{2===e.detail&&n.worker?.add_node(t.node_id)},title:t.description},t.node_name||t.node_id)},ZA=(e,t)=>{const n=e.nodes?.some((e=>e.node_id.toLowerCase().includes(t.toLowerCase())))??!1,r=e.subshelves?.some((e=>ZA(e,t)))??!1;return n||r},YA=({item:t,filter:n,parentkey:r})=>{const[i,a]=e.useState(!1),s=t.nodes?.filter((e=>e.node_id.toLowerCase().includes(n.toLowerCase()))),l=i||n.length>0;return ZA(t,n)?o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>a(!i),style:{cursor:"pointer"},title:t.description},o.createElement("div",{className:"shelftitle_text"},t.name),o.createElement("div",{className:"expandicon "+(l?"open":"close")},o.createElement(Gy,null))),o.createElement("div",{className:"libnodecontainer "+(l?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},s&&o.createElement(o.Fragment,null,s.map((e=>o.createElement($A,{key:e.node_id,item:e})))),t.subshelves&&o.createElement(o.Fragment,null,t.subshelves.map((e=>o.createElement(YA,{key:r+e.name,item:e,filter:n,parentkey:r+e.name})))))),o.createElement("hr",null)):o.createElement(o.Fragment,null)},UA=({filter:e,setFilter:t})=>o.createElement("div",{className:"libfilter"},o.createElement(Yy,{fontSize:"inherit"}),o.createElement("input",{type:"text",placeholder:"Filter",value:e,onChange:e=>{t(e.target.value)}}),e&&o.createElement(Wy,{fontSize:"inherit",onClick:()=>{t("")}})),JA=({availableModule:e})=>o.createElement("div",{className:"module-links"},e.homepage&&o.createElement(o.Fragment,null,o.createElement("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer"},"Homepage")),e.source&&e.homepage&&" | ",e.source&&o.createElement(o.Fragment,null,o.createElement("a",{href:e.source,target:"_blank",rel:"noopener noreferrer"},"Source"))),KA=({availableModule:t})=>{const[n,r]=e.useState(!1),i=t.description.length>150?t.description.substring(0,150)+"...":t.description;return o.createElement("div",{className:"module-description"},o.createElement(QI,{remarkPlugins:[XA]},n?t.description.replace(/\\n/g," \n"):i.replace(/\\n/g," \n")),t.description.length>150&&o.createElement("button",{onClick:()=>r(!n),className:"toggle-description"},n?"Show less":"Show more"))},qA=({availableModule:t,on_change:n})=>{const[r,i]=e.useState(t.version||"latest"),[a,s]=e.useState(">=");return t.releases&&!t.releases.includes(r)&&t.releases.unshift(r),o.createElement(o.Fragment,null,o.createElement("select",{value:a,onChange:e=>{s(e.target.value),"latest"!==r&&n(e.target.value+r)}},o.createElement("option",{value:">="},">="),o.createElement("option",{value:"=="},"=="),o.createElement("option",{value:"<="},"<=")),o.createElement("select",{onChange:e=>{const t=e.target.value;i(t),n("latest"!==t?a+t:t)},value:r},t.releases&&t.releases.map((e=>o.createElement("option",{key:e,value:e},e)))))},QA=({availableModule:t,on_remove:n,on_update:r})=>{const[i,a]=e.useState(t.version||"latest");return o.createElement("div",{className:"addable-module"},o.createElement("div",{className:"module-name"},t.name+(t.version?` (${t.version})`:"")),o.createElement(JA,{availableModule:t}),o.createElement(KA,{availableModule:t}),o.createElement("div",null,o.createElement(qA,{availableModule:t,on_change:a}),o.createElement("button",{className:"update-button",disabled:i===t.version,onClick:()=>{r(t,i)}},"Update"),o.createElement("button",{className:"remove-button",onClick:()=>{n(t)}},"Remove")))},eN=({availableModule:t,on_add:n})=>{const[r,i]=e.useState(t.version||"latest");return o.createElement("div",{className:"addable-module"},o.createElement("div",{className:"module-name"},t.name+(t.version?` (${t.version})`:"")),o.createElement(JA,{availableModule:t}),o.createElement(KA,{availableModule:t}),o.createElement("div",null,o.createElement(qA,{availableModule:t,on_change:i}),o.createElement("button",{className:"add-button",onClick:()=>{n(t,r)}},"Add")))},tN=({availableModule:t,on_add:n})=>{const[r,i]=e.useState(t.version||"latest");return o.createElement("div",{className:"addable-module"},o.createElement("div",{className:"module-name"},t.name),o.createElement(JA,{availableModule:t}),o.createElement(KA,{availableModule:t}),o.createElement("div",null,o.createElement(qA,{availableModule:t,on_change:i}),o.createElement("button",{className:"add-button",onClick:()=>{n(t,r)}},"Add")))},nN=({children:t})=>{const[n,r]=e.useState(""),i=e.useContext(FV),[a,s]=e.useState(!0),[l,c]=e.useState(!0),[u,d]=e.useState(!0),[f,p]=e.useState({installed:[],available:[],active:[]}),[m,h]=e.useState(!1);if(!i.worker)return o.createElement(o.Fragment,null);const g=(e,t)=>{h(!1),void 0!==i.worker&&i.worker.add_lib(e.name,t)},y=(e,t)=>{h(!1),void 0!==i.worker&&i.worker.add_lib(e.name,t)},b=e=>{h(!1),void 0!==i.worker&&i.worker.remove_lib(e.name)},v=(e,t)=>{h(!1),void 0!==i.worker&&i.worker.add_lib(e.name,t)},w=e=>e.filter((e=>e.name.toLowerCase().includes(n.toLowerCase())||e.description.toLowerCase().includes(n.toLowerCase()))),x=w(f.available),C=w(f.installed),k=w(f.active);return o.createElement(Uy,{title:"Manage Library",trigger:t,description:"Add or remove libraries to the current worker.",onOpenChange:e=>{e&&void 0!==i.worker&&i.worker.is_open&&i.worker.get_available_modules().then((e=>{p(e)}))},open:m,setOpen:h},o.createElement("input",{className:"filter-input styledinput",type:"text",placeholder:"Filter modules...",value:n,onChange:e=>r(e.target.value)}),o.createElement("div",{className:"packagelist",style:{maxHeight:"70%",overflow:"auto"}},C.length>0&&o.createElement("h3",{onClick:()=>{d(!u)}},"Installed"),u&&C.map((e=>o.createElement(eN,{key:e.name+e.source,availableModule:e,on_add:g}))),x.length>0&&o.createElement("h3",{onClick:()=>{c(!l)}},"Available"),l&&x.map((e=>o.createElement(tN,{key:e.name+e.source,availableModule:e,on_add:y}))),k.length>0&&o.createElement("h3",{onClick:()=>{s(!a)}},"Active"),a&&k.map((e=>o.createElement(QA,{key:e.name+e.source,availableModule:e,on_remove:b,on_update:v})))))},rN=({ins:t})=>{const[n,r]=e.useState(t.name),i=e.useContext(FV);return o.createElement(o.Fragment,null,o.createElement(Uy,{title:t.name,description:"Settings for"+t.name,trigger:o.createElement("div",null,"Settings"),buttons:[{text:"Save",onClick:()=>{i.worker&&(i.worker.update_external_worker(t.uuid,t.nodeclassid,{name:n}),t.name=n)},close:!0},{text:"Delete",onClick:()=>{i.worker&&i.worker.remove_external_worker(t.uuid,t.nodeclassid)},close:!0}]},o.createElement("div",null,o.createElement("div",null,o.createElement("label",{htmlFor:"name"},"Name: "),o.createElement("input",{type:"text",name:"name",value:n,onChange:e=>r(e.target.value),className:"styledinput"})))))},oN=({ins:t,lib:n,filter:r="",parentkey:i})=>{const[a,s]=e.useState(!1),l=n?.nodes?.filter((e=>e.node_id.toLowerCase().includes(r.toLowerCase())));return o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>s(!a),style:{cursor:"pointer"},title:t.name},o.createElement("div",{className:"shelftitle_text"},t.name),o.createElement("div",{className:"expandicon "+(a?"open":"close")},o.createElement(Gy,null))),o.createElement("div",{className:"libnodecontainer "+(a?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},a&&o.createElement(o.Fragment,null,o.createElement("div",{className:"libnodeentry",title:t.uuid},o.createElement(rN,{ins:t})),n&&o.createElement(o.Fragment,null,l&&o.createElement(o.Fragment,null,l.map((e=>o.createElement($A,{key:e.node_id,item:e})))),n.subshelves.map((e=>o.createElement(YA,{key:i+e.name,item:e,filter:r,parentkey:i+e.name}))))))))},iN=({item:t,mod:n,lib:r})=>{const i=e.useContext(FV),[a,s]=e.useState(!1),l=t.name||t.module+"."+t.class_name;return o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>s(!a),style:{cursor:"pointer"},title:l},o.createElement("div",{className:"shelftitle_text"},l),o.createElement("div",{className:"expandicon "+(a?"open":"close")},o.createElement(Gy,null))),o.createElement("div",{className:"libnodecontainer "+(a?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},a&&o.createElement(o.Fragment,null,o.createElement("div",{className:"libnodeentry",onClick:e=>{2===e.detail&&i.worker?.add_external_worker({module:n,cls_module:t.module,cls_name:t.class_name})},title:t.name},"New Instance"),t.instances.map((e=>o.createElement(oN,{key:e.uuid,ins:e,lib:r?.subshelves.find((t=>t.name===e.uuid)),parentkey:e.uuid})))))))},aN=({externalworkermod:t,lib:n})=>{const[r,i]=e.useState(!1),a=r;return o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>i(!r),style:{cursor:"pointer"},title:t.module},o.createElement("div",{className:"shelftitle_text"},t.module),o.createElement("div",{className:"expandicon "+(a?"open":"close")},o.createElement(Gy,null))),o.createElement("div",{className:"libnodecontainer "+(a?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},t.worker_classes.map((e=>o.createElement(iN,{key:e.module+e.class_name,item:e,mod:t.module,lib:n}))))),o.createElement("hr",null))},sN=()=>{const t=e.useContext(FV),n=t.lib.libstate(),r=o.useContext(FV),i=r.local_settings((e=>e.view_settings.expand_lib)),a=r.local_settings((e=>e.update_view_settings)),s=gC("m"),[l,c]=e.useState(""),u=t.worker?.state((e=>e.is_open))??!1;return o.createElement(bC,{maxSize:s?"100%":"300px",direction:s?"down":"right",containerClassName:"pos-left pos-top bg1 h-12",onExpandChange:e=>{a({expand_lib:e})},expanded:void 0===i||i},o.createElement("div",{className:"libcontainer"},o.createElement("div",{className:"library"},o.createElement("div",{className:"libtitle"},"Lib"),o.createElement("hr",{className:"hr_prominent"}),o.createElement(UA,{filter:l,setFilter:c}),o.createElement("div",{className:"vscrollcontainer"},n.lib.shelves.map((e=>"_external_worker"==e.name?o.createElement(o.Fragment,null):o.createElement(YA,{key:e.name,item:e,filter:l,parentkey:e.name})))),o.createElement("hr",null),o.createElement("div",{className:"libtitle"},"External Worker"),o.createElement("hr",{className:"hr_prominent"}),o.createElement("div",{className:"vscrollcontainer"},n.external_worker?.map((e=>o.createElement(aN,{key:e.module,externalworkermod:e,lib:n.lib.shelves.find((e=>"_external_worker"===e.name))})))),o.createElement("hr",null)),o.createElement("div",{style:{paddingTop:"0.5rem"}}),u&&o.createElement("div",{className:"addlib"},o.createElement(nN,null,o.createElement("button",null,"Manage Libraries")))))};const{useRef:lN}=e;function cN(e){const t=lN();return n=>{const r=e(n);return function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}(t.current,r)?t.current:t.current=r}}var uN="Popover",[dN,fN]=Vu(uN,[Mv]),pN=Mv(),[mN,hN]=dN(uN),gN=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=pN(t),c=o.useRef(null),[u,d]=o.useState(!1),[f=!1,p]=Yu({prop:r,defaultProp:i,onChange:a});return Bu.jsx(Yv,{...l,children:Bu.jsx(mN,{scope:t,contentId:$u(),triggerRef:c,open:f,onOpenChange:p,onOpenToggle:o.useCallback((()=>p((e=>!e))),[p]),hasCustomAnchor:u,onCustomAnchorAdd:o.useCallback((()=>d(!0)),[]),onCustomAnchorRemove:o.useCallback((()=>d(!1)),[]),modal:s,children:n})})};gN.displayName=uN;var yN="PopoverAnchor";o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,i=hN(yN,n),a=pN(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return o.useEffect((()=>(s(),()=>l())),[s,l]),Bu.jsx(Uv,{...a,...r,ref:t})})).displayName=yN;var bN="PopoverTrigger",vN=o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=hN(bN,n),i=pN(n),a=Mu(t,o.triggerRef),s=Bu.jsx(Qu.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":RN(o.open),...r,ref:a,onClick:Nu(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:Bu.jsx(Uv,{asChild:!0,...i,children:s})}));vN.displayName=bN;var wN="PopoverPortal",[xN,CN]=dN(wN,{forceMount:void 0}),kN=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=hN(wN,t);return Bu.jsx(xN,{scope:t,forceMount:n,children:Bu.jsx(xd,{present:n||i.open,children:Bu.jsx(wd,{asChild:!0,container:o,children:r})})})};kN.displayName=wN;var EN="PopoverContent",SN=o.forwardRef(((e,t)=>{const n=CN(EN,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=hN(EN,e.__scopePopover);return Bu.jsx(xd,{present:r||i.open,children:i.modal?Bu.jsx(IN,{...o,ref:t}):Bu.jsx(_N,{...o,ref:t})})}));SN.displayName=EN;var IN=o.forwardRef(((e,t)=>{const n=hN(EN,e.__scopePopover),r=o.useRef(null),i=Mu(t,r),a=o.useRef(!1);return o.useEffect((()=>{const e=r.current;if(e)return xf(e)}),[]),Bu.jsx(mf,{as:Uu,allowPinchZoom:!0,children:Bu.jsx(AN,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Nu(e.onCloseAutoFocus,(e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()})),onPointerDownOutside:Nu(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:Nu(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),_N=o.forwardRef(((e,t)=>{const n=hN(EN,e.__scopePopover),r=o.useRef(!1),i=o.useRef(!1);return Bu.jsx(AN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const o=t.target,a=n.triggerRef.current?.contains(o);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})})),AN=o.forwardRef(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=hN(EN,n),p=pN(n);return Ed(),Bu.jsx(pd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:Bu.jsx(ad,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:Bu.jsx(Jv,{"data-state":RN(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),NN="PopoverClose";o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=hN(NN,n);return Bu.jsx(Qu.button,{type:"button",...r,ref:t,onClick:Nu(e.onClick,(()=>o.onOpenChange(!1)))})})).displayName=NN;var ON=o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=pN(n);return Bu.jsx(Kv,{...o,...r,ref:t})}));function RN(e){return e?"open":"closed"}ON.displayName="PopoverArrow";var MN,TN,PN,DN,jN,FN,LN,zN,BN=gN,VN=vN,GN=kN,WN=SN,HN=ON;function XN(){if(DN)return PN;DN=1;const e=TN?MN:(TN=1,MN={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),t={};for(const n of Object.keys(e))t[e[n]]=n;const n={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};PN=n;for(const e of Object.keys(n)){if(!("channels"in n[e]))throw new Error("missing channels property: "+e);if(!("labels"in n[e]))throw new Error("missing channel labels property: "+e);if(n[e].labels.length!==n[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=n[e];delete n[e].channels,delete n[e].labels,Object.defineProperty(n[e],"channels",{value:t}),Object.defineProperty(n[e],"labels",{value:r})}function r(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}return n.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=i-o;let s,l;i===o?s=0:t===i?s=(n-r)/a:n===i?s=2+(r-t)/a:r===i&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const c=(o+i)/2;return l=i===o?0:c<=.5?a/(i+o):a/(2-i-o),[s,100*l,100*c]},n.rgb.hsv=function(e){let t,n,r,o,i;const a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(o=0,i=0):(i=u/c,t=d(a),n=d(s),r=d(l),a===c?o=r-n:s===c?o=1/3+t-r:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},n.rgb.hwb=function(e){const t=e[0],r=e[1];let o=e[2];const i=n.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,o));return o=1-1/255*Math.max(t,Math.max(r,o)),[i,100*a,100*o]},n.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},n.rgb.keyword=function(n){const o=t[n];if(o)return o;let i,a=1/0;for(const t of Object.keys(e)){const o=r(n,e[t]);o<a&&(a=o,i=t)}return i},n.keyword.rgb=function(t){return e[t]},n.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},n.rgb.lab=function(e){const t=n.rgb.xyz(e);let r=t[0],o=t[1],i=t[2];r/=95.047,o/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*o-16,500*(r-o),200*(o-i)]},n.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,a;if(0===n)return a=255*r,[a,a,a];o=r<.5?r*(1+n):r+n-r*n;const s=2*r-o,l=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,a=6*i<1?s+6*(o-s)*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,l[e]=255*a;return l},n.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;return[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},n.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},n.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,a;a=(2-n)*r;const s=(2-n)*o;return i=n*o,i/=s<=1?s:2-s,i=i||0,a/=2,[t,100*i,100*a]},n.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const a=Math.floor(6*t),s=1-r;i=6*t-a,1&a&&(i=1-i);const l=n+i*(s-n);let c,u,d;switch(a){default:case 6:case 0:c=s,u=l,d=n;break;case 1:c=l,u=s,d=n;break;case 2:c=n,u=s,d=l;break;case 3:c=n,u=l,d=s;break;case 4:c=l,u=n,d=s;break;case 5:c=s,u=n,d=l}return[255*c,255*u,255*d]},n.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},n.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,a;return o=3.2406*t+-1.5372*n+-.4986*r,i=-.9689*t+1.8758*n+.0415*r,a=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*o,255*i,255*a]},n.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(t-n),200*(n-r)]},n.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,i=t**3,a=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},n.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(n*n+r*r),o]},n.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},n.rgb.ansi16=function(e,t=null){const[r,o,i]=e;let a=null===t?n.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(i/255)<<2|Math.round(o/255)<<1|Math.round(r/255));return 2===a&&(s+=60),s},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},n.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},n.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},n.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},n.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),a=o-i;let s,l;return s=a<1?i/(1-a):0,l=a<=0?0:o===t?(n-r)/a%6:o===n?2+(r-t)/a:4+(t-n)/a,l/=6,l%=1,[360*l,100*a,100*s]},n.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},n.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},n.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],i=t%1*6,a=i%1,s=1-a;let l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},n.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},n.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},n.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},n.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=function(e){return[0,0,e[0]]},n.gray.hsv=n.gray.hsl,n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},PN}function $N(){if(FN)return jN;FN=1;const e=XN();function t(t){const n=function(){const t={},n=Object.keys(e);for(let e=n.length,r=0;r<e;r++)t[n[r]]={distance:-1,parent:null};return t}(),r=[t];for(n[t].distance=0;r.length;){const t=r.pop(),o=Object.keys(e[t]);for(let e=o.length,i=0;i<e;i++){const e=o[i],a=n[e];-1===a.distance&&(a.distance=n[t].distance+1,a.parent=t,r.unshift(e))}}return n}function n(e,t){return function(n){return t(e(n))}}function r(t,r){const o=[r[t].parent,t];let i=e[r[t].parent][t],a=r[t].parent;for(;r[a].parent;)o.unshift(r[a].parent),i=n(e[r[a].parent][a],i),a=r[a].parent;return i.conversion=o,i}return jN=function(e){const n=t(e),o={},i=Object.keys(n);for(let e=i.length,t=0;t<e;t++){const e=i[t];null!==n[e].parent&&(o[e]=r(e,n))}return o},jN}var ZN=function(){if(zN)return LN;zN=1;const e=XN(),t=$N(),n={};return Object.keys(e).forEach((r=>{n[r]={},Object.defineProperty(n[r],"channels",{value:e[r].channels}),Object.defineProperty(n[r],"labels",{value:e[r].labels});const o=t(r);Object.keys(o).forEach((e=>{const t=o[e];n[r][e]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(t),n[r][e].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(t)}))})),LN=n}(),YN=r({__proto__:null,default:l(ZN)},[ZN]);const UN=(e,t)=>{const n=Array.isArray(t)?t:[t];if(void 0===n[0]||null===n[0])return UN("rgb",[0,0,0]);const r=YN[e];if(!r)throw new Error("Unsupported color type: "+e);r[e]=()=>n;const o=e=>{const t=e(...n);return Array.isArray(t)?null!=t[0]:t};if(!o(r.rgb)||!o(r.hsl))return UN("rgb",[0,0,0]);const i={};return Object.keys(r).forEach((t=>{const o=r[t];"function"==typeof o&&(i[t]=()=>t===e?n:o(...n))})),i},JN=({onChange:t,colorconverter:n,allow_null:r=!1})=>{if(null===n&&!r)throw new Error("Color converter is null");const[i,a]=e.useState(n),[s,l]=e.useState([0,0,0]),[c,u]=e.useState([0,0,0]),[d,f]=e.useState([0,0,0]),[p,m]=e.useState("000");e.useEffect((()=>{if(!i){if(!r)throw new Error("Color converter is null");return u([0,0,0]),l([0,0,0]),f([0,0,0]),void m("")}l(i.hsl()),u(i.rgb()),f(i.hsv()),m(i.hex())}),[i]);const h={backgroundColor:`hsl(${s[0]}, ${s[1]}%, ${s[2]}%)`,padding:"10px",margin:"10px 0"};return o.createElement("div",{style:{backgroundColor:"white"}},o.createElement("div",{style:h},"Color Preview"),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"RGB"),o.createElement("div",null),o.createElement("label",null,"Red"),o.createElement("input",{type:"range",min:"0",max:"255",value:c[0],onChange:e=>{const n=[parseInt(e.target.value),c[1],c[2]],r=UN("rgb",n);a(r),t(r)},style:{background:"linear-gradient(to right, #000, #f00)"}}),o.createElement("label",null,"Green"),o.createElement("input",{type:"range",min:"0",max:"255",value:c[1],onChange:e=>{const n=[c[0],parseInt(e.target.value),c[2]],r=UN("rgb",n);a(r),t(r)},style:{background:"linear-gradient(to right, #000, #0f0)"}}),o.createElement("label",null,"Blue"),o.createElement("input",{type:"range",min:"0",max:"255",value:c[2],onChange:e=>{const n=[c[0],c[1],parseInt(e.target.value)],r=UN("rgb",n);a(r),t(r)},style:{background:"linear-gradient(to right, #000, #00f)"}})),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"HSL"),o.createElement("div",null),o.createElement("label",null,"Hue"),o.createElement("input",{type:"range",min:"0",max:"360",value:s[0],onChange:e=>{const n=[parseInt(e.target.value),s[1],s[2]],r=UN("hsl",n);a(r),t(r)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),o.createElement("label",null,"Saturation"),o.createElement("input",{type:"range",min:"0",max:"100",value:s[1],onChange:e=>{const n=[s[0],parseInt(e.target.value),s[2]],r=UN("hsl",n);a(r),t(r)},style:{background:`linear-gradient(to right, #fff, hsl(${s[0]}, 100%, 50%))`}}),o.createElement("label",null,"Lightness"),o.createElement("input",{type:"range",min:"0",max:"100",value:s[2],onChange:e=>{const n=[s[0],s[1],parseInt(e.target.value)],r=UN("hsl",n);a(r),t(r)},style:{background:`linear-gradient(to right, #000, hsl(${s[0]}, 100%, 50%), #fff)`}})),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"HSV"),o.createElement("div",null),o.createElement("label",null,"Hue"),o.createElement("input",{type:"range",min:"0",max:"360",value:d[0],onChange:e=>{const n=[parseInt(e.target.value),d[1],d[2]],r=UN("hsv",n);a(r),t(r)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),o.createElement("label",null,"Saturation"),o.createElement("input",{type:"range",min:"0",max:"100",value:d[1],onChange:e=>{const n=[d[0],parseInt(e.target.value),d[2]],r=UN("hsv",n);a(r),t(r)},style:{background:`linear-gradient(to right, #fff, hsl(${s[0]}, 100%, 50%))`}}),o.createElement("label",null,"Value"),o.createElement("input",{type:"range",min:"0",max:"100",value:d[2],onChange:e=>{const n=[d[0],d[1],parseInt(e.target.value)],r=UN("hsv",n);a(r),t(r)},style:{background:`linear-gradient(to right, #000, hsl(${s[0]}, 100%, 50%))`}})),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"HEX"),o.createElement("div",null),o.createElement("input",{type:"text",value:p,onChange:e=>{const n=""===e.target.value?null:UN("hex",[e.target.value]);a(n),t(n)}})))},KN=({inicolordata:t,inicolorspace:n,allow_null:r=!1,delay:i=1e3,onChange:a})=>{const s=void 0!==t?t:[0,0,0],l=void 0===t?"rgb":n||"hex",c=Array.isArray(s)?s:[s],u=e.useMemo((()=>{let e=UN(l,c);return void 0===e.rgb()&&(e=UN("rgb",[0,0,0])),e}),[l,c]),[d,f]=e.useState(u);e.useEffect((()=>{const e=void 0!==t?t:[0,0,0],r=void 0===t?"rgb":n||"hex",o=Array.isArray(e)?e:[e];let i=UN(r,o);void 0===i.rgb()&&(i=UN("rgb",[0,0,0])),f(i)}),[JSON.stringify(t),n]);const p=e.useContext(FV),m=p.local_state((()=>p.reactflowRef)),h=e.useRef(null),g=e.useCallback((e=>{if(null===e&&!r)throw new Error("Color is null");null!==e&&f(e),h.current&&clearTimeout(h.current),a&&(h.current=setTimeout((()=>{a(e),h.current=null}),i))}),[r,a,i]);e.useEffect((()=>()=>{h.current&&clearTimeout(h.current)}),[]);const y=e.useMemo((()=>({background:"#"+d.hex(),borderRadius:"0.3rem",width:"2rem",height:"1rem"})),[d]);return o.createElement(BN,null,o.createElement(VN,{asChild:!0},o.createElement("button",{style:y})),o.createElement(GN,{container:m},o.createElement(WN,{side:"left",className:"iotooltipcontent"},o.createElement(JN,{onChange:g,colorconverter:d,allow_null:r}))))};function qN(e,[t,n]){return Math.min(n,Math.max(t,e))}var QN=["PageUp","PageDown"],eO=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],tO={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},nO="Slider",[rO,oO,iO]=Jy(nO),[aO,sO]=Vu(nO,[iO]),[lO,cO]=aO(nO),uO=o.forwardRef(((e,t)=>{const{name:n,min:r=0,max:i=100,step:a=1,orientation:s="horizontal",disabled:l=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[r],value:d,onValueChange:f=()=>{},onValueCommit:p=()=>{},inverted:m=!1,form:h,...g}=e,y=o.useRef(new Set),b=o.useRef(0),v="horizontal"===s?pO:mO,[w=[],x]=Yu({prop:d,defaultProp:u,onChange:e=>{const t=[...y.current];t[b.current]?.focus(),f(e)}}),C=o.useRef(w);function k(e,t,{commit:n}={commit:!1}){const o=function(e){return(String(e).split(".")[1]||"").length}(a),s=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-r)/a)*a+r,o),l=qN(s,[r,i]);x(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,l,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map(((t,n)=>e[n+1]-t))}(e);return Math.min(...n)>=t}return!0}(r,c*a)){b.current=r.indexOf(l);const t=String(r)!==String(e);return t&&n&&p(r),t?r:e}return e}))}return Bu.jsx(lO,{scope:e.__scopeSlider,name:n,disabled:l,min:r,max:i,valueIndexToChangeRef:b,thumbs:y.current,values:w,orientation:s,form:h,children:Bu.jsx(rO.Provider,{scope:e.__scopeSlider,children:Bu.jsx(rO.Slot,{scope:e.__scopeSlider,children:Bu.jsx(v,{"aria-disabled":l,"data-disabled":l?"":void 0,...g,ref:t,onPointerDown:Nu(g.onPointerDown,(()=>{l||(C.current=w)})),min:r,max:i,inverted:m,onSlideStart:l?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map((e=>Math.abs(e-t))),r=Math.min(...n);return n.indexOf(r)}(w,e);k(e,t)},onSlideMove:l?void 0:function(e){k(e,b.current)},onSlideEnd:l?void 0:function(){const e=C.current[b.current];w[b.current]!==e&&p(w)},onHomeKeyDown:()=>!l&&k(r,0,{commit:!0}),onEndKeyDown:()=>!l&&k(i,w.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!l){const n=QN.includes(e.key)||e.shiftKey&&eO.includes(e.key)?10:1,r=b.current;k(w[r]+a*n*t,r,{commit:!0})}}})})})})}));uO.displayName=nO;var[dO,fO]=aO(nO,{startEdge:"left",endEdge:"right",size:"width",direction:1}),pO=o.forwardRef(((e,t)=>{const{min:n,max:r,dir:i,inverted:a,onSlideStart:s,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...d}=e,[f,p]=o.useState(null),m=Mu(t,(e=>p(e))),h=o.useRef(void 0),g=qy(i),y="ltr"===g,b=y&&!a||!y&&a;function v(e){const t=h.current||f.getBoundingClientRect(),o=SO([0,t.width],b?[n,r]:[r,n]);return h.current=t,o(e-t.left)}return Bu.jsx(dO,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:Bu.jsx(hO,{dir:g,"data-orientation":"horizontal",...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=v(e.clientX);s?.(t)},onSlideMove:e=>{const t=v(e.clientX);l?.(t)},onSlideEnd:()=>{h.current=void 0,c?.()},onStepKeyDown:e=>{const t=tO[b?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})})),mO=o.forwardRef(((e,t)=>{const{min:n,max:r,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=e,d=o.useRef(null),f=Mu(t,d),p=o.useRef(void 0),m=!i;function h(e){const t=p.current||d.current.getBoundingClientRect(),o=SO([0,t.height],m?[r,n]:[n,r]);return p.current=t,o(e-t.top)}return Bu.jsx(dO,{scope:e.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:Bu.jsx(hO,{"data-orientation":"vertical",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=h(e.clientY);a?.(t)},onSlideMove:e=>{const t=h(e.clientY);s?.(t)},onSlideEnd:()=>{p.current=void 0,l?.()},onStepKeyDown:e=>{const t=tO[m?"from-bottom":"from-top"].includes(e.key);c?.({event:e,direction:t?-1:1})}})})})),hO=o.forwardRef(((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,u=cO(nO,n);return Bu.jsx(Qu.span,{...c,ref:t,onKeyDown:Nu(e.onKeyDown,(e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):QN.concat(eO).includes(e.key)&&(l(e),e.preventDefault())})),onPointerDown:Nu(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)})),onPointerMove:Nu(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)})),onPointerUp:Nu(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))}))})})),gO="SliderTrack",yO=o.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,o=cO(gO,n);return Bu.jsx(Qu.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})}));yO.displayName=gO;var bO="SliderRange",vO=o.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,i=cO(bO,n),a=fO(bO,n),s=Mu(t,o.useRef(null)),l=i.values.length,c=i.values.map((e=>EO(e,i.min,i.max))),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return Bu.jsx(Qu.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:s,style:{...e.style,[a.startEdge]:u+"%",[a.endEdge]:d+"%"}})}));vO.displayName=bO;var wO="SliderThumb",xO=o.forwardRef(((e,t)=>{const n=oO(e.__scopeSlider),[r,i]=o.useState(null),a=Mu(t,(e=>i(e))),s=o.useMemo((()=>r?n().findIndex((e=>e.ref.current===r)):-1),[n,r]);return Bu.jsx(CO,{...e,ref:a,index:s})})),CO=o.forwardRef(((e,t)=>{const{__scopeSlider:n,index:r,name:i,...a}=e,s=cO(wO,n),l=fO(wO,n),[c,u]=o.useState(null),d=Mu(t,(e=>u(e))),f=!c||(s.form||!!c.closest("form")),p=Nv(c),m=s.values[r],h=void 0===m?0:EO(m,s.min,s.max),g=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(r,s.values.length),y=p?.[l.size],b=y?function(e,t,n){const r=e/2,o=SO([0,50],[0,r]);return(r-o(t)*n)*n}(y,h,l.direction):0;return o.useEffect((()=>{if(c)return s.thumbs.add(c),()=>{s.thumbs.delete(c)}}),[c,s.thumbs]),Bu.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${h}% + ${b}px)`},children:[Bu.jsx(rO.ItemSlot,{scope:e.__scopeSlider,children:Bu.jsx(Qu.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":s.min,"aria-valuenow":m,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...a,ref:d,style:void 0===m?{display:"none"}:e.style,onFocus:Nu(e.onFocus,(()=>{s.valueIndexToChangeRef.current=r}))})}),f&&Bu.jsx(kO,{name:i??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:m},r)]})}));xO.displayName=wO;var kO=e=>{const{value:t,...n}=e,r=o.useRef(null),i=function(e){const t=o.useRef({value:e,previous:e});return o.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(t);return o.useEffect((()=>{const e=r.current,n=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(n,"value").set;if(i!==t&&o){const n=new Event("input",{bubbles:!0});o.call(e,t),e.dispatchEvent(n)}}),[i,t]),Bu.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function EO(e,t,n){return qN(100/(n-t)*(e-t),[0,100])}function SO(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var IO=uO,_O=yO,AO=vO,NO=xO,OO=o.forwardRef(((e,t)=>Bu.jsx(Qu.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));OO.displayName="VisuallyHidden";var RO=OO,[MO,TO]=Vu("Tooltip",[Mv]),PO=Mv(),DO="TooltipProvider",jO=700,FO="tooltip.open",[LO,zO]=MO(DO),BO=e=>{const{__scopeTooltip:t,delayDuration:n=jO,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[s,l]=o.useState(!0),c=o.useRef(!1),u=o.useRef(0);return o.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),Bu.jsx(LO,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:o.useCallback((()=>{window.clearTimeout(u.current),l(!1)}),[]),onClose:o.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>l(!0)),r)}),[r]),isPointerInTransitRef:c,onPointerInTransitChange:o.useCallback((e=>{c.current=e}),[]),disableHoverableContent:i,children:a})};BO.displayName=DO;var VO="Tooltip",[GO,WO]=MO(VO),HO=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=e,c=zO(VO,e.__scopeTooltip),u=PO(t),[d,f]=o.useState(null),p=$u(),m=o.useRef(0),h=s??c.disableHoverableContent,g=l??c.delayDuration,y=o.useRef(!1),[b=!1,v]=Yu({prop:r,defaultProp:i,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(FO))):c.onClose(),a?.(e)}}),w=o.useMemo((()=>b?y.current?"delayed-open":"instant-open":"closed"),[b]),x=o.useCallback((()=>{window.clearTimeout(m.current),m.current=0,y.current=!1,v(!0)}),[v]),C=o.useCallback((()=>{window.clearTimeout(m.current),m.current=0,v(!1)}),[v]),k=o.useCallback((()=>{window.clearTimeout(m.current),m.current=window.setTimeout((()=>{y.current=!0,v(!0),m.current=0}),g)}),[g,v]);return o.useEffect((()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)}),[]),Bu.jsx(Yv,{...u,children:Bu.jsx(GO,{scope:t,contentId:p,open:b,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:o.useCallback((()=>{c.isOpenDelayed?k():x()}),[c.isOpenDelayed,k,x]),onTriggerLeave:o.useCallback((()=>{h?C():(window.clearTimeout(m.current),m.current=0)}),[C,h]),onOpen:x,onClose:C,disableHoverableContent:h,children:n})})};HO.displayName=VO;var XO="TooltipTrigger",$O=o.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,i=WO(XO,n),a=zO(XO,n),s=PO(n),l=Mu(t,o.useRef(null),i.onTriggerChange),c=o.useRef(!1),u=o.useRef(!1),d=o.useCallback((()=>c.current=!1),[]);return o.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),Bu.jsx(Uv,{asChild:!0,...s,children:Bu.jsx(Qu.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Nu(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))})),onPointerLeave:Nu(e.onPointerLeave,(()=>{i.onTriggerLeave(),u.current=!1})),onPointerDown:Nu(e.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:Nu(e.onFocus,(()=>{c.current||i.onOpen()})),onBlur:Nu(e.onBlur,i.onClose),onClick:Nu(e.onClick,i.onClose)})})}));$O.displayName=XO;var[ZO,YO]=MO("TooltipPortal",{forceMount:void 0}),UO="TooltipContent",JO=o.forwardRef(((e,t)=>{const n=YO(UO,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=WO(UO,e.__scopeTooltip);return Bu.jsx(xd,{present:r||a.open,children:a.disableHoverableContent?Bu.jsx(eR,{side:o,...i,ref:t}):Bu.jsx(KO,{side:o,...i,ref:t})})})),KO=o.forwardRef(((e,t)=>{const n=WO(UO,e.__scopeTooltip),r=zO(UO,e.__scopeTooltip),i=o.useRef(null),a=Mu(t,i),[s,l]=o.useState(null),{trigger:c,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=o.useCallback((()=>{l(null),f(!1)}),[f]),m=o.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);l(a),f(!0)}),[f]);return o.useEffect((()=>()=>p()),[p]),o.useEffect((()=>{if(c&&d){const e=e=>m(e,d),t=e=>m(e,c);return c.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[c,d,m,p]),o.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||d?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}(n,s);r?p():o&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,d,s,u,p]),Bu.jsx(eR,{...e,ref:a})})),[qO,QO]=MO(VO,{isInside:!1}),eR=o.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=e,c=WO(UO,n),u=PO(n),{onClose:d}=c;return o.useEffect((()=>(document.addEventListener(FO,d),()=>document.removeEventListener(FO,d))),[d]),o.useEffect((()=>{if(c.trigger){const e=e=>{const t=e.target;t?.contains(c.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,d]),Bu.jsx(ad,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:Bu.jsxs(Jv,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[Bu.jsx(Ku,{children:r}),Bu.jsx(qO,{scope:n,isInside:!0,children:Bu.jsx(RO,{id:c.contentId,role:"tooltip",children:i||r})})]})})}));JO.displayName=UO;var tR="TooltipArrow";o.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=PO(n);return QO(tR,n).isInside?null:Bu.jsx(Kv,{...o,...r,ref:t})})).displayName=tR;var nR=HO,rR=$O,oR=JO;function iR(e){return iR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iR(e)}function aR(e){var t=function(e,t){if("object"!=iR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=iR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==iR(t)?t:t+""}function sR(e,t,n){return(t=aR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lR(Object(n),!0).forEach((function(t){sR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dR(e,t){if(e){if("string"==typeof e)return uR(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uR(e,t):void 0}}function fR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||dR(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pR(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function mR(e,t){if(null==e)return{};var n,r,o=pR(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var hR=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function gR(){return gR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gR.apply(null,arguments)}function yR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,aR(r.key),r)}}function bR(e,t){return bR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bR(e,t)}function vR(e){return vR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vR(e)}function wR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wR=function(){return!!e})()}function xR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CR(e){var t=wR();return function(){var n,r=vR(e);if(t){var o=vR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==iR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xR(e)}(this,n)}}function kR(e){return function(e){if(Array.isArray(e))return uR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||dR(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ER=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),SR="-ms-",IR="-moz-",_R="-webkit-",AR="comm",NR="rule",OR="decl",RR="@keyframes",MR=Math.abs,TR=String.fromCharCode,PR=Object.assign;function DR(e){return e.trim()}function jR(e,t,n){return e.replace(t,n)}function FR(e,t){return e.indexOf(t)}function LR(e,t){return 0|e.charCodeAt(t)}function zR(e,t,n){return e.slice(t,n)}function BR(e){return e.length}function VR(e){return e.length}function GR(e,t){return t.push(e),e}var WR=1,HR=1,XR=0,$R=0,ZR=0,YR="";function UR(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:WR,column:HR,length:a,return:""}}function JR(e,t){return PR(UR("",null,null,"",null,null,0),e,{length:-e.length},t)}function KR(){return ZR=$R>0?LR(YR,--$R):0,HR--,10===ZR&&(HR=1,WR--),ZR}function qR(){return ZR=$R<XR?LR(YR,$R++):0,HR++,10===ZR&&(HR=1,WR++),ZR}function QR(){return LR(YR,$R)}function eM(){return $R}function tM(e,t){return zR(YR,e,t)}function nM(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rM(e){return WR=HR=1,XR=BR(YR=e),$R=0,[]}function oM(e){return YR="",e}function iM(e){return DR(tM($R-1,lM(91===e?e+2:40===e?e+1:e)))}function aM(e){for(;(ZR=QR())&&ZR<33;)qR();return nM(e)>2||nM(ZR)>3?"":" "}function sM(e,t){for(;--t&&qR()&&!(ZR<48||ZR>102||ZR>57&&ZR<65||ZR>70&&ZR<97););return tM(e,eM()+(t<6&&32==QR()&&32==qR()))}function lM(e){for(;qR();)switch(ZR){case e:return $R;case 34:case 39:34!==e&&39!==e&&lM(ZR);break;case 40:41===e&&lM(e);break;case 92:qR()}return $R}function cM(e,t){for(;qR()&&e+ZR!==57&&(e+ZR!==84||47!==QR()););return"/*"+tM(t,$R-1)+"*"+TR(47===e?e:qR())}function uM(e){for(;!nM(QR());)qR();return tM(e,$R)}function dM(e){return oM(fM("",null,null,null,[""],e=rM(e),0,[0],e))}function fM(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,m=0,h=1,g=1,y=1,b=0,v="",w=o,x=i,C=r,k=v;g;)switch(m=b,b=qR()){case 40:if(108!=m&&58==LR(k,d-1)){-1!=FR(k+=jR(iM(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=iM(b);break;case 9:case 10:case 13:case 32:k+=aM(m);break;case 92:k+=sM(eM()-1,7);continue;case 47:switch(QR()){case 42:case 47:GR(mM(cM(qR(),eM()),t,n),l);break;default:k+="/"}break;case 123*h:s[c++]=BR(k)*y;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==y&&(k=jR(k,/\f/g,"")),p>0&&BR(k)-d&&GR(p>32?hM(k+";",r,n,d-1):hM(jR(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(GR(C=pM(k,t,n,c,u,o,s,v,w=[],x=[],d),i),123===b)if(0===u)fM(k,t,C,C,w,i,d,s,x);else switch(99===f&&110===LR(k,3)?100:f){case 100:case 108:case 109:case 115:fM(e,C,C,r&&GR(pM(e,C,C,0,0,o,s,v,o,w=[],d),x),o,x,d,s,r?w:x);break;default:fM(k,C,C,C,[""],x,0,s,x)}}c=u=p=0,h=y=1,v=k="",d=a;break;case 58:d=1+BR(k),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==KR())continue;switch(k+=TR(b),b*h){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(BR(k)-1)*y,y=1;break;case 64:45===QR()&&(k+=iM(qR())),f=QR(),u=d=BR(v=k+=uM(eM())),b++;break;case 45:45===m&&2==BR(k)&&(h=0)}}return i}function pM(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=VR(f),m=0,h=0,g=0;m<r;++m)for(var y=0,b=zR(e,d+1,d=MR(h=a[m])),v=e;y<p;++y)(v=DR(h>0?f[y]+" "+b:jR(b,/&\f/g,f[y])))&&(l[g++]=v);return UR(e,t,n,0===o?NR:s,l,c,u)}function mM(e,t,n){return UR(e,t,n,AR,TR(ZR),zR(e,2,-2),0)}function hM(e,t,n,r){return UR(e,t,n,OR,zR(e,0,r),zR(e,r+1,-1),r)}function gM(e,t){for(var n="",r=VR(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function yM(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case OR:return e.return=e.return||e.value;case AR:return"";case RR:return e.return=e.value+"{"+gM(e.children,r)+"}";case NR:e.value=e.props.join(",")}return BR(n=gM(e.children,r))?e.return=e.value+"{"+n+"}":""}function bM(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var vM=function(e,t,n){for(var r=0,o=0;r=o,o=QR(),38===r&&12===o&&(t[n]=1),!nM(o);)qR();return tM(e,$R)},wM=function(e,t){return oM(function(e,t){var n=-1,r=44;do{switch(nM(r)){case 0:38===r&&12===QR()&&(t[n]=1),e[n]+=vM($R-1,t,n);break;case 2:e[n]+=iM(r);break;case 4:if(44===r){e[++n]=58===QR()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=TR(r)}}while(r=qR());return e}(rM(e),t))},xM=new WeakMap,CM=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||xM.get(n))&&!r){xM.set(e,!0);for(var o=[],i=wM(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},kM=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function EM(e,t){switch(function(e,t){return 45^LR(e,0)?(((t<<2^LR(e,0))<<2^LR(e,1))<<2^LR(e,2))<<2^LR(e,3):0}(e,t)){case 5103:return _R+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _R+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _R+e+IR+e+SR+e+e;case 6828:case 4268:return _R+e+SR+e+e;case 6165:return _R+e+SR+"flex-"+e+e;case 5187:return _R+e+jR(e,/(\w+).+(:[^]+)/,_R+"box-$1$2"+SR+"flex-$1$2")+e;case 5443:return _R+e+SR+"flex-item-"+jR(e,/flex-|-self/,"")+e;case 4675:return _R+e+SR+"flex-line-pack"+jR(e,/align-content|flex-|-self/,"")+e;case 5548:return _R+e+SR+jR(e,"shrink","negative")+e;case 5292:return _R+e+SR+jR(e,"basis","preferred-size")+e;case 6060:return _R+"box-"+jR(e,"-grow","")+_R+e+SR+jR(e,"grow","positive")+e;case 4554:return _R+jR(e,/([^-])(transform)/g,"$1"+_R+"$2")+e;case 6187:return jR(jR(jR(e,/(zoom-|grab)/,_R+"$1"),/(image-set)/,_R+"$1"),e,"")+e;case 5495:case 3959:return jR(e,/(image-set\([^]*)/,_R+"$1$`$1");case 4968:return jR(jR(e,/(.+:)(flex-)?(.*)/,_R+"box-pack:$3"+SR+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_R+e+e;case 4095:case 3583:case 4068:case 2532:return jR(e,/(.+)-inline(.+)/,_R+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(BR(e)-1-t>6)switch(LR(e,t+1)){case 109:if(45!==LR(e,t+4))break;case 102:return jR(e,/(.+:)(.+)-([^]+)/,"$1"+_R+"$2-$3$1"+IR+(108==LR(e,t+3)?"$3":"$2-$3"))+e;case 115:return~FR(e,"stretch")?EM(jR(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==LR(e,t+1))break;case 6444:switch(LR(e,BR(e)-3-(~FR(e,"!important")&&10))){case 107:return jR(e,":",":"+_R)+e;case 101:return jR(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_R+(45===LR(e,14)?"inline-":"")+"box$3$1"+_R+"$2$3$1"+SR+"$2box$3")+e}break;case 5936:switch(LR(e,t+11)){case 114:return _R+e+SR+jR(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _R+e+SR+jR(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _R+e+SR+jR(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _R+e+SR+e+e}return e}var SM,IM,_M=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case OR:e.return=EM(e.value,e.length);break;case RR:return gM([JR(e,{value:jR(e.value,"@","@"+_R)})],r);case NR:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return gM([JR(e,{props:[jR(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return gM([JR(e,{props:[jR(t,/:(plac\w+)/,":"+_R+"input-$1")]}),JR(e,{props:[jR(t,/:(plac\w+)/,":-moz-$1")]}),JR(e,{props:[jR(t,/:(plac\w+)/,SR+"input-$1")]})],r)}return""}))}}],AM=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||_M,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[yM,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=VR(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([CM,kM].concat(i,u));o=function(e,t,n,r){l=n,function(e){gM(dM(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new ER({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return f.sheet.hydrate(s),f};!function(){if(IM)return SM;IM=1;var e=$g(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;SM=function e(t,r,o){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var m=i(t),h=i(r),g=0;g<p.length;++g){var y=p[g];if(!(n[y]||o&&o[y]||h&&h[y]||m&&m[y])){var b=c(r,y);try{a(t,y,b)}catch(e){}}}}return t}}();function NM(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var OM=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},RM=function(e,t,n){OM(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var MM={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},TM=/[A-Z]|^ms/g,PM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,DM=function(e){return 45===e.charCodeAt(1)},jM=function(e){return null!=e&&"boolean"!=typeof e},FM=bM((function(e){return DM(e)?e:e.replace(TM,"-$&").toLowerCase()})),LM=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(PM,(function(e,t,n){return BM={name:t,styles:n,next:BM},t}))}return 1===MM[e]||DM(e)||"number"!=typeof t||0===t?t:t+"px"};function zM(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return BM={name:o.name,styles:o.styles,next:BM},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)BM={name:a.name,styles:a.styles,next:BM},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=zM(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":jM(s)&&(r+=FM(i)+":"+LM(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=zM(e,t,a);switch(i){case"animation":case"animationName":r+=FM(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)jM(a[c])&&(r+=FM(i)+":"+LM(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=BM,l=n(e);return BM=s,zM(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var BM,VM=/label:\s*([^\s;{]+)\s*(;|$)/g;function GM(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";BM=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=zM(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=zM(n,t,e[a]),r)o+=i[a]}VM.lastIndex=0;for(var s,l="";null!==(s=VM.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:BM}}var WM=!!o.useInsertionEffect&&o.useInsertionEffect||function(e){return e()},HM=o.createContext("undefined"!=typeof HTMLElement?AM({key:"css"}):null);HM.Provider;var XM,$M,ZM=function(t){return e.forwardRef((function(n,r){var o=e.useContext(HM);return t(n,o,r)}))},YM=o.createContext({}),UM={}.hasOwnProperty,JM="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",KM=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return OM(t,n,r),WM((function(){return RM(t,n,r)})),null},qM=ZM((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[JM],a=[r],s="";"string"==typeof e.className?s=NM(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=GM(a,void 0,o.useContext(YM));s+=t.key+"-"+l.name;var c={};for(var u in e)UM.call(e,u)&&"css"!==u&&u!==JM&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),o.createElement(o.Fragment,null,o.createElement(KM,{cache:t,serialized:l,isStringTag:"string"==typeof i}),o.createElement(i,c))})),QM=qM,eT=function(e,t){var n=arguments;if(null==t||!UM.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=QM,i[1]=function(e,t){var n={};for(var r in t)UM.call(t,r)&&(n[r]=t[r]);return n[JM]=e,n}(e,t);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)};function tT(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return GM(t)}function nT(){var e=tT.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}XM=eT||(eT={}),$M||($M=XM.JSX||(XM.JSX={}));var rT=e.useLayoutEffect,oT=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],iT=function(){};function aT(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function sT(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(aT(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var lT=function(e){return function(e){return Array.isArray(e)}(e)?e.filter(Boolean):"object"===iR(e)&&null!==e?[e]:[]},cT=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,cR({},mR(e,oT))},uT=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function dT(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function fT(e){return dT(e)?window.pageYOffset:e.scrollTop}function pT(e,t){dT(e)?window.scrollTo(0,t):e.scrollTop=t}function mT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:iT,o=fT(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);pT(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function hT(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?pT(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&pT(e,Math.max(t.offsetTop-o,0))}function gT(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var yT=!1,bT={get passive(){return yT=!0}},vT="undefined"!=typeof window?window:{};vT.addEventListener&&vT.removeEventListener&&(vT.addEventListener("p",iT,bT),vT.removeEventListener("p",iT,!1));var wT=yT;function xT(e){return null!=e}function CT(e,t,n){return e?t:n}var kT=["children","innerProps"],ET=["children","innerProps"];function ST(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,m=f.height,h=f.top,g=n.offsetParent.getBoundingClientRect().top,y=a?window.innerHeight:dT(u=l)?window.innerHeight:u.clientHeight,b=fT(l),v=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,C=y-h,k=x+b,E=d-b-h,S=p-y+b+v,I=b+h-w,_=160;switch(o){case"auto":case"bottom":if(C>=m)return{placement:"bottom",maxHeight:t};if(E>=m&&!a)return i&&mT(l,S,_),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&C>=r)return i&&mT(l,S,_),{placement:"bottom",maxHeight:a?C-v:E-v};if("auto"===o||a){var A=t,N=a?x:k;return N>=r&&(A=Math.min(N-v-s,t)),{placement:"top",maxHeight:A}}if("bottom"===o)return i&&pT(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(x>=m)return{placement:"top",maxHeight:t};if(k>=m&&!a)return i&&mT(l,I,_),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&x>=r){var O=t;return(!a&&k>=r||a&&x>=r)&&(O=a?x-w:k-w),i&&mT(l,I,_),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var IT,_T=function(e){return"auto"===e?"bottom":e},AT=e.createContext(null),NT=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=(e.useContext(AT)||{}).setPortalPlacement,u=e.useRef(null),d=fR(e.useState(o),2),f=d[0],p=d[1],m=fR(e.useState(null),2),h=m[0],g=m[1],y=l.spacing.controlHeight;return rT((function(){var e=u.current;if(e){var t="fixed"===a,n=ST({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:y});p(n.maxHeight),g(n.placement),null==c||c(n.placement)}}),[o,i,a,s,r,c,y]),n({ref:u,placerProps:cR(cR({},t),{},{placement:h||_T(i),maxHeight:f})})},OT=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return eT("div",gR({},uT(e,"menu",{menu:!0}),{ref:n},r),t)},RT=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return cR({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},MT=RT,TT=RT,PT=["size"],DT=["innerProps","isRtl","size"];var jT="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},FT=function(e){var t=e.size,n=mR(e,PT);return eT("svg",gR({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:jT},n))},LT=function(e){return eT(FT,gR({size:20},e),eT("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},zT=function(e){return eT(FT,gR({size:20},e),eT("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},BT=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return cR({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},VT=BT,GT=BT,WT=nT(IT||(IT=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),HT=function(e){var t=e.delay,n=e.offset;return eT("span",{css:tT({animation:"".concat(WT," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},XT=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return eT("div",gR({ref:o},uT(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},$T=["data"],ZT=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return eT("div",gR({},uT(e,"group",{group:!0}),s),eT(i,gR({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),eT("div",null,t))},YT=["innerRef","isDisabled","isHidden","inputClassName"],UT={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},JT={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":cR({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},UT)},KT=function(e){return cR({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},UT)},qT=function(e){var t=e.cx,n=e.value,r=cT(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=mR(r,YT);return eT("div",gR({},uT(e,"input",{"input-container":!0}),{"data-value":n||""}),eT("input",gR({className:t({input:!0},s),ref:o,style:KT(a),disabled:i},l)))},QT=function(e){var t=e.children,n=e.innerProps;return eT("div",n,t)};var eP=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return eT(l,{data:r,innerProps:cR(cR({},uT(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},eT(c,{data:r,innerProps:cR({},uT(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),eT(u,{data:r,innerProps:cR(cR({},uT(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},tP=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return eT("div",gR({},uT(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},nP=function(e){var t=e.children,n=e.innerProps;return eT("div",gR({},uT(e,"placeholder",{placeholder:!0}),n),t)},rP=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return eT("div",gR({},uT(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},oP={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return eT("div",gR({},uT(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||eT(LT,null))},Control:XT,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return eT("div",gR({},uT(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||eT(zT,null))},DownChevron:zT,CrossIcon:LT,Group:ZT,GroupHeading:function(e){var t=cT(e);t.data;var n=mR(t,$T);return eT("div",gR({},uT(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return eT("div",gR({},uT(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return eT("span",gR({},t,uT(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:qT,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=mR(e,DT);return eT("div",gR({},uT(cR(cR({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),eT(HT,{delay:0,offset:n}),eT(HT,{delay:160,offset:!0}),eT(HT,{delay:320,offset:!n}))},Menu:OT,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return eT("div",gR({},uT(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(n){var r=n.appendTo,o=n.children,i=n.controlElement,a=n.innerProps,s=n.menuPlacement,l=n.menuPosition,c=e.useRef(null),u=e.useRef(null),d=fR(e.useState(_T(s)),2),f=d[0],p=d[1],m=e.useMemo((function(){return{setPortalPlacement:p}}),[]),h=fR(e.useState(null),2),g=h[0],y=h[1],b=e.useCallback((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===l?0:window.pageYOffset,n=e[f]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||y({offset:n,rect:e})}}),[i,l,f,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);rT((function(){b()}),[b]);var v=e.useCallback((function(){"function"==typeof u.current&&(u.current(),u.current=null),i&&c.current&&(u.current=iv(i,c.current,b,{elementResize:"ResizeObserver"in window}))}),[i,b]);rT((function(){v()}),[v]);var w=e.useCallback((function(e){c.current=e,v()}),[v]);if(!r&&"fixed"!==l||!g)return null;var x=eT("div",gR({ref:w},uT(cR(cR({},n),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),a),o);return eT(AT.Provider,{value:m},r?t.createPortal(x,r):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=mR(e,ET);return eT("div",gR({},uT(cR(cR({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=mR(e,kT);return eT("div",gR({},uT(cR(cR({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:eP,MultiValueContainer:QT,MultiValueLabel:QT,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return eT("div",gR({role:"button"},n),t||eT(LT,{size:14}))},Option:tP,Placeholder:nP,SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return eT("div",gR({},uT(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:rP,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return eT("div",gR({},uT(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},iP=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function aP(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||iP(r)&&iP(o)))return!1;var r,o;return!0}for(var sP="production"===process.env.NODE_ENV?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},lP=function(e){return eT("span",gR({css:sP},e))},cP={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",f="".concat(l?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},uP=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,m=l.isMulti,h=l.isOptionDisabled,g=l.isSearchable,y=l.menuIsOpen,b=l.options,v=l.screenReaderStatus,w=l.tabSelectsValue,x=l.isLoading,C=l["aria-label"],k=l["aria-live"],E=e.useMemo((function(){return cR(cR({},cP),d||{})}),[d]),S=e.useMemo((function(){var e,t="";if(n&&E.onChange){var r=n.option,o=n.options,i=n.removedValue,a=n.removedValues,l=n.value,c=i||r||(e=l,Array.isArray(e)?null:e),u=c?f(c):"",d=o||a||void 0,p=d?d.map(f):[],m=cR({isDisabled:c&&h(c,s),label:u,labels:p},n);t=E.onChange(m)}return t}),[n,E,h,s,f]),I=e.useMemo((function(){var e="",t=r||o,n=!!(r&&s&&s.includes(r));if(t&&E.onFocus){var a={focused:t,label:f(t),isDisabled:h(t,s),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:s,isAppleDevice:u};e=E.onFocus(a)}return e}),[r,o,f,h,E,i,s,u]),_=e.useMemo((function(){var e="";if(y&&b.length&&!x&&E.onFilter){var t=v({count:i.length});e=E.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,y,E,b,v,x]),A="initial-input-focus"===(null==n?void 0:n.action),N=e.useMemo((function(){var e="";if(E.guidance){var t=o?"value":y?"menu":"input";e=E.guidance({"aria-label":C,context:t,isDisabled:r&&h(r,s),isMulti:m,isSearchable:g,tabSelectsValue:w,isInitialFocus:A})}return e}),[C,r,o,m,h,g,y,E,s,w,A]),O=eT(e.Fragment,null,eT("span",{id:"aria-selection"},S),eT("span",{id:"aria-focused"},I),eT("span",{id:"aria-results"},_),eT("span",{id:"aria-guidance"},N));return eT(e.Fragment,null,eT(lP,{id:c},A&&O),eT(lP,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!A&&O))},dP=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],fP=new RegExp("["+dP.map((function(e){return e.letters})).join("")+"]","g"),pP={},mP=0;mP<dP.length;mP++)for(var hP=dP[mP],gP=0;gP<hP.letters.length;gP++)pP[hP.letters[gP]]=hP.base;var yP=function(e){return e.replace(fP,(function(e){return pP[e]}))},bP=function(e,t){void 0===t&&(t=aP);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(yP),vP=function(e){return e.replace(/^\s+|\s+$/g,"")},wP=function(e){return"".concat(e.label," ").concat(e.value)},xP=["innerRef"];function CP(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=fR(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=fR(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(mR(e,xP),"onExited","in","enter","exit","appear");return eT("input",gR({ref:t},n,{css:tT({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var kP=["boxSizing","height","overflow","paddingRight","position"],EP={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function SP(e){e.cancelable&&e.preventDefault()}function IP(e){e.stopPropagation()}function _P(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function AP(){return"ontouchstart"in window||navigator.maxTouchPoints}var NP=!("undefined"==typeof window||!window.document||!window.document.createElement),OP=0,RP={capture:!1,passive:!1};var MP=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},TP="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function PP(t){var n=t.children,r=t.lockEnabled,o=t.captureEnabled,i=function(t){var n=t.isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,i=t.onTopArrive,a=t.onTopLeave,s=e.useRef(!1),l=e.useRef(!1),c=e.useRef(0),u=e.useRef(null),d=e.useCallback((function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,f=n.clientHeight,p=u.current,m=t>0,h=d-f-c,g=!1;h>t&&s.current&&(o&&o(e),s.current=!1),m&&l.current&&(a&&a(e),l.current=!1),m&&t>h?(r&&!s.current&&r(e),p.scrollTop=d,g=!0,s.current=!0):!m&&-t>c&&(i&&!l.current&&i(e),p.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,o,i,a]),f=e.useCallback((function(e){d(e,e.deltaY)}),[d]),p=e.useCallback((function(e){c.current=e.changedTouches[0].clientY}),[]),m=e.useCallback((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),h=e.useCallback((function(e){if(e){var t=!!wT&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",m,t)}}),[m,p,f]),g=e.useCallback((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",m,!1))}),[m,p,f]);return e.useEffect((function(){if(n){var e=u.current;return h(e),function(){g(e)}}}),[n,h,g]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,r=t.accountForScrollbars,o=void 0===r||r,i=e.useRef({}),a=e.useRef(null),s=e.useCallback((function(e){if(NP){var t=document.body,n=t&&t.style;if(o&&kP.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&OP<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(EP).forEach((function(e){var t=EP[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&AP()&&(t.addEventListener("touchmove",SP,RP),e&&(e.addEventListener("touchstart",_P,RP),e.addEventListener("touchmove",IP,RP))),OP+=1}}),[o]),l=e.useCallback((function(e){if(NP){var t=document.body,n=t&&t.style;OP=Math.max(OP-1,0),o&&OP<1&&kP.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&AP()&&(t.removeEventListener("touchmove",SP,RP),e&&(e.removeEventListener("touchstart",_P,RP),e.removeEventListener("touchmove",IP,RP)))}}),[o]);return e.useEffect((function(){if(n){var e=a.current;return s(e),function(){l(e)}}}),[n,s,l]),function(e){a.current=e}}({isEnabled:r});return eT(e.Fragment,null,r&&eT("div",{onClick:MP,css:TP}),n((function(e){i(e),a(e)})))}var DP="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},jP=function(e){var t=e.name,n=e.onFocus;return eT("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:DP,value:"",onChange:function(){}})};function FP(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function LP(){return FP(/^Mac/i)}function zP(){return FP(/^iPhone/i)||FP(/^iPad/i)||LP()&&navigator.maxTouchPoints>1}var BP={clearIndicator:GT,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return cR({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:VT,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return cR({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return cR({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return cR(cR({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},JT),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return cR({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:TT,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return cR((sR(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),sR(n,"position","absolute"),sR(n,"width","100%"),sR(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return cR({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return cR({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return cR({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return cR({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:MT,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return cR({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return cR({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return cR({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return cR({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},VP={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},GP={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:gT(),captureMenuScroll:!gT(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=cR({ignoreCase:!0,ignoreAccents:!0,stringify:wP,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,c=s?vP(n):n,u=s?vP(a(t)):a(t);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=bP(c),u=yP(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function WP(e,t,n,r){return{type:"option",data:t,isDisabled:KP(e,t,n),isSelected:qP(e,t,n),label:UP(e,t),value:JP(e,t),index:r}}function HP(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return WP(e,n,t,r)})).filter((function(t){return ZP(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=WP(e,n,t,r);return ZP(e,i)?i:void 0})).filter(xT)}function XP(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,kR(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function $P(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,kR(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function ZP(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!eD(e)||!i)&&QP(e,{label:a,value:s,data:o},r)}var YP=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},UP=function(e,t){return e.getOptionLabel(t)},JP=function(e,t){return e.getOptionValue(t)};function KP(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function qP(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=JP(e,t);return n.some((function(t){return JP(e,t)===r}))}function QP(e,t,n){return!e.filterOption||e.filterOption(t,n)}var eD=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},tD=1,nD=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bR(e,t)}(n,e.Component);var t=CR(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=LP()||zP(),r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(kR(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=CT(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(CT(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=CT(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return YP(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return $P(HP(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return sT.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return UP(r.props,e)},r.getOptionValue=function(e){return JP(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=BP[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,cR(cR({},oP),e.components);var e},r.buildCategorizedOptions=function(){return HP(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return XP(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:cR({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&dT(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return eD(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=r.state,m=p.focusedOption,h=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)r.removeValue(h);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!m||f&&r.isOptionSelected(m,g))return;r.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(r.isComposing)return;r.selectOption(m);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!m)return;r.selectOption(m);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++tD),r.state.selectValue=lT(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=YP(o,i[a])}return r}return function(e,t,n){t&&yR(e.prototype,t),n&&yR(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&hT(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(hT(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(VP):cR(cR({},VP),this.props.theme):VP}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return KP(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return qP(this.props,e,t)}},{key:"filterOption",value:function(e,t){return QP(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,f=d.inputIsHidden,p=d.ariaSelection,m=this.commonProps,h=r||this.getElementId("input"),g=cR(cR(cR({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(u,gR({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},g)):o.createElement(CP,gR({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:iT,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,m=u.inputValue,h=u.placeholder,g=this.state,y=g.selectValue,b=g.focusedValue,v=g.isFocused;if(!this.hasValue()||!d)return m?null:o.createElement(l,gR({},c,{key:"placeholder",isDisabled:f,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return y.map((function(t,s){var l=t===b,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,gR({},c,{components:{Container:r,Label:i,Remove:a},isFocused:l,isDisabled:f,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var w=y[0];return o.createElement(s,gR({},c,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,gR({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!e||!i)return null;return o.createElement(e,gR({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o.createElement(n,gR({},r,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,gR({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,h=p.inputValue,g=p.isLoading,y=p.loadingMessage,b=p.minMenuHeight,v=p.maxMenuHeight,w=p.menuIsOpen,x=p.menuPlacement,C=p.menuPosition,k=p.menuPortalTarget,E=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,I=p.noOptionsMessage,_=p.onMenuScrollToTop,A=p.onMenuScrollToBottom;if(!w)return null;var N,O=function(t,n){var r=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,p=f===i,m=a?void 0:function(){return e.onOptionHover(i)},h=a?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(n),y={id:g,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return o.createElement(u,gR({},d,{innerProps:y,data:i,isDisabled:a,isSelected:s,key:g,label:l,type:r,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())N=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return o.createElement(n,gR({},d,{key:l,data:i,options:a,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return O(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return O(t,"".concat(t.index))}));else if(g){var R=y({inputValue:h});if(null===R)return null;N=o.createElement(l,d,R)}else{var M=I({inputValue:h});if(null===M)return null;N=o.createElement(c,d,M)}var T={minMenuHeight:b,maxMenuHeight:v,menuPlacement:x,menuPosition:C,menuShouldScrollIntoView:S},P=o.createElement(NT,gR({},d,T),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,l=r.maxHeight;return o.createElement(i,gR({},d,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),o.createElement(PP,{captureEnabled:m,onTopArrive:_,onBottomArrive:A,lockEnabled:E},(function(t){return o.createElement(a,gR({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:f}),N)})))}));return k||"fixed"===C?o.createElement(s,gR({},d,{appendTo:k,controlElement:this.controlRef,menuPlacement:x,menuPosition:C}),P):P}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!r)return o.createElement(jP,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(i){if(n){var c=l.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:a,type:"hidden",value:c})}var u=l.length>0?l.map((function(t,n){return o.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:a,type:"hidden",value:""});return o.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return o.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return o.createElement(uP,gR({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,c=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return o.createElement(r,gR({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),o.createElement(t,gR({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),o.createElement(i,gR({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,gR({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,m=lT(u),h={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return XP(HP(e,t))}(e,m):[],y=d?$P(HP(e,m),"".concat(l,"-option")):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);h={selectValue:m,focusedOption:v,focusedOptionId:YP(y,v),focusableOptionsWithIds:y,focusedValue:b,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,C=a&&s;return a&&!C&&(x={value:CT(p,m,m[0]||null),options:m,action:"initial-input-focus"},C=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),cR(cR(cR({},h),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:C})}}]),n}();nD.defaultProps=GP;var rD=e.forwardRef((function(t,n){var r=function(t){var n=t.defaultInputValue,r=void 0===n?"":n,o=t.defaultMenuIsOpen,i=void 0!==o&&o,a=t.defaultValue,s=void 0===a?null:a,l=t.inputValue,c=t.menuIsOpen,u=t.onChange,d=t.onInputChange,f=t.onMenuClose,p=t.onMenuOpen,m=t.value,h=mR(t,hR),g=fR(e.useState(void 0!==l?l:r),2),y=g[0],b=g[1],v=fR(e.useState(void 0!==c?c:i),2),w=v[0],x=v[1],C=fR(e.useState(void 0!==m?m:s),2),k=C[0],E=C[1],S=e.useCallback((function(e,t){"function"==typeof u&&u(e,t),E(e)}),[u]),I=e.useCallback((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),b(void 0!==n?n:e)}),[d]),_=e.useCallback((function(){"function"==typeof p&&p(),x(!0)}),[p]),A=e.useCallback((function(){"function"==typeof f&&f(),x(!1)}),[f]),N=void 0!==l?l:y,O=void 0!==c?c:w,R=void 0!==m?m:k;return cR(cR({},h),{},{inputValue:N,menuIsOpen:O,onChange:S,onInputChange:I,onMenuClose:A,onMenuOpen:_,value:R})}(t);return o.createElement(nD,gR({ref:n},r))})),oD=rD;const iD=({options:t,items_per_page:n,className:r,defaultValue:i,onChange:a})=>{const[s,l]=e.useState(""),[c,u]=e.useState(0),d=t.filter((e=>e.label.toLowerCase().includes(s)||e.value.toLowerCase().includes(s)));var f;f=void 0!==n?d.slice(c*n,(c+1)*n):d;const p={control:e=>({...e,minHeight:void 0})};return o.createElement(oD,{options:f,onInputChange:e=>{l(e.toLowerCase()),u(0)},onChange:a,inputValue:s,isSearchable:!0,placeholder:"Select an option...",className:r,unstyled:!0,styles:p,classNamePrefix:"styled-select",defaultValue:i,value:i})},aD=({io:t,inputconverter:n,parser:r=e=>parseFloat(e)})=>{const i=e.useContext(FV),[a,s]=e.useState(n[1](t.value));e.useEffect((()=>{s(n[1](t.value))}),[t.value]);const l=e=>{e=r(parseFloat(e.toString()).toString()),isNaN(e)?(e="<NoValue>",s("")):(void 0!==t.value_options?.min&&e<t.value_options.min&&(e=t.value_options.min),void 0!==t.value_options?.max&&e>t.value_options.max&&(e=t.value_options.max),s(e.toString()));try{e=n[0](e)}catch(e){}i.worker?.set_io_value({nid:t.node,ioid:t.id,value:e,set_default:t.render_options.set_default})};let c=t.connected?n[1](t.value):a;return void 0===c&&(c=t.value_options?.min),void 0===c&&(c=t.value_options?.max),void 0===c&&(c=""),null===c&&(c=""),void 0!==t.value_options?.max&&void 0!==t.value_options?.min?o.createElement("div",{style:{minWidth:"100px"},className:"SliderContainer"},o.createElement(IO,{className:"SliderRoot",value:[void 0===c?t.value_options?.min:c],min:t.value_options?.min,max:t.value_options?.max,step:t.value_options.step||(t.value_options?.max-t.value_options?.min)/1e3,disabled:t.connected,onValueCommit:e=>{isNaN(e[0])||l(e[0])},onValueChange:e=>{isNaN(e[0])||s(e[0].toString())}},o.createElement(_O,{className:"SliderTrack"},o.createElement(AO,{className:"SliderRange"})),o.createElement(BO,null,o.createElement(nR,{open:!0},o.createElement(rR,{asChild:!0},o.createElement(NO,{className:"SliderThumb"})),o.createElement(oR,{className:"SliderTooltipContent"},c))))):o.createElement("input",{type:"text",className:"nodedatainput styledinput numberinput",value:c,onChange:e=>s(e.target.value),onBlur:e=>{l(e.target.value)},onKeyDown:e=>{if("ArrowUp"!==e.key)if("ArrowDown"!==e.key)/^[0-9.eE+-]$/.test(e.key)||["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(e.key)||e.preventDefault();else{let n=t.value_options?.step||1;e.shiftKey&&(n*=10);let r=(parseFloat(c)||0)-n;l(r)}else{let n=t.value_options?.step||1;e.shiftKey&&(n*=10);let r=(parseFloat(c)||0)+n;l(r)}},disabled:t.connected,step:t.value_options?.step,min:t.value_options?.min,max:t.value_options?.max})},sD=({io:t,inputconverter:n})=>{const r=e.useContext(FV),[i,a]=e.useState(n[1](t.value));e.useEffect((()=>{a(n[1](t.value))}),[t.value]);let s=t.connected?n[1](t.value):i;return null==s&&(s=""),o.createElement("input",{className:"nodedatainput styledinput stringinput",value:s,onChange:e=>a(e.target.value),onBlur:e=>{let o=e.target.value;o||(o="<NoValue>");try{o=n[0](o)}catch(e){}r.worker?.set_io_value({nid:t.node,ioid:t.id,value:o,set_default:t.render_options.set_default})},disabled:t.connected})},lD=e=>e,cD=e=>parseFloat(e),uD=e=>!!e,dD=e=>"null"===e?null:e,fD=({io:t,inputconverter:n,parser:r})=>{let i=t.value_options?.options||[];Array.isArray(i)&&(i={type:"enum",values:i,keys:i.map((e=>null===e?"None":e.toString())),nullable:!1}),"enum"!==i.type&&(i={type:"enum",values:Object.values(i),keys:Object.keys(i),nullable:!1}),!i.nullable||i.values.includes(null)||i.keys.includes("None")||(i.values.unshift(null),i.keys.unshift("None"));const a=[];for(let e=0;e<i.values.length;e++){const t=null===i.values[e]||void 0===i.values[e]?"undefined":typeof i.values[e];let n=i.values[e];null===n&&(n="null"),void 0===n&&(n="undefined"),a.push([i.keys[e],n.toString(),t])}const s=e.useContext(FV),l=({value:e,datatype:o})=>{const i=r||(e=>"nuinputconvertermber"===e?cD:"boolean"===e?uD:"undefined"===e?dD:lD)(o);let a=i(e);try{a=n[0](e)}catch(e){}s.worker?.set_io_value({nid:t.node,ioid:t.id,value:a,set_default:t.render_options.set_default})};let c=t.value;null===c&&(c="null"),void 0===c&&(c="undefined");const u=a.find((e=>e[1]===c.toString()));let d;void 0!==u&&(d={value:u[1],label:u[0],datatype:u[2]});const f=a.map((e=>({value:e[1],label:e[0],datatype:e[2]})));return o.createElement(iD,{className:"nodedatainput styleddropdown",options:f,defaultValue:d,onChange:e=>{l(null!==e?e:{value:"<NoValue>",datatype:"string"})}})},pD=e=>!!e&&e instanceof Date,mD=e=>!!e&&e instanceof Object&&"function"==typeof e;function hD(e,t){return void 0===t&&(t=!1),!e||t?`"${e}"`:e}function gD(t){let{field:n,value:r,data:o,lastElement:i,openBracket:a,closeBracket:s,level:l,style:c,shouldExpandNode:u,clickToExpandNode:d,outerRef:f}=t;const p=e.useRef(!1),[m,h,g]=function(t){const[n,r]=e.useState(t());return[n,()=>r((e=>!e)),r]}((()=>u(l,r,n))),y=e.useRef(null);e.useEffect((()=>{p.current?g(u(l,r,n)):p.current=!0}),[u]);const b=m?c.collapseIcon:c.expandIcon,v=m?"collapse JSON":"expand JSON",w=e.useId(),x=l+1,C=o.length-1,k=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),g("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const t="ArrowUp"===e.key?-1:1;if(!f.current)return;const n=f.current.querySelectorAll("[role=button]");let r=-1;for(let e=0;e<n.length;e++)if(0===n[e].tabIndex){r=e;break}if(r<0)return;const o=(r+t+n.length)%n.length;n[r].tabIndex=-1,n[o].tabIndex=0,n[o].focus()}},E=()=>{var e;h();const t=y.current;if(!t)return;const n=null===(e=f.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');n&&(n.tabIndex=-1),t.tabIndex=0,t.focus()};return e.createElement("div",{className:c.basicChildStyle,role:"treeitem","aria-expanded":m,"aria-selected":void 0},e.createElement("span",{className:b,onClick:E,onKeyDown:k,role:"button","aria-label":v,"aria-expanded":m,"aria-controls":m?w:void 0,ref:y,tabIndex:0===l?0:-1}),(n||""===n)&&(d?e.createElement("span",{className:c.clickableLabel,onClick:E,onKeyDown:k},hD(n,c.quotesForFieldNames),":"):e.createElement("span",{className:c.label},hD(n,c.quotesForFieldNames),":")),e.createElement("span",{className:c.punctuation},a),m?e.createElement("ul",{id:w,role:"group",className:c.childFieldsContainer},o.map(((t,n)=>e.createElement(xD,{key:t[0]||n,field:t[0],value:t[1],style:c,lastElement:n===C,level:x,shouldExpandNode:u,clickToExpandNode:d,outerRef:f})))):e.createElement("span",{className:c.collapsedContent,onClick:E,onKeyDown:k}),e.createElement("span",{className:c.punctuation},s),!i&&e.createElement("span",{className:c.punctuation},","))}function yD(t){let{field:n,openBracket:r,closeBracket:o,lastElement:i,style:a}=t;return e.createElement("div",{className:a.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&e.createElement("span",{className:a.label},hD(n,a.quotesForFieldNames),":"),e.createElement("span",{className:a.punctuation},r),e.createElement("span",{className:a.punctuation},o),!i&&e.createElement("span",{className:a.punctuation},","))}function bD(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:i,clickToExpandNode:a,level:s,outerRef:l}=e;return 0===Object.keys(n).length?yD({field:t,openBracket:"{",closeBracket:"}",lastElement:o,style:r}):gD({field:t,value:n,lastElement:o||!1,level:s,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:i,clickToExpandNode:a,data:Object.keys(n).map((e=>[e,n[e]])),outerRef:l})}function vD(e){let{field:t,value:n,style:r,lastElement:o,level:i,shouldExpandNode:a,clickToExpandNode:s,outerRef:l}=e;return 0===n.length?yD({field:t,openBracket:"[",closeBracket:"]",lastElement:o,style:r}):gD({field:t,value:n,lastElement:o||!1,level:i,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:a,clickToExpandNode:s,data:n.map((e=>[void 0,e])),outerRef:l})}function wD(t){let n,{field:r,value:o,style:i,lastElement:a}=t,s=i.otherValue;var l;return null===o?(n="null",s=i.nullValue):void 0===o?(n="undefined",s=i.undefinedValue):"string"==typeof(l=o)||l instanceof String?(n=function(e,t){return t?`"${e}"`:e}(o,!i.noQuotesForStringValues),s=i.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(o)?(n=o?"true":"false",s=i.booleanValue):(e=>"number"==typeof e||e instanceof Number)(o)?(n=o.toString(),s=i.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(o)?(n=`${o.toString()}n`,s=i.numberValue):n=pD(o)?o.toISOString():mD(o)?"function() { }":o.toString(),e.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(r||""===r)&&e.createElement("span",{className:i.label},hD(r,i.quotesForFieldNames),":"),e.createElement("span",{className:s},n),!a&&e.createElement("span",{className:i.punctuation},","))}function xD(t){const n=t.value;return r=n,Array.isArray(r)?e.createElement(vD,Object.assign({},t)):!(e=>"object"==typeof e&&null!==e)(n)||pD(n)||mD(n)?e.createElement(wD,Object.assign({},t)):e.createElement(bD,Object.assign({},t));var r}var CD="_2bkNM",kD="_1BXBN";const ED={container:"_2IvMF _GzYRV",basicChildStyle:CD,childFieldsContainer:kD,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},SD={container:"_11RoI _GzYRV",basicChildStyle:CD,childFieldsContainer:kD,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},ID=()=>!0,_D=e=>e<1,AD=t=>{let{data:n,style:r=ED,shouldExpandNode:o=ID,clickToExpandNode:i=!1,...a}=t;const s=e.useRef(null);return e.createElement("div",Object.assign({"aria-label":"JSON view"},a,{className:r.container,ref:s,role:"tree"}),e.createElement(xD,{value:n,style:{...ED,...r},lastElement:!0,level:0,shouldExpandNode:o,clickToExpandNode:i,outerRef:s}))};function ND(e){if(null==e)return!1;if("object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype)&&function(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}(e)}const OD=({data:e})=>o.createElement(AD,{data:ND(e)?"":e,style:SD,shouldExpandNode:_D});function RD(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=RD(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function MD(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=RD(e))&&(r&&(r+=" "),r+=t);return r}function TD(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let e=0;e<i.length;e+=1){const r=i[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[o]=a}return r}const PD=o.createContext();function DD(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach((e=>n.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${n} for the full message.`}function jD(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":DD(7));return e.charAt(0).toUpperCase()+e.slice(1)}"production"!==process.env.NODE_ENV&&(PD.displayName="TableContext");var FD,LD={exports:{}},zD={};function BD(){if(FD)return zD;FD=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),p=Symbol.for("react.client.reference");function m(f){if("object"==typeof f&&null!==f){var p=f.$$typeof;switch(p){case e:switch(f=f.type){case n:case o:case r:case l:case c:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case u:case i:return f;default:return p}}case t:return p}}}return zD.ContextConsumer=i,zD.ContextProvider=a,zD.Element=e,zD.ForwardRef=s,zD.Fragment=n,zD.Lazy=d,zD.Memo=u,zD.Portal=t,zD.Profiler=o,zD.StrictMode=r,zD.Suspense=l,zD.SuspenseList=c,zD.isContextConsumer=function(e){return m(e)===i},zD.isContextProvider=function(e){return m(e)===a},zD.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},zD.isForwardRef=function(e){return m(e)===s},zD.isFragment=function(e){return m(e)===n},zD.isLazy=function(e){return m(e)===d},zD.isMemo=function(e){return m(e)===u},zD.isPortal=function(e){return m(e)===t},zD.isProfiler=function(e){return m(e)===o},zD.isStrictMode=function(e){return m(e)===r},zD.isSuspense=function(e){return m(e)===l},zD.isSuspenseList=function(e){return m(e)===c},zD.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},zD.typeOf=m,zD}var VD,GD,WD={};
|
|
61
|
+
*/const yy={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},by={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},vy={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},wy={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},xy={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},Cy={prefix:"fas",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"]},ky={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]},Ey={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64l128 0 0 64-128 0 0-64zM240 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l48 0 0 32L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 256 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-256 0 0-32 48 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48L240 0zM96 448l0-64 128 0 0 64L96 448zm320-64l128 0 0 64-128 0 0-64z"]},Sy={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Iy={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},_y={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},Ay={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Ny={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},Oy={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},Ry={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]};kg.autoAddCss=!1;const My=e=>{const{style:t,...n}=e;return o.createElement("span",{style:{marginLeft:"5px",...t}},o.createElement(hy,{...n}))},Ty=e=>o.createElement(My,{...e,icon:by}),Py=e=>o.createElement(My,{...e,icon:Oy}),Dy=e=>o.createElement(My,{...e,icon:Ny}),jy=e=>o.createElement(My,{...e,icon:_y}),Fy=e=>o.createElement(My,{...e,icon:vy}),Ly=e=>o.createElement(My,{...e,icon:yy}),zy=e=>o.createElement(My,{...e,icon:Ry}),By=e=>o.createElement(My,{...e,icon:Iy}),Vy=e=>o.createElement(My,{...e,icon:xy}),Gy=Vy,Wy=e=>o.createElement(My,{...e,icon:Ay}),Hy=e=>o.createElement(My,{...e,icon:ky}),Xy=e=>o.createElement(My,{...e,icon:wy}),$y=e=>o.createElement(My,{...e,icon:Ey}),Zy=e=>o.createElement(My,{...e,icon:Cy}),Yy=e=>o.createElement(My,{...e,icon:Sy}),Uy=({trigger:e,title:t,description:n,children:r,closebutton:i=!0,onOpenChange:a,buttons:s=[],open:l,setOpen:c,modal:u=!0})=>{const d=o.useContext(zV).local_state((e=>e.funcnodescontainerRef)),f=o.createElement(op,{asChild:!0},o.createElement("div",{className:"dialogconent funcnodescontainer"},t&&o.createElement(ip,{className:"dialogtitle"},t),o.createElement(ap,{className:"dialogdescription"},n),o.createElement("div",{className:"dialogchildren"},r),o.createElement("div",{style:{display:"flex",marginTop:25,justifyContent:"flex-end"}},(s||[]).map(((e,t)=>o.createElement(sp,{asChild:!0,key:t},o.createElement("button",{className:"dialogsendbutton",onClick:e.onClick},e.text))))),i&&o.createElement(sp,{asChild:!0},o.createElement("button",{className:"dialogclosebutton","aria-label":"Close"},o.createElement(Wy,null)))));return o.createElement(ep,{open:l,onOpenChange:e=>{c&&c(e),a&&a(e)},modal:u},e&&o.createElement(tp,{asChild:!0},e),o.createElement(np,{container:d},o.createElement(rp,{className:"dialogoverlay funcnodescontainer"}),f))};function Jy(t){const n=t+"CollectionProvider",[r,o]=Vu(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=t=>{const{scope:n,children:r}=t,o=e.useRef(null),a=e.useRef(new Map).current;return Bu.jsx(i,{scope:n,itemMap:a,collectionRef:o,children:r})};s.displayName=n;const l=t+"CollectionSlot",c=e.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Mu(t,a(l,n).collectionRef);return Bu.jsx(Uu,{ref:o,children:r})}));c.displayName=l;const u=t+"CollectionItemSlot",d="data-radix-collection-item",f=e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,s=e.useRef(null),l=Mu(n,s),c=a(u,r);return e.useEffect((()=>(c.itemMap.set(s,{ref:s,...i}),()=>{c.itemMap.delete(s)}))),Bu.jsx(Uu,{[d]:"",ref:l,children:o})}));return f.displayName=u,[{Provider:s,Slot:c,ItemSlot:f},function(n){const r=a(t+"CollectionConsumer",n);return e.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}var Ky=o.createContext(void 0);function qy(e){const t=o.useContext(Ky);return e||t||"ltr"}const Qy=["top","right","bottom","left"],eb=Math.min,tb=Math.max,nb=Math.round,rb=Math.floor,ob=e=>({x:e,y:e}),ib={left:"right",right:"left",bottom:"top",top:"bottom"},ab={start:"end",end:"start"};function sb(e,t,n){return tb(e,eb(t,n))}function lb(e,t){return"function"==typeof e?e(t):e}function cb(e){return e.split("-")[0]}function ub(e){return e.split("-")[1]}function db(e){return"x"===e?"y":"x"}function fb(e){return"y"===e?"height":"width"}function pb(e){return["top","bottom"].includes(cb(e))?"y":"x"}function mb(e){return db(pb(e))}function hb(e){return e.replace(/start|end/g,(e=>ab[e]))}function gb(e){return e.replace(/left|right|bottom|top/g,(e=>ib[e]))}function yb(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function bb(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function vb(e,t,n){let{reference:r,floating:o}=e;const i=pb(t),a=mb(t),s=fb(a),l=cb(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ub(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function wb(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=lb(t,e),m=yb(p),h=s[f?"floating"===d?"reference":"floating":d],g=bb(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=bb(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-w.top+m.top)/v.y,bottom:(w.bottom-g.bottom+m.bottom)/v.y,left:(g.left-w.left+m.left)/v.x,right:(w.right-g.right+m.right)/v.x}}function xb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cb(e){return Qy.some((t=>e[t]>=0))}function kb(){return"undefined"!=typeof window}function Eb(e){return _b(e)?(e.nodeName||"").toLowerCase():"#document"}function Sb(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ib(e){var t;return null==(t=(_b(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function _b(e){return!!kb()&&(e instanceof Node||e instanceof Sb(e).Node)}function Ab(e){return!!kb()&&(e instanceof Element||e instanceof Sb(e).Element)}function Nb(e){return!!kb()&&(e instanceof HTMLElement||e instanceof Sb(e).HTMLElement)}function Ob(e){return!(!kb()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Sb(e).ShadowRoot)}function Rb(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Fb(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Mb(e){return["table","td","th"].includes(Eb(e))}function Tb(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Pb(e){const t=Db(),n=Ab(e)?Fb(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Db(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function jb(e){return["html","body","#document"].includes(Eb(e))}function Fb(e){return Sb(e).getComputedStyle(e)}function Lb(e){return Ab(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zb(e){if("html"===Eb(e))return e;const t=e.assignedSlot||e.parentNode||Ob(e)&&e.host||Ib(e);return Ob(t)?t.host:t}function Bb(e){const t=zb(e);return jb(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nb(t)&&Rb(t)?t:Bb(t)}function Vb(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Bb(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Sb(o);if(i){const e=Gb(a);return t.concat(a,a.visualViewport||[],Rb(o)?o:[],e&&n?Vb(e):[])}return t.concat(o,Vb(o,[],n))}function Gb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wb(e){const t=Fb(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Nb(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=nb(n)!==i||nb(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Hb(e){return Ab(e)?e:e.contextElement}function Xb(e){const t=Hb(e);if(!Nb(t))return ob(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Wb(t);let a=(i?nb(n.width):n.width)/r,s=(i?nb(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const $b=ob(0);function Zb(e){const t=Sb(e);return Db()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:$b}function Yb(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Hb(e);let a=ob(1);t&&(r?Ab(r)&&(a=Xb(r)):a=Xb(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Sb(e))&&t}(i,n,r)?Zb(i):ob(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Sb(i),t=r&&Ab(r)?Sb(r):r;let n=e,o=Gb(n);for(;o&&r&&t!==n;){const e=Xb(o),t=o.getBoundingClientRect(),r=Fb(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Sb(o),o=Gb(n)}}return bb({width:u,height:d,x:l,y:c})}function Ub(e,t){const n=Lb(e).scrollLeft;return t?t.left+n:Yb(Ib(e)).left+n}function Jb(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Ub(e,r)),y:r.top+t.scrollTop}}function Kb(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Sb(e),r=Ib(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Db();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Ib(e),n=Lb(e),r=e.ownerDocument.body,o=tb(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=tb(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ub(e);const s=-n.scrollTop;return"rtl"===Fb(r).direction&&(a+=tb(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Ib(e));else if(Ab(t))r=function(e,t){const n=Yb(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Nb(e)?Xb(e):ob(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Zb(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return bb(r)}function qb(e,t){const n=zb(e);return!(n===t||!Ab(n)||jb(n))&&("fixed"===Fb(n).position||qb(n,t))}function Qb(e,t,n){const r=Nb(t),o=Ib(t),i="fixed"===n,a=Yb(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ob(0);if(r||!r&&!i)if(("body"!==Eb(t)||Rb(o))&&(s=Lb(t)),r){const e=Yb(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Ub(o));const c=!o||r||i?ob(0):Jb(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function ev(e){return"static"===Fb(e).position}function tv(e,t){if(!Nb(e)||"fixed"===Fb(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ib(e)===n&&(n=n.ownerDocument.body),n}function nv(e,t){const n=Sb(e);if(Tb(e))return n;if(!Nb(e)){let t=zb(e);for(;t&&!jb(t);){if(Ab(t)&&!ev(t))return t;t=zb(t)}return n}let r=tv(e,t);for(;r&&Mb(r)&&ev(r);)r=tv(r,t);return r&&jb(r)&&ev(r)&&!Pb(r)?n:r||function(e){let t=zb(e);for(;Nb(t)&&!jb(t);){if(Pb(t))return t;if(Tb(t))return null;t=zb(t)}return null}(e)||n}const rv={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Ib(r),s=!!t&&Tb(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=ob(1);const u=ob(0),d=Nb(r);if((d||!d&&!i)&&(("body"!==Eb(r)||Rb(a))&&(l=Lb(r)),Nb(r))){const e=Yb(r);c=Xb(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?ob(0):Jb(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Ib,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Tb(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Vb(e,[],!1).filter((e=>Ab(e)&&"body"!==Eb(e))),o=null;const i="fixed"===Fb(e).position;let a=i?zb(e):e;for(;Ab(a)&&!jb(a);){const t=Fb(a),n=Pb(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Rb(a)&&!n&&qb(e,a))?r=r.filter((e=>e!==a)):o=t,a=zb(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],l=a.reduce(((e,n)=>{const r=Kb(t,n,o);return e.top=tb(r.top,e.top),e.right=eb(r.right,e.right),e.bottom=eb(r.bottom,e.bottom),e.left=tb(r.left,e.left),e}),Kb(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:nv,getElementRects:async function(e){const t=this.getOffsetParent||nv,n=this.getDimensions,r=await n(e.floating);return{reference:Qb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Wb(e);return{width:t,height:n}},getScale:Xb,isElement:Ab,isRTL:function(e){return"rtl"===Fb(e).direction}};function ov(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iv(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Hb(e),u=o||i?[...c?Vb(c):[],...Vb(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=Ib(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const m={rootMargin:-rb(d)+"px "+-rb(o.clientWidth-(u+f))+"px "+-rb(o.clientHeight-(d+p))+"px "+-rb(u)+"px",threshold:tb(0,eb(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||ov(c,e.getBoundingClientRect())||a(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let h=l?Yb(e):null;return l&&function t(){const r=Yb(e);h&&!ov(h,r)&&n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const av=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=cb(n),s=ub(n),l="y"===pb(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=lb(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},sv=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=lb(e,t),c={x:n,y:r},u=await wb(t,l),d=pb(cb(o)),f=db(d);let p=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";p=sb(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";m=sb(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:a}}}}}},lv=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=lb(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=cb(o),b=pb(s),v=cb(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(v||!h?[gb(s)]:function(e){const t=gb(e);return[hb(e),t,hb(t)]}(s)),C="none"!==m;!f&&C&&x.push(...function(e,t,n,r){const o=ub(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(cb(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(hb)))),i}(s,h,m,w));const k=[s,...x],E=await wb(t,g),S=[];let I=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(E[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ub(e),o=mb(e),i=fb(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=gb(a)),[a,gb(a)]}(o,a,w);S.push(E[e[0]],E[e[1]])}if(I=[...I,{placement:o,overflows:S}],!S.every((e=>e<=0))){var _,A;const e=((null==(_=i.flip)?void 0:_.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(A=I.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var N;const e=null==(N=I.filter((e=>{if(C){const t=pb(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},cv=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=lb(e,t),u=await wb(t,c),d=cb(o),f=ub(o),p="y"===pb(o),{width:m,height:h}=i.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===f?"top":"bottom");const b=h-u.top-u.bottom,v=m-u.left-u.right,w=eb(h-u[g],b),x=eb(m-u[y],v),C=!t.middlewareData.shift;let k=w,E=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=b),C&&!f){const e=tb(u.left,0),t=tb(u.right,0),n=tb(u.top,0),r=tb(u.bottom,0);p?E=m-2*(0!==e||0!==t?e+t:tb(u.left,u.right)):k=h-2*(0!==n||0!==r?n+r:tb(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:k});const S=await a.getDimensions(s.floating);return m!==S.width||h!==S.height?{reset:{rects:!0}}:{}}}},uv=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=lb(e,t);switch(r){case"referenceHidden":{const e=xb(await wb(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Cb(e)}}}case"escaped":{const e=xb(await wb(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Cb(e)}}}default:return{}}}}},dv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=lb(e,t)||{};if(null==c)return{};const d=yb(u),f={x:n,y:r},p=mb(o),m=fb(p),h=await a.getDimensions(c),g="y"===p,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let k=C?C[v]:0;k&&await(null==a.isElement?void 0:a.isElement(C))||(k=s.floating[v]||i.floating[m]);const E=w/2-x/2,S=k/2-h[m]/2-1,I=eb(d[y],S),_=eb(d[b],S),A=I,N=k-h[m]-_,O=k/2-h[m]/2+E,R=sb(A,O,N),M=!l.arrow&&null!=ub(o)&&O!==R&&i.reference[m]/2-(O<A?I:_)-h[m]/2<0,T=M?O<A?O-A:O-N:0;return{[p]:f[p]+T,data:{[p]:R,centerOffset:O-R-T,...M&&{alignmentOffset:T}},reset:M}}}),fv=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=lb(e,t),u={x:n,y:r},d=pb(o),f=db(d);let p=u[f],m=u[d];const h=lb(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var y,b;const e="y"===f?"width":"height",t=["top","left"].includes(cb(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(y=a.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},pv=(e,t,n)=>{const r=new Map,o={platform:rv,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=vb(c,r,l),f=r,p={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:y,data:b,reset:v}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,p={...p,[i]:{...p[i],...b}},v&&m<=50&&(m++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:d}=vb(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var mv="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function hv(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!hv(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!hv(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function gv(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yv(e,t){const n=gv(e);return Math.round(t*n)/n}function bv(e){const t=o.useRef(e);return mv((()=>{t.current=e})),t}const vv=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?dv({element:n.current,padding:r}).fn(t):{}:n?dv({element:n,padding:r}).fn(t):{};var o}}),wv=(e,t)=>({...av(e),options:[e,t]}),xv=(e,t)=>({...sv(e),options:[e,t]}),Cv=(e,t)=>({...fv(e),options:[e,t]}),kv=(e,t)=>({...lv(e),options:[e,t]}),Ev=(e,t)=>({...cv(e),options:[e,t]}),Sv=(e,t)=>({...uv(e),options:[e,t]}),Iv=(e,t)=>({...vv(e),options:[e,t]});var _v=o.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return Bu.jsx(Qu.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Bu.jsx("polygon",{points:"0,0 30,0 15,10"})})}));_v.displayName="Arrow";var Av=_v;function Nv(e){const[t,n]=o.useState(void 0);return Wu((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}var Ov="Popper",[Rv,Mv]=Vu(Ov),[Tv,Pv]=Rv(Ov),Dv=e=>{const{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return Bu.jsx(Tv,{scope:t,anchor:r,onAnchorChange:i,children:n})};Dv.displayName=Ov;var jv="PopperAnchor",Fv=o.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=Pv(jv,n),s=o.useRef(null),l=Mu(t,s);return o.useEffect((()=>{a.onAnchorChange(r?.current||s.current)})),r?null:Bu.jsx(Qu.div,{...i,ref:l})}));Fv.displayName=jv;var Lv="PopperContent",[zv,Bv]=Rv(Lv),Vv=o.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:g,...y}=e,b=Pv(Lv,n),[v,w]=o.useState(null),x=Mu(t,(e=>w(e))),[C,k]=o.useState(null),E=Nv(C),S=E?.width??0,I=E?.height??0,_=r+("center"!==s?"-"+s:""),A="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},N=Array.isArray(d)?d:[d],O=N.length>0,R={padding:A,boundary:N.filter(Xv),altBoundary:O},{refs:M,floatingStyles:T,placement:P,isPositioned:D,middlewareData:j}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,p]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=o.useState(r);hv(m,r)||h(r);const[g,y]=o.useState(null),[b,v]=o.useState(null),w=o.useCallback((e=>{e!==E.current&&(E.current=e,y(e))}),[]),x=o.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),C=s||g,k=l||b,E=o.useRef(null),S=o.useRef(null),I=o.useRef(f),_=null!=u,A=bv(u),N=bv(a),O=bv(d),R=o.useCallback((()=>{if(!E.current||!S.current)return;const e={placement:t,strategy:n,middleware:m};N.current&&(e.platform=N.current),pv(E.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==O.current};M.current&&!hv(I.current,t)&&(I.current=t,i.flushSync((()=>{p(t)})))}))}),[m,t,n,N,O]);mv((()=>{!1===d&&I.current.isPositioned&&(I.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const M=o.useRef(!1);mv((()=>(M.current=!0,()=>{M.current=!1})),[]),mv((()=>{if(C&&(E.current=C),k&&(S.current=k),C&&k){if(A.current)return A.current(C,k,R);R()}}),[C,k,R,A,_]);const T=o.useMemo((()=>({reference:E,floating:S,setReference:w,setFloating:x})),[w,x]),P=o.useMemo((()=>({reference:C,floating:k})),[C,k]),D=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=yv(P.floating,f.x),r=yv(P.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...gv(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,P.floating,f.x,f.y]);return o.useMemo((()=>({...f,update:R,refs:T,elements:P,floatingStyles:D})),[f,R,T,P,D])}({strategy:"fixed",placement:_,whileElementsMounted:(...e)=>iv(...e,{animationFrame:"always"===h}),elements:{reference:b.anchor},middleware:[wv({mainAxis:a+I,alignmentAxis:l}),u&&xv({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?Cv():void 0,...R}),u&&kv({...R}),Ev({...R,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),C&&Iv({element:C,padding:c}),$v({arrowWidth:S,arrowHeight:I}),m&&Sv({strategy:"referenceHidden",...R})]}),[F,L]=Zv(P),z=Zu(g);Wu((()=>{D&&z?.()}),[D,z]);const B=j.arrow?.x,V=j.arrow?.y,G=0!==j.arrow?.centerOffset,[W,H]=o.useState();return Wu((()=>{v&&H(window.getComputedStyle(v).zIndex)}),[v]),Bu.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:D?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Bu.jsx(zv,{scope:n,placedSide:F,onArrowChange:k,arrowX:B,arrowY:V,shouldHideArrow:G,children:Bu.jsx(Qu.div,{"data-side":F,"data-align":L,...y,ref:x,style:{...y.style,animation:D?void 0:"none"}})})})}));Vv.displayName=Lv;var Gv="PopperArrow",Wv={top:"bottom",right:"left",bottom:"top",left:"right"},Hv=o.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=Bv(Gv,n),i=Wv[o.placedSide];return Bu.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:Bu.jsx(Av,{...r,ref:t,style:{...r.style,display:"block"}})})}));function Xv(e){return null!==e}Hv.displayName=Gv;var $v=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=Zv(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===l?(p=i?u:`${d}px`,m=-s+"px"):"top"===l?(p=i?u:`${d}px`,m=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",m=i?u:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,m=i?u:`${f}px`),{data:{x:p,y:m}}}});function Zv(e){const[t,n="center"]=e.split("-");return[t,n]}var Yv=Dv,Uv=Fv,Jv=Vv,Kv=Hv,qv="rovingFocusGroup.onEntryFocus",Qv={bubbles:!1,cancelable:!0},ew="RovingFocusGroup",[tw,nw,rw]=Jy(ew),[ow,iw]=Vu(ew,[rw]),[aw,sw]=ow(ew),lw=o.forwardRef(((e,t)=>Bu.jsx(tw.Provider,{scope:e.__scopeRovingFocusGroup,children:Bu.jsx(tw.Slot,{scope:e.__scopeRovingFocusGroup,children:Bu.jsx(cw,{...e,ref:t})})})));lw.displayName=ew;var cw=o.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,p=o.useRef(null),m=Mu(t,p),h=qy(a),[g=null,y]=Yu({prop:s,defaultProp:l,onChange:c}),[b,v]=o.useState(!1),w=Zu(u),x=nw(n),C=o.useRef(!1),[k,E]=o.useState(0);return o.useEffect((()=>{const e=p.current;if(e)return e.addEventListener(qv,w),()=>e.removeEventListener(qv,w)}),[w]),Bu.jsx(aw,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:g,onItemFocus:o.useCallback((e=>y(e)),[y]),onItemShiftTab:o.useCallback((()=>v(!0)),[]),onFocusableItemAdd:o.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:o.useCallback((()=>E((e=>e-1))),[]),children:Bu.jsx(Qu.div,{tabIndex:b||0===k?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:Nu(e.onMouseDown,(()=>{C.current=!0})),onFocus:Nu(e.onFocus,(e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(qv,Qv);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter((e=>e.focusable));pw([e.find((e=>e.active)),e.find((e=>e.id===g)),...e].filter(Boolean).map((e=>e.ref.current)),d)}}C.current=!1})),onBlur:Nu(e.onBlur,(()=>v(!1)))})})})),uw="RovingFocusGroupItem",dw=o.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...s}=e,l=$u(),c=a||l,u=sw(uw,n),d=u.currentTabStopId===c,f=nw(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=u;return o.useEffect((()=>{if(r)return p(),()=>m()}),[r,p,m]),Bu.jsx(tw.ItemSlot,{scope:n,id:c,focusable:r,active:i,children:Bu.jsx(Qu.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Nu(e.onMouseDown,(e=>{r?u.onItemFocus(c):e.preventDefault()})),onFocus:Nu(e.onFocus,(()=>u.onItemFocus(c))),onKeyDown:Nu(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:fw[r]}(e,u.orientation,u.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=u.loop?function(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}(n,r+1):n.slice(r+1)}setTimeout((()=>pw(n)))}}))})})}));dw.displayName=uw;var fw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pw(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var mw=lw,hw=dw,gw=["Enter"," "],yw=["ArrowUp","PageDown","End"],bw=["ArrowDown","PageUp","Home",...yw],vw={ltr:[...gw,"ArrowRight"],rtl:[...gw,"ArrowLeft"]},ww={ltr:["ArrowLeft"],rtl:["ArrowRight"]},xw="Menu",[Cw,kw,Ew]=Jy(xw),[Sw,Iw]=Vu(xw,[Ew,Mv,iw]),_w=Mv(),Aw=iw(),[Nw,Ow]=Sw(xw),[Rw,Mw]=Sw(xw),Tw=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:s=!0}=e,l=_w(t),[c,u]=o.useState(null),d=o.useRef(!1),f=Zu(a),p=qy(i);return o.useEffect((()=>{const e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),Bu.jsx(Yv,{...l,children:Bu.jsx(Nw,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:u,children:Bu.jsx(Rw,{scope:t,onClose:o.useCallback((()=>f(!1)),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:r})})})};Tw.displayName=xw;var Pw=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=_w(n);return Bu.jsx(Uv,{...o,...r,ref:t})}));Pw.displayName="MenuAnchor";var[Dw,jw]=Sw("MenuPortal",{forceMount:void 0}),Fw="MenuContent",[Lw,zw]=Sw(Fw),Bw=o.forwardRef(((e,t)=>{const n=jw(Fw,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Ow(Fw,e.__scopeMenu),a=Mw(Fw,e.__scopeMenu);return Bu.jsx(Cw.Provider,{scope:e.__scopeMenu,children:Bu.jsx(xd,{present:r||i.open,children:Bu.jsx(Cw.Slot,{scope:e.__scopeMenu,children:a.modal?Bu.jsx(Vw,{...o,ref:t}):Bu.jsx(Gw,{...o,ref:t})})})})})),Vw=o.forwardRef(((e,t)=>{const n=Ow(Fw,e.__scopeMenu),r=o.useRef(null),i=Mu(t,r);return o.useEffect((()=>{const e=r.current;if(e)return xf(e)}),[]),Bu.jsx(Ww,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Nu(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})})),Gw=o.forwardRef(((e,t)=>{const n=Ow(Fw,e.__scopeMenu);return Bu.jsx(Ww,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})})),Ww=o.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,disableOutsideScroll:h,...g}=e,y=Ow(Fw,n),b=Mw(Fw,n),v=_w(n),w=Aw(n),x=kw(n),[C,k]=o.useState(null),E=o.useRef(null),S=Mu(t,E,y.onContentChange),I=o.useRef(0),_=o.useRef(""),A=o.useRef(0),N=o.useRef(null),O=o.useRef("right"),R=o.useRef(0),M=h?mf:o.Fragment,T=h?{as:Uu,allowPinchZoom:!0}:void 0,P=e=>{const t=_.current+e,n=x().filter((e=>!e.disabled)),r=document.activeElement,o=n.find((e=>e.ref.current===r))?.textValue,i=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=function(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}(e,Math.max(i,0));1===o.length&&(a=a.filter((e=>e!==n)));const s=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return s!==n?s:void 0}(n.map((e=>e.textValue)),t,o),a=n.find((e=>e.textValue===i))?.ref.current;!function e(t){_.current=t,window.clearTimeout(I.current),""!==t&&(I.current=window.setTimeout((()=>e("")),1e3))}(t),a&&setTimeout((()=>a.focus()))};o.useEffect((()=>()=>window.clearTimeout(I.current)),[]),Ed();const D=o.useCallback((e=>O.current===N.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}(n,t)}(e,N.current?.area)),[]);return Bu.jsx(Lw,{scope:n,searchRef:_,onItemEnter:o.useCallback((e=>{D(e)&&e.preventDefault()}),[D]),onItemLeave:o.useCallback((e=>{D(e)||(E.current?.focus(),k(null))}),[D]),onTriggerLeave:o.useCallback((e=>{D(e)&&e.preventDefault()}),[D]),pointerGraceTimerRef:A,onPointerGraceIntentChange:o.useCallback((e=>{N.current=e}),[]),children:Bu.jsx(M,{...T,children:Bu.jsx(pd,{asChild:!0,trapped:i,onMountAutoFocus:Nu(a,(e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:s,children:Bu.jsx(ad,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,children:Bu.jsx(mw,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:k,onEntryFocus:Nu(c,(e=>{b.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:Bu.jsx(Jv,{role:"menu","aria-orientation":"vertical","data-state":yx(y.open),"data-radix-menu-content":"",dir:b.dir,...v,...g,ref:S,style:{outline:"none",...g.style},onKeyDown:Nu(g.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&P(e.key));const o=E.current;if(e.target!==o)return;if(!bw.includes(e.key))return;e.preventDefault();const i=x().filter((e=>!e.disabled)).map((e=>e.ref.current));yw.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)})),onBlur:Nu(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(I.current),_.current="")})),onPointerMove:Nu(e.onPointerMove,wx((e=>{const t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>R.current?"right":"left";O.current=t,R.current=e.clientX}})))})})})})})})}));Bw.displayName=Fw;var Hw=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return Bu.jsx(Qu.div,{role:"group",...r,ref:t})}));Hw.displayName="MenuGroup";var Xw=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return Bu.jsx(Qu.div,{...r,ref:t})}));Xw.displayName="MenuLabel";var $w="MenuItem",Zw="menu.itemSelect",Yw=o.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=o.useRef(null),s=Mw($w,e.__scopeMenu),l=zw($w,e.__scopeMenu),c=Mu(t,a),u=o.useRef(!1);return Bu.jsx(Uw,{...i,ref:c,disabled:n,onClick:Nu(e.onClick,(()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(Zw,{bubbles:!0,cancelable:!0});e.addEventListener(Zw,(e=>r?.(e)),{once:!0}),ed(e,t),t.defaultPrevented?u.current=!1:s.onClose()}})),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:Nu(e.onPointerUp,(e=>{u.current||e.currentTarget?.click()})),onKeyDown:Nu(e.onKeyDown,(e=>{const t=""!==l.searchRef.current;n||t&&" "===e.key||gw.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));Yw.displayName=$w;var Uw=o.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,s=zw($w,n),l=Aw(n),c=o.useRef(null),u=Mu(t,c),[d,f]=o.useState(!1),[p,m]=o.useState("");return o.useEffect((()=>{const e=c.current;e&&m((e.textContent??"").trim())}),[a.children]),Bu.jsx(Cw.ItemSlot,{scope:n,disabled:r,textValue:i??p,children:Bu.jsx(hw,{asChild:!0,...l,focusable:!r,children:Bu.jsx(Qu.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:Nu(e.onPointerMove,wx((e=>{if(r)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:Nu(e.onPointerLeave,wx((e=>s.onItemLeave(e)))),onFocus:Nu(e.onFocus,(()=>f(!0))),onBlur:Nu(e.onBlur,(()=>f(!1)))})})})})),Jw=o.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return Bu.jsx(ox,{scope:e.__scopeMenu,checked:n,children:Bu.jsx(Yw,{role:"menuitemcheckbox","aria-checked":bx(n)?"mixed":n,...o,ref:t,"data-state":vx(n),onSelect:Nu(o.onSelect,(()=>r?.(!!bx(n)||!n)),{checkForDefaultPrevented:!1})})})}));Jw.displayName="MenuCheckboxItem";var Kw="MenuRadioGroup",[qw,Qw]=Sw(Kw,{value:void 0,onValueChange:()=>{}}),ex=o.forwardRef(((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Zu(r);return Bu.jsx(qw,{scope:e.__scopeMenu,value:n,onValueChange:i,children:Bu.jsx(Hw,{...o,ref:t})})}));ex.displayName=Kw;var tx="MenuRadioItem",nx=o.forwardRef(((e,t)=>{const{value:n,...r}=e,o=Qw(tx,e.__scopeMenu),i=n===o.value;return Bu.jsx(ox,{scope:e.__scopeMenu,checked:i,children:Bu.jsx(Yw,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":vx(i),onSelect:Nu(r.onSelect,(()=>o.onValueChange?.(n)),{checkForDefaultPrevented:!1})})})}));nx.displayName=tx;var rx="MenuItemIndicator",[ox,ix]=Sw(rx,{checked:!1}),ax=o.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=ix(rx,n);return Bu.jsx(xd,{present:r||bx(i.checked)||!0===i.checked,children:Bu.jsx(Qu.span,{...o,ref:t,"data-state":vx(i.checked)})})}));ax.displayName=rx;var sx=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return Bu.jsx(Qu.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})}));sx.displayName="MenuSeparator";var lx=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=_w(n);return Bu.jsx(Kv,{...o,...r,ref:t})}));lx.displayName="MenuArrow";var cx="MenuSub",[ux,dx]=Sw(cx),fx=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Ow(cx,t),s=_w(t),[l,c]=o.useState(null),[u,d]=o.useState(null),f=Zu(i);return o.useEffect((()=>(!1===a.open&&f(!1),()=>f(!1))),[a.open,f]),Bu.jsx(Yv,{...s,children:Bu.jsx(Nw,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:d,children:Bu.jsx(ux,{scope:t,contentId:$u(),triggerId:$u(),trigger:l,onTriggerChange:c,children:n})})})};fx.displayName=cx;var px="MenuSubTrigger",mx=o.forwardRef(((e,t)=>{const n=Ow(px,e.__scopeMenu),r=Mw(px,e.__scopeMenu),i=dx(px,e.__scopeMenu),a=zw(px,e.__scopeMenu),s=o.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=a,u={__scopeMenu:e.__scopeMenu},d=o.useCallback((()=>{s.current&&window.clearTimeout(s.current),s.current=null}),[]);return o.useEffect((()=>d),[d]),o.useEffect((()=>{const e=l.current;return()=>{window.clearTimeout(e),c(null)}}),[l,c]),Bu.jsx(Pw,{asChild:!0,...u,children:Bu.jsx(Uw,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":yx(n.open),...e,ref:Ru(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Nu(e.onPointerMove,wx((t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(a.onPointerGraceIntentChange(null),s.current=window.setTimeout((()=>{n.onOpenChange(!0),d()}),100))}))),onPointerLeave:Nu(e.onPointerLeave,wx((e=>{d();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,i=o?-5:5,s=t[o?"left":"right"],c=t[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:s,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(l.current),l.current=window.setTimeout((()=>a.onPointerGraceIntentChange(null)),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}}))),onKeyDown:Nu(e.onKeyDown,(t=>{const o=""!==a.searchRef.current;e.disabled||o&&" "===t.key||vw[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())}))})})}));mx.displayName=px;var hx="MenuSubContent",gx=o.forwardRef(((e,t)=>{const n=jw(Fw,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Ow(Fw,e.__scopeMenu),s=Mw(Fw,e.__scopeMenu),l=dx(hx,e.__scopeMenu),c=o.useRef(null),u=Mu(t,c);return Bu.jsx(Cw.Provider,{scope:e.__scopeMenu,children:Bu.jsx(xd,{present:r||a.open,children:Bu.jsx(Cw.Slot,{scope:e.__scopeMenu,children:Bu.jsx(Ww,{id:l.contentId,"aria-labelledby":l.triggerId,...i,ref:u,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Nu(e.onFocusOutside,(e=>{e.target!==l.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:Nu(e.onEscapeKeyDown,(e=>{s.onClose(),e.preventDefault()})),onKeyDown:Nu(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=ww[s.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())}))})})})})}));function yx(e){return e?"open":"closed"}function bx(e){return"indeterminate"===e}function vx(e){return bx(e)?"indeterminate":e?"checked":"unchecked"}function wx(e){return t=>"mouse"===t.pointerType?e(t):void 0}gx.displayName=hx;var xx=Tw,Cx=Pw,kx=Bw,Ex=Hw,Sx=Xw,Ix=Yw,_x=Jw,Ax=ex,Nx=nx,Ox=ax,Rx=sx,Mx=lx,Tx=fx,Px=mx,Dx=gx,jx="DropdownMenu",[Fx,Lx]=Vu(jx,[Iw]),zx=Iw(),[Bx,Vx]=Fx(jx),Gx=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,c=zx(t),u=o.useRef(null),[d=!1,f]=Yu({prop:i,defaultProp:a,onChange:s});return Bu.jsx(Bx,{scope:t,triggerId:$u(),triggerRef:u,contentId:$u(),open:d,onOpenChange:f,onOpenToggle:o.useCallback((()=>f((e=>!e))),[f]),modal:l,children:Bu.jsx(xx,{...c,open:d,onOpenChange:f,dir:r,modal:l,children:n})})};Gx.displayName=jx;var Wx="DropdownMenuTrigger",Hx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Vx(Wx,n),a=zx(n);return Bu.jsx(Cx,{asChild:!0,...a,children:Bu.jsx(Qu.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Ru(t,i.triggerRef),onPointerDown:Nu(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:Nu(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));Hx.displayName=Wx;var Xx="DropdownMenuContent",$x=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Vx(Xx,n),a=zx(n),s=o.useRef(!1);return Bu.jsx(kx,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:Nu(e.onCloseAutoFocus,(e=>{s.current||i.triggerRef.current?.focus(),s.current=!1,e.preventDefault()})),onInteractOutside:Nu(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(s.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));$x.displayName=Xx;var Zx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Ex,{...o,...r,ref:t})}));Zx.displayName="DropdownMenuGroup";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Sx,{...o,...r,ref:t})})).displayName="DropdownMenuLabel";var Yx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Ix,{...o,...r,ref:t})}));Yx.displayName="DropdownMenuItem";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(_x,{...o,...r,ref:t})})).displayName="DropdownMenuCheckboxItem";var Ux=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Ax,{...o,...r,ref:t})}));Ux.displayName="DropdownMenuRadioGroup";var Jx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Nx,{...o,...r,ref:t})}));Jx.displayName="DropdownMenuRadioItem";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Ox,{...o,...r,ref:t})})).displayName="DropdownMenuItemIndicator";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Rx,{...o,...r,ref:t})})).displayName="DropdownMenuSeparator";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Mx,{...o,...r,ref:t})})).displayName="DropdownMenuArrow";var Kx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Px,{...o,...r,ref:t})}));Kx.displayName="DropdownMenuSubTrigger";var qx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Dx,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));qx.displayName="DropdownMenuSubContent";var Qx=Gx,eC=Hx,tC=$x,nC=Zx,rC=Yx,oC=Ux,iC=Jx,aC=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=zx(t),[s=!1,l]=Yu({prop:r,defaultProp:i,onChange:o});return Bu.jsx(Tx,{...a,open:s,onOpenChange:l,children:n})},sC=Kx,lC=qx;function cC(e,t){return function(e,t){return new Blob([e],{type:t})}(function(e){const t=window.atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r}(e),t)}function uC(e,t=!0){return new Promise((n=>{const r=new FileReader;r.onload=()=>{const e=r.result;t&&n(e.split(",")[1]),n(e)},r.readAsDataURL(e)}))}function dC(e){return function(e){return new Promise((t=>{const n=document.createElement("input");n.type="file",n.accept=e,n.onchange=()=>{const e=n.files?.[0];e&&t(e)},n.click()}))}(e).then(uC)}const fC=!process.env.NODE_ENV||"development"===process.env.NODE_ENV,pC={xxs:0,xs:320,s:480,m:768,l:960,xl:1280,xxl:1920},mC=o.createContext(void 0),hC=o.forwardRef(((e,t)=>{const{className:n,children:r,...i}=e,[a,s]=o.useState("m"),[l,c]=o.useState(0),[u,d]=o.useState(0),f=o.useRef(null);o.useImperativeHandle(t,(()=>f.current),[]);const p=o.useCallback((e=>{const t=e.width,n=e.height;let r="xxs";Object.entries(pC).forEach((([e,n])=>{t>=n&&(r=e)})),s((e=>e!==r?r:e)),c(t),d(n)}),[]);return o.useEffect((()=>{const e=f.current;if(!e)return;const t=new ResizeObserver((e=>{for(let t of e)p(t.contentRect)}));return t.observe(e),p(e.getBoundingClientRect()),()=>{t.disconnect()}}),[]),o.createElement(mC.Provider,{value:{wKey:a,w:l,h:u}},o.createElement("div",{ref:f,className:`size-context w-${a} ${n||""}`.trim(),...i},r))})),gC=e=>((e,t)=>e!=t&&(""==e||pC[e]<pC[t]))((()=>{const e=o.useContext(mC);if(!e)throw new Error("useSizeContext must be used within a SizeContextContainerContext");return e})().wKey,e),yC=({direction:e,className:t="",children:n,wrap:r=!1,grow:i=!1,...a})=>{let s="";"string"==typeof e?s=`direction-${e} `:"object"==typeof e&&null!==e&&Object.entries(e).forEach((([e,t])=>{s+=""===e?`direction-${t} `:`${e}-direction-${t} `}));let l="";"boolean"==typeof i?l=i?"grow ":"":"object"==typeof i&&null!==i&&Object.entries(i).forEach((([e,t])=>{l+=""===e?t?"grow ":"no-grow":t?`${e}-grow `:`${e}-no-grow`})),s+=l,r&&(s+="flex-wrap "),s=s.trim();const c=`float-container ${s} ${t}`.trim();return o.createElement("div",{className:c,...a},n)},bC=({direction:e,expanded:t=!0,children:n,className:r,maxSize:i,expanderSize:a="40px",containerStyle:s,style:l,containerClassName:c,onExpandChange:u,...d})=>{const f={up:Vy,down:By,left:Dy,right:Py}[e],p={up:By,down:Vy,left:Py,right:Dy}[e],[m,h]=o.useState(t),g=`${e} ${m?"expanded":"collapsed"}`,y="right"===e||"left"===e?{width:m?i:a}:{height:m?i:a},b="right"===e||"left"===e?{width:m?i:0}:{height:m?i:0},v="right"===e||"left"===e?{width:a}:{height:a},w=o.createElement("div",{className:`expanding_container_content ${g} ${r||""}`.trim(),style:{...l,...b},...d},n),x=o.createElement("div",{className:`expanding_container_expander ${g}`,onClick:()=>(e=>{m!==e&&(h(e),u&&u(e))})(!m),style:v},m?o.createElement(p,null):o.createElement(f,null)),C="right"===e||"down"===e?w:x,k="left"===e||"up"===e?w:x;return o.createElement("div",{className:`expanding_container ${g} ${c||""}`,style:{...s,...y}},C,k)},vC=({trigger:t,setOpen:n,open:r})=>{const[i,a]=e.useState(""),s=e.useContext(zV);return s.options.useWorkerManager?o.createElement(Uy,{setOpen:n,open:r,trigger:t,title:"New Worker",description:"Create a new worker"},o.createElement("div",null,"Name:",o.createElement("br",null),o.createElement("input",{className:"styledinput",onChange:e=>{a(e.currentTarget.value)},value:i})),o.createElement("div",null,i&&o.createElement("div",null,o.createElement("button",{className:"styledbtn",onClick:()=>{s.workermanager?.new_worker({name:i}),n(!1)}},"Create")))):null},wC=({trigger:t,setOpen:n,open:r})=>{const i=e.useContext(zV),[a,s]=e.useState(!1),l=i.workers(),c=i.worker?.uuid,u=(c?l[c]?.name:void 0)||c||"worker";return o.createElement(Uy,{setOpen:n,open:r,trigger:t,title:"Export Worker",description:"Export the worker as a .fnw file"},o.createElement("div",null,o.createElement("div",null,o.createElement("input",{type:"checkbox",className:"styledcheckbox",checked:a,onChange:e=>{s(e.currentTarget.checked)}}),"Include Files"),o.createElement("button",{className:"styledbtn",onClick:async()=>{if(!i.worker)return;!function(e,t,n){const r=cC(e,n),o=URL.createObjectURL(r),i=document.createElement("a");i.href=o,i.download=t,i.click(),URL.revokeObjectURL(o),i.remove()}(await i.worker.export({withFiles:a}),u+".fnw","application/zip"),n(!1)}},"Export")))},xC=()=>{const t=e.useContext(zV).progress_state();return o.createElement("div",{className:"statusbar"},o.createElement("span",{className:"statusbar-progressbar",style:{width:Math.min(100,100*t.progress)+"%"}}),o.createElement("span",{className:"statusbar-message"},t.message))},CC=()=>{const t=e.useContext(zV),n=t.workers(),[r,i]=e.useState(!1),[a,s]=e.useState(!1),l=t.options.useWorkerManager&&t.workermanager&&t.workermanager.open||fC,c=l&&Object.keys(n).length>0,u=t.worker&&t.worker.is_open,d=u&&l;return l||u?o.createElement(o.Fragment,null,o.createElement(Qx,null,o.createElement(eC,{asChild:!0},o.createElement("button",{className:"styledbtn"},o.createElement(yC,{direction:"row"},"Worker ",o.createElement(Ty,null)))),o.createElement(tC,{className:"headermenucontent funcnodescontainer"},o.createElement(nC,null,c&&o.createElement(aC,null,o.createElement(sC,{className:"headermenuitem submenuitem"},o.createElement(yC,{direction:"row"},"Select",o.createElement(Py,null))),o.createElement(lC,{className:"headermenucontent funcnodescontainer",sideOffset:2,alignOffset:-5},o.createElement(oC,{value:t.worker?.uuid,onValueChange:e=>{(e=>{if("__select__"!==e&&t.workers&&t.workermanager&&n[e]){if(!n[e].active&&!window.confirm("this is an inactive worker, selecting it will start it, continue?"))return;t.workermanager.set_active(e)}})(e)}},Object.keys(n).sort(((e,t)=>{if(n[e].active&&!n[t].active)return-1;if(!n[e].active&&n[t].active)return 1;const r=n[e].name||e,o=n[t].name||t;return r.localeCompare(o)})).map((e=>o.createElement(iC,{className:"headermenuitem workerselectoption"+(n[e]?.active?" active":" inactive")+" headermenuitem",key:e,value:e,disabled:e===t.worker?.uuid},n[e]?.name||e)))))),u&&o.createElement(o.Fragment,null,d&&o.createElement(rC,{className:"headermenuitem",onClick:()=>{if(t.worker)return t.workermanager?void t.workermanager?.restart_worker(t.worker.uuid):t.logger.error("no workermanager")}},"Restart"),o.createElement(rC,{className:"headermenuitem",onClick:()=>{t.worker&&t.worker.stop()}},"Stop"),o.createElement(rC,{className:"headermenuitem",onClick:()=>s(!0)},"Export"),o.createElement(rC,{className:"headermenuitem",onClick:async()=>{if(!t.worker)return;if(!window.confirm("Updateing the worker might replace the current nodespace, continue?"))return;const e=await dC(".fnw");t.worker.update_from_export(e)}},"Update")),l&&o.createElement(o.Fragment,null,o.createElement(rC,{className:"headermenuitem",onClick:()=>i(!0)},"New"))))),o.createElement(vC,{open:r,setOpen:i}),o.createElement(wC,{open:a,setOpen:s})):null},kC=()=>{const t=e.useContext(zV);return o.createElement(o.Fragment,null,o.createElement(Qx,null,o.createElement(eC,{asChild:!0},o.createElement("button",{className:"styledbtn"},o.createElement(yC,{direction:"row"},"Nodespace ",o.createElement(Ty,null)))),o.createElement(tC,{className:"headermenucontent funcnodescontainer"},o.createElement(nC,null,o.createElement(rC,{className:"headermenuitem",onClick:()=>{window.confirm("Are you sure you want to start a new flow?")&&t.worker?.clear()}},"New"),o.createElement(rC,{className:"headermenuitem",onClick:async()=>{const e=await(t.worker?.save());if(!e)return;const n=new Blob([JSON.stringify(e)],{type:"application/json"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download="flow.json",o.click(),URL.revokeObjectURL(r),o.remove()}},"Save"),o.createElement(rC,{className:"headermenuitem",onClick:async()=>{const e=document.createElement("input");e.type="file",e.accept=".json",e.onchange=async e=>{const n=e.target.files?.[0];if(!n)return;const r=new FileReader;r.onload=async e=>{const n=e.target?.result;if(!n)return;const r=JSON.parse(n);await(t.worker?.load(r))},r.readAsText(n)},e.click()}},"Load")))))},EC=({...t})=>{const n=e.useContext(zV),r=n.workerstate();return Object.keys(t).length>0&&n.logger.debug("headerprops",t),o.createElement(yC,{className:"funcnodesreactflowheader",direction:"row",wrap:!0},o.createElement(yC,{className:"headerelement m-w-6",grow:{"":!0,m:!1}},o.createElement(xC,null)),(t.showmenu||fC)&&o.createElement(yC,{direction:"row",wrap:!0},o.createElement("div",{className:"headerelement"},o.createElement(CC,null)),(n.worker&&r.is_open||fC)&&o.createElement("div",{className:"headerelement"},o.createElement(kC,null))))};const SC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,IC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_C={};function AC(e,t){return(_C.jsx?IC:SC).test(e)}const NC=/[ \t\n\f\r]/g;function OC(e){return""===e.replace(NC,"")}class RC{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function MC(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new RC(n,r,t)}function TC(e){return e.toLowerCase()}RC.prototype.property={},RC.prototype.normal={},RC.prototype.space=null;class PC{constructor(e,t){this.property=e,this.attribute=t}}PC.prototype.space=null,PC.prototype.boolean=!1,PC.prototype.booleanish=!1,PC.prototype.overloadedBoolean=!1,PC.prototype.number=!1,PC.prototype.commaSeparated=!1,PC.prototype.spaceSeparated=!1,PC.prototype.commaOrSpaceSeparated=!1,PC.prototype.mustUseProperty=!1,PC.prototype.defined=!1;let DC=0;const jC=WC(),FC=WC(),LC=WC(),zC=WC(),BC=WC(),VC=WC(),GC=WC();function WC(){return 2**++DC}var HC=Object.freeze({__proto__:null,boolean:jC,booleanish:FC,commaOrSpaceSeparated:GC,commaSeparated:VC,number:zC,overloadedBoolean:LC,spaceSeparated:BC});const XC=Object.keys(HC);class $C extends PC{constructor(e,t,n,r){let o=-1;if(super(e,t),ZC(this,"space",r),"number"==typeof n)for(;++o<XC.length;){const e=XC[o];ZC(this,XC[o],(n&HC[e])===HC[e])}}}function ZC(e,t,n){n&&(e[t]=n)}$C.prototype.defined=!0;const YC={}.hasOwnProperty;function UC(e){const t={},n={};let r;for(r in e.properties)if(YC.call(e.properties,r)){const o=e.properties[r],i=new $C(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[TC(r)]=r,n[TC(i.attribute)]=r}return new RC(t,n,e.space)}const JC=UC({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),KC=UC({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function qC(e,t){return t in e?e[t]:t}function QC(e,t){return qC(e,t.toLowerCase())}const ek=UC({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:QC,properties:{xmlns:null,xmlnsXLink:null}}),tk=UC({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:FC,ariaAutoComplete:null,ariaBusy:FC,ariaChecked:FC,ariaColCount:zC,ariaColIndex:zC,ariaColSpan:zC,ariaControls:BC,ariaCurrent:null,ariaDescribedBy:BC,ariaDetails:null,ariaDisabled:FC,ariaDropEffect:BC,ariaErrorMessage:null,ariaExpanded:FC,ariaFlowTo:BC,ariaGrabbed:FC,ariaHasPopup:null,ariaHidden:FC,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:BC,ariaLevel:zC,ariaLive:null,ariaModal:FC,ariaMultiLine:FC,ariaMultiSelectable:FC,ariaOrientation:null,ariaOwns:BC,ariaPlaceholder:null,ariaPosInSet:zC,ariaPressed:FC,ariaReadOnly:FC,ariaRelevant:null,ariaRequired:FC,ariaRoleDescription:BC,ariaRowCount:zC,ariaRowIndex:zC,ariaRowSpan:zC,ariaSelected:FC,ariaSetSize:zC,ariaSort:null,ariaValueMax:zC,ariaValueMin:zC,ariaValueNow:zC,ariaValueText:null,role:null}}),nk=UC({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:QC,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:VC,acceptCharset:BC,accessKey:BC,action:null,allow:null,allowFullScreen:jC,allowPaymentRequest:jC,allowUserMedia:jC,alt:null,as:null,async:jC,autoCapitalize:null,autoComplete:BC,autoFocus:jC,autoPlay:jC,blocking:BC,capture:null,charSet:null,checked:jC,cite:null,className:BC,cols:zC,colSpan:null,content:null,contentEditable:FC,controls:jC,controlsList:BC,coords:zC|VC,crossOrigin:null,data:null,dateTime:null,decoding:null,default:jC,defer:jC,dir:null,dirName:null,disabled:jC,download:LC,draggable:FC,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:jC,formTarget:null,headers:BC,height:zC,hidden:jC,high:zC,href:null,hrefLang:null,htmlFor:BC,httpEquiv:BC,id:null,imageSizes:null,imageSrcSet:null,inert:jC,inputMode:null,integrity:null,is:null,isMap:jC,itemId:null,itemProp:BC,itemRef:BC,itemScope:jC,itemType:BC,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:jC,low:zC,manifest:null,max:null,maxLength:zC,media:null,method:null,min:null,minLength:zC,multiple:jC,muted:jC,name:null,nonce:null,noModule:jC,noValidate:jC,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:jC,optimum:zC,pattern:null,ping:BC,placeholder:null,playsInline:jC,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:jC,referrerPolicy:null,rel:BC,required:jC,reversed:jC,rows:zC,rowSpan:zC,sandbox:BC,scope:null,scoped:jC,seamless:jC,selected:jC,shadowRootClonable:jC,shadowRootDelegatesFocus:jC,shadowRootMode:null,shape:null,size:zC,sizes:null,slot:null,span:zC,spellCheck:FC,src:null,srcDoc:null,srcLang:null,srcSet:null,start:zC,step:null,style:null,tabIndex:zC,target:null,title:null,translate:null,type:null,typeMustMatch:jC,useMap:null,value:FC,width:zC,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:BC,axis:null,background:null,bgColor:null,border:zC,borderColor:null,bottomMargin:zC,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:jC,declare:jC,event:null,face:null,frame:null,frameBorder:null,hSpace:zC,leftMargin:zC,link:null,longDesc:null,lowSrc:null,marginHeight:zC,marginWidth:zC,noResize:jC,noHref:jC,noShade:jC,noWrap:jC,object:null,profile:null,prompt:null,rev:null,rightMargin:zC,rules:null,scheme:null,scrolling:FC,standby:null,summary:null,text:null,topMargin:zC,valueType:null,version:null,vAlign:null,vLink:null,vSpace:zC,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:jC,disableRemotePlayback:jC,prefix:null,property:null,results:zC,security:null,unselectable:null}}),rk=UC({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:qC,properties:{about:GC,accentHeight:zC,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:zC,amplitude:zC,arabicForm:null,ascent:zC,attributeName:null,attributeType:null,azimuth:zC,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:zC,by:null,calcMode:null,capHeight:zC,className:BC,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:zC,diffuseConstant:zC,direction:null,display:null,dur:null,divisor:zC,dominantBaseline:null,download:jC,dx:null,dy:null,edgeMode:null,editable:null,elevation:zC,enableBackground:null,end:null,event:null,exponent:zC,externalResourcesRequired:null,fill:null,fillOpacity:zC,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:VC,g2:VC,glyphName:VC,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:zC,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:zC,horizOriginX:zC,horizOriginY:zC,id:null,ideographic:zC,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:zC,k:zC,k1:zC,k2:zC,k3:zC,k4:zC,kernelMatrix:GC,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:zC,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:zC,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:zC,overlineThickness:zC,paintOrder:null,panose1:null,path:null,pathLength:zC,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:BC,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:zC,pointsAtY:zC,pointsAtZ:zC,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:GC,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:GC,rev:GC,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:GC,requiredFeatures:GC,requiredFonts:GC,requiredFormats:GC,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:zC,specularExponent:zC,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:zC,strikethroughThickness:zC,string:null,stroke:null,strokeDashArray:GC,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:zC,strokeOpacity:zC,strokeWidth:null,style:null,surfaceScale:zC,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:GC,tabIndex:zC,tableValues:null,target:null,targetX:zC,targetY:zC,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:GC,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:zC,underlineThickness:zC,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:zC,values:null,vAlphabetic:zC,vMathematical:zC,vectorEffect:null,vHanging:zC,vIdeographic:zC,version:null,vertAdvY:zC,vertOriginX:zC,vertOriginY:zC,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:zC,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ok=/^data[-\w.:]+$/i,ik=/-[a-z]/g,ak=/[A-Z]/g;function sk(e){return"-"+e.toLowerCase()}function lk(e){return e.charAt(1).toUpperCase()}const ck={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"},uk=MC([KC,JC,ek,tk,nk],"html"),dk=MC([KC,JC,ek,tk,rk],"svg");var fk,pk,mk,hk={};var gk=function(){if(mk)return hk;mk=1;var e=hk&&hk.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hk,"__esModule",{value:!0}),hk.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var o=(0,t.default)(e),i="function"==typeof n;return o.forEach((function(e){if("declaration"===e.type){var t=e.property,o=e.value;i?n(t,o,e):o&&((r=r||{})[t]=o)}})),r};var t=e(function(){if(pk)return fk;pk=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(s,l):l}return fk=function(s,u){if("string"!=typeof s)throw new TypeError("First argument must be a string");if(!s)return[];u=u||{};var d=1,f=1;function p(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function m(){var e={line:d,column:f};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:f},this.source=u.source}function g(e){var t=new Error(u.source+":"+d+":"+f+": "+e);if(t.reason=e,t.filename=u.source,t.line=d,t.column=f,t.source=s,!u.silent)throw t}function y(e){var t=e.exec(s);if(t){var n=t[0];return p(n),s=s.slice(n.length),t}}function b(){y(n)}function v(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var e=m();if("/"==s.charAt(0)&&"*"==s.charAt(1)){for(var t=2;l!=s.charAt(t)&&("*"!=s.charAt(t)||"/"!=s.charAt(t+1));)++t;if(t+=2,l===s.charAt(t-1))return g("End of comment missing");var n=s.slice(2,t-2);return f+=2,p(n),s=s.slice(t),f+=2,e({type:"comment",comment:n})}}function x(){var t=m(),n=y(r);if(n){if(w(),!y(o))return g("property missing ':'");var s=y(i),u=t({type:"declaration",property:c(n[0].replace(e,l)),value:s?c(s[0].replace(e,l)):l});return y(a),u}}return h.prototype.content=s,b(),function(){var e,t=[];for(v(t);e=x();)!1!==e&&(t.push(e),v(t));return t}()},fk}());return hk}(),yk=l(gk),bk=yk.default||yk;const vk=xk("end"),wk=xk("start");function xk(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Ck(e){return e&&"object"==typeof e?"position"in e||"type"in e?Ek(e.position):"start"in e||"end"in e?Ek(e):"line"in e||"column"in e?kk(e):"":""}function kk(e){return Sk(e&&e.line)+":"+Sk(e&&e.column)}function Ek(e){return kk(e&&e.start)+"-"+kk(e&&e.end)}function Sk(e){return e&&"number"==typeof e?e:1}class Ik extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=Ck(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ik.prototype.file="",Ik.prototype.name="",Ik.prototype.reason="",Ik.prototype.message="",Ik.prototype.stack="",Ik.prototype.column=void 0,Ik.prototype.line=void 0,Ik.prototype.ancestors=void 0,Ik.prototype.cause=void 0,Ik.prototype.fatal=void 0,Ik.prototype.place=void 0,Ik.prototype.ruleId=void 0,Ik.prototype.source=void 0;const _k={}.hasOwnProperty,Ak=new Map,Nk=/[A-Z]/g,Ok=/-([a-z])/g,Rk=new Set(["table","tbody","thead","tfoot","tr"]),Mk=new Set(["td","th"]),Tk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Pk(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),s=wk(n);return t(r,o,i,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={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:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?dk:uk,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=Dk(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function Dk(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=dk,e.schema=o);e.ancestors.push(t);const i=Bk(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&_k.call(t.properties,o)){const i=zk(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&Mk.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=Lk(e,t);Rk.has(t.tagName)&&(s=s.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&OC(t.value):OC(t));var t})));return jk(e,a,i,t),Fk(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Vk(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=dk,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:Bk(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Vk(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else Vk(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),s=Lk(e,t);return jk(e,a,i,t),Fk(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Vk(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Fk(r,Lk(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function jk(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Fk(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Lk(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Ak;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const s=Dk(e,i,a);void 0!==s&&n.push(s)}return n}function zk(e,t,n){const r=function(e,t){const n=TC(t);let r=t,o=PC;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ok.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(ik,lk);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!ik.test(e)){let n=e.replace(ak,sk);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=$C}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):function(e){return e.join(" ").trim()}(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){const n={};try{bk(t,r)}catch(t){if(!e.ignoreInvalidStyle){const n=t,r=new Ik("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Tk+"#cannot-parse-style-attribute",r}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(Ok,Wk)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)_k.call(e,n)&&(t[Gk(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ck[r.property]||r.property:r.attribute,n]}}function Bk(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=AC(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=AC(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return _k.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Vk(e)}function Vk(e,t){const n=new Ik("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=Tk+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Gk(e){let t=e.replace(Nk,Hk);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Wk(e,t){return t.toUpperCase()}function Hk(e){return"-"+e.toLowerCase()}const Xk={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"]},$k={};function Zk(e,t){return Yk(e,"boolean"!=typeof $k.includeImageAlt||$k.includeImageAlt,"boolean"!=typeof $k.includeHtml||$k.includeHtml)}function Yk(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Uk(e.children,t,n)}return Array.isArray(e)?Uk(e,t,n):""}function Uk(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Yk(e[o],t,n);return r.join("")}const Jk=document.createElement("i");function Kk(e){const t="&"+e+";";Jk.innerHTML=t;const n=Jk.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function qk(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function Qk(e,t){return e.length>0?(qk(e,e.length,0,t),e):t}const eE={}.hasOwnProperty;function tE(e){const t={};let n=-1;for(;++n<e.length;)nE(t,e[n]);return t}function nE(e,t){let n;for(n in t){const r=(eE.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){eE.call(r,i)||(r[i]=[]);const e=o[i];rE(r[i],Array.isArray(e)?e:e?[e]:[])}}}function rE(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);qk(e,0,0,r)}function oE(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function iE(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const aE=bE(/[A-Za-z]/),sE=bE(/[\dA-Za-z]/),lE=bE(/[#-'*+\--9=?A-Z^-~]/);function cE(e){return null!==e&&(e<32||127===e)}const uE=bE(/\d/),dE=bE(/[\dA-Fa-f]/),fE=bE(/[!-/:-@[-`{-~]/);function pE(e){return null!==e&&e<-2}function mE(e){return null!==e&&(e<0||32===e)}function hE(e){return-2===e||-1===e||32===e}const gE=bE(/\p{P}|\p{S}/u),yE=bE(/\s/);function bE(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function vE(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&sE(e.charCodeAt(n+1))&&sE(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function wE(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(hE(r))return e.enter(n),a(r);return t(r)};function a(r){return hE(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const xE={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),wE(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):pE(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const CE={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return qk(t.events,i+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(o){if(a===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return m(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(kE,u,d)(o)}function u(e){return r&&b(),y(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(kE,p,m)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){return null===n?(r&&b(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),h(n))}function h(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):pE(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;qk(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},kE={tokenize:function(e,t,n){return wE(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function EE(e){return null===e||mE(e)||yE(e)?1:gE(e)?2:void 0}function SE(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const IE={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},f={...e[u][1].start};_E(d,-s),_E(f,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:f},o={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[u][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Qk(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Qk(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=Qk(l,SE(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=Qk(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=Qk(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,qk(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=EE(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),c=EE(s),u=!c||2===c&&o||n.includes(s),d=!o||2===o&&c||n.includes(r);return l._open=Boolean(42===i?u:u&&(o||!d)),l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}}};function _E(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const AE={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return aE(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||sE(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||sE(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||cE(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):lE(t)?(e.consume(t),l):n(t)}function c(e){return sE(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||sE(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const NE={partial:!0,tokenize:function(e,t,n){return function(t){return hE(t)?wE(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||pE(e)?t(e):n(e)}}};const OE={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(hE(t))return wE(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(OE,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return hE(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const RE={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return fE(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const ME={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=sE,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=dE,c):(e.enter("characterReferenceValue"),o=7,i=uE,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==sE||Kk(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<o?(e.consume(s),c):n(s)}}};const TE={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},PE={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),hE(t)?wE(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=s?(e.exit("codeFencedFenceSequence"),hE(t)?wE(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||pE(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),hE(t)?wE(e,c,"whitespace")(t):c(t))}function c(n){return null===n||pE(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(TE,p,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||pE(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):hE(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),wE(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||pE(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||pE(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,b,m)(t)}function m(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return a>0&&hE(t)?wE(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||pE(t)?e.check(TE,p,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||pE(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function b(n){return e.exit("codeFenced"),t(n)}}};const DE={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),wE(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):pE(t)?e.attempt(jE,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||pE(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},jE={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):pE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):wE(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):pE(e)?o(e):n(e)}}};const FE={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):pE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||pE(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}}};class LE{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&zE(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),zE(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),zE(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);zE(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);zE(this.left,t.reverse())}}}function zE(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 BE(e){const t={};let n,r,o,i,a,s,l,c=-1;const u=new LE(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,VE(u,c)),c=t[c],l=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return qk(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function VE(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,f=-1,p=n,m=0,h=0;const g=[h];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)"exit"===s[f][0]&&"enter"===s[f-1][0]&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){const t=s.slice(g[f],g[f+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),f=-1;++f<l.length;)c[m+l[f][0]]=m+l[f][1],m+=l[f][1]-l[f][0]-1;return c}const GE={resolve:function(e){return BE(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):pE(t)?e.check(WE,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},WE={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),wE(e,o,"linePrefix")};function o(o){if(null===o||pE(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function HE(e,t,n,r,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||cE(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||pE(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function m(o){return u||null!==o&&41!==o&&!mE(o)?u<c&&40===o?(e.consume(o),u++,m):41===o?(e.consume(o),u--,m):null===o||32===o||40===o||cE(o)?n(o):(e.consume(o),92===o?h:m):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}function h(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function XE(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):pE(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||pE(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!hE(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function $E(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):pE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),wE(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||pE(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function ZE(e,t){let n;return function r(o){if(pE(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(hE(o))return wE(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const YE={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return XE.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=iE(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return mE(t)?ZE(e,s)(t):s(t)}function s(t){return HE(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(UE,c,c)(t)}function c(t){return hE(t)?wE(e,u,"whitespace")(t):u(t)}function u(i){return null===i||pE(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},UE={partial:!0,tokenize:function(e,t,n){return function(t){return mE(t)?ZE(e,r)(t):n(t)};function r(t){return $E(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return hE(t)?wE(e,i,"whitespace")(t):i(t)}function i(e){return null===e||pE(e)?t(e):n(e)}}};const JE={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return pE(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const KE={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},qk(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||mE(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||pE(n)?(e.exit("atxHeading"),t(n)):hE(n)?wE(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||mE(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const qE=["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"],QE=["pre","script","style","textarea"],eS={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,p):63===s?(e.consume(s),o=3,r.interrupt?t:P):aE(s)?(e.consume(s),a=String.fromCharCode(s),m):n(s)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,f):aE(i)?(e.consume(i),o=4,r.interrupt?t:P):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:P):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:I:f):n(o)}function p(t){return aE(t)?(e.consume(t),a=String.fromCharCode(t),m):n(t)}function m(s){if(null===s||47===s||62===s||mE(s)){const l=47===s,c=a.toLowerCase();return l||i||!QE.includes(c)?qE.includes(a.toLowerCase())?(o=6,l?(e.consume(s),h):r.interrupt?t(s):I(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):y(s)):(o=1,r.interrupt?t(s):I(s))}return 45===s||sE(s)?(e.consume(s),a+=String.fromCharCode(s),m):n(s)}function h(o){return 62===o?(e.consume(o),r.interrupt?t:I):n(o)}function g(t){return hE(t)?(e.consume(t),g):E(t)}function y(t){return 47===t?(e.consume(t),E):58===t||95===t||aE(t)?(e.consume(t),b):hE(t)?(e.consume(t),y):E(t)}function b(t){return 45===t||46===t||58===t||95===t||sE(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),w):hE(t)?(e.consume(t),v):y(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):hE(t)?(e.consume(t),w):C(t)}function x(t){return t===l?(e.consume(t),l=null,k):null===t||pE(t)?n(t):(e.consume(t),x)}function C(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||mE(t)?v(t):(e.consume(t),C)}function k(e){return 47===e||62===e||hE(e)?y(e):n(e)}function E(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||pE(t)?I(t):hE(t)?(e.consume(t),S):n(t)}function I(t){return 45===t&&2===o?(e.consume(t),O):60===t&&1===o?(e.consume(t),R):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),P):93===t&&5===o?(e.consume(t),T):!pE(t)||6!==o&&7!==o?null===t||pE(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),I):(e.exit("htmlFlowData"),e.check(tS,j,_)(t))}function _(t){return e.check(nS,A,j)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||pE(t)?_(t):(e.enter("htmlFlowData"),I(t))}function O(t){return 45===t?(e.consume(t),P):I(t)}function R(t){return 47===t?(e.consume(t),a="",M):I(t)}function M(t){if(62===t){const n=a.toLowerCase();return QE.includes(n)?(e.consume(t),D):I(t)}return aE(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),M):I(t)}function T(t){return 93===t?(e.consume(t),P):I(t)}function P(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),P):I(t)}function D(t){return null===t||pE(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),D)}function j(n){return e.exit("htmlFlow"),t(n)}}},tS={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(NE,t,n)}}},nS={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(pE(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const rS={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),b):aE(t)?(e.consume(t),k):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):aE(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):pE(t)?(a=u,M(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?R(e):45===e?d(e):u(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?m:p):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),h):pE(t)?(a=m,M(t)):(e.consume(t),m)}function h(t){return 93===t?(e.consume(t),g):m(t)}function g(t){return 62===t?R(t):93===t?(e.consume(t),g):m(t)}function y(t){return null===t||62===t?R(t):pE(t)?(a=y,M(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):pE(t)?(a=b,M(t)):(e.consume(t),b)}function v(e){return 62===e?R(e):b(e)}function w(t){return aE(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||sE(t)?(e.consume(t),x):C(t)}function C(t){return pE(t)?(a=C,M(t)):hE(t)?(e.consume(t),C):R(t)}function k(t){return 45===t||sE(t)?(e.consume(t),k):47===t||62===t||mE(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),R):58===t||95===t||aE(t)?(e.consume(t),S):pE(t)?(a=E,M(t)):hE(t)?(e.consume(t),E):R(t)}function S(t){return 45===t||46===t||58===t||95===t||sE(t)?(e.consume(t),S):I(t)}function I(t){return 61===t?(e.consume(t),_):pE(t)?(a=I,M(t)):hE(t)?(e.consume(t),I):E(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,A):pE(t)?(a=_,M(t)):hE(t)?(e.consume(t),_):(e.consume(t),N)}function A(t){return t===o?(e.consume(t),o=void 0,O):null===t?n(t):pE(t)?(a=A,M(t)):(e.consume(t),A)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||mE(t)?E(t):(e.consume(t),N)}function O(e){return 47===e||62===e||mE(e)?E(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return hE(t)?wE(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),a(t)}}};const oS={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&qk(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",l,t],["enter",c,t]],i=Qk(i,e.slice(r+1,r+s+3)),i=Qk(i,[["enter",u,t]]),i=Qk(i,SE(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=Qk(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=Qk(i,e.slice(o+1)),i=Qk(i,[["exit",l,t]]),qk(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(iE(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(iS,c,i?c:u)(t):91===t?e.attempt(aS,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(sS,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},iS={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return mE(t)?ZE(e,o)(t):o(t)}function o(t){return 41===t?c(t):HE(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return mE(t)?ZE(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?$E(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return mE(t)?ZE(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},aS={tokenize:function(e,t,n){const r=this;return function(t){return XE.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(iE(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},sS={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const lS={name:"labelStartImage",resolveAll:oS.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const cS={name:"labelStartLink",resolveAll:oS.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const uS={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),wE(e,t,"linePrefix")}}};const dS={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||pE(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),hE(t)?wE(e,i,"whitespace")(t):i(t))}}};const fS={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(NE,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,wE(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!hE(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(mS,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,wE(e,e.attempt(fS,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:uE(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(dS,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return uE(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(NE,r.interrupt?n:c,e.attempt(pS,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return hE(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},pS={partial:!0,tokenize:function(e,t,n){const r=this;return wE(e,(function(e){const o=r.events[r.events.length-1];return!hE(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},mS={partial:!0,tokenize:function(e,t,n){const r=this;return wE(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const hS={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),hE(t)?wE(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||pE(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const gS={tokenize:function(e){const t=this,n=e.attempt(NE,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,wE(e,e.attempt(this.parser.constructs.flow,r,e.attempt(GE,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const yS={resolveAll:xS()},bS=wS("string"),vS=wS("text");function wS(e){return{resolveAll:xS("text"===e?CS:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function xS(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function CS(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const kS={42:fS,43:fS,45:fS,48:fS,49:fS,50:fS,51:fS,52:fS,53:fS,54:fS,55:fS,56:fS,57:fS,62:OE},ES={91:YE},SS={[-2]:DE,[-1]:DE,32:DE},IS={35:KE,42:dS,45:[hS,dS],60:eS,61:hS,95:dS,96:PE,126:PE},_S={38:ME,92:RE},AS={[-5]:uS,[-4]:uS,[-3]:uS,33:lS,38:ME,42:IE,60:[AE,rS],91:cS,92:[JE,RE],93:oS,95:IE,96:FE},NS={null:[IE,yS]};var OS=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:ES,disable:{null:[]},document:kS,flow:IS,flowInitial:SS,insideSpan:NS,string:_S,text:AS});function RS(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],s=[];const l={attempt:g((function(e,t){y(e,t.from)})),check:g(h),consume:function(e){pE(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=f(),c.events.push(["exit",t,c]),t},interrupt:g(h,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,b()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(a=Qk(a,e),p(),null!==a[a.length-1])return[];return y(t,0),c.events=SE(i,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function p(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)m(t.charCodeAt(r._bufferIndex));else m(t)}}function m(e){u=u(e)}function h(e,t){t.restore()}function g(e,t){return function(n,o,i){let a,u,d,p;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return a=e,u=0,0===e.length?i:h(e[u])}function h(e){return function(n){p=function(){const e=f(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(s);return{from:o,restore:a};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,s=i,b()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,y)(n)}}function g(t){return e(d,p),o}function y(e){return p.restore(),++u<a.length?h(a[u]):i}}}function y(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&qk(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function b(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const MS=/[\0\t\n\r]/g;const TS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function PS(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return oE(n.slice(t?2:1),t?16:10)}return Kk(n)||e}const DS={}.hasOwnProperty;function jS(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:i(K),blockQuote:i($),characterEscape:S,characterReference:S,codeFenced:i(Z),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(Z,a),codeText:i(Y,a),codeTextData:S,data:S,codeFlowValue:S,definition:i(U),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(J),hardBreakEscape:i(q),hardBreakTrailing:i(q),htmlFlow:i(Q,a),htmlFlowData:S,htmlText:i(Q,a),htmlTextData:S,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:f,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:z,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(K),strong:i(ie),thematicBreak:i(se)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:X,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:G,characterReference:W,codeFenced:l(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:I,codeIndented:l(y),codeText:l(R),codeTextData:I,data:I,definition:l(),definitionDestinationString:w,definitionLabelString:b,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(A),hardBreakTrailing:l(A),htmlFlow:l(N),htmlFlowData:I,htmlText:l(O),htmlTextData:I,image:l(T),label:D,labelText:P,lineEnding:_,link:l(M),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:B,resourceDestinationString:j,resourceTitleString:F,resource:L,setextHeading:l(E),setextHeadingLineSequence:k,setextHeadingText:C,strong:l(),thematicBreak:l()}};LS(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=o(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];DS.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||BS).call(i,void 0,e[0])}for(r.position={start:FS(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:FS(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||i||(i=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(s,0,["enter",o,t[2]]),s++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:FS(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Ck({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||BS).call(this,e,r[0])}n.position.end=FS(e.end)}function u(){return Zk(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function m(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function b(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=iE(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function w(){const e=this.resume();this.stack[this.stack.length-1].url=e}function x(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function S(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:FS(e.start),end:void 0},t.push(n)),this.stack.push(n)}function I(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=FS(e.end)}function _(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=FS(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(S.call(this,e),I.call(this,e))}function A(){this.data.atHardBreak=!0}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function M(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function T(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(TS,PS)}(t),n.identifier=iE(t).toLowerCase()}function D(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function j(){const e=this.resume();this.stack[this.stack.length-1].url=e}function F(){const e=this.resume();this.stack[this.stack.length-1].title=e}function L(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function B(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=iE(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function V(e){this.data.characterReferenceType=e.type}function G(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=oE(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Kk(t)}this.stack[this.stack.length-1].value+=r}function W(e){this.stack.pop().position.end=FS(e.end)}function H(e){I.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function X(e){I.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function $(){return{type:"blockquote",children:[]}}function Z(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function U(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function J(){return{type:"emphasis",children:[]}}function K(){return{type:"heading",depth:0,children:[]}}function q(){return{type:"break"}}function Q(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!BE(e););return e}(function(e){const t={constructs:tE([OS,...(e||{}).extensions||[]]),content:n(xE),defined:[],document:n(CE),flow:n(gS),lazy:{},string:n(bS),text:n(vS)};return t;function n(e){return function(n){return RS(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const s=[];let l,c,u,d,f;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(MS.lastIndex=u,l=MS.exec(o),d=l&&void 0!==l.index?l.index:o.length,f=o.charCodeAt(d),!l){n=o.slice(u);break}if(10===f&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(o.slice(u,d)),t+=d-u),f){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function FS(e){return{line:e.line,column:e.column,offset:e.offset}}function LS(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?LS(e,r):zS(e,r)}}function zS(e,t){let n;for(n in t)if(DS.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 BS(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ck({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ck({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ck({start:t.start,end:t.end})+") is still open")}function VS(e){const t=this;t.parser=function(n){return jS(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function GS(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function WS(e){const t=e.spread;return null==t?e.children.length>1:t}function HS(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(XS(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(XS(t.slice(o),o>0,!1)),i.join("")}function XS(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const $S={blockquote:function(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)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=vE(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return GS(e,t);const o={src:vE(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:vE(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return GS(e,t);const o={href:vE(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:vE(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=WS(n[r])}return t}(n):WS(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=wk(t.children[1]),a=vk(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=i?i[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:HS(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:ZS,yaml:ZS,definition:ZS,footnoteDefinition:ZS};function ZS(){}const YS="object"==typeof self?self:globalThis,US=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new YS[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new YS[i](a),o)};return r})(new Map,e)(0),JS="",{toString:KS}={},{keys:qS}=Object,QS=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=KS.call(e).slice(8,-1);switch(n){case"Array":return[1,JS];case"Object":return[2,JS];case"Date":return[3,JS];case"RegExp":return[4,JS];case"Map":return[5,JS];case"Set":return[6,JS];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},eI=([e,t])=>0===e&&("function"===t||"symbol"===t),tI=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,s]=QS(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),o([s,[...e]],r)}const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(s)switch(s){case"BigInt":return o([s,r.toString()],r);case"Boolean":case"Number":case"String":return o([s,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],l=o([a,n],r);for(const t of qS(r))!e&&eI(QS(r[t]))||n.push([i(t),i(r[t])]);return l}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!eI(QS(n))&&!eI(QS(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&eI(QS(n))||t.push(i(n));return n}}const{message:l}=r;return o([a,{name:s,message:l}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var nI="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?US(tI(e,t)):structuredClone(e):(e,t)=>US(tI(e,t));function rI(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function oI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const iI=function(e){if(null==e)return sI;if("function"==typeof e)return aI(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=iI(e[n]);return aI(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return aI(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return aI(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function aI(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function sI(){return!0}const lI=[],cI=!0,uI=!1;function dI(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=iI(o),a=r?-1:1;!function e(o,s,l){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,f=lI;if((!t||i(o,s,l[l.length-1]||void 0))&&(f=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[cI,e];return null==e?lI:[e]}(n(o,l)),f[0]===uI))return f;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==f[0])for(u=(r?t.children.length:-1)+a,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===uI)return c;u="number"==typeof c[1]?c[1]:u+a}}return f}}(e,void 0,[])()}function fI(e,t,n,r){let o,i,a;"function"==typeof t?(i=void 0,a=t,o=n):(i=t,a=n,o=r),dI(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),o)}const pI={}.hasOwnProperty,mI={};function hI(e,t){e.position&&(t.position=function(e){const t=wk(e),n=vk(e);if(t&&n)return{start:t,end:n}}(e))}function gI(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,nI(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function yI(e,t){const n=t.data||{},r=!("value"in t)||pI.call(n,"hProperties")||pI.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function bI(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function vI(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function wI(e,t){const n=function(e,t){const n=t||mI,r=new Map,o=new Map,i=new Map,a={...$S,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=s.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=vI(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=vI(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:gI,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if(pI.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=nI(n);return r.children=s.all(e),r}return nI(e)}return(s.options.unknownHandler||yI)(s,e,t)},options:n,patch:hI,wrap:bI};return fI(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),s}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||rI,r=e.options.footnoteBackLabel||oI,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[l]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),c=vE(a.toLowerCase());let u=0;const d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++u<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,m),s.push(m)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...nI(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function xI(e,t){return e&&"run"in e?async function(n,r){const o=wI(n,{file:r,...t});await e.run(o,r)}:function(n,r){return wI(n,{file:r,...e||t})}}function CI(e){if(e)throw e}var kI,EI;var SI=function(){if(EI)return kI;EI=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return kI=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,p=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(m&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(m,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},kI}(),II=l(SI);function _I(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function AI(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const s=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(o);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(a&&a.then&&"function"==typeof a.then?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(s,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const NI={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');OI(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(OI(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){OI(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)OI(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){OI(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function OI(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const RI={cwd:function(){return"/"}};function MI(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function TI(e){if("string"==typeof e)e=new URL(e);else if(!MI(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const PI=["history","path","basename","stem","extname","dirname"];class DI{constructor(e){let t;t=e?MI(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":RI.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<PI.length;){const e=PI[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)PI.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?NI.basename(this.path):void 0}set basename(e){FI(e,"basename"),jI(e,"basename"),this.path=NI.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?NI.dirname(this.path):void 0}set dirname(e){LI(this.basename,"dirname"),this.path=NI.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?NI.extname(this.path):void 0}set extname(e){if(jI(e,"extname"),LI(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=NI.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){MI(e)&&(e=TI(e)),FI(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?NI.basename(this.path,this.extname):void 0}set stem(e){FI(e,"stem"),jI(e,"stem"),this.path=NI.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Ik(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function jI(e,t){if(e&&e.includes(NI.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+NI.sep+"`")}function FI(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function LI(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const zI=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},BI={}.hasOwnProperty;class VI extends zI{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=AI()}copy(){const e=new VI;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(II(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(XI("data",this.frozen),this.namespace[e]=t,this):BI.call(this.namespace,e)&&this.namespace[e]||void 0:e?(XI("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=YI(e),n=this.parser||this.Parser;return WI("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),WI("process",this.parser||this.Parser),HI("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=YI(e),a=n.parse(i);function s(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,(function(e,t,r){if(e||!t||!r)return s(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,s(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),WI("processSync",this.parser||this.Parser),HI("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,CI(e),t=r})),ZI("processSync","process",n),t}run(e,t,n){$I(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=YI(t);r.run(e,a,(function(t,r,a){const s=r||e;t?i(t):o?o(s):n(void 0,s,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){CI(e),n=t,r=!0})),ZI("runSync","run",r),n}stringify(e,t){this.freeze();const n=YI(t),r=this.compiler||this.Compiler;return HI("stringify",r),$I(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(XI("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=II(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function s(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];_I(a)&&_I(r)&&(r=II(!0,a,r)),n[o]=[e,r,...i]}}}}const GI=(new VI).freeze();function WI(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function HI(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function XI(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function $I(e){if(!_I(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function ZI(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function YI(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new DI(e)}const UI=[],JI={allowDangerousHtml:!0},KI=/^(https?|ircs?|mailto|xmpp)$/i,qI=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function QI(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,a=e.disallowedElements,s=e.rehypePlugins||UI,l=e.remarkPlugins||UI,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...JI}:JI,u=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||e_,p=GI().use(VS).use(l).use(xI,c).use(s),m=new DI;"string"==typeof r&&(m.value=r);for(const t of qI)Object.hasOwn(e,t.from)&&(t.from,t.to&&t.to,t.id);const h=p.parse(m);let g=p.runSync(h,m);return o&&(g={type:"element",tagName:"div",properties:{className:o},children:"root"===g.type?g.children:[g]}),fI(g,(function(e,r,o){if("raw"===e.type&&o&&"number"==typeof r)return u?o.children.splice(r,1):o.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in Xk)if(Object.hasOwn(Xk,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Xk[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=f(String(n||""),t,e))}}if("element"===e.type){let i=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!i&&n&&"number"==typeof r&&(i=!n(e,r,o)),i&&o&&"number"==typeof r)return d&&e.children?o.children.splice(r,1,...e.children):o.children.splice(r,1),r}})),Pk(g,{Fragment:Bu.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Bu.jsx,jsxs:Bu.jsxs,passKeys:!0,passNode:!0})}function e_(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||KI.test(e.slice(0,t))?e:""}function t_(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function n_(e,t,n){const r=iI((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([r_(e[0]),o_(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)dI(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],a=o[i][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,o={index:d.index,input:d.input,stack:[...t,e]};let i=a(...d,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function r_(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function o_(e){return"function"==typeof e?e:function(){return e}}const i_="phrasing",a_=["autolink","link","image","label"];function s_(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function l_(e){this.config.enter.autolinkProtocol.call(this,e)}function c_(e){this.config.exit.autolinkProtocol.call(this,e)}function u_(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function d_(e){this.config.exit.autolinkEmail.call(this,e)}function f_(e){this.exit(e)}function p_(e){n_(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,m_],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,h_]],{ignore:["link","linkReference"]})}function m_(e,t,n,r,o){let i="";if(!g_(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=t_(e,"(");let i=t_(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function h_(e,t,n,r){return!(!g_(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function g_(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||yE(n)||gE(n))&&(!t||47!==n)}function y_(){this.buffer()}function b_(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function v_(){this.buffer()}function w_(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function x_(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=iE(this.sliceSerialize(e)).toLowerCase(),n.label=t}function C_(e){this.exit(e)}function k_(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=iE(this.sliceSerialize(e)).toLowerCase(),n.label=t}function E_(e){this.exit(e)}function S_(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),a(),i+=o.move("]"),i}function I_(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let a=i.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");a+=i.move(r.safe(r.associationId(e),{before:a,after:"]"})),l(),a+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),a+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?A_:__)));return s(),a},footnoteReference:S_},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function __(e,t,n){return 0===t?e:A_(e,t,n)}function A_(e,t,n){return(n?"":" ")+e}S_.peek=function(){return"["};const N_=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function O_(e){this.enter({type:"delete",children:[]},e)}function R_(e){this.exit(e)}function M_(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function T_(e){return e.length}function P_(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function D_(e,t,n){return">"+(n?"":" ")+e}function j_(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function F_(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&(i=n.stack,a=n.unsafe[o],j_(i,a.inConstruct,!0)&&!j_(i,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var i,a;return"\\\n"}function L_(e,t,n){return(n?"":" ")+e}function z_(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function B_(e){return"&#x"+e.toString(16).toUpperCase()+";"}function V_(e,t,n){const r=EE(e),o=EE(t);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function G_(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r),s=a.move(o);let l=a.move(n.containerPhrasing(e,{after:o,before:s,...a.current()}));const c=l.charCodeAt(0),u=V_(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(l=B_(c)+l.slice(1));const d=l.charCodeAt(l.length-1),f=V_(r.after.charCodeAt(0),d,o);f.inside&&(l=l.slice(0,-1)+B_(d));const p=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+p}function W_(e){return e.value||""}function H_(e,t,n,r){const o=z_(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),c+=l.move(")"),a(),c}function X_(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function $_(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function Z_(e,t){const n=Zk(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Y_(e,t,n,r){const o=z_(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(Z_(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),l()),c+=a.move(")"),s(),c}function U_(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function J_(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function K_(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}M_.peek=function(){return"~"},G_.peek=function(e,t,n){return n.options.emphasis||"*"},W_.peek=function(){return"<"},H_.peek=function(){return"!"},X_.peek=function(){return"!"},$_.peek=function(){return"`"},Y_.peek=function(e,t,n){return Z_(e,n)?"<":"["},U_.peek=function(){return"["};const q_=iI(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Q_(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r),s=a.move(o+o);let l=a.move(n.containerPhrasing(e,{after:o,before:s,...a.current()}));const c=l.charCodeAt(0),u=V_(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(l=B_(c)+l.slice(1));const d=l.charCodeAt(l.length-1),f=V_(r.after.charCodeAt(0),d,o);f.inside&&(l=l.slice(0,-1)+B_(d));const p=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+p}Q_.peek=function(e,t,n){return n.options.strong||"*"};const eA={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),D_);return o(),a},break:F_,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,L_);return e(),t}const s=n.createTracker(r),l=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),i&&(u+=s.move(i+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const o=z_(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),a(),c},emphasis:G_,hardBreak:F_,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return fI(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,uI})),Boolean((!e.depth||e.depth<3)&&Zk(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=B_(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:W_,image:H_,imageReference:X_,inlineCode:$_,link:Y_,linkReference:U_,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):J_(n);const s=e.ordered?"."===a?")":".":function(e){const t=J_(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),K_(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||J_(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}));return l(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some((function(e){return q_(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Q_,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(K_(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function tA(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function nA(e){this.exit(e),this.data.inTable=void 0}function rA(e){this.enter({type:"tableRow",children:[]},e)}function oA(e){this.exit(e)}function iA(e){this.enter({type:"tableCell",children:[]},e)}function aA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,sA));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function sA(e,t){return"|"===t?t:e}function lA(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=eA.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=l(r[o],t,n);return a(),i}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const o=l(e,n,r),i=s([o]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:i,after:i});return a(),o(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||T_,i=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const a=null==(d=e[u][i])?"":String(d);if(!1!==n.alignDelimiters){const e=o(a);r[i]=e,(void 0===l[i]||e>l[i])&&(l[i]=e)}t.push(a)}a[u]=t,s[u]=r}var d;let f=-1;if("object"==typeof r&&"length"in r)for(;++f<c;)i[f]=P_(r[f]);else{const e=P_(r);for(;++f<c;)i[f]=e}f=-1;const p=[],m=[];for(;++f<c;){const e=i[f];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,l[f]-t.length-r.length);const a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>l[f]&&(l[f]=o),m[f]=o),p[f]=a}a.splice(1,0,p),s.splice(1,0,m),u=-1;const h=[];for(;++u<a.length;){const e=a[u],t=s[u];f=-1;const r=[];for(;++f<c;){const o=e[f]||"";let a="",s="";if(!1!==n.alignDelimiters){const e=l[f]-(t[f]||0),n=i[f];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),s=a):s=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!f||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&f===c-1||r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function l(e,t,n){const r=e.children;let o=-1;const i=[],s=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,t,n);return s(),i}}function cA(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function uA(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function dA(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(a);let l=eA.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),l}const fA={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},pA={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(hA,l,s)(t):null===t||mE(t)||yE(t)||45!==t&&gE(t)?l(t):(i=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function l(e){return o||r||!i?n(e):t(e)}},partial:!0},mA={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(hA,t,i)(a):null===a||mE(a)||yE(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},hA={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||mE(a)||yE(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||mE(e)||yE(e)?t(e):r(e)}function i(e){return aE(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):aE(t)?(e.consume(t),a):n(t)}},partial:!0},gA={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return sE(e)?n(e):t(e)}},partial:!0},yA={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!CA.call(r,r.previous)||IA(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(fA,e.attempt(pA,e.attempt(mA,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:CA},bA={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&kA.call(r,r.previous)&&!IA(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(aE(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),i?l:(i=!0,s)):n(t)}function l(t){return null===t||cE(t)||mE(t)||yE(t)||gE(t)?n(t):e.attempt(pA,e.attempt(mA,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:kA},vA={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!SA(t)||!EA.call(r,r.previous)||IA(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return SA(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(gA,c,l)(t):45===t||95===t||sE(t)?(i=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),o=!0,s}function c(a){return i&&o&&aE(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:EA},wA={};let xA=48;for(;xA<123;)wA[xA]=vA,xA++,58===xA?xA=65:91===xA&&(xA=97);function CA(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||mE(e)}function kA(e){return!aE(e)}function EA(e){return!(47===e||SA(e))}function SA(e){return 43===e||45===e||46===e||95===e||sE(e)}function IA(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}wA[43]=vA,wA[45]=vA,wA[46]=vA,wA[95]=vA,wA[72]=[vA,bA],wA[104]=[vA,bA],wA[87]=[vA,yA],wA[119]=[vA,yA];const _A={tokenize:function(e,t,n){const r=this;return wE(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function AA(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const s=iE(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function NA(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function OA(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!i||null===s||91===s||mE(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(iE(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return mE(s)||(i=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function RA(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||mE(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=iE(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return mE(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),wE(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function MA(e,t,n){return e.check(NE,t,e.attempt(_A,t,n))}function TA(e){e.exit("gfmFootnoteDefinition")}function PA(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const l=EE(o);if(126===i)return a>1?r(i):(e.consume(i),a++,s);if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=EE(i);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&qk(a,a.length,0,SE(s,e.slice(r+1,n),t)),qk(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),qk(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class DA{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function jA(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function FA(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?w:s;if(i===w&&r.parser.lazy[r.now().line])return n(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return o=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):pE(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):hE(t)?wE(e,l,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||mE(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,hE(t)?wE(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?m(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):v(t)}function p(t){return hE(t)?wE(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(a+=1,h(t)):null===t||pE(t)?b(t):v(t)}function h(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):v(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return hE(t)?wE(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?f(n):(null===n||pE(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function w(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||pE(n)?(e.exit("tableRow"),t(n)):hE(n)?wE(e,x,"whitespace")(n):(e.enter("data"),C(n))}function C(t){return null===t||124===t||mE(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?k:C)}function k(t){return 92===t||124===t?(e.consume(t),C):C(t)}}function LA(e,t){let n,r,o,i=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const f=new DA;for(;++i<e.length;){const p=e[i],m=p[1];"enter"===p[0]?"tableHead"===m.type?(u=!1,0!==d&&(BA(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(i,0,[["enter",n,t]])):"tableRow"===m.type||"tableDelimiterRow"===m.type?(a=!0,o=void 0,l=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(i,0,[["enter",r,t]])),s="tableDelimiterRow"===m.type?2:r?3:1):!s||"data"!==m.type&&"tableDelimiterMarker"!==m.type&&"tableDelimiterFiller"!==m.type?"tableCellDivider"===m.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],o=zA(f,t,l,s,void 0,o)),l=c,c=[l[1],i,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],o=zA(f,t,l,s,void 0,o),l=[0,0,0,0]),c[2]=i)):"tableHead"===m.type?(u=!0,d=i):"tableRow"===m.type||"tableDelimiterRow"===m.type?(d=i,0!==l[1]?(c[0]=c[1],o=zA(f,t,l,s,i,o)):0!==c[1]&&(o=zA(f,t,c,s,i,o)),s=0):!s||"data"!==m.type&&"tableDelimiterMarker"!==m.type&&"tableDelimiterFiller"!==m.type||(c[3]=i)}for(0!==d&&BA(f,t,d,n,r),f.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=jA(t.events,i))}return e}function zA(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},VA(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=VA(t.events,n[1]);if(i={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=VA(t.events,n[2]),i=VA(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},VA(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function BA(e,t,n,r,o){const i=[],a=VA(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function VA(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const GA={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return mE(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return pE(r)?t(r):hE(r)?e.check({tokenize:WA},t,n)(r):n(r)}}};function WA(e,t,n){return wE(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const HA={};function XA(e){const t=e||HA,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return tE([{text:wA},{document:{91:{name:"gfmFootnoteDefinition",tokenize:RA,continuation:{tokenize:MA},exit:TA}},text:{91:{name:"gfmFootnoteCall",tokenize:OA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:AA,resolveTo:NA}}},PA(e),{flow:{null:{name:"table",tokenize:FA,resolveAll:LA}}},{text:{91:GA}}])}(t)),o.push([{transforms:[p_],enter:{literalAutolink:s_,literalAutolinkEmail:l_,literalAutolinkHttp:l_,literalAutolinkWww:l_},exit:{literalAutolink:f_,literalAutolinkEmail:d_,literalAutolinkHttp:c_,literalAutolinkWww:u_}},{enter:{gfmFootnoteCallString:y_,gfmFootnoteCall:b_,gfmFootnoteDefinitionLabelString:v_,gfmFootnoteDefinition:w_},exit:{gfmFootnoteCallString:x_,gfmFootnoteCall:C_,gfmFootnoteDefinitionLabelString:k_,gfmFootnoteDefinition:E_}},{canContainEols:["delete"],enter:{strikethrough:O_},exit:{strikethrough:R_}},{enter:{table:tA,tableData:iA,tableHeader:iA,tableRow:rA},exit:{codeText:aA,table:nA,tableData:oA,tableHeader:oA,tableRow:oA}},{exit:{taskListCheckValueChecked:cA,taskListCheckValueUnchecked:cA,paragraph:uA}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:i_,notInConstruct:a_},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:i_,notInConstruct:a_},{character:":",before:"[ps]",after:"\\/",inConstruct:i_,notInConstruct:a_}]},I_(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:N_}],handlers:{delete:M_}},lA(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:dA}}]}}(t))}const $A=({item:t})=>{const n=e.useContext(zV);return o.createElement("div",{className:"libnodeentry",onClick:e=>{2===e.detail&&n.worker?.add_node(t.node_id)},title:t.description},t.node_name||t.node_id)},ZA=(e,t)=>{const n=e.nodes?.some((e=>e.node_id.toLowerCase().includes(t.toLowerCase())))??!1,r=e.subshelves?.some((e=>ZA(e,t)))??!1;return n||r},YA=({item:t,filter:n,parentkey:r})=>{const[i,a]=e.useState(!1),s=t.nodes?.filter((e=>e.node_id.toLowerCase().includes(n.toLowerCase()))),l=i||n.length>0;return ZA(t,n)?o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>a(!i),style:{cursor:"pointer"},title:t.description},o.createElement("div",{className:"shelftitle_text"},t.name),o.createElement("div",{className:"expandicon "+(l?"open":"close")},o.createElement(Gy,null))),o.createElement("div",{className:"libnodecontainer "+(l?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},s&&o.createElement(o.Fragment,null,s.map((e=>o.createElement($A,{key:e.node_id,item:e})))),t.subshelves&&o.createElement(o.Fragment,null,t.subshelves.map((e=>o.createElement(YA,{key:r+e.name,item:e,filter:n,parentkey:r+e.name})))))),o.createElement("hr",null)):o.createElement(o.Fragment,null)},UA=({filter:e,setFilter:t})=>o.createElement("div",{className:"libfilter"},o.createElement(Yy,{fontSize:"inherit"}),o.createElement("input",{type:"text",placeholder:"Filter",value:e,onChange:e=>{t(e.target.value)}}),e&&o.createElement(Wy,{fontSize:"inherit",onClick:()=>{t("")}})),JA=[">=","==","<=","<",">"],KA=">=",qA=({availableModule:e})=>o.createElement("div",{className:"module-links"},e.homepage&&o.createElement(o.Fragment,null,o.createElement("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer"},"Homepage")),e.source&&e.homepage&&" | ",e.source&&o.createElement(o.Fragment,null,o.createElement("a",{href:e.source,target:"_blank",rel:"noopener noreferrer"},"Source"))),QA=({availableModule:t})=>{const[n,r]=e.useState(!1),i=t.description.length>150?t.description.substring(0,150)+"...":t.description;return o.createElement("div",{className:"module-description"},o.createElement(QI,{remarkPlugins:[XA]},n?t.description.replace(/\\n/g," \n"):i.replace(/\\n/g," \n")),t.description.length>150&&o.createElement("button",{onClick:()=>r(!n),className:"toggle-description"},n?"Show less":"Show more"))},eN=({availableModule:t,on_change:n})=>{const[r,i]=e.useState(t.version||"latest"),[a,s]=e.useState(KA);return t.releases&&!t.releases.includes(r)&&t.releases.unshift(r),o.createElement(o.Fragment,null,o.createElement("select",{value:a,onChange:e=>{e.target.value!==a&&JA.includes(e.target.value)&&(s(e.target.value),"latest"!==r&&n(e.target.value+r))}},JA.map((e=>o.createElement("option",{key:e,value:e},e)))),o.createElement("select",{onChange:e=>{const t=e.target.value;i(t),n("latest"!==t?a+t:t)},value:r},t.releases&&t.releases.map((e=>o.createElement("option",{key:e,value:e},e)))))},tN=({availableModule:t,on_remove:n,on_update:r})=>{const[i,a]=e.useState(KA+t.version||"latest");return o.createElement("div",{className:"addable-module"},o.createElement("div",{className:"module-name"},t.name+(t.version?` (${t.version})`:"")),o.createElement(qA,{availableModule:t}),o.createElement(QA,{availableModule:t}),o.createElement("div",null,o.createElement(eN,{availableModule:t,on_change:a}),o.createElement("button",{className:"update-button",disabled:i===t.version,onClick:()=>{r(t,i)}},"Update"),o.createElement("button",{className:"remove-button",onClick:()=>{n(t)}},"Remove")))},nN=({availableModule:t,on_add:n})=>{const[r,i]=e.useState(KA+t.version||"latest");return o.createElement("div",{className:"addable-module"},o.createElement("div",{className:"module-name"},t.name+(t.version?` (${t.version})`:"")),o.createElement(qA,{availableModule:t}),o.createElement(QA,{availableModule:t}),o.createElement("div",null,o.createElement(eN,{availableModule:t,on_change:i}),o.createElement("button",{className:"add-button",onClick:()=>{n(t,r)}},"Add")))},rN=({availableModule:t,on_add:n})=>{const[r,i]=e.useState(KA+t.version||"latest");return o.createElement("div",{className:"addable-module"},o.createElement("div",{className:"module-name"},t.name),o.createElement(qA,{availableModule:t}),o.createElement(QA,{availableModule:t}),o.createElement("div",null,o.createElement(eN,{availableModule:t,on_change:i}),o.createElement("button",{className:"add-button",onClick:()=>{n(t,r)}},"Add")))},oN=({children:t})=>{const[n,r]=e.useState(""),i=e.useContext(zV),[a,s]=e.useState(!0),[l,c]=e.useState(!0),[u,d]=e.useState(!0),[f,p]=e.useState({installed:[],available:[],active:[]}),[m,h]=e.useState(!1);if(!i.worker)return o.createElement(o.Fragment,null);const g=(e,t)=>{h(!1),void 0!==i.worker&&i.worker.add_lib(e.name,t)},y=(e,t)=>{h(!1),void 0!==i.worker&&i.worker.add_lib(e.name,t)},b=e=>{h(!1),void 0!==i.worker&&i.worker.remove_lib(e.name)},v=(e,t)=>{h(!1),void 0!==i.worker&&i.worker.add_lib(e.name,t)},w=e=>e.filter((e=>e.name.toLowerCase().includes(n.toLowerCase())||e.description.toLowerCase().includes(n.toLowerCase()))),x=w(f.available),C=w(f.installed),k=w(f.active);return o.createElement(Uy,{title:"Manage Library",trigger:t,description:"Add or remove libraries to the current worker.",onOpenChange:e=>{e&&void 0!==i.worker&&i.worker.is_open&&i.worker.get_available_modules().then((e=>{p(e)}))},open:m,setOpen:h},o.createElement("input",{className:"filter-input styledinput",type:"text",placeholder:"Filter modules...",value:n,onChange:e=>r(e.target.value)}),o.createElement("div",{className:"packagelist",style:{maxHeight:"70%",overflow:"auto"}},C.length>0&&o.createElement("h3",{onClick:()=>{d(!u)}},"Installed"),u&&C.map((e=>o.createElement(nN,{key:e.name+e.source,availableModule:e,on_add:g}))),x.length>0&&o.createElement("h3",{onClick:()=>{c(!l)}},"Available"),l&&x.map((e=>o.createElement(rN,{key:e.name+e.source,availableModule:e,on_add:y}))),k.length>0&&o.createElement("h3",{onClick:()=>{s(!a)}},"Active"),a&&k.map((e=>o.createElement(tN,{key:e.name+e.source,availableModule:e,on_remove:b,on_update:v})))))},iN=({ins:t})=>{const[n,r]=e.useState(t.name),i=e.useContext(zV);return o.createElement(o.Fragment,null,o.createElement(Uy,{title:t.name,description:"Settings for"+t.name,trigger:o.createElement("div",null,"Settings"),buttons:[{text:"Save",onClick:()=>{i.worker&&(i.worker.update_external_worker(t.uuid,t.nodeclassid,{name:n}),t.name=n)},close:!0},{text:"Delete",onClick:()=>{i.worker&&i.worker.remove_external_worker(t.uuid,t.nodeclassid)},close:!0}]},o.createElement("div",null,o.createElement("div",null,o.createElement("label",{htmlFor:"name"},"Name: "),o.createElement("input",{type:"text",name:"name",value:n,onChange:e=>r(e.target.value),className:"styledinput"})))))},aN=({ins:t,lib:n,filter:r="",parentkey:i})=>{const[a,s]=e.useState(!1),l=n?.nodes?.filter((e=>e.node_id.toLowerCase().includes(r.toLowerCase())));return o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>s(!a),style:{cursor:"pointer"},title:t.name},o.createElement("div",{className:"shelftitle_text"},t.name),o.createElement("div",{className:"expandicon "+(a?"open":"close")},o.createElement(Gy,null))),o.createElement("div",{className:"libnodecontainer "+(a?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},a&&o.createElement(o.Fragment,null,o.createElement("div",{className:"libnodeentry",title:t.uuid},o.createElement(iN,{ins:t})),n&&o.createElement(o.Fragment,null,l&&o.createElement(o.Fragment,null,l.map((e=>o.createElement($A,{key:e.node_id,item:e})))),n.subshelves.map((e=>o.createElement(YA,{key:i+e.name,item:e,filter:r,parentkey:i+e.name}))))))))},sN=({item:t,mod:n,lib:r})=>{const i=e.useContext(zV),[a,s]=e.useState(!1),l=t.name||t.module+"."+t.class_name;return o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>s(!a),style:{cursor:"pointer"},title:l},o.createElement("div",{className:"shelftitle_text"},l),o.createElement("div",{className:"expandicon "+(a?"open":"close")},o.createElement(Gy,null))),o.createElement("div",{className:"libnodecontainer "+(a?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},a&&o.createElement(o.Fragment,null,o.createElement("div",{className:"libnodeentry",onClick:e=>{2===e.detail&&i.worker?.add_external_worker({module:n,cls_module:t.module,cls_name:t.class_name})},title:t.name},"New Instance"),t.instances.map((e=>o.createElement(aN,{key:e.uuid,ins:e,lib:r?.subshelves.find((t=>t.name===e.uuid)),parentkey:e.uuid})))))))},lN=({externalworkermod:t,lib:n})=>{const[r,i]=e.useState(!1),a=r;return o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>i(!r),style:{cursor:"pointer"},title:t.module},o.createElement("div",{className:"shelftitle_text"},t.module),o.createElement("div",{className:"expandicon "+(a?"open":"close")},o.createElement(Gy,null))),o.createElement("div",{className:"libnodecontainer "+(a?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},t.worker_classes.map((e=>o.createElement(sN,{key:e.module+e.class_name,item:e,mod:t.module,lib:n}))))),o.createElement("hr",null))},cN=()=>{const t=e.useContext(zV),n=t.lib.libstate(),r=o.useContext(zV),i=r.local_settings((e=>e.view_settings.expand_lib)),a=r.local_settings((e=>e.update_view_settings)),s=gC("m"),[l,c]=e.useState(""),u=t.worker?.state((e=>e.is_open))??!1;return o.createElement(bC,{maxSize:s?"100%":"300px",direction:s?"down":"right",containerClassName:"pos-left pos-top bg1 h-12",onExpandChange:e=>{a({expand_lib:e})},expanded:void 0===i||i},o.createElement("div",{className:"libcontainer"},o.createElement("div",{className:"library"},o.createElement("div",{className:"libtitle"},"Lib"),o.createElement("hr",{className:"hr_prominent"}),o.createElement(UA,{filter:l,setFilter:c}),o.createElement("div",{className:"vscrollcontainer"},n.lib.shelves.map((e=>"_external_worker"==e.name?o.createElement(o.Fragment,null):o.createElement(YA,{key:e.name,item:e,filter:l,parentkey:e.name})))),o.createElement("hr",null),o.createElement("div",{className:"libtitle"},"External Worker"),o.createElement("hr",{className:"hr_prominent"}),o.createElement("div",{className:"vscrollcontainer"},n.external_worker?.map((e=>o.createElement(lN,{key:e.module,externalworkermod:e,lib:n.lib.shelves.find((e=>"_external_worker"===e.name))})))),o.createElement("hr",null)),o.createElement("div",{style:{paddingTop:"0.5rem"}}),u&&o.createElement("div",{className:"addlib"},o.createElement(oN,null,o.createElement("button",null,"Manage Libraries")))))};const{useRef:uN}=e;function dN(e){const t=uN();return n=>{const r=e(n);return function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}(t.current,r)?t.current:t.current=r}}var fN="Popover",[pN,mN]=Vu(fN,[Mv]),hN=Mv(),[gN,yN]=pN(fN),bN=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=hN(t),c=o.useRef(null),[u,d]=o.useState(!1),[f=!1,p]=Yu({prop:r,defaultProp:i,onChange:a});return Bu.jsx(Yv,{...l,children:Bu.jsx(gN,{scope:t,contentId:$u(),triggerRef:c,open:f,onOpenChange:p,onOpenToggle:o.useCallback((()=>p((e=>!e))),[p]),hasCustomAnchor:u,onCustomAnchorAdd:o.useCallback((()=>d(!0)),[]),onCustomAnchorRemove:o.useCallback((()=>d(!1)),[]),modal:s,children:n})})};bN.displayName=fN;var vN="PopoverAnchor";o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,i=yN(vN,n),a=hN(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return o.useEffect((()=>(s(),()=>l())),[s,l]),Bu.jsx(Uv,{...a,...r,ref:t})})).displayName=vN;var wN="PopoverTrigger",xN=o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=yN(wN,n),i=hN(n),a=Mu(t,o.triggerRef),s=Bu.jsx(Qu.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":TN(o.open),...r,ref:a,onClick:Nu(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:Bu.jsx(Uv,{asChild:!0,...i,children:s})}));xN.displayName=wN;var CN="PopoverPortal",[kN,EN]=pN(CN,{forceMount:void 0}),SN=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=yN(CN,t);return Bu.jsx(kN,{scope:t,forceMount:n,children:Bu.jsx(xd,{present:n||i.open,children:Bu.jsx(wd,{asChild:!0,container:o,children:r})})})};SN.displayName=CN;var IN="PopoverContent",_N=o.forwardRef(((e,t)=>{const n=EN(IN,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=yN(IN,e.__scopePopover);return Bu.jsx(xd,{present:r||i.open,children:i.modal?Bu.jsx(AN,{...o,ref:t}):Bu.jsx(NN,{...o,ref:t})})}));_N.displayName=IN;var AN=o.forwardRef(((e,t)=>{const n=yN(IN,e.__scopePopover),r=o.useRef(null),i=Mu(t,r),a=o.useRef(!1);return o.useEffect((()=>{const e=r.current;if(e)return xf(e)}),[]),Bu.jsx(mf,{as:Uu,allowPinchZoom:!0,children:Bu.jsx(ON,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Nu(e.onCloseAutoFocus,(e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()})),onPointerDownOutside:Nu(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:Nu(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),NN=o.forwardRef(((e,t)=>{const n=yN(IN,e.__scopePopover),r=o.useRef(!1),i=o.useRef(!1);return Bu.jsx(ON,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const o=t.target,a=n.triggerRef.current?.contains(o);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})})),ON=o.forwardRef(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=yN(IN,n),p=hN(n);return Ed(),Bu.jsx(pd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:Bu.jsx(ad,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:Bu.jsx(Jv,{"data-state":TN(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),RN="PopoverClose";o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=yN(RN,n);return Bu.jsx(Qu.button,{type:"button",...r,ref:t,onClick:Nu(e.onClick,(()=>o.onOpenChange(!1)))})})).displayName=RN;var MN=o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=hN(n);return Bu.jsx(Kv,{...o,...r,ref:t})}));function TN(e){return e?"open":"closed"}MN.displayName="PopoverArrow";var PN,DN,jN,FN,LN,zN,BN,VN,GN=bN,WN=xN,HN=SN,XN=_N,$N=MN;function ZN(){if(FN)return jN;FN=1;const e=DN?PN:(DN=1,PN={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),t={};for(const n of Object.keys(e))t[e[n]]=n;const n={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};jN=n;for(const e of Object.keys(n)){if(!("channels"in n[e]))throw new Error("missing channels property: "+e);if(!("labels"in n[e]))throw new Error("missing channel labels property: "+e);if(n[e].labels.length!==n[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=n[e];delete n[e].channels,delete n[e].labels,Object.defineProperty(n[e],"channels",{value:t}),Object.defineProperty(n[e],"labels",{value:r})}function r(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}return n.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=i-o;let s,l;i===o?s=0:t===i?s=(n-r)/a:n===i?s=2+(r-t)/a:r===i&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const c=(o+i)/2;return l=i===o?0:c<=.5?a/(i+o):a/(2-i-o),[s,100*l,100*c]},n.rgb.hsv=function(e){let t,n,r,o,i;const a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(o=0,i=0):(i=u/c,t=d(a),n=d(s),r=d(l),a===c?o=r-n:s===c?o=1/3+t-r:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},n.rgb.hwb=function(e){const t=e[0],r=e[1];let o=e[2];const i=n.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,o));return o=1-1/255*Math.max(t,Math.max(r,o)),[i,100*a,100*o]},n.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},n.rgb.keyword=function(n){const o=t[n];if(o)return o;let i,a=1/0;for(const t of Object.keys(e)){const o=r(n,e[t]);o<a&&(a=o,i=t)}return i},n.keyword.rgb=function(t){return e[t]},n.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},n.rgb.lab=function(e){const t=n.rgb.xyz(e);let r=t[0],o=t[1],i=t[2];r/=95.047,o/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*o-16,500*(r-o),200*(o-i)]},n.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,a;if(0===n)return a=255*r,[a,a,a];o=r<.5?r*(1+n):r+n-r*n;const s=2*r-o,l=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,a=6*i<1?s+6*(o-s)*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,l[e]=255*a;return l},n.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;return[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},n.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},n.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,a;a=(2-n)*r;const s=(2-n)*o;return i=n*o,i/=s<=1?s:2-s,i=i||0,a/=2,[t,100*i,100*a]},n.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const a=Math.floor(6*t),s=1-r;i=6*t-a,1&a&&(i=1-i);const l=n+i*(s-n);let c,u,d;switch(a){default:case 6:case 0:c=s,u=l,d=n;break;case 1:c=l,u=s,d=n;break;case 2:c=n,u=s,d=l;break;case 3:c=n,u=l,d=s;break;case 4:c=l,u=n,d=s;break;case 5:c=s,u=n,d=l}return[255*c,255*u,255*d]},n.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},n.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,a;return o=3.2406*t+-1.5372*n+-.4986*r,i=-.9689*t+1.8758*n+.0415*r,a=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*o,255*i,255*a]},n.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(t-n),200*(n-r)]},n.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,i=t**3,a=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},n.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(n*n+r*r),o]},n.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},n.rgb.ansi16=function(e,t=null){const[r,o,i]=e;let a=null===t?n.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(i/255)<<2|Math.round(o/255)<<1|Math.round(r/255));return 2===a&&(s+=60),s},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},n.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},n.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},n.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},n.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),a=o-i;let s,l;return s=a<1?i/(1-a):0,l=a<=0?0:o===t?(n-r)/a%6:o===n?2+(r-t)/a:4+(t-n)/a,l/=6,l%=1,[360*l,100*a,100*s]},n.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},n.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},n.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],i=t%1*6,a=i%1,s=1-a;let l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},n.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},n.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},n.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},n.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=function(e){return[0,0,e[0]]},n.gray.hsv=n.gray.hsl,n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},jN}function YN(){if(zN)return LN;zN=1;const e=ZN();function t(t){const n=function(){const t={},n=Object.keys(e);for(let e=n.length,r=0;r<e;r++)t[n[r]]={distance:-1,parent:null};return t}(),r=[t];for(n[t].distance=0;r.length;){const t=r.pop(),o=Object.keys(e[t]);for(let e=o.length,i=0;i<e;i++){const e=o[i],a=n[e];-1===a.distance&&(a.distance=n[t].distance+1,a.parent=t,r.unshift(e))}}return n}function n(e,t){return function(n){return t(e(n))}}function r(t,r){const o=[r[t].parent,t];let i=e[r[t].parent][t],a=r[t].parent;for(;r[a].parent;)o.unshift(r[a].parent),i=n(e[r[a].parent][a],i),a=r[a].parent;return i.conversion=o,i}return LN=function(e){const n=t(e),o={},i=Object.keys(n);for(let e=i.length,t=0;t<e;t++){const e=i[t];null!==n[e].parent&&(o[e]=r(e,n))}return o},LN}var UN=function(){if(VN)return BN;VN=1;const e=ZN(),t=YN(),n={};return Object.keys(e).forEach((r=>{n[r]={},Object.defineProperty(n[r],"channels",{value:e[r].channels}),Object.defineProperty(n[r],"labels",{value:e[r].labels});const o=t(r);Object.keys(o).forEach((e=>{const t=o[e];n[r][e]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(t),n[r][e].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(t)}))})),BN=n}(),JN=r({__proto__:null,default:l(UN)},[UN]);const KN=(e,t)=>{const n=Array.isArray(t)?t:[t];if(void 0===n[0]||null===n[0])return KN("rgb",[0,0,0]);const r=JN[e];if(!r)throw new Error("Unsupported color type: "+e);r[e]=()=>n;const o=e=>{const t=e(...n);return Array.isArray(t)?null!=t[0]:t};if(!o(r.rgb)||!o(r.hsl))return KN("rgb",[0,0,0]);const i={};return Object.keys(r).forEach((t=>{const o=r[t];"function"==typeof o&&(i[t]=()=>t===e?n:o(...n))})),i},qN=({onChange:t,colorconverter:n,allow_null:r=!1})=>{if(null===n&&!r)throw new Error("Color converter is null");const[i,a]=e.useState(n),[s,l]=e.useState([0,0,0]),[c,u]=e.useState([0,0,0]),[d,f]=e.useState([0,0,0]),[p,m]=e.useState("000");e.useEffect((()=>{if(!i){if(!r)throw new Error("Color converter is null");return u([0,0,0]),l([0,0,0]),f([0,0,0]),void m("")}l(i.hsl()),u(i.rgb()),f(i.hsv()),m(i.hex())}),[i]);const h={backgroundColor:`hsl(${s[0]}, ${s[1]}%, ${s[2]}%)`,padding:"10px",margin:"10px 0"};return o.createElement("div",{style:{backgroundColor:"white"}},o.createElement("div",{style:h},"Color Preview"),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"RGB"),o.createElement("div",null),o.createElement("label",null,"Red"),o.createElement("input",{type:"range",min:"0",max:"255",value:c[0],onChange:e=>{const n=[parseInt(e.target.value),c[1],c[2]],r=KN("rgb",n);a(r),t(r)},style:{background:"linear-gradient(to right, #000, #f00)"}}),o.createElement("label",null,"Green"),o.createElement("input",{type:"range",min:"0",max:"255",value:c[1],onChange:e=>{const n=[c[0],parseInt(e.target.value),c[2]],r=KN("rgb",n);a(r),t(r)},style:{background:"linear-gradient(to right, #000, #0f0)"}}),o.createElement("label",null,"Blue"),o.createElement("input",{type:"range",min:"0",max:"255",value:c[2],onChange:e=>{const n=[c[0],c[1],parseInt(e.target.value)],r=KN("rgb",n);a(r),t(r)},style:{background:"linear-gradient(to right, #000, #00f)"}})),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"HSL"),o.createElement("div",null),o.createElement("label",null,"Hue"),o.createElement("input",{type:"range",min:"0",max:"360",value:s[0],onChange:e=>{const n=[parseInt(e.target.value),s[1],s[2]],r=KN("hsl",n);a(r),t(r)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),o.createElement("label",null,"Saturation"),o.createElement("input",{type:"range",min:"0",max:"100",value:s[1],onChange:e=>{const n=[s[0],parseInt(e.target.value),s[2]],r=KN("hsl",n);a(r),t(r)},style:{background:`linear-gradient(to right, #fff, hsl(${s[0]}, 100%, 50%))`}}),o.createElement("label",null,"Lightness"),o.createElement("input",{type:"range",min:"0",max:"100",value:s[2],onChange:e=>{const n=[s[0],s[1],parseInt(e.target.value)],r=KN("hsl",n);a(r),t(r)},style:{background:`linear-gradient(to right, #000, hsl(${s[0]}, 100%, 50%), #fff)`}})),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"HSV"),o.createElement("div",null),o.createElement("label",null,"Hue"),o.createElement("input",{type:"range",min:"0",max:"360",value:d[0],onChange:e=>{const n=[parseInt(e.target.value),d[1],d[2]],r=KN("hsv",n);a(r),t(r)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),o.createElement("label",null,"Saturation"),o.createElement("input",{type:"range",min:"0",max:"100",value:d[1],onChange:e=>{const n=[d[0],parseInt(e.target.value),d[2]],r=KN("hsv",n);a(r),t(r)},style:{background:`linear-gradient(to right, #fff, hsl(${s[0]}, 100%, 50%))`}}),o.createElement("label",null,"Value"),o.createElement("input",{type:"range",min:"0",max:"100",value:d[2],onChange:e=>{const n=[d[0],d[1],parseInt(e.target.value)],r=KN("hsv",n);a(r),t(r)},style:{background:`linear-gradient(to right, #000, hsl(${s[0]}, 100%, 50%))`}})),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"HEX"),o.createElement("div",null),o.createElement("input",{type:"text",value:p,onChange:e=>{const n=""===e.target.value?null:KN("hex",[e.target.value]);a(n),t(n)}})))},QN=({inicolordata:t,inicolorspace:n,allow_null:r=!1,delay:i=1e3,onChange:a})=>{const s=void 0!==t?t:[0,0,0],l=void 0===t?"rgb":n||"hex",c=Array.isArray(s)?s:[s],u=e.useMemo((()=>{let e=KN(l,c);return void 0===e.rgb()&&(e=KN("rgb",[0,0,0])),e}),[l,c]),[d,f]=e.useState(u);e.useEffect((()=>{const e=void 0!==t?t:[0,0,0],r=void 0===t?"rgb":n||"hex",o=Array.isArray(e)?e:[e];let i=KN(r,o);void 0===i.rgb()&&(i=KN("rgb",[0,0,0])),f(i)}),[JSON.stringify(t),n]);const p=e.useContext(zV),m=p.local_state((()=>p.reactflowRef)),h=e.useRef(null),g=e.useCallback((e=>{if(null===e&&!r)throw new Error("Color is null");null!==e&&f(e),h.current&&clearTimeout(h.current),a&&(h.current=setTimeout((()=>{a(e),h.current=null}),i))}),[r,a,i]);e.useEffect((()=>()=>{h.current&&clearTimeout(h.current)}),[]);const y=e.useMemo((()=>({background:"#"+d.hex(),borderRadius:"0.3rem",width:"2rem",height:"1rem"})),[d]);return o.createElement(GN,null,o.createElement(WN,{asChild:!0},o.createElement("button",{style:y})),o.createElement(HN,{container:m},o.createElement(XN,{side:"left",className:"iotooltipcontent"},o.createElement(qN,{onChange:g,colorconverter:d,allow_null:r}))))};function eO(e,[t,n]){return Math.min(n,Math.max(t,e))}var tO=["PageUp","PageDown"],nO=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],rO={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},oO="Slider",[iO,aO,sO]=Jy(oO),[lO,cO]=Vu(oO,[sO]),[uO,dO]=lO(oO),fO=o.forwardRef(((e,t)=>{const{name:n,min:r=0,max:i=100,step:a=1,orientation:s="horizontal",disabled:l=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[r],value:d,onValueChange:f=()=>{},onValueCommit:p=()=>{},inverted:m=!1,form:h,...g}=e,y=o.useRef(new Set),b=o.useRef(0),v="horizontal"===s?hO:gO,[w=[],x]=Yu({prop:d,defaultProp:u,onChange:e=>{const t=[...y.current];t[b.current]?.focus(),f(e)}}),C=o.useRef(w);function k(e,t,{commit:n}={commit:!1}){const o=function(e){return(String(e).split(".")[1]||"").length}(a),s=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-r)/a)*a+r,o),l=eO(s,[r,i]);x(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,l,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map(((t,n)=>e[n+1]-t))}(e);return Math.min(...n)>=t}return!0}(r,c*a)){b.current=r.indexOf(l);const t=String(r)!==String(e);return t&&n&&p(r),t?r:e}return e}))}return Bu.jsx(uO,{scope:e.__scopeSlider,name:n,disabled:l,min:r,max:i,valueIndexToChangeRef:b,thumbs:y.current,values:w,orientation:s,form:h,children:Bu.jsx(iO.Provider,{scope:e.__scopeSlider,children:Bu.jsx(iO.Slot,{scope:e.__scopeSlider,children:Bu.jsx(v,{"aria-disabled":l,"data-disabled":l?"":void 0,...g,ref:t,onPointerDown:Nu(g.onPointerDown,(()=>{l||(C.current=w)})),min:r,max:i,inverted:m,onSlideStart:l?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map((e=>Math.abs(e-t))),r=Math.min(...n);return n.indexOf(r)}(w,e);k(e,t)},onSlideMove:l?void 0:function(e){k(e,b.current)},onSlideEnd:l?void 0:function(){const e=C.current[b.current];w[b.current]!==e&&p(w)},onHomeKeyDown:()=>!l&&k(r,0,{commit:!0}),onEndKeyDown:()=>!l&&k(i,w.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!l){const n=tO.includes(e.key)||e.shiftKey&&nO.includes(e.key)?10:1,r=b.current;k(w[r]+a*n*t,r,{commit:!0})}}})})})})}));fO.displayName=oO;var[pO,mO]=lO(oO,{startEdge:"left",endEdge:"right",size:"width",direction:1}),hO=o.forwardRef(((e,t)=>{const{min:n,max:r,dir:i,inverted:a,onSlideStart:s,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...d}=e,[f,p]=o.useState(null),m=Mu(t,(e=>p(e))),h=o.useRef(void 0),g=qy(i),y="ltr"===g,b=y&&!a||!y&&a;function v(e){const t=h.current||f.getBoundingClientRect(),o=_O([0,t.width],b?[n,r]:[r,n]);return h.current=t,o(e-t.left)}return Bu.jsx(pO,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:Bu.jsx(yO,{dir:g,"data-orientation":"horizontal",...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=v(e.clientX);s?.(t)},onSlideMove:e=>{const t=v(e.clientX);l?.(t)},onSlideEnd:()=>{h.current=void 0,c?.()},onStepKeyDown:e=>{const t=rO[b?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})})),gO=o.forwardRef(((e,t)=>{const{min:n,max:r,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=e,d=o.useRef(null),f=Mu(t,d),p=o.useRef(void 0),m=!i;function h(e){const t=p.current||d.current.getBoundingClientRect(),o=_O([0,t.height],m?[r,n]:[n,r]);return p.current=t,o(e-t.top)}return Bu.jsx(pO,{scope:e.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:Bu.jsx(yO,{"data-orientation":"vertical",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=h(e.clientY);a?.(t)},onSlideMove:e=>{const t=h(e.clientY);s?.(t)},onSlideEnd:()=>{p.current=void 0,l?.()},onStepKeyDown:e=>{const t=rO[m?"from-bottom":"from-top"].includes(e.key);c?.({event:e,direction:t?-1:1})}})})})),yO=o.forwardRef(((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,u=dO(oO,n);return Bu.jsx(Qu.span,{...c,ref:t,onKeyDown:Nu(e.onKeyDown,(e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):tO.concat(nO).includes(e.key)&&(l(e),e.preventDefault())})),onPointerDown:Nu(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)})),onPointerMove:Nu(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)})),onPointerUp:Nu(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))}))})})),bO="SliderTrack",vO=o.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,o=dO(bO,n);return Bu.jsx(Qu.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})}));vO.displayName=bO;var wO="SliderRange",xO=o.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,i=dO(wO,n),a=mO(wO,n),s=Mu(t,o.useRef(null)),l=i.values.length,c=i.values.map((e=>IO(e,i.min,i.max))),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return Bu.jsx(Qu.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:s,style:{...e.style,[a.startEdge]:u+"%",[a.endEdge]:d+"%"}})}));xO.displayName=wO;var CO="SliderThumb",kO=o.forwardRef(((e,t)=>{const n=aO(e.__scopeSlider),[r,i]=o.useState(null),a=Mu(t,(e=>i(e))),s=o.useMemo((()=>r?n().findIndex((e=>e.ref.current===r)):-1),[n,r]);return Bu.jsx(EO,{...e,ref:a,index:s})})),EO=o.forwardRef(((e,t)=>{const{__scopeSlider:n,index:r,name:i,...a}=e,s=dO(CO,n),l=mO(CO,n),[c,u]=o.useState(null),d=Mu(t,(e=>u(e))),f=!c||(s.form||!!c.closest("form")),p=Nv(c),m=s.values[r],h=void 0===m?0:IO(m,s.min,s.max),g=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(r,s.values.length),y=p?.[l.size],b=y?function(e,t,n){const r=e/2,o=_O([0,50],[0,r]);return(r-o(t)*n)*n}(y,h,l.direction):0;return o.useEffect((()=>{if(c)return s.thumbs.add(c),()=>{s.thumbs.delete(c)}}),[c,s.thumbs]),Bu.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${h}% + ${b}px)`},children:[Bu.jsx(iO.ItemSlot,{scope:e.__scopeSlider,children:Bu.jsx(Qu.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":s.min,"aria-valuenow":m,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...a,ref:d,style:void 0===m?{display:"none"}:e.style,onFocus:Nu(e.onFocus,(()=>{s.valueIndexToChangeRef.current=r}))})}),f&&Bu.jsx(SO,{name:i??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:m},r)]})}));kO.displayName=CO;var SO=e=>{const{value:t,...n}=e,r=o.useRef(null),i=function(e){const t=o.useRef({value:e,previous:e});return o.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(t);return o.useEffect((()=>{const e=r.current,n=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(n,"value").set;if(i!==t&&o){const n=new Event("input",{bubbles:!0});o.call(e,t),e.dispatchEvent(n)}}),[i,t]),Bu.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function IO(e,t,n){return eO(100/(n-t)*(e-t),[0,100])}function _O(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var AO=fO,NO=vO,OO=xO,RO=kO,MO=o.forwardRef(((e,t)=>Bu.jsx(Qu.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));MO.displayName="VisuallyHidden";var TO=MO,[PO,DO]=Vu("Tooltip",[Mv]),jO=Mv(),FO="TooltipProvider",LO=700,zO="tooltip.open",[BO,VO]=PO(FO),GO=e=>{const{__scopeTooltip:t,delayDuration:n=LO,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[s,l]=o.useState(!0),c=o.useRef(!1),u=o.useRef(0);return o.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),Bu.jsx(BO,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:o.useCallback((()=>{window.clearTimeout(u.current),l(!1)}),[]),onClose:o.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>l(!0)),r)}),[r]),isPointerInTransitRef:c,onPointerInTransitChange:o.useCallback((e=>{c.current=e}),[]),disableHoverableContent:i,children:a})};GO.displayName=FO;var WO="Tooltip",[HO,XO]=PO(WO),$O=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=e,c=VO(WO,e.__scopeTooltip),u=jO(t),[d,f]=o.useState(null),p=$u(),m=o.useRef(0),h=s??c.disableHoverableContent,g=l??c.delayDuration,y=o.useRef(!1),[b=!1,v]=Yu({prop:r,defaultProp:i,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(zO))):c.onClose(),a?.(e)}}),w=o.useMemo((()=>b?y.current?"delayed-open":"instant-open":"closed"),[b]),x=o.useCallback((()=>{window.clearTimeout(m.current),m.current=0,y.current=!1,v(!0)}),[v]),C=o.useCallback((()=>{window.clearTimeout(m.current),m.current=0,v(!1)}),[v]),k=o.useCallback((()=>{window.clearTimeout(m.current),m.current=window.setTimeout((()=>{y.current=!0,v(!0),m.current=0}),g)}),[g,v]);return o.useEffect((()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)}),[]),Bu.jsx(Yv,{...u,children:Bu.jsx(HO,{scope:t,contentId:p,open:b,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:o.useCallback((()=>{c.isOpenDelayed?k():x()}),[c.isOpenDelayed,k,x]),onTriggerLeave:o.useCallback((()=>{h?C():(window.clearTimeout(m.current),m.current=0)}),[C,h]),onOpen:x,onClose:C,disableHoverableContent:h,children:n})})};$O.displayName=WO;var ZO="TooltipTrigger",YO=o.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,i=XO(ZO,n),a=VO(ZO,n),s=jO(n),l=Mu(t,o.useRef(null),i.onTriggerChange),c=o.useRef(!1),u=o.useRef(!1),d=o.useCallback((()=>c.current=!1),[]);return o.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),Bu.jsx(Uv,{asChild:!0,...s,children:Bu.jsx(Qu.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Nu(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))})),onPointerLeave:Nu(e.onPointerLeave,(()=>{i.onTriggerLeave(),u.current=!1})),onPointerDown:Nu(e.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:Nu(e.onFocus,(()=>{c.current||i.onOpen()})),onBlur:Nu(e.onBlur,i.onClose),onClick:Nu(e.onClick,i.onClose)})})}));YO.displayName=ZO;var[UO,JO]=PO("TooltipPortal",{forceMount:void 0}),KO="TooltipContent",qO=o.forwardRef(((e,t)=>{const n=JO(KO,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=XO(KO,e.__scopeTooltip);return Bu.jsx(xd,{present:r||a.open,children:a.disableHoverableContent?Bu.jsx(nR,{side:o,...i,ref:t}):Bu.jsx(QO,{side:o,...i,ref:t})})})),QO=o.forwardRef(((e,t)=>{const n=XO(KO,e.__scopeTooltip),r=VO(KO,e.__scopeTooltip),i=o.useRef(null),a=Mu(t,i),[s,l]=o.useState(null),{trigger:c,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=o.useCallback((()=>{l(null),f(!1)}),[f]),m=o.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);l(a),f(!0)}),[f]);return o.useEffect((()=>()=>p()),[p]),o.useEffect((()=>{if(c&&d){const e=e=>m(e,d),t=e=>m(e,c);return c.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[c,d,m,p]),o.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||d?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}(n,s);r?p():o&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,d,s,u,p]),Bu.jsx(nR,{...e,ref:a})})),[eR,tR]=PO(WO,{isInside:!1}),nR=o.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=e,c=XO(KO,n),u=jO(n),{onClose:d}=c;return o.useEffect((()=>(document.addEventListener(zO,d),()=>document.removeEventListener(zO,d))),[d]),o.useEffect((()=>{if(c.trigger){const e=e=>{const t=e.target;t?.contains(c.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,d]),Bu.jsx(ad,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:Bu.jsxs(Jv,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[Bu.jsx(Ku,{children:r}),Bu.jsx(eR,{scope:n,isInside:!0,children:Bu.jsx(TO,{id:c.contentId,role:"tooltip",children:i||r})})]})})}));qO.displayName=KO;var rR="TooltipArrow";o.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=jO(n);return tR(rR,n).isInside?null:Bu.jsx(Kv,{...o,...r,ref:t})})).displayName=rR;var oR=$O,iR=YO,aR=qO;function sR(e){return sR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sR(e)}function lR(e){var t=function(e,t){if("object"!=sR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=sR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sR(t)?t:t+""}function cR(e,t,n){return(t=lR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uR(Object(n),!0).forEach((function(t){cR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pR(e,t){if(e){if("string"==typeof e)return fR(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fR(e,t):void 0}}function mR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||pR(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hR(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function gR(e,t){if(null==e)return{};var n,r,o=hR(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var yR=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function bR(){return bR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bR.apply(null,arguments)}function vR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lR(r.key),r)}}function wR(e,t){return wR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wR(e,t)}function xR(e){return xR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xR(e)}function CR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CR=function(){return!!e})()}function kR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ER(e){var t=CR();return function(){var n,r=xR(e);if(t){var o=xR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==sR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kR(e)}(this,n)}}function SR(e){return function(e){if(Array.isArray(e))return fR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pR(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var IR=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),_R="-ms-",AR="-moz-",NR="-webkit-",OR="comm",RR="rule",MR="decl",TR="@keyframes",PR=Math.abs,DR=String.fromCharCode,jR=Object.assign;function FR(e){return e.trim()}function LR(e,t,n){return e.replace(t,n)}function zR(e,t){return e.indexOf(t)}function BR(e,t){return 0|e.charCodeAt(t)}function VR(e,t,n){return e.slice(t,n)}function GR(e){return e.length}function WR(e){return e.length}function HR(e,t){return t.push(e),e}var XR=1,$R=1,ZR=0,YR=0,UR=0,JR="";function KR(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:XR,column:$R,length:a,return:""}}function qR(e,t){return jR(KR("",null,null,"",null,null,0),e,{length:-e.length},t)}function QR(){return UR=YR>0?BR(JR,--YR):0,$R--,10===UR&&($R=1,XR--),UR}function eM(){return UR=YR<ZR?BR(JR,YR++):0,$R++,10===UR&&($R=1,XR++),UR}function tM(){return BR(JR,YR)}function nM(){return YR}function rM(e,t){return VR(JR,e,t)}function oM(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function iM(e){return XR=$R=1,ZR=GR(JR=e),YR=0,[]}function aM(e){return JR="",e}function sM(e){return FR(rM(YR-1,uM(91===e?e+2:40===e?e+1:e)))}function lM(e){for(;(UR=tM())&&UR<33;)eM();return oM(e)>2||oM(UR)>3?"":" "}function cM(e,t){for(;--t&&eM()&&!(UR<48||UR>102||UR>57&&UR<65||UR>70&&UR<97););return rM(e,nM()+(t<6&&32==tM()&&32==eM()))}function uM(e){for(;eM();)switch(UR){case e:return YR;case 34:case 39:34!==e&&39!==e&&uM(UR);break;case 40:41===e&&uM(e);break;case 92:eM()}return YR}function dM(e,t){for(;eM()&&e+UR!==57&&(e+UR!==84||47!==tM()););return"/*"+rM(t,YR-1)+"*"+DR(47===e?e:eM())}function fM(e){for(;!oM(tM());)eM();return rM(e,YR)}function pM(e){return aM(mM("",null,null,null,[""],e=iM(e),0,[0],e))}function mM(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,m=0,h=1,g=1,y=1,b=0,v="",w=o,x=i,C=r,k=v;g;)switch(m=b,b=eM()){case 40:if(108!=m&&58==BR(k,d-1)){-1!=zR(k+=LR(sM(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=sM(b);break;case 9:case 10:case 13:case 32:k+=lM(m);break;case 92:k+=cM(nM()-1,7);continue;case 47:switch(tM()){case 42:case 47:HR(gM(dM(eM(),nM()),t,n),l);break;default:k+="/"}break;case 123*h:s[c++]=GR(k)*y;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==y&&(k=LR(k,/\f/g,"")),p>0&&GR(k)-d&&HR(p>32?yM(k+";",r,n,d-1):yM(LR(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(HR(C=hM(k,t,n,c,u,o,s,v,w=[],x=[],d),i),123===b)if(0===u)mM(k,t,C,C,w,i,d,s,x);else switch(99===f&&110===BR(k,3)?100:f){case 100:case 108:case 109:case 115:mM(e,C,C,r&&HR(hM(e,C,C,0,0,o,s,v,o,w=[],d),x),o,x,d,s,r?w:x);break;default:mM(k,C,C,C,[""],x,0,s,x)}}c=u=p=0,h=y=1,v=k="",d=a;break;case 58:d=1+GR(k),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==QR())continue;switch(k+=DR(b),b*h){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(GR(k)-1)*y,y=1;break;case 64:45===tM()&&(k+=sM(eM())),f=tM(),u=d=GR(v=k+=fM(nM())),b++;break;case 45:45===m&&2==GR(k)&&(h=0)}}return i}function hM(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=WR(f),m=0,h=0,g=0;m<r;++m)for(var y=0,b=VR(e,d+1,d=PR(h=a[m])),v=e;y<p;++y)(v=FR(h>0?f[y]+" "+b:LR(b,/&\f/g,f[y])))&&(l[g++]=v);return KR(e,t,n,0===o?RR:s,l,c,u)}function gM(e,t,n){return KR(e,t,n,OR,DR(UR),VR(e,2,-2),0)}function yM(e,t,n,r){return KR(e,t,n,MR,VR(e,0,r),VR(e,r+1,-1),r)}function bM(e,t){for(var n="",r=WR(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function vM(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case MR:return e.return=e.return||e.value;case OR:return"";case TR:return e.return=e.value+"{"+bM(e.children,r)+"}";case RR:e.value=e.props.join(",")}return GR(n=bM(e.children,r))?e.return=e.value+"{"+n+"}":""}function wM(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var xM=function(e,t,n){for(var r=0,o=0;r=o,o=tM(),38===r&&12===o&&(t[n]=1),!oM(o);)eM();return rM(e,YR)},CM=function(e,t){return aM(function(e,t){var n=-1,r=44;do{switch(oM(r)){case 0:38===r&&12===tM()&&(t[n]=1),e[n]+=xM(YR-1,t,n);break;case 2:e[n]+=sM(r);break;case 4:if(44===r){e[++n]=58===tM()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=DR(r)}}while(r=eM());return e}(iM(e),t))},kM=new WeakMap,EM=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||kM.get(n))&&!r){kM.set(e,!0);for(var o=[],i=CM(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},SM=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function IM(e,t){switch(function(e,t){return 45^BR(e,0)?(((t<<2^BR(e,0))<<2^BR(e,1))<<2^BR(e,2))<<2^BR(e,3):0}(e,t)){case 5103:return NR+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return NR+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return NR+e+AR+e+_R+e+e;case 6828:case 4268:return NR+e+_R+e+e;case 6165:return NR+e+_R+"flex-"+e+e;case 5187:return NR+e+LR(e,/(\w+).+(:[^]+)/,NR+"box-$1$2"+_R+"flex-$1$2")+e;case 5443:return NR+e+_R+"flex-item-"+LR(e,/flex-|-self/,"")+e;case 4675:return NR+e+_R+"flex-line-pack"+LR(e,/align-content|flex-|-self/,"")+e;case 5548:return NR+e+_R+LR(e,"shrink","negative")+e;case 5292:return NR+e+_R+LR(e,"basis","preferred-size")+e;case 6060:return NR+"box-"+LR(e,"-grow","")+NR+e+_R+LR(e,"grow","positive")+e;case 4554:return NR+LR(e,/([^-])(transform)/g,"$1"+NR+"$2")+e;case 6187:return LR(LR(LR(e,/(zoom-|grab)/,NR+"$1"),/(image-set)/,NR+"$1"),e,"")+e;case 5495:case 3959:return LR(e,/(image-set\([^]*)/,NR+"$1$`$1");case 4968:return LR(LR(e,/(.+:)(flex-)?(.*)/,NR+"box-pack:$3"+_R+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+NR+e+e;case 4095:case 3583:case 4068:case 2532:return LR(e,/(.+)-inline(.+)/,NR+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(GR(e)-1-t>6)switch(BR(e,t+1)){case 109:if(45!==BR(e,t+4))break;case 102:return LR(e,/(.+:)(.+)-([^]+)/,"$1"+NR+"$2-$3$1"+AR+(108==BR(e,t+3)?"$3":"$2-$3"))+e;case 115:return~zR(e,"stretch")?IM(LR(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==BR(e,t+1))break;case 6444:switch(BR(e,GR(e)-3-(~zR(e,"!important")&&10))){case 107:return LR(e,":",":"+NR)+e;case 101:return LR(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+NR+(45===BR(e,14)?"inline-":"")+"box$3$1"+NR+"$2$3$1"+_R+"$2box$3")+e}break;case 5936:switch(BR(e,t+11)){case 114:return NR+e+_R+LR(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return NR+e+_R+LR(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return NR+e+_R+LR(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return NR+e+_R+e+e}return e}var _M,AM,NM=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case MR:e.return=IM(e.value,e.length);break;case TR:return bM([qR(e,{value:LR(e.value,"@","@"+NR)})],r);case RR:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bM([qR(e,{props:[LR(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return bM([qR(e,{props:[LR(t,/:(plac\w+)/,":"+NR+"input-$1")]}),qR(e,{props:[LR(t,/:(plac\w+)/,":-moz-$1")]}),qR(e,{props:[LR(t,/:(plac\w+)/,_R+"input-$1")]})],r)}return""}))}}],OM=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||NM,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[vM,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=WR(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([EM,SM].concat(i,u));o=function(e,t,n,r){l=n,function(e){bM(pM(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new IR({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return f.sheet.hydrate(s),f};!function(){if(AM)return _M;AM=1;var e=$g(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;_M=function e(t,r,o){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var m=i(t),h=i(r),g=0;g<p.length;++g){var y=p[g];if(!(n[y]||o&&o[y]||h&&h[y]||m&&m[y])){var b=c(r,y);try{a(t,y,b)}catch(e){}}}}return t}}();function RM(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var MM=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},TM=function(e,t,n){MM(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var PM={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},DM=/[A-Z]|^ms/g,jM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,FM=function(e){return 45===e.charCodeAt(1)},LM=function(e){return null!=e&&"boolean"!=typeof e},zM=wM((function(e){return FM(e)?e:e.replace(DM,"-$&").toLowerCase()})),BM=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(jM,(function(e,t,n){return GM={name:t,styles:n,next:GM},t}))}return 1===PM[e]||FM(e)||"number"!=typeof t||0===t?t:t+"px"};function VM(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return GM={name:o.name,styles:o.styles,next:GM},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)GM={name:a.name,styles:a.styles,next:GM},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=VM(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":LM(s)&&(r+=zM(i)+":"+BM(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=VM(e,t,a);switch(i){case"animation":case"animationName":r+=zM(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)LM(a[c])&&(r+=zM(i)+":"+BM(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=GM,l=n(e);return GM=s,VM(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var GM,WM=/label:\s*([^\s;{]+)\s*(;|$)/g;function HM(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";GM=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=VM(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=VM(n,t,e[a]),r)o+=i[a]}WM.lastIndex=0;for(var s,l="";null!==(s=WM.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:GM}}var XM=!!o.useInsertionEffect&&o.useInsertionEffect||function(e){return e()},$M=o.createContext("undefined"!=typeof HTMLElement?OM({key:"css"}):null);$M.Provider;var ZM,YM,UM=function(t){return e.forwardRef((function(n,r){var o=e.useContext($M);return t(n,o,r)}))},JM=o.createContext({}),KM={}.hasOwnProperty,qM="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",QM=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return MM(t,n,r),XM((function(){return TM(t,n,r)})),null},eT=UM((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[qM],a=[r],s="";"string"==typeof e.className?s=RM(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=HM(a,void 0,o.useContext(JM));s+=t.key+"-"+l.name;var c={};for(var u in e)KM.call(e,u)&&"css"!==u&&u!==qM&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),o.createElement(o.Fragment,null,o.createElement(QM,{cache:t,serialized:l,isStringTag:"string"==typeof i}),o.createElement(i,c))})),tT=eT,nT=function(e,t){var n=arguments;if(null==t||!KM.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=tT,i[1]=function(e,t){var n={};for(var r in t)KM.call(t,r)&&(n[r]=t[r]);return n[qM]=e,n}(e,t);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)};function rT(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return HM(t)}function oT(){var e=rT.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}ZM=nT||(nT={}),YM||(YM=ZM.JSX||(ZM.JSX={}));var iT=e.useLayoutEffect,aT=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],sT=function(){};function lT(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function cT(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(lT(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var uT=function(e){return function(e){return Array.isArray(e)}(e)?e.filter(Boolean):"object"===sR(e)&&null!==e?[e]:[]},dT=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,dR({},gR(e,aT))},fT=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function pT(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function mT(e){return pT(e)?window.pageYOffset:e.scrollTop}function hT(e,t){pT(e)?window.scrollTo(0,t):e.scrollTop=t}function gT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:sT,o=mT(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);hT(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function yT(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?hT(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&hT(e,Math.max(t.offsetTop-o,0))}function bT(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var vT=!1,wT={get passive(){return vT=!0}},xT="undefined"!=typeof window?window:{};xT.addEventListener&&xT.removeEventListener&&(xT.addEventListener("p",sT,wT),xT.removeEventListener("p",sT,!1));var CT=vT;function kT(e){return null!=e}function ET(e,t,n){return e?t:n}var ST=["children","innerProps"],IT=["children","innerProps"];function _T(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,m=f.height,h=f.top,g=n.offsetParent.getBoundingClientRect().top,y=a?window.innerHeight:pT(u=l)?window.innerHeight:u.clientHeight,b=mT(l),v=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,C=y-h,k=x+b,E=d-b-h,S=p-y+b+v,I=b+h-w,_=160;switch(o){case"auto":case"bottom":if(C>=m)return{placement:"bottom",maxHeight:t};if(E>=m&&!a)return i&&gT(l,S,_),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&C>=r)return i&&gT(l,S,_),{placement:"bottom",maxHeight:a?C-v:E-v};if("auto"===o||a){var A=t,N=a?x:k;return N>=r&&(A=Math.min(N-v-s,t)),{placement:"top",maxHeight:A}}if("bottom"===o)return i&&hT(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(x>=m)return{placement:"top",maxHeight:t};if(k>=m&&!a)return i&&gT(l,I,_),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&x>=r){var O=t;return(!a&&k>=r||a&&x>=r)&&(O=a?x-w:k-w),i&&gT(l,I,_),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var AT,NT=function(e){return"auto"===e?"bottom":e},OT=e.createContext(null),RT=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=(e.useContext(OT)||{}).setPortalPlacement,u=e.useRef(null),d=mR(e.useState(o),2),f=d[0],p=d[1],m=mR(e.useState(null),2),h=m[0],g=m[1],y=l.spacing.controlHeight;return iT((function(){var e=u.current;if(e){var t="fixed"===a,n=_T({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:y});p(n.maxHeight),g(n.placement),null==c||c(n.placement)}}),[o,i,a,s,r,c,y]),n({ref:u,placerProps:dR(dR({},t),{},{placement:h||NT(i),maxHeight:f})})},MT=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return nT("div",bR({},fT(e,"menu",{menu:!0}),{ref:n},r),t)},TT=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return dR({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},PT=TT,DT=TT,jT=["size"],FT=["innerProps","isRtl","size"];var LT="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},zT=function(e){var t=e.size,n=gR(e,jT);return nT("svg",bR({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:LT},n))},BT=function(e){return nT(zT,bR({size:20},e),nT("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},VT=function(e){return nT(zT,bR({size:20},e),nT("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},GT=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return dR({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},WT=GT,HT=GT,XT=oT(AT||(AT=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),$T=function(e){var t=e.delay,n=e.offset;return nT("span",{css:rT({animation:"".concat(XT," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},ZT=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return nT("div",bR({ref:o},fT(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},YT=["data"],UT=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return nT("div",bR({},fT(e,"group",{group:!0}),s),nT(i,bR({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),nT("div",null,t))},JT=["innerRef","isDisabled","isHidden","inputClassName"],KT={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},qT={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":dR({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},KT)},QT=function(e){return dR({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},KT)},eP=function(e){var t=e.cx,n=e.value,r=dT(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=gR(r,JT);return nT("div",bR({},fT(e,"input",{"input-container":!0}),{"data-value":n||""}),nT("input",bR({className:t({input:!0},s),ref:o,style:QT(a),disabled:i},l)))},tP=function(e){var t=e.children,n=e.innerProps;return nT("div",n,t)};var nP=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return nT(l,{data:r,innerProps:dR(dR({},fT(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},nT(c,{data:r,innerProps:dR({},fT(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),nT(u,{data:r,innerProps:dR(dR({},fT(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},rP=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return nT("div",bR({},fT(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},oP=function(e){var t=e.children,n=e.innerProps;return nT("div",bR({},fT(e,"placeholder",{placeholder:!0}),n),t)},iP=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return nT("div",bR({},fT(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},aP={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return nT("div",bR({},fT(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||nT(BT,null))},Control:ZT,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return nT("div",bR({},fT(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||nT(VT,null))},DownChevron:VT,CrossIcon:BT,Group:UT,GroupHeading:function(e){var t=dT(e);t.data;var n=gR(t,YT);return nT("div",bR({},fT(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return nT("div",bR({},fT(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return nT("span",bR({},t,fT(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:eP,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=gR(e,FT);return nT("div",bR({},fT(dR(dR({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),nT($T,{delay:0,offset:n}),nT($T,{delay:160,offset:!0}),nT($T,{delay:320,offset:!n}))},Menu:MT,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return nT("div",bR({},fT(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(n){var r=n.appendTo,o=n.children,i=n.controlElement,a=n.innerProps,s=n.menuPlacement,l=n.menuPosition,c=e.useRef(null),u=e.useRef(null),d=mR(e.useState(NT(s)),2),f=d[0],p=d[1],m=e.useMemo((function(){return{setPortalPlacement:p}}),[]),h=mR(e.useState(null),2),g=h[0],y=h[1],b=e.useCallback((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===l?0:window.pageYOffset,n=e[f]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||y({offset:n,rect:e})}}),[i,l,f,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);iT((function(){b()}),[b]);var v=e.useCallback((function(){"function"==typeof u.current&&(u.current(),u.current=null),i&&c.current&&(u.current=iv(i,c.current,b,{elementResize:"ResizeObserver"in window}))}),[i,b]);iT((function(){v()}),[v]);var w=e.useCallback((function(e){c.current=e,v()}),[v]);if(!r&&"fixed"!==l||!g)return null;var x=nT("div",bR({ref:w},fT(dR(dR({},n),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),a),o);return nT(OT.Provider,{value:m},r?t.createPortal(x,r):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=gR(e,IT);return nT("div",bR({},fT(dR(dR({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=gR(e,ST);return nT("div",bR({},fT(dR(dR({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:nP,MultiValueContainer:tP,MultiValueLabel:tP,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return nT("div",bR({role:"button"},n),t||nT(BT,{size:14}))},Option:rP,Placeholder:oP,SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return nT("div",bR({},fT(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:iP,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return nT("div",bR({},fT(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},sP=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function lP(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||sP(r)&&sP(o)))return!1;var r,o;return!0}for(var cP="production"===process.env.NODE_ENV?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},uP=function(e){return nT("span",bR({css:cP},e))},dP={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",f="".concat(l?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},fP=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,m=l.isMulti,h=l.isOptionDisabled,g=l.isSearchable,y=l.menuIsOpen,b=l.options,v=l.screenReaderStatus,w=l.tabSelectsValue,x=l.isLoading,C=l["aria-label"],k=l["aria-live"],E=e.useMemo((function(){return dR(dR({},dP),d||{})}),[d]),S=e.useMemo((function(){var e,t="";if(n&&E.onChange){var r=n.option,o=n.options,i=n.removedValue,a=n.removedValues,l=n.value,c=i||r||(e=l,Array.isArray(e)?null:e),u=c?f(c):"",d=o||a||void 0,p=d?d.map(f):[],m=dR({isDisabled:c&&h(c,s),label:u,labels:p},n);t=E.onChange(m)}return t}),[n,E,h,s,f]),I=e.useMemo((function(){var e="",t=r||o,n=!!(r&&s&&s.includes(r));if(t&&E.onFocus){var a={focused:t,label:f(t),isDisabled:h(t,s),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:s,isAppleDevice:u};e=E.onFocus(a)}return e}),[r,o,f,h,E,i,s,u]),_=e.useMemo((function(){var e="";if(y&&b.length&&!x&&E.onFilter){var t=v({count:i.length});e=E.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,y,E,b,v,x]),A="initial-input-focus"===(null==n?void 0:n.action),N=e.useMemo((function(){var e="";if(E.guidance){var t=o?"value":y?"menu":"input";e=E.guidance({"aria-label":C,context:t,isDisabled:r&&h(r,s),isMulti:m,isSearchable:g,tabSelectsValue:w,isInitialFocus:A})}return e}),[C,r,o,m,h,g,y,E,s,w,A]),O=nT(e.Fragment,null,nT("span",{id:"aria-selection"},S),nT("span",{id:"aria-focused"},I),nT("span",{id:"aria-results"},_),nT("span",{id:"aria-guidance"},N));return nT(e.Fragment,null,nT(uP,{id:c},A&&O),nT(uP,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!A&&O))},pP=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],mP=new RegExp("["+pP.map((function(e){return e.letters})).join("")+"]","g"),hP={},gP=0;gP<pP.length;gP++)for(var yP=pP[gP],bP=0;bP<yP.letters.length;bP++)hP[yP.letters[bP]]=yP.base;var vP=function(e){return e.replace(mP,(function(e){return hP[e]}))},wP=function(e,t){void 0===t&&(t=lP);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(vP),xP=function(e){return e.replace(/^\s+|\s+$/g,"")},CP=function(e){return"".concat(e.label," ").concat(e.value)},kP=["innerRef"];function EP(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=mR(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=mR(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(gR(e,kP),"onExited","in","enter","exit","appear");return nT("input",bR({ref:t},n,{css:rT({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var SP=["boxSizing","height","overflow","paddingRight","position"],IP={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function _P(e){e.cancelable&&e.preventDefault()}function AP(e){e.stopPropagation()}function NP(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function OP(){return"ontouchstart"in window||navigator.maxTouchPoints}var RP=!("undefined"==typeof window||!window.document||!window.document.createElement),MP=0,TP={capture:!1,passive:!1};var PP=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},DP="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function jP(t){var n=t.children,r=t.lockEnabled,o=t.captureEnabled,i=function(t){var n=t.isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,i=t.onTopArrive,a=t.onTopLeave,s=e.useRef(!1),l=e.useRef(!1),c=e.useRef(0),u=e.useRef(null),d=e.useCallback((function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,f=n.clientHeight,p=u.current,m=t>0,h=d-f-c,g=!1;h>t&&s.current&&(o&&o(e),s.current=!1),m&&l.current&&(a&&a(e),l.current=!1),m&&t>h?(r&&!s.current&&r(e),p.scrollTop=d,g=!0,s.current=!0):!m&&-t>c&&(i&&!l.current&&i(e),p.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,o,i,a]),f=e.useCallback((function(e){d(e,e.deltaY)}),[d]),p=e.useCallback((function(e){c.current=e.changedTouches[0].clientY}),[]),m=e.useCallback((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),h=e.useCallback((function(e){if(e){var t=!!CT&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",m,t)}}),[m,p,f]),g=e.useCallback((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",m,!1))}),[m,p,f]);return e.useEffect((function(){if(n){var e=u.current;return h(e),function(){g(e)}}}),[n,h,g]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,r=t.accountForScrollbars,o=void 0===r||r,i=e.useRef({}),a=e.useRef(null),s=e.useCallback((function(e){if(RP){var t=document.body,n=t&&t.style;if(o&&SP.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&MP<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(IP).forEach((function(e){var t=IP[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&OP()&&(t.addEventListener("touchmove",_P,TP),e&&(e.addEventListener("touchstart",NP,TP),e.addEventListener("touchmove",AP,TP))),MP+=1}}),[o]),l=e.useCallback((function(e){if(RP){var t=document.body,n=t&&t.style;MP=Math.max(MP-1,0),o&&MP<1&&SP.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&OP()&&(t.removeEventListener("touchmove",_P,TP),e&&(e.removeEventListener("touchstart",NP,TP),e.removeEventListener("touchmove",AP,TP)))}}),[o]);return e.useEffect((function(){if(n){var e=a.current;return s(e),function(){l(e)}}}),[n,s,l]),function(e){a.current=e}}({isEnabled:r});return nT(e.Fragment,null,r&&nT("div",{onClick:PP,css:DP}),n((function(e){i(e),a(e)})))}var FP="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},LP=function(e){var t=e.name,n=e.onFocus;return nT("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:FP,value:"",onChange:function(){}})};function zP(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function BP(){return zP(/^Mac/i)}function VP(){return zP(/^iPhone/i)||zP(/^iPad/i)||BP()&&navigator.maxTouchPoints>1}var GP={clearIndicator:HT,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return dR({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:WT,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return dR({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return dR({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return dR(dR({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},qT),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return dR({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:DT,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return dR((cR(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),cR(n,"position","absolute"),cR(n,"width","100%"),cR(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return dR({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return dR({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return dR({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return dR({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:PT,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return dR({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return dR({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return dR({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return dR({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},WP={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},HP={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:bT(),captureMenuScroll:!bT(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=dR({ignoreCase:!0,ignoreAccents:!0,stringify:CP,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,c=s?xP(n):n,u=s?xP(a(t)):a(t);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=wP(c),u=vP(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function XP(e,t,n,r){return{type:"option",data:t,isDisabled:QP(e,t,n),isSelected:eD(e,t,n),label:KP(e,t),value:qP(e,t),index:r}}function $P(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return XP(e,n,t,r)})).filter((function(t){return UP(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=XP(e,n,t,r);return UP(e,i)?i:void 0})).filter(kT)}function ZP(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,SR(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function YP(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,SR(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function UP(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!nD(e)||!i)&&tD(e,{label:a,value:s,data:o},r)}var JP=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},KP=function(e,t){return e.getOptionLabel(t)},qP=function(e,t){return e.getOptionValue(t)};function QP(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function eD(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=qP(e,t);return n.some((function(t){return qP(e,t)===r}))}function tD(e,t,n){return!e.filterOption||e.filterOption(t,n)}var nD=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},rD=1,oD=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wR(e,t)}(n,e.Component);var t=ER(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=BP()||VP(),r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(SR(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=ET(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(ET(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=ET(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return JP(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return YP($P(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return cT.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return KP(r.props,e)},r.getOptionValue=function(e){return qP(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=GP[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,dR(dR({},aP),e.components);var e},r.buildCategorizedOptions=function(){return $P(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return ZP(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:dR({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&pT(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return nD(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=r.state,m=p.focusedOption,h=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)r.removeValue(h);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!m||f&&r.isOptionSelected(m,g))return;r.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(r.isComposing)return;r.selectOption(m);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!m)return;r.selectOption(m);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++rD),r.state.selectValue=uT(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=JP(o,i[a])}return r}return function(e,t,n){t&&vR(e.prototype,t),n&&vR(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&yT(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(yT(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(WP):dR(dR({},WP),this.props.theme):WP}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return QP(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return eD(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tD(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,f=d.inputIsHidden,p=d.ariaSelection,m=this.commonProps,h=r||this.getElementId("input"),g=dR(dR(dR({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(u,bR({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},g)):o.createElement(EP,bR({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:sT,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,m=u.inputValue,h=u.placeholder,g=this.state,y=g.selectValue,b=g.focusedValue,v=g.isFocused;if(!this.hasValue()||!d)return m?null:o.createElement(l,bR({},c,{key:"placeholder",isDisabled:f,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return y.map((function(t,s){var l=t===b,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,bR({},c,{components:{Container:r,Label:i,Remove:a},isFocused:l,isDisabled:f,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var w=y[0];return o.createElement(s,bR({},c,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,bR({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!e||!i)return null;return o.createElement(e,bR({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o.createElement(n,bR({},r,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,bR({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,h=p.inputValue,g=p.isLoading,y=p.loadingMessage,b=p.minMenuHeight,v=p.maxMenuHeight,w=p.menuIsOpen,x=p.menuPlacement,C=p.menuPosition,k=p.menuPortalTarget,E=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,I=p.noOptionsMessage,_=p.onMenuScrollToTop,A=p.onMenuScrollToBottom;if(!w)return null;var N,O=function(t,n){var r=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,p=f===i,m=a?void 0:function(){return e.onOptionHover(i)},h=a?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(n),y={id:g,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return o.createElement(u,bR({},d,{innerProps:y,data:i,isDisabled:a,isSelected:s,key:g,label:l,type:r,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())N=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return o.createElement(n,bR({},d,{key:l,data:i,options:a,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return O(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return O(t,"".concat(t.index))}));else if(g){var R=y({inputValue:h});if(null===R)return null;N=o.createElement(l,d,R)}else{var M=I({inputValue:h});if(null===M)return null;N=o.createElement(c,d,M)}var T={minMenuHeight:b,maxMenuHeight:v,menuPlacement:x,menuPosition:C,menuShouldScrollIntoView:S},P=o.createElement(RT,bR({},d,T),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,l=r.maxHeight;return o.createElement(i,bR({},d,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),o.createElement(jP,{captureEnabled:m,onTopArrive:_,onBottomArrive:A,lockEnabled:E},(function(t){return o.createElement(a,bR({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:f}),N)})))}));return k||"fixed"===C?o.createElement(s,bR({},d,{appendTo:k,controlElement:this.controlRef,menuPlacement:x,menuPosition:C}),P):P}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!r)return o.createElement(LP,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(i){if(n){var c=l.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:a,type:"hidden",value:c})}var u=l.length>0?l.map((function(t,n){return o.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:a,type:"hidden",value:""});return o.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return o.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return o.createElement(fP,bR({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,c=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return o.createElement(r,bR({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),o.createElement(t,bR({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),o.createElement(i,bR({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,bR({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,m=uT(u),h={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return ZP($P(e,t))}(e,m):[],y=d?YP($P(e,m),"".concat(l,"-option")):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);h={selectValue:m,focusedOption:v,focusedOptionId:JP(y,v),focusableOptionsWithIds:y,focusedValue:b,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,C=a&&s;return a&&!C&&(x={value:ET(p,m,m[0]||null),options:m,action:"initial-input-focus"},C=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),dR(dR(dR({},h),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:C})}}]),n}();oD.defaultProps=HP;var iD=e.forwardRef((function(t,n){var r=function(t){var n=t.defaultInputValue,r=void 0===n?"":n,o=t.defaultMenuIsOpen,i=void 0!==o&&o,a=t.defaultValue,s=void 0===a?null:a,l=t.inputValue,c=t.menuIsOpen,u=t.onChange,d=t.onInputChange,f=t.onMenuClose,p=t.onMenuOpen,m=t.value,h=gR(t,yR),g=mR(e.useState(void 0!==l?l:r),2),y=g[0],b=g[1],v=mR(e.useState(void 0!==c?c:i),2),w=v[0],x=v[1],C=mR(e.useState(void 0!==m?m:s),2),k=C[0],E=C[1],S=e.useCallback((function(e,t){"function"==typeof u&&u(e,t),E(e)}),[u]),I=e.useCallback((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),b(void 0!==n?n:e)}),[d]),_=e.useCallback((function(){"function"==typeof p&&p(),x(!0)}),[p]),A=e.useCallback((function(){"function"==typeof f&&f(),x(!1)}),[f]),N=void 0!==l?l:y,O=void 0!==c?c:w,R=void 0!==m?m:k;return dR(dR({},h),{},{inputValue:N,menuIsOpen:O,onChange:S,onInputChange:I,onMenuClose:A,onMenuOpen:_,value:R})}(t);return o.createElement(oD,bR({ref:n},r))})),aD=iD;const sD=({options:t,items_per_page:n,className:r,defaultValue:i,onChange:a})=>{const[s,l]=e.useState(""),[c,u]=e.useState(0),d=t.filter((e=>e.label.toLowerCase().includes(s)||e.value.toLowerCase().includes(s)));var f;f=void 0!==n?d.slice(c*n,(c+1)*n):d;const p={control:e=>({...e,minHeight:void 0})};return o.createElement(aD,{options:f,onInputChange:e=>{l(e.toLowerCase()),u(0)},onChange:a,inputValue:s,isSearchable:!0,placeholder:"Select an option...",className:r,unstyled:!0,styles:p,classNamePrefix:"styled-select",defaultValue:i,value:i})},lD=({io:t,inputconverter:n,parser:r=e=>parseFloat(e)})=>{const i=e.useContext(zV),[a,s]=e.useState(n[1](t.value));e.useEffect((()=>{s(n[1](t.value))}),[t.value]);const l=e=>{e=r(parseFloat(e.toString()).toString()),isNaN(e)?(e="<NoValue>",s("")):(void 0!==t.value_options?.min&&e<t.value_options.min&&(e=t.value_options.min),void 0!==t.value_options?.max&&e>t.value_options.max&&(e=t.value_options.max),s(e.toString()));try{e=n[0](e)}catch(e){}i.worker?.set_io_value({nid:t.node,ioid:t.id,value:e,set_default:t.render_options.set_default})};let c=t.connected?n[1](t.value):a;return void 0===c&&(c=t.value_options?.min),void 0===c&&(c=t.value_options?.max),void 0===c&&(c=""),null===c&&(c=""),void 0!==t.value_options?.max&&void 0!==t.value_options?.min?o.createElement("div",{style:{minWidth:"100px"},className:"SliderContainer"},o.createElement(AO,{className:"SliderRoot",value:[void 0===c?t.value_options?.min:c],min:t.value_options?.min,max:t.value_options?.max,step:t.value_options.step||(t.value_options?.max-t.value_options?.min)/1e3,disabled:t.connected,onValueCommit:e=>{isNaN(e[0])||l(e[0])},onValueChange:e=>{isNaN(e[0])||s(e[0].toString())}},o.createElement(NO,{className:"SliderTrack"},o.createElement(OO,{className:"SliderRange"})),o.createElement(GO,null,o.createElement(oR,{open:!0},o.createElement(iR,{asChild:!0},o.createElement(RO,{className:"SliderThumb"})),o.createElement(aR,{className:"SliderTooltipContent"},c))))):o.createElement("input",{type:"text",className:"nodedatainput styledinput numberinput",value:c,onChange:e=>s(e.target.value),onBlur:e=>{l(e.target.value)},onKeyDown:e=>{if("ArrowUp"!==e.key)if("ArrowDown"!==e.key)/^[0-9.eE+-]$/.test(e.key)||["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(e.key)||e.preventDefault();else{let n=t.value_options?.step||1;e.shiftKey&&(n*=10);let r=(parseFloat(c)||0)-n;l(r)}else{let n=t.value_options?.step||1;e.shiftKey&&(n*=10);let r=(parseFloat(c)||0)+n;l(r)}},disabled:t.connected,step:t.value_options?.step,min:t.value_options?.min,max:t.value_options?.max})},cD=({io:t,inputconverter:n})=>{const r=e.useContext(zV),[i,a]=e.useState(n[1](t.value));e.useEffect((()=>{a(n[1](t.value))}),[t.value]);let s=t.connected?n[1](t.value):i;return null==s&&(s=""),o.createElement("input",{className:"nodedatainput styledinput stringinput",value:s,onChange:e=>a(e.target.value),onBlur:e=>{let o=e.target.value;o||(o="<NoValue>");try{o=n[0](o)}catch(e){}r.worker?.set_io_value({nid:t.node,ioid:t.id,value:o,set_default:t.render_options.set_default})},disabled:t.connected})},uD=e=>e,dD=e=>parseFloat(e),fD=e=>!!e,pD=e=>"null"===e?null:e,mD=({io:t,inputconverter:n,parser:r})=>{let i=t.value_options?.options||[];Array.isArray(i)&&(i={type:"enum",values:i,keys:i.map((e=>null===e?"None":e.toString())),nullable:!1}),"enum"!==i.type&&(i={type:"enum",values:Object.values(i),keys:Object.keys(i),nullable:!1}),!i.nullable||i.values.includes(null)||i.keys.includes("None")||(i.values.unshift(null),i.keys.unshift("None"));const a=[];for(let e=0;e<i.values.length;e++){const t=null===i.values[e]||void 0===i.values[e]?"undefined":typeof i.values[e];let n=i.values[e];null===n&&(n="null"),void 0===n&&(n="undefined"),a.push([i.keys[e],n.toString(),t])}const s=e.useContext(zV),l=({value:e,datatype:o})=>{const i=r||(e=>"nuinputconvertermber"===e?dD:"boolean"===e?fD:"undefined"===e?pD:uD)(o);let a=i(e);try{a=n[0](e)}catch(e){}s.worker?.set_io_value({nid:t.node,ioid:t.id,value:a,set_default:t.render_options.set_default})};let c=t.value;null===c&&(c="null"),void 0===c&&(c="undefined");const u=a.find((e=>e[1]===c.toString()));let d;void 0!==u&&(d={value:u[1],label:u[0],datatype:u[2]});const f=a.map((e=>({value:e[1],label:e[0],datatype:e[2]})));return o.createElement(sD,{className:"nodedatainput styleddropdown",options:f,defaultValue:d,onChange:e=>{l(null!==e?e:{value:"<NoValue>",datatype:"string"})}})},hD=e=>!!e&&e instanceof Date,gD=e=>!!e&&e instanceof Object&&"function"==typeof e;function yD(e,t){return void 0===t&&(t=!1),!e||t?`"${e}"`:e}function bD(t){let{field:n,value:r,data:o,lastElement:i,openBracket:a,closeBracket:s,level:l,style:c,shouldExpandNode:u,clickToExpandNode:d,outerRef:f}=t;const p=e.useRef(!1),[m,h,g]=function(t){const[n,r]=e.useState(t());return[n,()=>r((e=>!e)),r]}((()=>u(l,r,n))),y=e.useRef(null);e.useEffect((()=>{p.current?g(u(l,r,n)):p.current=!0}),[u]);const b=m?c.collapseIcon:c.expandIcon,v=m?"collapse JSON":"expand JSON",w=e.useId(),x=l+1,C=o.length-1,k=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),g("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const t="ArrowUp"===e.key?-1:1;if(!f.current)return;const n=f.current.querySelectorAll("[role=button]");let r=-1;for(let e=0;e<n.length;e++)if(0===n[e].tabIndex){r=e;break}if(r<0)return;const o=(r+t+n.length)%n.length;n[r].tabIndex=-1,n[o].tabIndex=0,n[o].focus()}},E=()=>{var e;h();const t=y.current;if(!t)return;const n=null===(e=f.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');n&&(n.tabIndex=-1),t.tabIndex=0,t.focus()};return e.createElement("div",{className:c.basicChildStyle,role:"treeitem","aria-expanded":m,"aria-selected":void 0},e.createElement("span",{className:b,onClick:E,onKeyDown:k,role:"button","aria-label":v,"aria-expanded":m,"aria-controls":m?w:void 0,ref:y,tabIndex:0===l?0:-1}),(n||""===n)&&(d?e.createElement("span",{className:c.clickableLabel,onClick:E,onKeyDown:k},yD(n,c.quotesForFieldNames),":"):e.createElement("span",{className:c.label},yD(n,c.quotesForFieldNames),":")),e.createElement("span",{className:c.punctuation},a),m?e.createElement("ul",{id:w,role:"group",className:c.childFieldsContainer},o.map(((t,n)=>e.createElement(kD,{key:t[0]||n,field:t[0],value:t[1],style:c,lastElement:n===C,level:x,shouldExpandNode:u,clickToExpandNode:d,outerRef:f})))):e.createElement("span",{className:c.collapsedContent,onClick:E,onKeyDown:k}),e.createElement("span",{className:c.punctuation},s),!i&&e.createElement("span",{className:c.punctuation},","))}function vD(t){let{field:n,openBracket:r,closeBracket:o,lastElement:i,style:a}=t;return e.createElement("div",{className:a.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&e.createElement("span",{className:a.label},yD(n,a.quotesForFieldNames),":"),e.createElement("span",{className:a.punctuation},r),e.createElement("span",{className:a.punctuation},o),!i&&e.createElement("span",{className:a.punctuation},","))}function wD(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:i,clickToExpandNode:a,level:s,outerRef:l}=e;return 0===Object.keys(n).length?vD({field:t,openBracket:"{",closeBracket:"}",lastElement:o,style:r}):bD({field:t,value:n,lastElement:o||!1,level:s,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:i,clickToExpandNode:a,data:Object.keys(n).map((e=>[e,n[e]])),outerRef:l})}function xD(e){let{field:t,value:n,style:r,lastElement:o,level:i,shouldExpandNode:a,clickToExpandNode:s,outerRef:l}=e;return 0===n.length?vD({field:t,openBracket:"[",closeBracket:"]",lastElement:o,style:r}):bD({field:t,value:n,lastElement:o||!1,level:i,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:a,clickToExpandNode:s,data:n.map((e=>[void 0,e])),outerRef:l})}function CD(t){let n,{field:r,value:o,style:i,lastElement:a}=t,s=i.otherValue;var l;return null===o?(n="null",s=i.nullValue):void 0===o?(n="undefined",s=i.undefinedValue):"string"==typeof(l=o)||l instanceof String?(n=function(e,t){return t?`"${e}"`:e}(o,!i.noQuotesForStringValues),s=i.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(o)?(n=o?"true":"false",s=i.booleanValue):(e=>"number"==typeof e||e instanceof Number)(o)?(n=o.toString(),s=i.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(o)?(n=`${o.toString()}n`,s=i.numberValue):n=hD(o)?o.toISOString():gD(o)?"function() { }":o.toString(),e.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(r||""===r)&&e.createElement("span",{className:i.label},yD(r,i.quotesForFieldNames),":"),e.createElement("span",{className:s},n),!a&&e.createElement("span",{className:i.punctuation},","))}function kD(t){const n=t.value;return r=n,Array.isArray(r)?e.createElement(xD,Object.assign({},t)):!(e=>"object"==typeof e&&null!==e)(n)||hD(n)||gD(n)?e.createElement(CD,Object.assign({},t)):e.createElement(wD,Object.assign({},t));var r}var ED="_2bkNM",SD="_1BXBN";const ID={container:"_2IvMF _GzYRV",basicChildStyle:ED,childFieldsContainer:SD,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},_D={container:"_11RoI _GzYRV",basicChildStyle:ED,childFieldsContainer:SD,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},AD=()=>!0,ND=e=>e<1,OD=t=>{let{data:n,style:r=ID,shouldExpandNode:o=AD,clickToExpandNode:i=!1,...a}=t;const s=e.useRef(null);return e.createElement("div",Object.assign({"aria-label":"JSON view"},a,{className:r.container,ref:s,role:"tree"}),e.createElement(kD,{value:n,style:{...ID,...r},lastElement:!0,level:0,shouldExpandNode:o,clickToExpandNode:i,outerRef:s}))};function RD(e){if(null==e)return!1;if("object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype)&&function(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}(e)}const MD=({data:e})=>o.createElement(OD,{data:RD(e)?"":e,style:_D,shouldExpandNode:ND});function TD(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=TD(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function PD(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=TD(e))&&(r&&(r+=" "),r+=t);return r}function DD(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let e=0;e<i.length;e+=1){const r=i[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[o]=a}return r}const jD=o.createContext();function FD(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach((e=>n.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${n} for the full message.`}function LD(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":FD(7));return e.charAt(0).toUpperCase()+e.slice(1)}"production"!==process.env.NODE_ENV&&(jD.displayName="TableContext");var zD,BD={exports:{}},VD={};function GD(){if(zD)return VD;zD=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),p=Symbol.for("react.client.reference");function m(f){if("object"==typeof f&&null!==f){var p=f.$$typeof;switch(p){case e:switch(f=f.type){case n:case o:case r:case l:case c:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case u:case i:return f;default:return p}}case t:return p}}}return VD.ContextConsumer=i,VD.ContextProvider=a,VD.Element=e,VD.ForwardRef=s,VD.Fragment=n,VD.Lazy=d,VD.Memo=u,VD.Portal=t,VD.Profiler=o,VD.StrictMode=r,VD.Suspense=l,VD.SuspenseList=c,VD.isContextConsumer=function(e){return m(e)===i},VD.isContextProvider=function(e){return m(e)===a},VD.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},VD.isForwardRef=function(e){return m(e)===s},VD.isFragment=function(e){return m(e)===n},VD.isLazy=function(e){return m(e)===d},VD.isMemo=function(e){return m(e)===u},VD.isPortal=function(e){return m(e)===t},VD.isProfiler=function(e){return m(e)===o},VD.isStrictMode=function(e){return m(e)===r},VD.isSuspense=function(e){return m(e)===l},VD.isSuspenseList=function(e){return m(e)===c},VD.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},VD.typeOf=m,VD}var WD,HD,XD={};
|
|
62
62
|
/**
|
|
63
63
|
* @license React
|
|
64
64
|
* react-is.development.js
|
|
@@ -67,7 +67,7 @@ object-assign
|
|
|
67
67
|
*
|
|
68
68
|
* This source code is licensed under the MIT license found in the
|
|
69
69
|
* LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/function HD(){return VD||(VD=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case r:case i:case o:case c:case u:return e;default:switch(e=e&&e.$$typeof){case s:case l:case f:case d:case a:return e;default:return p}}case n:return p}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");WD.ContextConsumer=a,WD.ContextProvider=s,WD.Element=t,WD.ForwardRef=l,WD.Fragment=r,WD.Lazy=f,WD.Memo=d,WD.Portal=n,WD.Profiler=i,WD.StrictMode=o,WD.Suspense=c,WD.SuspenseList=u,WD.isContextConsumer=function(t){return e(t)===a},WD.isContextProvider=function(t){return e(t)===s},WD.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},WD.isForwardRef=function(t){return e(t)===l},WD.isFragment=function(t){return e(t)===r},WD.isLazy=function(t){return e(t)===f},WD.isMemo=function(t){return e(t)===d},WD.isPortal=function(t){return e(t)===n},WD.isProfiler=function(t){return e(t)===i},WD.isStrictMode=function(t){return e(t)===o},WD.isSuspense=function(t){return e(t)===c},WD.isSuspenseList=function(t){return e(t)===u},WD.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===o||e===c||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===s||e.$$typeof===a||e.$$typeof===l||e.$$typeof===m||void 0!==e.getModuleId)},WD.typeOf=e}()),WD}function XD(){return GD||(GD=1,"production"===process.env.NODE_ENV?LD.exports=BD():LD.exports=HD()),LD.exports}var $D=XD();function ZD(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function YD(e){if(o.isValidElement(e)||$D.isValidElementType(e)||!ZD(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=YD(e[n])})),t}function UD(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return ZD(e)&&ZD(t)&&Object.keys(t).forEach((i=>{o.isValidElement(t[i])||$D.isValidElementType(t[i])?r[i]=t[i]:ZD(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&ZD(e[i])?r[i]=UD(e[i],t[i],n):n.clone?r[i]=ZD(t[i])?YD(t[i]):t[i]:r[i]=t[i]})),r}function JD(e,t){return t?UD(e,t,{clone:!1}):e}const KD="production"!==process.env.NODE_ENV?ty.oneOfType([ty.number,ty.string,ty.object,ty.array]):{};const qD={xs:0,sm:600,md:900,lg:1200,xl:1536},QD={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qD[e]}px)`},ej={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:qD[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function tj(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||QD;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||QD;return Object.keys(t).reduce(((o,i)=>{if(a=e.keys,"@"===(s=i)||s.startsWith("@")&&(a.some((e=>s.startsWith(`@${e}`)))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if("production"!==process.env.NODE_ENV)throw new Error("production"!==process.env.NODE_ENV?`MUI: The provided shorthand (${t}) is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:DD(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:ej,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||qD).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}var a,s;return o}),{})}return n(t)}function nj(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function rj(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:nj(e,n)||r,t&&(o=t(o,r,e)),o}function oj(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=nj(e.theme,r)||{};return tj(e,i,(e=>{let r=rj(a,o,e);return e===r&&"string"==typeof e&&(r=rj(a,o,`${t}${"default"===e?"":jD(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:KD}:{},i.filterProps=[t],i}const ij={m:"margin",p:"padding"},aj={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},sj={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},lj=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!sj[e])return[e];e=sj[e]}const[t,n]=e.split(""),r=ij[t],o=aj[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),cj=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],uj=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],dj=[...cj,...uj];function fj(e,t,n,r){const o=nj(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),"string"==typeof o?`calc(${e} * ${o})`:o*e):Array.isArray(o)?e=>{if("string"==typeof e)return e;const n=Math.abs(e);"production"!==process.env.NODE_ENV&&(Number.isInteger(n)?n>o.length-1&&console.error([`MUI: The value provided (${n}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${n} > ${o.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n")));const r=o[n];return e>=0?r:"number"==typeof r?-r:`-${r}`}:"function"==typeof o?o:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function pj(e){return fj(e,"spacing",8,"spacing")}function mj(e,t){return"string"==typeof t||null==t?t:e(t)}function hj(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=mj(t,n),e)),{})}(lj(n),r);return tj(e,e[n],o)}function gj(e,t){const n=pj(e.theme);return Object.keys(e).map((r=>hj(e,t,r,n))).reduce(JD,{})}function yj(e){return gj(e,cj)}function bj(e){return gj(e,uj)}function vj(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?JD(n,t[r](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function wj(e){return"number"!=typeof e?e:`${e}px solid`}function xj(e,t){return oj({prop:e,themeKey:"borders",transform:t})}yj.propTypes="production"!==process.env.NODE_ENV?cj.reduce(((e,t)=>(e[t]=KD,e)),{}):{},yj.filterProps=cj,bj.propTypes="production"!==process.env.NODE_ENV?uj.reduce(((e,t)=>(e[t]=KD,e)),{}):{},bj.filterProps=uj,"production"===process.env.NODE_ENV||dj.reduce(((e,t)=>(e[t]=KD,e)),{});const Cj=xj("border",wj),kj=xj("borderTop",wj),Ej=xj("borderRight",wj),Sj=xj("borderBottom",wj),Ij=xj("borderLeft",wj),_j=xj("borderColor"),Aj=xj("borderTopColor"),Nj=xj("borderRightColor"),Oj=xj("borderBottomColor"),Rj=xj("borderLeftColor"),Mj=xj("outline",wj),Tj=xj("outlineColor"),Pj=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=fj(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:mj(t,e)});return tj(e,e.borderRadius,n)}return null};Pj.propTypes="production"!==process.env.NODE_ENV?{borderRadius:KD}:{},Pj.filterProps=["borderRadius"],vj(Cj,kj,Ej,Sj,Ij,_j,Aj,Nj,Oj,Rj,Pj,Mj,Tj);const Dj=e=>{if(void 0!==e.gap&&null!==e.gap){const t=fj(e.theme,"spacing",8,"gap"),n=e=>({gap:mj(t,e)});return tj(e,e.gap,n)}return null};Dj.propTypes="production"!==process.env.NODE_ENV?{gap:KD}:{},Dj.filterProps=["gap"];const jj=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=fj(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:mj(t,e)});return tj(e,e.columnGap,n)}return null};jj.propTypes="production"!==process.env.NODE_ENV?{columnGap:KD}:{},jj.filterProps=["columnGap"];const Fj=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=fj(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:mj(t,e)});return tj(e,e.rowGap,n)}return null};Fj.propTypes="production"!==process.env.NODE_ENV?{rowGap:KD}:{},Fj.filterProps=["rowGap"];function Lj(e,t){return"grey"===t?t:e}vj(Dj,jj,Fj,oj({prop:"gridColumn"}),oj({prop:"gridRow"}),oj({prop:"gridAutoFlow"}),oj({prop:"gridAutoColumns"}),oj({prop:"gridAutoRows"}),oj({prop:"gridTemplateColumns"}),oj({prop:"gridTemplateRows"}),oj({prop:"gridTemplateAreas"}),oj({prop:"gridArea"}));function zj(e){return e<=1&&0!==e?100*e+"%":e}vj(oj({prop:"color",themeKey:"palette",transform:Lj}),oj({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Lj}),oj({prop:"backgroundColor",themeKey:"palette",transform:Lj}));const Bj=oj({prop:"width",transform:zj}),Vj=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||qD[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:zj(t)}};return tj(e,e.maxWidth,t)}return null};Vj.filterProps=["maxWidth"];const Gj=oj({prop:"minWidth",transform:zj}),Wj=oj({prop:"height",transform:zj}),Hj=oj({prop:"maxHeight",transform:zj}),Xj=oj({prop:"minHeight",transform:zj});oj({prop:"size",cssProperty:"width",transform:zj}),oj({prop:"size",cssProperty:"height",transform:zj});vj(Bj,Vj,Gj,Wj,Hj,Xj,oj({prop:"boxSizing"}));const $j={border:{themeKey:"borders",transform:wj},borderTop:{themeKey:"borders",transform:wj},borderRight:{themeKey:"borders",transform:wj},borderBottom:{themeKey:"borders",transform:wj},borderLeft:{themeKey:"borders",transform:wj},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wj},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Pj},color:{themeKey:"palette",transform:Lj},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Lj},backgroundColor:{themeKey:"palette",transform:Lj},p:{style:bj},pt:{style:bj},pr:{style:bj},pb:{style:bj},pl:{style:bj},px:{style:bj},py:{style:bj},padding:{style:bj},paddingTop:{style:bj},paddingRight:{style:bj},paddingBottom:{style:bj},paddingLeft:{style:bj},paddingX:{style:bj},paddingY:{style:bj},paddingInline:{style:bj},paddingInlineStart:{style:bj},paddingInlineEnd:{style:bj},paddingBlock:{style:bj},paddingBlockStart:{style:bj},paddingBlockEnd:{style:bj},m:{style:yj},mt:{style:yj},mr:{style:yj},mb:{style:yj},ml:{style:yj},mx:{style:yj},my:{style:yj},margin:{style:yj},marginTop:{style:yj},marginRight:{style:yj},marginBottom:{style:yj},marginLeft:{style:yj},marginX:{style:yj},marginY:{style:yj},marginInline:{style:yj},marginInlineStart:{style:yj},marginInlineEnd:{style:yj},marginBlock:{style:yj},marginBlockStart:{style:yj},marginBlockEnd:{style:yj},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Dj},rowGap:{style:Fj},columnGap:{style:jj},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zj},maxWidth:{style:Vj},minWidth:{transform:zj},height:{transform:zj},maxHeight:{transform:zj},minHeight:{transform:zj},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Zj=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=nj(n,s)||{};if(c)return c(o);return tj(o,t,(t=>{let n=rj(u,l,t);return t===n&&"string"==typeof t&&(n=rj(u,l,`${e}${"default"===t?"":jD(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??$j;function a(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const a=function(e={}){const t=e.keys?.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return t||{}}(o.breakpoints),s=Object.keys(a);let l=a;return Object.keys(r).forEach((n=>{const a=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=a)if("object"==typeof a)if(i[n])l=JD(l,e(n,a,o,i));else{const e=tj({theme:o},a,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,a)?l=JD(l,e):l[n]=t({sx:a,theme:o})}else l=JD(l,e(n,a,o,i))})),function(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter((e=>e.startsWith("@container"))).sort(((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)}));return n.length?n.reduce(((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e}),{...t}):t}(o,function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l))}return Array.isArray(r)?r.map(a):a(r)}}();Zj.filterProps=["sx"];var Yj=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Uj=bM((function(e){return Yj.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Jj=function(e){return"theme"!==e},Kj=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Uj:Jj},qj=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Qj=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return OM(t,n,r),WM((function(){return RM(t,n,r)})),null},eF=function e(t,n){var r,i,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var l=qj(t,n,a),c=l||Kj(s),u=!c("as");return function(){var d=arguments,f=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var m=d.length,h=1;h<m;h++)f.push(d[h],p[h])}var g=ZM((function(e,t,n){var r=u&&e.as||s,a="",d=[],p=e;if(null==e.theme){for(var m in p={},e)p[m]=e[m];p.theme=o.useContext(YM)}"string"==typeof e.className?a=NM(t.registered,d,e.className):null!=e.className&&(a=e.className+" ");var h=GM(f.concat(d),t.registered,p);a+=t.key+"-"+h.name,void 0!==i&&(a+=" "+i);var g=u&&void 0===l?Kj(r):c,y={};for(var b in e)u&&"as"===b||g(b)&&(y[b]=e[b]);return y.className=a,n&&(y.ref=n),o.createElement(o.Fragment,null,o.createElement(Qj,{cache:t,serialized:h,isStringTag:"string"==typeof r}),o.createElement(r,y))}));return g.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=f,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(t,r){return e(t,gR({},n,r,{shouldForwardProp:qj(g,r,!0)})).apply(void 0,f)},g}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){eF[e]=eF(e)}));const tF=[];function nF(e){return tF[0]=e,GM(tF)}function rF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>({...e,[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return{keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const oF={borderRadius:4};function iF(e=8,t=pj({spacing:e})){if(e.mui)return e;const n=(...e)=>{"production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`));return(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}function aF(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function sF(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let s=UD({breakpoints:rF(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:iF(o),shape:{...oF,...i}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=aF,s=t.reduce(((e,t)=>UD(e,t)),s),s.unstable_sxConfig={...$j,...a?.unstable_sxConfig},s.unstable_sx=function(e){return Zj({sx:e,theme:this})},s}const lF=e=>e,cF=(()=>{let e=lF;return{configure(t){e=t},generate:t=>e(t),reset(){e=lF}}})(),uF={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function dF(e,t,n="Mui"){const r=uF[t];return r?`${n}-${r}`:`${cF.generate(e)}-${t}`}function fF(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=dF(e,t,n)})),r}function pF(e,t=""){return e.displayName||e.name||t}function mF(e,t,n){const r=pF(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function hF(e){const{variants:t,...n}=e,r={variants:t,style:nF(n),isProcessed:!0};return r.style===n||t&&t.forEach((e=>{"function"!=typeof e.style&&(e.style=nF(e.style))})),r}const gF=sF();function yF(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function bF(e){return e?(t,n)=>n[e]:null}function vF(e,t){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap((t=>vF(e,t)));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=n.style;else{const{variants:e,...r}=n;t=r}return wF(e,n.variants,[t])}return n?.isProcessed?n.style:n}function wF(e,t,n=[]){let r;e:for(let o=0;o<t.length;o+=1){const i=t[o];if("function"==typeof i.props){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(r))continue}else for(const t in i.props)if(e[t]!==i.props[t]&&e.ownerState?.[t]!==i.props[t])continue e;"function"==typeof i.style?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i.style(r))):n.push(i.style)}return n}function xF(e,t){let n;return"production"!==process.env.NODE_ENV&&e&&(n=`${e}-${CF(t||"Root")}`),n}function CF(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function kF(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if("components"===o||"slots"===o)n[o]={...e[o],...n[o]};else if("componentsProps"===o||"slotProps"===o){const r=e[o],i=t[o];if(i)if(r){n[o]={...i};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;n[o][t]=kF(r[t],i[t])}}else n[o]=i;else n[o]=r||{}}else void 0===n[o]&&(n[o]=e[o])}return n}const EF="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function SF(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function IF(e){if(e.type)return e;if("#"===e.charAt(0))return IF(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),"production"!==process.env.NODE_ENV&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:DD(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:DD(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const _F=(e,t)=>{try{return(e=>{const t=IF(e);return t.values.slice(0,3).map(((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e)).join(" ")})(e)}catch(n){return t&&"production"!==process.env.NODE_ENV&&console.warn(t),e}};function AF(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function NF(e){e=IF(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),AF({type:s,values:l})}function OF(e){let t="hsl"===(e=IF(e)).type||"hsla"===e.type?IF(NF(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function RF(e,t){const n=OF(e),r=OF(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function MF(e,t){return e=IF(e),t=SF(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,AF(e)}function TF(e,t,n){try{return MF(e,t)}catch(t){return e}}function PF(e,t){if(e=IF(e),t=SF(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return AF(e)}function DF(e,t,n){try{return PF(e,t)}catch(t){return e}}function jF(e,t){if(e=IF(e),t=SF(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return AF(e)}function FF(e,t,n){try{return jF(e,t)}catch(t){return e}}function LF(e,t,n){try{return function(e,t=.15){return OF(e)>.5?PF(e,t):jF(e,t)}(e,t)}catch(t){return e}}var zF,BF,VF=(zF=ty.elementType,BF=function(e,t,n,r,o){const i=e[t],a=o||t;if(null==i||"undefined"==typeof window)return null;let s;return"function"!=typeof i||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(i)||(s="Did you accidentally provide a plain function component instead?"),void 0!==s?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null},"production"===process.env.NODE_ENV?()=>null:function(...e){return zF(...e)||BF(...e)});const GF=ty.oneOfType([ty.func,ty.object]);function WF(e){const t=o.useRef(e);return EF((()=>{t.current=e})),o.useRef(((...e)=>(0,t.current)(...e))).current}function HF(...e){return o.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const XF={};function $F(e,t){const n=o.useRef(XF);return n.current===XF&&(n.current=e(t)),n}const ZF=[];class YF{static create(){return new YF}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function UF(){const e=$F(YF.create).current;var t;return t=e.disposeEffect,o.useEffect(t,ZF),e}function JF(e){try{return e.matches(":focus-visible")}catch(e){"production"===process.env.NODE_ENV||/jsdom/.test(window.navigator.userAgent)||console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join("\n"))}return!1}function KF(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function qF(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=MD(n?.className,i,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}({...o,...r}),s=KF(r),l=KF(o),c=t(a),u=MD(c?.className,n?.className,i,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},f={...c,...n,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const QF=o.createContext(void 0);function eL({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?kF(o.defaultProps,r):o.styleOverrides||o.variants?r:kF(o,r)}({props:e,name:t,theme:{components:o.useContext(QF)}})}"production"!==process.env.NODE_ENV&&(ty.node,ty.object);const tL={theme:void 0};function nL(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const rL=(e,t,n,r=[])=>{let o=e;t.forEach(((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])}))};function oL(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some((t=>e.includes(t)))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),rL(i,e,`var(${r})`,s),rL(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach((([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))}))}(e),{css:o,vars:i,varsWithDefaults:a}}const iL={black:"#000",white:"#fff"},aL={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},sL="#f3e5f5",lL="#ce93d8",cL="#ba68c8",uL="#ab47bc",dL="#9c27b0",fL="#7b1fa2",pL="#e57373",mL="#ef5350",hL="#f44336",gL="#d32f2f",yL="#c62828",bL="#ffb74d",vL="#ffa726",wL="#ff9800",xL="#f57c00",CL="#e65100",kL="#e3f2fd",EL="#90caf9",SL="#42a5f5",IL="#1976d2",_L="#1565c0",AL="#4fc3f7",NL="#29b6f6",OL="#03a9f4",RL="#0288d1",ML="#01579b",TL="#81c784",PL="#66bb6a",DL="#4caf50",jL="#388e3c",FL="#2e7d32",LL="#1b5e20";function zL(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:iL.white,default:iL.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const BL=zL();function VL(){return{text:{primary:iL.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:iL.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const GL=VL();function WL(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=jF(e.main,o):"dark"===t&&(e.dark=PF(e.main,i)))}function HL(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||function(e="light"){return"dark"===e?{main:EL,light:kL,dark:SL}:{main:IL,light:SL,dark:_L}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:lL,light:sL,dark:uL}:{main:dL,light:cL,dark:fL}}(t),s=e.error||function(e="light"){return"dark"===e?{main:hL,light:pL,dark:gL}:{main:gL,light:mL,dark:yL}}(t),l=e.info||function(e="light"){return"dark"===e?{main:NL,light:AL,dark:RL}:{main:RL,light:OL,dark:ML}}(t),c=e.success||function(e="light"){return"dark"===e?{main:PL,light:TL,dark:jL}:{main:FL,light:DL,dark:LL}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:vL,light:bL,dark:xL}:{main:"#ed6c02",light:wL,dark:CL}}(t);function d(e){const t=RF(e,GL.text.primary)>=n?GL.text.primary:BL.text.primary;if("production"!==process.env.NODE_ENV){const n=RF(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:DD(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:DD(12,t?` (${t})`:"",JSON.stringify(e.main)));return WL(e,"light",o,r),WL(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e};let p;"light"===t?p=zL():"dark"===t&&(p=VL()),"production"!==process.env.NODE_ENV&&(p||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return UD({common:{...iL},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:aL,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...p},o)}function XL(e){const t={};return Object.entries(e).forEach((e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)})),t}const $L={textTransform:"uppercase"},ZL='"Roboto", "Helvetica", "Arial", sans-serif';function YL(e,t){const{fontFamily:n=ZL,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t;"production"!==process.env.NODE_ENV&&("number"!=typeof r&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof l&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=r/14,p=u||(e=>e/l*f+"rem"),m=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===ZL?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...c};var a},h={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,$L),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,$L),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return UD({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...h},d,{clone:!1})}function UL(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const JL=["none",UL(0,2,1,-1,0,1,1,0,0,1,3,0),UL(0,3,1,-2,0,2,2,0,0,1,5,0),UL(0,3,3,-2,0,3,4,0,0,1,8,0),UL(0,2,4,-1,0,4,5,0,0,1,10,0),UL(0,3,5,-1,0,5,8,0,0,1,14,0),UL(0,3,5,-1,0,6,10,0,0,1,18,0),UL(0,4,5,-2,0,7,10,1,0,2,16,1),UL(0,5,5,-3,0,8,10,1,0,3,14,2),UL(0,5,6,-3,0,9,12,1,0,3,16,2),UL(0,6,6,-3,0,10,14,1,0,4,18,3),UL(0,6,7,-4,0,11,15,1,0,4,20,3),UL(0,7,8,-4,0,12,17,2,0,5,22,4),UL(0,7,8,-4,0,13,19,2,0,5,24,4),UL(0,7,9,-4,0,14,21,2,0,5,26,4),UL(0,8,9,-5,0,15,22,2,0,6,28,5),UL(0,8,10,-5,0,16,24,2,0,6,30,5),UL(0,8,11,-5,0,17,26,2,0,6,32,5),UL(0,9,11,-5,0,18,28,2,0,7,34,6),UL(0,9,12,-6,0,19,29,2,0,7,36,6),UL(0,10,13,-6,0,20,31,3,0,8,38,7),UL(0,10,13,-6,0,21,33,3,0,8,40,7),UL(0,10,14,-6,0,22,35,3,0,8,42,7),UL(0,11,14,-7,0,23,36,3,0,9,44,8),UL(0,11,15,-7,0,24,38,3,0,9,46,8)],KL={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},qL={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function QL(e){return`${Math.round(e)}ms`}function ez(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function tz(e){const t={...KL,...e.easing},n={...qL,...e.duration};return{getAutoHeightDuration:ez,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!Number.isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),n(o)||t(o)||console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),n(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof r&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:QL(o)} ${i} ${"string"==typeof a?a:QL(a)}`)).join(",")},...e,easing:t,duration:n}}const nz={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function rz(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let o=0;o<n.length;o++){const[i,a]=n[o];!ZD(r=a)&&void 0!==r&&"string"!=typeof r&&"boolean"!=typeof r&&"number"!=typeof r&&!Array.isArray(r)||i.startsWith("unstable_")?delete t[i]:ZD(a)&&(t[i]={...a},e(t[i]))}var r}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function oz(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":DD(20));const u=HL(i),d=sF(e);let f=UD(d,{mixins:(p=d.breakpoints,m=r,{toolbar:{minHeight:56,[p.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[p.up("sm")]:{minHeight:64}},...m}),palette:u,shadows:JL.slice(),typography:YL(u,s),transitions:tz(a),zIndex:{...nz}});var p,m;if(f=UD(f,c),f=t.reduce(((e,t)=>UD(e,t)),f),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let r;for(r in t){const o=t[r];if(e.includes(r)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=dF("",r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[r]={}}}};Object.keys(f.components).forEach((e=>{const n=f.components[e].styleOverrides;n&&e.startsWith("Mui")&&t(n,e)}))}return f.unstable_sxConfig={...$j,...c?.unstable_sxConfig},f.unstable_sx=function(e){return Zj({sx:e,theme:this})},f.toRuntimeSource=rz,f}const iz=[...Array(25)].map(((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function az(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function sz(e){return"dark"===e?iz:[]}function lz(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var cz=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(a=e.cssVarPrefix,[...[...Array(25)].map(((e,t)=>`--${a?`${a}-`:""}overlays-${t}`)),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach((e=>{o[e]=n[e],delete n[e]})),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}var a;return r};function uz(e,t,n){!e[t]&&n&&(e[t]=n)}function dz(e){return"string"==typeof e&&e.startsWith("hsl")?NF(e):e}function fz(e,t){`${t}Channel`in e||(e[`${t}Channel`]=_F(dz(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().\nTo suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}const pz=e=>{try{return e()}catch(e){}};function mz(e,t,n,r){if(!t)return;t=!0===t?{}:t;const o="dark"===r?"dark":"light";if(!n)return void(e[r]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=HL(t);return{palette:i,opacity:{...az(i.mode),...n},overlays:r||sz(i.mode),...o}}({...t,palette:{mode:o,...t?.palette}}));const{palette:i,...a}=oz({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:i,opacity:{...az(o),...t?.opacity},overlays:t?.overlays||sz(o)},a}function hz(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=lz,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&"light"!==u?"light":u),f=((e="mui")=>nL(e))(i),{[d]:p,light:m,dark:h,...g}=n,y={...g};let b=p;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(b=!0),!b)throw new Error("production"!==process.env.NODE_ENV?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:DD(21,d));const v=mz(y,b,c,d);m&&!y.light&&mz(y,m,void 0,"light"),h&&!y.dark&&mz(y,h,void 0,"dark");let w={defaultColorScheme:d,...v,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:y,font:{...XL(v.typography),...v.font},spacing:(x=c.spacing,"number"==typeof x?`${x}px`:"string"==typeof x||"function"==typeof x||Array.isArray(x)?x:"8px")};var x;Object.keys(w.colorSchemes).forEach((e=>{const t=w.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return f(e,t[r][o])};if("light"===t.mode&&(uz(t.common,"background","#fff"),uz(t.common,"onBackground","#000")),"dark"===t.mode&&(uz(t.common,"background","#000"),uz(t.common,"onBackground","#fff")),function(e,t){t.forEach((t=>{e[t]||(e[t]={})}))}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){uz(t.Alert,"errorColor",DF(t.error.light,.6)),uz(t.Alert,"infoColor",DF(t.info.light,.6)),uz(t.Alert,"successColor",DF(t.success.light,.6)),uz(t.Alert,"warningColor",DF(t.warning.light,.6)),uz(t.Alert,"errorFilledBg",n("palette-error-main")),uz(t.Alert,"infoFilledBg",n("palette-info-main")),uz(t.Alert,"successFilledBg",n("palette-success-main")),uz(t.Alert,"warningFilledBg",n("palette-warning-main")),uz(t.Alert,"errorFilledColor",pz((()=>t.getContrastText(t.error.main)))),uz(t.Alert,"infoFilledColor",pz((()=>t.getContrastText(t.info.main)))),uz(t.Alert,"successFilledColor",pz((()=>t.getContrastText(t.success.main)))),uz(t.Alert,"warningFilledColor",pz((()=>t.getContrastText(t.warning.main)))),uz(t.Alert,"errorStandardBg",FF(t.error.light,.9)),uz(t.Alert,"infoStandardBg",FF(t.info.light,.9)),uz(t.Alert,"successStandardBg",FF(t.success.light,.9)),uz(t.Alert,"warningStandardBg",FF(t.warning.light,.9)),uz(t.Alert,"errorIconColor",n("palette-error-main")),uz(t.Alert,"infoIconColor",n("palette-info-main")),uz(t.Alert,"successIconColor",n("palette-success-main")),uz(t.Alert,"warningIconColor",n("palette-warning-main")),uz(t.AppBar,"defaultBg",n("palette-grey-100")),uz(t.Avatar,"defaultBg",n("palette-grey-400")),uz(t.Button,"inheritContainedBg",n("palette-grey-300")),uz(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),uz(t.Chip,"defaultBorder",n("palette-grey-400")),uz(t.Chip,"defaultAvatarColor",n("palette-grey-700")),uz(t.Chip,"defaultIconColor",n("palette-grey-700")),uz(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),uz(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),uz(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),uz(t.LinearProgress,"primaryBg",FF(t.primary.main,.62)),uz(t.LinearProgress,"secondaryBg",FF(t.secondary.main,.62)),uz(t.LinearProgress,"errorBg",FF(t.error.main,.62)),uz(t.LinearProgress,"infoBg",FF(t.info.main,.62)),uz(t.LinearProgress,"successBg",FF(t.success.main,.62)),uz(t.LinearProgress,"warningBg",FF(t.warning.main,.62)),uz(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),uz(t.Slider,"primaryTrack",FF(t.primary.main,.62)),uz(t.Slider,"secondaryTrack",FF(t.secondary.main,.62)),uz(t.Slider,"errorTrack",FF(t.error.main,.62)),uz(t.Slider,"infoTrack",FF(t.info.main,.62)),uz(t.Slider,"successTrack",FF(t.success.main,.62)),uz(t.Slider,"warningTrack",FF(t.warning.main,.62));const e=LF(t.background.default,.8);uz(t.SnackbarContent,"bg",e),uz(t.SnackbarContent,"color",pz((()=>t.getContrastText(e)))),uz(t.SpeedDialAction,"fabHoverBg",LF(t.background.paper,.15)),uz(t.StepConnector,"border",n("palette-grey-400")),uz(t.StepContent,"border",n("palette-grey-400")),uz(t.Switch,"defaultColor",n("palette-common-white")),uz(t.Switch,"defaultDisabledColor",n("palette-grey-100")),uz(t.Switch,"primaryDisabledColor",FF(t.primary.main,.62)),uz(t.Switch,"secondaryDisabledColor",FF(t.secondary.main,.62)),uz(t.Switch,"errorDisabledColor",FF(t.error.main,.62)),uz(t.Switch,"infoDisabledColor",FF(t.info.main,.62)),uz(t.Switch,"successDisabledColor",FF(t.success.main,.62)),uz(t.Switch,"warningDisabledColor",FF(t.warning.main,.62)),uz(t.TableCell,"border",FF(TF(t.divider,1),.88)),uz(t.Tooltip,"bg",TF(t.grey[700],.92))}if("dark"===t.mode){uz(t.Alert,"errorColor",FF(t.error.light,.6)),uz(t.Alert,"infoColor",FF(t.info.light,.6)),uz(t.Alert,"successColor",FF(t.success.light,.6)),uz(t.Alert,"warningColor",FF(t.warning.light,.6)),uz(t.Alert,"errorFilledBg",n("palette-error-dark")),uz(t.Alert,"infoFilledBg",n("palette-info-dark")),uz(t.Alert,"successFilledBg",n("palette-success-dark")),uz(t.Alert,"warningFilledBg",n("palette-warning-dark")),uz(t.Alert,"errorFilledColor",pz((()=>t.getContrastText(t.error.dark)))),uz(t.Alert,"infoFilledColor",pz((()=>t.getContrastText(t.info.dark)))),uz(t.Alert,"successFilledColor",pz((()=>t.getContrastText(t.success.dark)))),uz(t.Alert,"warningFilledColor",pz((()=>t.getContrastText(t.warning.dark)))),uz(t.Alert,"errorStandardBg",DF(t.error.light,.9)),uz(t.Alert,"infoStandardBg",DF(t.info.light,.9)),uz(t.Alert,"successStandardBg",DF(t.success.light,.9)),uz(t.Alert,"warningStandardBg",DF(t.warning.light,.9)),uz(t.Alert,"errorIconColor",n("palette-error-main")),uz(t.Alert,"infoIconColor",n("palette-info-main")),uz(t.Alert,"successIconColor",n("palette-success-main")),uz(t.Alert,"warningIconColor",n("palette-warning-main")),uz(t.AppBar,"defaultBg",n("palette-grey-900")),uz(t.AppBar,"darkBg",n("palette-background-paper")),uz(t.AppBar,"darkColor",n("palette-text-primary")),uz(t.Avatar,"defaultBg",n("palette-grey-600")),uz(t.Button,"inheritContainedBg",n("palette-grey-800")),uz(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),uz(t.Chip,"defaultBorder",n("palette-grey-700")),uz(t.Chip,"defaultAvatarColor",n("palette-grey-300")),uz(t.Chip,"defaultIconColor",n("palette-grey-300")),uz(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),uz(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),uz(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),uz(t.LinearProgress,"primaryBg",DF(t.primary.main,.5)),uz(t.LinearProgress,"secondaryBg",DF(t.secondary.main,.5)),uz(t.LinearProgress,"errorBg",DF(t.error.main,.5)),uz(t.LinearProgress,"infoBg",DF(t.info.main,.5)),uz(t.LinearProgress,"successBg",DF(t.success.main,.5)),uz(t.LinearProgress,"warningBg",DF(t.warning.main,.5)),uz(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),uz(t.Slider,"primaryTrack",DF(t.primary.main,.5)),uz(t.Slider,"secondaryTrack",DF(t.secondary.main,.5)),uz(t.Slider,"errorTrack",DF(t.error.main,.5)),uz(t.Slider,"infoTrack",DF(t.info.main,.5)),uz(t.Slider,"successTrack",DF(t.success.main,.5)),uz(t.Slider,"warningTrack",DF(t.warning.main,.5));const e=LF(t.background.default,.98);uz(t.SnackbarContent,"bg",e),uz(t.SnackbarContent,"color",pz((()=>t.getContrastText(e)))),uz(t.SpeedDialAction,"fabHoverBg",LF(t.background.paper,.15)),uz(t.StepConnector,"border",n("palette-grey-600")),uz(t.StepContent,"border",n("palette-grey-600")),uz(t.Switch,"defaultColor",n("palette-grey-300")),uz(t.Switch,"defaultDisabledColor",n("palette-grey-600")),uz(t.Switch,"primaryDisabledColor",DF(t.primary.main,.55)),uz(t.Switch,"secondaryDisabledColor",DF(t.secondary.main,.55)),uz(t.Switch,"errorDisabledColor",DF(t.error.main,.55)),uz(t.Switch,"infoDisabledColor",DF(t.info.main,.55)),uz(t.Switch,"successDisabledColor",DF(t.success.main,.55)),uz(t.Switch,"warningDisabledColor",DF(t.warning.main,.55)),uz(t.TableCell,"border",DF(TF(t.divider,1),.68)),uz(t.Tooltip,"bg",TF(t.grey[700],.92))}fz(t.background,"default"),fz(t.background,"paper"),fz(t.common,"background"),fz(t.common,"onBackground"),fz(t,"divider"),Object.keys(t).forEach((e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&uz(t[e],"mainChannel",_F(dz(n.main))),n.light&&uz(t[e],"lightChannel",_F(dz(n.light))),n.dark&&uz(t[e],"darkChannel",_F(dz(n.dark))),n.contrastText&&uz(t[e],"contrastTextChannel",_F(dz(n.contrastText))),"text"===e&&(fz(t[e],"primary"),fz(t[e],"secondary")),"action"===e&&(n.active&&fz(t[e],"active"),n.selected&&fz(t[e],"selected")))}))})),w=t.reduce(((e,t)=>UD(e,t)),w);const C={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:cz(w)},{vars:k,generateThemeVars:E,generateStyleSheets:S}=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=oL(l,t);let f=d;const p={},{[s]:m,...h}=i;if(Object.entries(h||{}).forEach((([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=oL(n,t);f=UD(f,i),p[e]={css:o,vars:r}})),m){const{css:e,vars:n,varsWithDefaults:r}=oL(m,t);f=UD(f,r),p[s]={css:e,vars:n}}function g(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:f,generateThemeVars:()=>{let e={...c};return Object.entries(p).forEach((([,{vars:t}])=>{e=UD(e,t)})),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function a(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}a(n(void 0,{...u}),u);const{[o]:s,...l}=p;if(s){const{css:e}=s,t=i[o]?.palette?.mode,l=!r&&t?{colorScheme:t,...e}:{...e};a(n(o,{...l}),l)}return Object.entries(l).forEach((([e,{css:t}])=>{const o=i[e]?.palette?.mode,s=!r&&o?{colorScheme:o,...t}:{...t};a(n(e,{...s}),s)})),t}}}(w,C);return w.vars=k,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach((([e,t])=>{w[e]=t})),w.generateThemeVars=E,w.generateStyleSheets=S,w.generateSpacing=function(){return iF(c.spacing,pj(this))},w.getColorSchemeSelector=function(e){return function(t){return"media"===e?("production"!==process.env.NODE_ENV&&"light"!==t&&"dark"!==t&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=a,w.unstable_sxConfig={...$j,...c?.unstable_sxConfig},w.unstable_sx=function(e){return Zj({sx:e,theme:this})},w.toRuntimeSource=rz,w}function gz(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:HL({...!0===n?{}:n.palette,mode:t})})}const yz=function(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...a}=e,s=i||"light",l=o?.[s],c={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return oz(e,...t);let r=n;"palette"in e||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const o=oz({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=c,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==c.light&&c.light,palette:o.palette},gz(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},gz(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),hz({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}();const bz=function(e={}){const{themeId:t,defaultTheme:n=gF,rootShouldForwardProp:r=yF,slotShouldForwardProp:o=yF}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,(e=>e.filter((e=>e!==Zj))));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=bF(CF(a)),...u}=t,d=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,f=l||!1;let p=yF;"Root"===a||"root"===a?p=r:a?p=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(p=void 0);const m=
|
|
70
|
+
*/function $D(){return WD||(WD=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case r:case i:case o:case c:case u:return e;default:switch(e=e&&e.$$typeof){case s:case l:case f:case d:case a:return e;default:return p}}case n:return p}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");XD.ContextConsumer=a,XD.ContextProvider=s,XD.Element=t,XD.ForwardRef=l,XD.Fragment=r,XD.Lazy=f,XD.Memo=d,XD.Portal=n,XD.Profiler=i,XD.StrictMode=o,XD.Suspense=c,XD.SuspenseList=u,XD.isContextConsumer=function(t){return e(t)===a},XD.isContextProvider=function(t){return e(t)===s},XD.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},XD.isForwardRef=function(t){return e(t)===l},XD.isFragment=function(t){return e(t)===r},XD.isLazy=function(t){return e(t)===f},XD.isMemo=function(t){return e(t)===d},XD.isPortal=function(t){return e(t)===n},XD.isProfiler=function(t){return e(t)===i},XD.isStrictMode=function(t){return e(t)===o},XD.isSuspense=function(t){return e(t)===c},XD.isSuspenseList=function(t){return e(t)===u},XD.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===o||e===c||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===s||e.$$typeof===a||e.$$typeof===l||e.$$typeof===m||void 0!==e.getModuleId)},XD.typeOf=e}()),XD}function ZD(){return HD||(HD=1,"production"===process.env.NODE_ENV?BD.exports=GD():BD.exports=$D()),BD.exports}var YD=ZD();function UD(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function JD(e){if(o.isValidElement(e)||YD.isValidElementType(e)||!UD(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=JD(e[n])})),t}function KD(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return UD(e)&&UD(t)&&Object.keys(t).forEach((i=>{o.isValidElement(t[i])||YD.isValidElementType(t[i])?r[i]=t[i]:UD(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&UD(e[i])?r[i]=KD(e[i],t[i],n):n.clone?r[i]=UD(t[i])?JD(t[i]):t[i]:r[i]=t[i]})),r}function qD(e,t){return t?KD(e,t,{clone:!1}):e}const QD="production"!==process.env.NODE_ENV?ty.oneOfType([ty.number,ty.string,ty.object,ty.array]):{};const ej={xs:0,sm:600,md:900,lg:1200,xl:1536},tj={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ej[e]}px)`},nj={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:ej[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function rj(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||tj;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||tj;return Object.keys(t).reduce(((o,i)=>{if(a=e.keys,"@"===(s=i)||s.startsWith("@")&&(a.some((e=>s.startsWith(`@${e}`)))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if("production"!==process.env.NODE_ENV)throw new Error("production"!==process.env.NODE_ENV?`MUI: The provided shorthand (${t}) is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:FD(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:nj,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||ej).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}var a,s;return o}),{})}return n(t)}function oj(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function ij(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:oj(e,n)||r,t&&(o=t(o,r,e)),o}function aj(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=oj(e.theme,r)||{};return rj(e,i,(e=>{let r=ij(a,o,e);return e===r&&"string"==typeof e&&(r=ij(a,o,`${t}${"default"===e?"":LD(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:QD}:{},i.filterProps=[t],i}const sj={m:"margin",p:"padding"},lj={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cj={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uj=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!cj[e])return[e];e=cj[e]}const[t,n]=e.split(""),r=sj[t],o=lj[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),dj=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fj=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],pj=[...dj,...fj];function mj(e,t,n,r){const o=oj(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),"string"==typeof o?`calc(${e} * ${o})`:o*e):Array.isArray(o)?e=>{if("string"==typeof e)return e;const n=Math.abs(e);"production"!==process.env.NODE_ENV&&(Number.isInteger(n)?n>o.length-1&&console.error([`MUI: The value provided (${n}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${n} > ${o.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n")));const r=o[n];return e>=0?r:"number"==typeof r?-r:`-${r}`}:"function"==typeof o?o:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function hj(e){return mj(e,"spacing",8,"spacing")}function gj(e,t){return"string"==typeof t||null==t?t:e(t)}function yj(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=gj(t,n),e)),{})}(uj(n),r);return rj(e,e[n],o)}function bj(e,t){const n=hj(e.theme);return Object.keys(e).map((r=>yj(e,t,r,n))).reduce(qD,{})}function vj(e){return bj(e,dj)}function wj(e){return bj(e,fj)}function xj(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?qD(n,t[r](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Cj(e){return"number"!=typeof e?e:`${e}px solid`}function kj(e,t){return aj({prop:e,themeKey:"borders",transform:t})}vj.propTypes="production"!==process.env.NODE_ENV?dj.reduce(((e,t)=>(e[t]=QD,e)),{}):{},vj.filterProps=dj,wj.propTypes="production"!==process.env.NODE_ENV?fj.reduce(((e,t)=>(e[t]=QD,e)),{}):{},wj.filterProps=fj,"production"===process.env.NODE_ENV||pj.reduce(((e,t)=>(e[t]=QD,e)),{});const Ej=kj("border",Cj),Sj=kj("borderTop",Cj),Ij=kj("borderRight",Cj),_j=kj("borderBottom",Cj),Aj=kj("borderLeft",Cj),Nj=kj("borderColor"),Oj=kj("borderTopColor"),Rj=kj("borderRightColor"),Mj=kj("borderBottomColor"),Tj=kj("borderLeftColor"),Pj=kj("outline",Cj),Dj=kj("outlineColor"),jj=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=mj(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:gj(t,e)});return rj(e,e.borderRadius,n)}return null};jj.propTypes="production"!==process.env.NODE_ENV?{borderRadius:QD}:{},jj.filterProps=["borderRadius"],xj(Ej,Sj,Ij,_j,Aj,Nj,Oj,Rj,Mj,Tj,jj,Pj,Dj);const Fj=e=>{if(void 0!==e.gap&&null!==e.gap){const t=mj(e.theme,"spacing",8,"gap"),n=e=>({gap:gj(t,e)});return rj(e,e.gap,n)}return null};Fj.propTypes="production"!==process.env.NODE_ENV?{gap:QD}:{},Fj.filterProps=["gap"];const Lj=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=mj(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:gj(t,e)});return rj(e,e.columnGap,n)}return null};Lj.propTypes="production"!==process.env.NODE_ENV?{columnGap:QD}:{},Lj.filterProps=["columnGap"];const zj=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=mj(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:gj(t,e)});return rj(e,e.rowGap,n)}return null};zj.propTypes="production"!==process.env.NODE_ENV?{rowGap:QD}:{},zj.filterProps=["rowGap"];function Bj(e,t){return"grey"===t?t:e}xj(Fj,Lj,zj,aj({prop:"gridColumn"}),aj({prop:"gridRow"}),aj({prop:"gridAutoFlow"}),aj({prop:"gridAutoColumns"}),aj({prop:"gridAutoRows"}),aj({prop:"gridTemplateColumns"}),aj({prop:"gridTemplateRows"}),aj({prop:"gridTemplateAreas"}),aj({prop:"gridArea"}));function Vj(e){return e<=1&&0!==e?100*e+"%":e}xj(aj({prop:"color",themeKey:"palette",transform:Bj}),aj({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bj}),aj({prop:"backgroundColor",themeKey:"palette",transform:Bj}));const Gj=aj({prop:"width",transform:Vj}),Wj=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||ej[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Vj(t)}};return rj(e,e.maxWidth,t)}return null};Wj.filterProps=["maxWidth"];const Hj=aj({prop:"minWidth",transform:Vj}),Xj=aj({prop:"height",transform:Vj}),$j=aj({prop:"maxHeight",transform:Vj}),Zj=aj({prop:"minHeight",transform:Vj});aj({prop:"size",cssProperty:"width",transform:Vj}),aj({prop:"size",cssProperty:"height",transform:Vj});xj(Gj,Wj,Hj,Xj,$j,Zj,aj({prop:"boxSizing"}));const Yj={border:{themeKey:"borders",transform:Cj},borderTop:{themeKey:"borders",transform:Cj},borderRight:{themeKey:"borders",transform:Cj},borderBottom:{themeKey:"borders",transform:Cj},borderLeft:{themeKey:"borders",transform:Cj},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Cj},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jj},color:{themeKey:"palette",transform:Bj},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bj},backgroundColor:{themeKey:"palette",transform:Bj},p:{style:wj},pt:{style:wj},pr:{style:wj},pb:{style:wj},pl:{style:wj},px:{style:wj},py:{style:wj},padding:{style:wj},paddingTop:{style:wj},paddingRight:{style:wj},paddingBottom:{style:wj},paddingLeft:{style:wj},paddingX:{style:wj},paddingY:{style:wj},paddingInline:{style:wj},paddingInlineStart:{style:wj},paddingInlineEnd:{style:wj},paddingBlock:{style:wj},paddingBlockStart:{style:wj},paddingBlockEnd:{style:wj},m:{style:vj},mt:{style:vj},mr:{style:vj},mb:{style:vj},ml:{style:vj},mx:{style:vj},my:{style:vj},margin:{style:vj},marginTop:{style:vj},marginRight:{style:vj},marginBottom:{style:vj},marginLeft:{style:vj},marginX:{style:vj},marginY:{style:vj},marginInline:{style:vj},marginInlineStart:{style:vj},marginInlineEnd:{style:vj},marginBlock:{style:vj},marginBlockStart:{style:vj},marginBlockEnd:{style:vj},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Fj},rowGap:{style:zj},columnGap:{style:Lj},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vj},maxWidth:{style:Wj},minWidth:{transform:Vj},height:{transform:Vj},maxHeight:{transform:Vj},minHeight:{transform:Vj},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Uj=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=oj(n,s)||{};if(c)return c(o);return rj(o,t,(t=>{let n=ij(u,l,t);return t===n&&"string"==typeof t&&(n=ij(u,l,`${e}${"default"===t?"":LD(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Yj;function a(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const a=function(e={}){const t=e.keys?.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return t||{}}(o.breakpoints),s=Object.keys(a);let l=a;return Object.keys(r).forEach((n=>{const a=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=a)if("object"==typeof a)if(i[n])l=qD(l,e(n,a,o,i));else{const e=rj({theme:o},a,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,a)?l=qD(l,e):l[n]=t({sx:a,theme:o})}else l=qD(l,e(n,a,o,i))})),function(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter((e=>e.startsWith("@container"))).sort(((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)}));return n.length?n.reduce(((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e}),{...t}):t}(o,function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l))}return Array.isArray(r)?r.map(a):a(r)}}();Uj.filterProps=["sx"];var Jj=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Kj=wM((function(e){return Jj.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),qj=function(e){return"theme"!==e},Qj=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Kj:qj},eF=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},tF=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return MM(t,n,r),XM((function(){return TM(t,n,r)})),null},nF=function e(t,n){var r,i,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var l=eF(t,n,a),c=l||Qj(s),u=!c("as");return function(){var d=arguments,f=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var m=d.length,h=1;h<m;h++)f.push(d[h],p[h])}var g=UM((function(e,t,n){var r=u&&e.as||s,a="",d=[],p=e;if(null==e.theme){for(var m in p={},e)p[m]=e[m];p.theme=o.useContext(JM)}"string"==typeof e.className?a=RM(t.registered,d,e.className):null!=e.className&&(a=e.className+" ");var h=HM(f.concat(d),t.registered,p);a+=t.key+"-"+h.name,void 0!==i&&(a+=" "+i);var g=u&&void 0===l?Qj(r):c,y={};for(var b in e)u&&"as"===b||g(b)&&(y[b]=e[b]);return y.className=a,n&&(y.ref=n),o.createElement(o.Fragment,null,o.createElement(tF,{cache:t,serialized:h,isStringTag:"string"==typeof r}),o.createElement(r,y))}));return g.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=f,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(t,r){return e(t,bR({},n,r,{shouldForwardProp:eF(g,r,!0)})).apply(void 0,f)},g}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){nF[e]=nF(e)}));const rF=[];function oF(e){return rF[0]=e,HM(rF)}function iF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>({...e,[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return{keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const aF={borderRadius:4};function sF(e=8,t=hj({spacing:e})){if(e.mui)return e;const n=(...e)=>{"production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`));return(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}function lF(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function cF(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let s=KD({breakpoints:iF(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:sF(o),shape:{...aF,...i}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=lF,s=t.reduce(((e,t)=>KD(e,t)),s),s.unstable_sxConfig={...Yj,...a?.unstable_sxConfig},s.unstable_sx=function(e){return Uj({sx:e,theme:this})},s}const uF=e=>e,dF=(()=>{let e=uF;return{configure(t){e=t},generate:t=>e(t),reset(){e=uF}}})(),fF={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function pF(e,t,n="Mui"){const r=fF[t];return r?`${n}-${r}`:`${dF.generate(e)}-${t}`}function mF(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=pF(e,t,n)})),r}function hF(e,t=""){return e.displayName||e.name||t}function gF(e,t,n){const r=hF(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function yF(e){const{variants:t,...n}=e,r={variants:t,style:oF(n),isProcessed:!0};return r.style===n||t&&t.forEach((e=>{"function"!=typeof e.style&&(e.style=oF(e.style))})),r}const bF=cF();function vF(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function wF(e){return e?(t,n)=>n[e]:null}function xF(e,t){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap((t=>xF(e,t)));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=n.style;else{const{variants:e,...r}=n;t=r}return CF(e,n.variants,[t])}return n?.isProcessed?n.style:n}function CF(e,t,n=[]){let r;e:for(let o=0;o<t.length;o+=1){const i=t[o];if("function"==typeof i.props){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(r))continue}else for(const t in i.props)if(e[t]!==i.props[t]&&e.ownerState?.[t]!==i.props[t])continue e;"function"==typeof i.style?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i.style(r))):n.push(i.style)}return n}function kF(e,t){let n;return"production"!==process.env.NODE_ENV&&e&&(n=`${e}-${EF(t||"Root")}`),n}function EF(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function SF(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if("components"===o||"slots"===o)n[o]={...e[o],...n[o]};else if("componentsProps"===o||"slotProps"===o){const r=e[o],i=t[o];if(i)if(r){n[o]={...i};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;n[o][t]=SF(r[t],i[t])}}else n[o]=i;else n[o]=r||{}}else void 0===n[o]&&(n[o]=e[o])}return n}const IF="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function _F(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function AF(e){if(e.type)return e;if("#"===e.charAt(0))return AF(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),"production"!==process.env.NODE_ENV&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:FD(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:FD(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const NF=(e,t)=>{try{return(e=>{const t=AF(e);return t.values.slice(0,3).map(((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e)).join(" ")})(e)}catch(n){return t&&"production"!==process.env.NODE_ENV&&console.warn(t),e}};function OF(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function RF(e){e=AF(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),OF({type:s,values:l})}function MF(e){let t="hsl"===(e=AF(e)).type||"hsla"===e.type?AF(RF(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function TF(e,t){const n=MF(e),r=MF(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function PF(e,t){return e=AF(e),t=_F(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,OF(e)}function DF(e,t,n){try{return PF(e,t)}catch(t){return e}}function jF(e,t){if(e=AF(e),t=_F(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return OF(e)}function FF(e,t,n){try{return jF(e,t)}catch(t){return e}}function LF(e,t){if(e=AF(e),t=_F(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return OF(e)}function zF(e,t,n){try{return LF(e,t)}catch(t){return e}}function BF(e,t,n){try{return function(e,t=.15){return MF(e)>.5?jF(e,t):LF(e,t)}(e,t)}catch(t){return e}}var VF,GF,WF=(VF=ty.elementType,GF=function(e,t,n,r,o){const i=e[t],a=o||t;if(null==i||"undefined"==typeof window)return null;let s;return"function"!=typeof i||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(i)||(s="Did you accidentally provide a plain function component instead?"),void 0!==s?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null},"production"===process.env.NODE_ENV?()=>null:function(...e){return VF(...e)||GF(...e)});const HF=ty.oneOfType([ty.func,ty.object]);function XF(e){const t=o.useRef(e);return IF((()=>{t.current=e})),o.useRef(((...e)=>(0,t.current)(...e))).current}function $F(...e){return o.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const ZF={};function YF(e,t){const n=o.useRef(ZF);return n.current===ZF&&(n.current=e(t)),n}const UF=[];class JF{static create(){return new JF}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function KF(){const e=YF(JF.create).current;var t;return t=e.disposeEffect,o.useEffect(t,UF),e}function qF(e){try{return e.matches(":focus-visible")}catch(e){"production"===process.env.NODE_ENV||/jsdom/.test(window.navigator.userAgent)||console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join("\n"))}return!1}function QF(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function eL(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=PD(n?.className,i,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}({...o,...r}),s=QF(r),l=QF(o),c=t(a),u=PD(c?.className,n?.className,i,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},f={...c,...n,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const tL=o.createContext(void 0);function nL({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?SF(o.defaultProps,r):o.styleOverrides||o.variants?r:SF(o,r)}({props:e,name:t,theme:{components:o.useContext(tL)}})}"production"!==process.env.NODE_ENV&&(ty.node,ty.object);const rL={theme:void 0};function oL(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const iL=(e,t,n,r=[])=>{let o=e;t.forEach(((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])}))};function aL(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some((t=>e.includes(t)))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),iL(i,e,`var(${r})`,s),iL(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach((([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))}))}(e),{css:o,vars:i,varsWithDefaults:a}}const sL={black:"#000",white:"#fff"},lL={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},cL="#f3e5f5",uL="#ce93d8",dL="#ba68c8",fL="#ab47bc",pL="#9c27b0",mL="#7b1fa2",hL="#e57373",gL="#ef5350",yL="#f44336",bL="#d32f2f",vL="#c62828",wL="#ffb74d",xL="#ffa726",CL="#ff9800",kL="#f57c00",EL="#e65100",SL="#e3f2fd",IL="#90caf9",_L="#42a5f5",AL="#1976d2",NL="#1565c0",OL="#4fc3f7",RL="#29b6f6",ML="#03a9f4",TL="#0288d1",PL="#01579b",DL="#81c784",jL="#66bb6a",FL="#4caf50",LL="#388e3c",zL="#2e7d32",BL="#1b5e20";function VL(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:sL.white,default:sL.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const GL=VL();function WL(){return{text:{primary:sL.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:sL.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const HL=WL();function XL(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=LF(e.main,o):"dark"===t&&(e.dark=jF(e.main,i)))}function $L(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||function(e="light"){return"dark"===e?{main:IL,light:SL,dark:_L}:{main:AL,light:_L,dark:NL}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:uL,light:cL,dark:fL}:{main:pL,light:dL,dark:mL}}(t),s=e.error||function(e="light"){return"dark"===e?{main:yL,light:hL,dark:bL}:{main:bL,light:gL,dark:vL}}(t),l=e.info||function(e="light"){return"dark"===e?{main:RL,light:OL,dark:TL}:{main:TL,light:ML,dark:PL}}(t),c=e.success||function(e="light"){return"dark"===e?{main:jL,light:DL,dark:LL}:{main:zL,light:FL,dark:BL}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:xL,light:wL,dark:kL}:{main:"#ed6c02",light:CL,dark:EL}}(t);function d(e){const t=TF(e,HL.text.primary)>=n?HL.text.primary:GL.text.primary;if("production"!==process.env.NODE_ENV){const n=TF(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:FD(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:FD(12,t?` (${t})`:"",JSON.stringify(e.main)));return XL(e,"light",o,r),XL(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e};let p;"light"===t?p=VL():"dark"===t&&(p=WL()),"production"!==process.env.NODE_ENV&&(p||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return KD({common:{...sL},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:lL,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...p},o)}function ZL(e){const t={};return Object.entries(e).forEach((e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)})),t}const YL={textTransform:"uppercase"},UL='"Roboto", "Helvetica", "Arial", sans-serif';function JL(e,t){const{fontFamily:n=UL,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t;"production"!==process.env.NODE_ENV&&("number"!=typeof r&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof l&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=r/14,p=u||(e=>e/l*f+"rem"),m=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===UL?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...c};var a},h={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,YL),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,YL),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return KD({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...h},d,{clone:!1})}function KL(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const qL=["none",KL(0,2,1,-1,0,1,1,0,0,1,3,0),KL(0,3,1,-2,0,2,2,0,0,1,5,0),KL(0,3,3,-2,0,3,4,0,0,1,8,0),KL(0,2,4,-1,0,4,5,0,0,1,10,0),KL(0,3,5,-1,0,5,8,0,0,1,14,0),KL(0,3,5,-1,0,6,10,0,0,1,18,0),KL(0,4,5,-2,0,7,10,1,0,2,16,1),KL(0,5,5,-3,0,8,10,1,0,3,14,2),KL(0,5,6,-3,0,9,12,1,0,3,16,2),KL(0,6,6,-3,0,10,14,1,0,4,18,3),KL(0,6,7,-4,0,11,15,1,0,4,20,3),KL(0,7,8,-4,0,12,17,2,0,5,22,4),KL(0,7,8,-4,0,13,19,2,0,5,24,4),KL(0,7,9,-4,0,14,21,2,0,5,26,4),KL(0,8,9,-5,0,15,22,2,0,6,28,5),KL(0,8,10,-5,0,16,24,2,0,6,30,5),KL(0,8,11,-5,0,17,26,2,0,6,32,5),KL(0,9,11,-5,0,18,28,2,0,7,34,6),KL(0,9,12,-6,0,19,29,2,0,7,36,6),KL(0,10,13,-6,0,20,31,3,0,8,38,7),KL(0,10,13,-6,0,21,33,3,0,8,40,7),KL(0,10,14,-6,0,22,35,3,0,8,42,7),KL(0,11,14,-7,0,23,36,3,0,9,44,8),KL(0,11,15,-7,0,24,38,3,0,9,46,8)],QL={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ez={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tz(e){return`${Math.round(e)}ms`}function nz(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function rz(e){const t={...QL,...e.easing},n={...ez,...e.duration};return{getAutoHeightDuration:nz,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!Number.isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),n(o)||t(o)||console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),n(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof r&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:tz(o)} ${i} ${"string"==typeof a?a:tz(a)}`)).join(",")},...e,easing:t,duration:n}}const oz={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function iz(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let o=0;o<n.length;o++){const[i,a]=n[o];!UD(r=a)&&void 0!==r&&"string"!=typeof r&&"boolean"!=typeof r&&"number"!=typeof r&&!Array.isArray(r)||i.startsWith("unstable_")?delete t[i]:UD(a)&&(t[i]={...a},e(t[i]))}var r}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function az(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":FD(20));const u=$L(i),d=cF(e);let f=KD(d,{mixins:(p=d.breakpoints,m=r,{toolbar:{minHeight:56,[p.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[p.up("sm")]:{minHeight:64}},...m}),palette:u,shadows:qL.slice(),typography:JL(u,s),transitions:rz(a),zIndex:{...oz}});var p,m;if(f=KD(f,c),f=t.reduce(((e,t)=>KD(e,t)),f),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let r;for(r in t){const o=t[r];if(e.includes(r)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=pF("",r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[r]={}}}};Object.keys(f.components).forEach((e=>{const n=f.components[e].styleOverrides;n&&e.startsWith("Mui")&&t(n,e)}))}return f.unstable_sxConfig={...Yj,...c?.unstable_sxConfig},f.unstable_sx=function(e){return Uj({sx:e,theme:this})},f.toRuntimeSource=iz,f}const sz=[...Array(25)].map(((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function lz(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function cz(e){return"dark"===e?sz:[]}function uz(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var dz=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(a=e.cssVarPrefix,[...[...Array(25)].map(((e,t)=>`--${a?`${a}-`:""}overlays-${t}`)),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach((e=>{o[e]=n[e],delete n[e]})),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}var a;return r};function fz(e,t,n){!e[t]&&n&&(e[t]=n)}function pz(e){return"string"==typeof e&&e.startsWith("hsl")?RF(e):e}function mz(e,t){`${t}Channel`in e||(e[`${t}Channel`]=NF(pz(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().\nTo suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}const hz=e=>{try{return e()}catch(e){}};function gz(e,t,n,r){if(!t)return;t=!0===t?{}:t;const o="dark"===r?"dark":"light";if(!n)return void(e[r]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=$L(t);return{palette:i,opacity:{...lz(i.mode),...n},overlays:r||cz(i.mode),...o}}({...t,palette:{mode:o,...t?.palette}}));const{palette:i,...a}=az({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:i,opacity:{...lz(o),...t?.opacity},overlays:t?.overlays||cz(o)},a}function yz(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=uz,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&"light"!==u?"light":u),f=((e="mui")=>oL(e))(i),{[d]:p,light:m,dark:h,...g}=n,y={...g};let b=p;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(b=!0),!b)throw new Error("production"!==process.env.NODE_ENV?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:FD(21,d));const v=gz(y,b,c,d);m&&!y.light&&gz(y,m,void 0,"light"),h&&!y.dark&&gz(y,h,void 0,"dark");let w={defaultColorScheme:d,...v,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:y,font:{...ZL(v.typography),...v.font},spacing:(x=c.spacing,"number"==typeof x?`${x}px`:"string"==typeof x||"function"==typeof x||Array.isArray(x)?x:"8px")};var x;Object.keys(w.colorSchemes).forEach((e=>{const t=w.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return f(e,t[r][o])};if("light"===t.mode&&(fz(t.common,"background","#fff"),fz(t.common,"onBackground","#000")),"dark"===t.mode&&(fz(t.common,"background","#000"),fz(t.common,"onBackground","#fff")),function(e,t){t.forEach((t=>{e[t]||(e[t]={})}))}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){fz(t.Alert,"errorColor",FF(t.error.light,.6)),fz(t.Alert,"infoColor",FF(t.info.light,.6)),fz(t.Alert,"successColor",FF(t.success.light,.6)),fz(t.Alert,"warningColor",FF(t.warning.light,.6)),fz(t.Alert,"errorFilledBg",n("palette-error-main")),fz(t.Alert,"infoFilledBg",n("palette-info-main")),fz(t.Alert,"successFilledBg",n("palette-success-main")),fz(t.Alert,"warningFilledBg",n("palette-warning-main")),fz(t.Alert,"errorFilledColor",hz((()=>t.getContrastText(t.error.main)))),fz(t.Alert,"infoFilledColor",hz((()=>t.getContrastText(t.info.main)))),fz(t.Alert,"successFilledColor",hz((()=>t.getContrastText(t.success.main)))),fz(t.Alert,"warningFilledColor",hz((()=>t.getContrastText(t.warning.main)))),fz(t.Alert,"errorStandardBg",zF(t.error.light,.9)),fz(t.Alert,"infoStandardBg",zF(t.info.light,.9)),fz(t.Alert,"successStandardBg",zF(t.success.light,.9)),fz(t.Alert,"warningStandardBg",zF(t.warning.light,.9)),fz(t.Alert,"errorIconColor",n("palette-error-main")),fz(t.Alert,"infoIconColor",n("palette-info-main")),fz(t.Alert,"successIconColor",n("palette-success-main")),fz(t.Alert,"warningIconColor",n("palette-warning-main")),fz(t.AppBar,"defaultBg",n("palette-grey-100")),fz(t.Avatar,"defaultBg",n("palette-grey-400")),fz(t.Button,"inheritContainedBg",n("palette-grey-300")),fz(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),fz(t.Chip,"defaultBorder",n("palette-grey-400")),fz(t.Chip,"defaultAvatarColor",n("palette-grey-700")),fz(t.Chip,"defaultIconColor",n("palette-grey-700")),fz(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),fz(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),fz(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),fz(t.LinearProgress,"primaryBg",zF(t.primary.main,.62)),fz(t.LinearProgress,"secondaryBg",zF(t.secondary.main,.62)),fz(t.LinearProgress,"errorBg",zF(t.error.main,.62)),fz(t.LinearProgress,"infoBg",zF(t.info.main,.62)),fz(t.LinearProgress,"successBg",zF(t.success.main,.62)),fz(t.LinearProgress,"warningBg",zF(t.warning.main,.62)),fz(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),fz(t.Slider,"primaryTrack",zF(t.primary.main,.62)),fz(t.Slider,"secondaryTrack",zF(t.secondary.main,.62)),fz(t.Slider,"errorTrack",zF(t.error.main,.62)),fz(t.Slider,"infoTrack",zF(t.info.main,.62)),fz(t.Slider,"successTrack",zF(t.success.main,.62)),fz(t.Slider,"warningTrack",zF(t.warning.main,.62));const e=BF(t.background.default,.8);fz(t.SnackbarContent,"bg",e),fz(t.SnackbarContent,"color",hz((()=>t.getContrastText(e)))),fz(t.SpeedDialAction,"fabHoverBg",BF(t.background.paper,.15)),fz(t.StepConnector,"border",n("palette-grey-400")),fz(t.StepContent,"border",n("palette-grey-400")),fz(t.Switch,"defaultColor",n("palette-common-white")),fz(t.Switch,"defaultDisabledColor",n("palette-grey-100")),fz(t.Switch,"primaryDisabledColor",zF(t.primary.main,.62)),fz(t.Switch,"secondaryDisabledColor",zF(t.secondary.main,.62)),fz(t.Switch,"errorDisabledColor",zF(t.error.main,.62)),fz(t.Switch,"infoDisabledColor",zF(t.info.main,.62)),fz(t.Switch,"successDisabledColor",zF(t.success.main,.62)),fz(t.Switch,"warningDisabledColor",zF(t.warning.main,.62)),fz(t.TableCell,"border",zF(DF(t.divider,1),.88)),fz(t.Tooltip,"bg",DF(t.grey[700],.92))}if("dark"===t.mode){fz(t.Alert,"errorColor",zF(t.error.light,.6)),fz(t.Alert,"infoColor",zF(t.info.light,.6)),fz(t.Alert,"successColor",zF(t.success.light,.6)),fz(t.Alert,"warningColor",zF(t.warning.light,.6)),fz(t.Alert,"errorFilledBg",n("palette-error-dark")),fz(t.Alert,"infoFilledBg",n("palette-info-dark")),fz(t.Alert,"successFilledBg",n("palette-success-dark")),fz(t.Alert,"warningFilledBg",n("palette-warning-dark")),fz(t.Alert,"errorFilledColor",hz((()=>t.getContrastText(t.error.dark)))),fz(t.Alert,"infoFilledColor",hz((()=>t.getContrastText(t.info.dark)))),fz(t.Alert,"successFilledColor",hz((()=>t.getContrastText(t.success.dark)))),fz(t.Alert,"warningFilledColor",hz((()=>t.getContrastText(t.warning.dark)))),fz(t.Alert,"errorStandardBg",FF(t.error.light,.9)),fz(t.Alert,"infoStandardBg",FF(t.info.light,.9)),fz(t.Alert,"successStandardBg",FF(t.success.light,.9)),fz(t.Alert,"warningStandardBg",FF(t.warning.light,.9)),fz(t.Alert,"errorIconColor",n("palette-error-main")),fz(t.Alert,"infoIconColor",n("palette-info-main")),fz(t.Alert,"successIconColor",n("palette-success-main")),fz(t.Alert,"warningIconColor",n("palette-warning-main")),fz(t.AppBar,"defaultBg",n("palette-grey-900")),fz(t.AppBar,"darkBg",n("palette-background-paper")),fz(t.AppBar,"darkColor",n("palette-text-primary")),fz(t.Avatar,"defaultBg",n("palette-grey-600")),fz(t.Button,"inheritContainedBg",n("palette-grey-800")),fz(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),fz(t.Chip,"defaultBorder",n("palette-grey-700")),fz(t.Chip,"defaultAvatarColor",n("palette-grey-300")),fz(t.Chip,"defaultIconColor",n("palette-grey-300")),fz(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),fz(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),fz(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),fz(t.LinearProgress,"primaryBg",FF(t.primary.main,.5)),fz(t.LinearProgress,"secondaryBg",FF(t.secondary.main,.5)),fz(t.LinearProgress,"errorBg",FF(t.error.main,.5)),fz(t.LinearProgress,"infoBg",FF(t.info.main,.5)),fz(t.LinearProgress,"successBg",FF(t.success.main,.5)),fz(t.LinearProgress,"warningBg",FF(t.warning.main,.5)),fz(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),fz(t.Slider,"primaryTrack",FF(t.primary.main,.5)),fz(t.Slider,"secondaryTrack",FF(t.secondary.main,.5)),fz(t.Slider,"errorTrack",FF(t.error.main,.5)),fz(t.Slider,"infoTrack",FF(t.info.main,.5)),fz(t.Slider,"successTrack",FF(t.success.main,.5)),fz(t.Slider,"warningTrack",FF(t.warning.main,.5));const e=BF(t.background.default,.98);fz(t.SnackbarContent,"bg",e),fz(t.SnackbarContent,"color",hz((()=>t.getContrastText(e)))),fz(t.SpeedDialAction,"fabHoverBg",BF(t.background.paper,.15)),fz(t.StepConnector,"border",n("palette-grey-600")),fz(t.StepContent,"border",n("palette-grey-600")),fz(t.Switch,"defaultColor",n("palette-grey-300")),fz(t.Switch,"defaultDisabledColor",n("palette-grey-600")),fz(t.Switch,"primaryDisabledColor",FF(t.primary.main,.55)),fz(t.Switch,"secondaryDisabledColor",FF(t.secondary.main,.55)),fz(t.Switch,"errorDisabledColor",FF(t.error.main,.55)),fz(t.Switch,"infoDisabledColor",FF(t.info.main,.55)),fz(t.Switch,"successDisabledColor",FF(t.success.main,.55)),fz(t.Switch,"warningDisabledColor",FF(t.warning.main,.55)),fz(t.TableCell,"border",FF(DF(t.divider,1),.68)),fz(t.Tooltip,"bg",DF(t.grey[700],.92))}mz(t.background,"default"),mz(t.background,"paper"),mz(t.common,"background"),mz(t.common,"onBackground"),mz(t,"divider"),Object.keys(t).forEach((e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&fz(t[e],"mainChannel",NF(pz(n.main))),n.light&&fz(t[e],"lightChannel",NF(pz(n.light))),n.dark&&fz(t[e],"darkChannel",NF(pz(n.dark))),n.contrastText&&fz(t[e],"contrastTextChannel",NF(pz(n.contrastText))),"text"===e&&(mz(t[e],"primary"),mz(t[e],"secondary")),"action"===e&&(n.active&&mz(t[e],"active"),n.selected&&mz(t[e],"selected")))}))})),w=t.reduce(((e,t)=>KD(e,t)),w);const C={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:dz(w)},{vars:k,generateThemeVars:E,generateStyleSheets:S}=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=aL(l,t);let f=d;const p={},{[s]:m,...h}=i;if(Object.entries(h||{}).forEach((([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=aL(n,t);f=KD(f,i),p[e]={css:o,vars:r}})),m){const{css:e,vars:n,varsWithDefaults:r}=aL(m,t);f=KD(f,r),p[s]={css:e,vars:n}}function g(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:f,generateThemeVars:()=>{let e={...c};return Object.entries(p).forEach((([,{vars:t}])=>{e=KD(e,t)})),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function a(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}a(n(void 0,{...u}),u);const{[o]:s,...l}=p;if(s){const{css:e}=s,t=i[o]?.palette?.mode,l=!r&&t?{colorScheme:t,...e}:{...e};a(n(o,{...l}),l)}return Object.entries(l).forEach((([e,{css:t}])=>{const o=i[e]?.palette?.mode,s=!r&&o?{colorScheme:o,...t}:{...t};a(n(e,{...s}),s)})),t}}}(w,C);return w.vars=k,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach((([e,t])=>{w[e]=t})),w.generateThemeVars=E,w.generateStyleSheets=S,w.generateSpacing=function(){return sF(c.spacing,hj(this))},w.getColorSchemeSelector=function(e){return function(t){return"media"===e?("production"!==process.env.NODE_ENV&&"light"!==t&&"dark"!==t&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=a,w.unstable_sxConfig={...Yj,...c?.unstable_sxConfig},w.unstable_sx=function(e){return Uj({sx:e,theme:this})},w.toRuntimeSource=iz,w}function bz(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:$L({...!0===n?{}:n.palette,mode:t})})}const vz=function(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...a}=e,s=i||"light",l=o?.[s],c={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return az(e,...t);let r=n;"palette"in e||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const o=az({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=c,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==c.light&&c.light,palette:o.palette},bz(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},bz(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),yz({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}();const wz=function(e={}){const{themeId:t,defaultTheme:n=bF,rootShouldForwardProp:r=vF,slotShouldForwardProp:o=vF}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,(e=>e.filter((e=>e!==Uj))));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=wF(EF(a)),...u}=t,d=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,f=l||!1;let p=vF;"Root"===a||"root"===a?p=r:a?p=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(p=void 0);const m=
|
|
71
71
|
/**
|
|
72
72
|
* @mui/styled-engine v6.4.3
|
|
73
73
|
*
|
|
@@ -75,7 +75,7 @@ object-assign
|
|
|
75
75
|
* This source code is licensed under the MIT license found in the
|
|
76
76
|
* LICENSE file in the root directory of this source tree.
|
|
77
77
|
*/
|
|
78
|
-
function(e,t){const n=eF(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const r="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}:n}(e,{shouldForwardProp:p,label:xF(n,a),...u}),h=e=>{if("function"==typeof e&&e.__emotion_real!==e)return function(t){return vF(t,e)};if(ZD(e)){const t=hF(e);return t.variants?function(e){return vF(e,t)}:t.style}return e},g=(...t)=>{const r=[],o=t.map(h),s=[];if(r.push(i),n&&c&&s.push((function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=vF(e,r[t]);return c(e,o)})),n&&!d&&s.push((function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?wF(e,r):null})),f||s.push(Zj),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(s.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const l=[...r,...o,...s],u=m(...l);return e.muiName&&(u.muiName=e.muiName),"production"!==process.env.NODE_ENV&&(u.displayName=function(e,t,n){if(e)return`${e}${jD(t||"")}`;return`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return pF(e,"Component");if("object"==typeof e)switch(e.$$typeof){case $D.ForwardRef:return mF(e,e.render,"ForwardRef");case $D.Memo:return mF(e,e.type,"memo");default:return}}}(n)})`}(n,a,e)),u};return m.withConfig&&(g.withConfig=m.withConfig),g}}({themeId:"$$material",defaultTheme:yz,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),vz=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(tL.theme=r.theme,o=hF(e(tL)),t=o,n=r.theme),o}};function wz(e){return eL(e)}function xz(e){return dF("MuiTable",e)}"production"!==process.env.NODE_ENV&&(ty.node,ty.object.isRequired),fF("MuiTable",["root","stickyHeader"]);const Cz=bz("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(vz((({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]})))),kz="table",Ez=o.forwardRef((function(e,t){const n=wz({props:e,name:"MuiTable"}),{className:r,component:i=kz,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=n,u={...n,component:i,padding:a,size:s,stickyHeader:l},d=(e=>{const{classes:t,stickyHeader:n}=e;return TD({root:["root",n&&"stickyHeader"]},xz,t)})(u),f=o.useMemo((()=>({padding:a,size:s,stickyHeader:l})),[a,s,l]);return Bu.jsx(PD.Provider,{value:f,children:Bu.jsx(Cz,{as:i,role:i===kz?null:"table",ref:t,className:MD(d.root,r),ownerState:u,...c})})}));"production"!==process.env.NODE_ENV&&(Ez.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,padding:ty.oneOf(["checkbox","none","normal"]),size:ty.oneOfType([ty.oneOf(["medium","small"]),ty.string]),stickyHeader:ty.bool,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});const Sz=o.createContext();function Iz(e){return dF("MuiTableBody",e)}"production"!==process.env.NODE_ENV&&(Sz.displayName="Tablelvl2Context"),fF("MuiTableBody",["root"]);const _z=bz("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Az={variant:"body"},Nz="tbody",Oz=o.forwardRef((function(e,t){const n=wz({props:e,name:"MuiTableBody"}),{className:r,component:o=Nz,...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return TD({root:["root"]},Iz,t)})(a);return Bu.jsx(Sz.Provider,{value:Az,children:Bu.jsx(_z,{className:MD(s.root,r),as:o,ref:t,role:o===Nz?null:"rowgroup",ownerState:a,...i})})}));function Rz(e){return dF("MuiTableCell",e)}"production"!==process.env.NODE_ENV&&(Oz.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});const Mz=fF("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Tz=bz("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${jD(n.size)}`],"normal"!==n.padding&&t[`padding${jD(n.padding)}`],"inherit"!==n.align&&t[`align${jD(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(vz((({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?jF(MF(e.palette.divider,1),.88):PF(MF(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Mz.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]})))),Pz=o.forwardRef((function(e,t){const n=wz({props:e,name:"MuiTableCell"}),{align:r="inherit",className:i,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d,...f}=n,p=o.useContext(PD),m=o.useContext(Sz),h=m&&"head"===m.variant;let g;g=a||(h?"th":"td");let y=l;"td"===g?y=void 0:!y&&h&&(y="col");const b=d||m&&m.variant,v={...n,align:r,component:g,padding:s||(p&&p.padding?p.padding:"normal"),size:c||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b},w=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return TD({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${jD(r)}`,"normal"!==o&&`padding${jD(o)}`,`size${jD(i)}`]},Rz,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Bu.jsx(Tz,{as:g,ref:t,className:MD(w.root,i),"aria-sort":x,scope:y,ownerState:v,...f})}));function Dz(e){return dF("MuiTableContainer",e)}"production"!==process.env.NODE_ENV&&(Pz.propTypes={align:ty.oneOf(["center","inherit","justify","left","right"]),children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,padding:ty.oneOf(["checkbox","none","normal"]),scope:ty.string,size:ty.oneOfType([ty.oneOf(["medium","small"]),ty.string]),sortDirection:ty.oneOf(["asc","desc",!1]),sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object]),variant:ty.oneOfType([ty.oneOf(["body","footer","head"]),ty.string])}),fF("MuiTableContainer",["root"]);const jz=bz("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Fz=o.forwardRef((function(e,t){const n=wz({props:e,name:"MuiTableContainer"}),{className:r,component:o="div",...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return TD({root:["root"]},Dz,t)})(a);return Bu.jsx(jz,{ref:t,as:o,className:MD(s.root,r),ownerState:a,...i})}));function Lz(e){return dF("MuiTableHead",e)}"production"!==process.env.NODE_ENV&&(Fz.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])}),fF("MuiTableHead",["root"]);const zz=bz("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Bz={variant:"head"},Vz="thead",Gz=o.forwardRef((function(e,t){const n=wz({props:e,name:"MuiTableHead"}),{className:r,component:o=Vz,...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return TD({root:["root"]},Lz,t)})(a);return Bu.jsx(Sz.Provider,{value:Bz,children:Bu.jsx(zz,{as:o,className:MD(s.root,r),ref:t,role:o===Vz?null:"rowgroup",ownerState:a,...i})})}));function Wz(e){return dF("MuiTableRow",e)}"production"!==process.env.NODE_ENV&&(Gz.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});const Hz=fF("MuiTableRow",["root","selected","hover","head","footer"]),Xz=bz("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(vz((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Hz.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Hz.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:MF(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:MF(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})))),$z="tr",Zz=o.forwardRef((function(e,t){const n=wz({props:e,name:"MuiTableRow"}),{className:r,component:i=$z,hover:a=!1,selected:s=!1,...l}=n,c=o.useContext(Sz),u={...n,component:i,hover:a,selected:s,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant},d=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return TD({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},Wz,t)})(u);return Bu.jsx(Xz,{as:i,ref:t,className:MD(d.root,r),role:i===$z?null:"row",ownerState:u,...l})}));"production"!==process.env.NODE_ENV&&(Zz.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,hover:ty.bool,selected:ty.bool,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});class Yz{static create(){return new Yz}static use(){const e=$F(Yz.create).current,[t,n]=o.useState(!1);return e.shouldMount=t,e.setShouldMount=n,o.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then((()=>this.ref.current?.start(...e)))}stop(...e){this.mount().then((()=>this.ref.current?.stop(...e)))}pulsate(...e){this.mount().then((()=>this.ref.current?.pulsate(...e)))}}function Uz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bR(e,t)}var Jz=e.createContext(null);function Kz(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&e.isValidElement(t)?n(t):t}(t)})),r}function qz(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Qz(t,n,r){var o=Kz(t.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(n,o);return Object.keys(i).forEach((function(a){var s=i[a];if(e.isValidElement(s)){var l=a in n,c=a in o,u=n[a],d=e.isValidElement(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&e.isValidElement(u)&&(i[a]=e.cloneElement(s,{onExited:r.bind(null,s),in:u.props.in,exit:qz(s,"exit",t),enter:qz(s,"enter",t)})):i[a]=e.cloneElement(s,{in:!1}):i[a]=e.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:qz(s,"exit",t),enter:qz(s,"enter",t)})}})),i}var eB=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},tB=function(t){function n(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(xR(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Uz(n,t);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,o=a,Kz(r.children,(function(t){return e.cloneElement(t,{onExited:o.bind(null,t),in:!0,appear:qz(t,"appear",r),enter:qz(t,"enter",r),exit:qz(t,"exit",r)})}))):Qz(t,i,a),firstRender:!1}},r.handleExited=function(e,t){var n=Kz(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=gR({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var t=this.props,n=t.component,r=t.childFactory,o=pR(t,["component","childFactory"]),i=this.state.contextValue,a=eB(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?e.createElement(Jz.Provider,{value:i},a):e.createElement(Jz.Provider,{value:i},e.createElement(n,o,a))},n}(e.Component);function nB(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,f]=o.useState(!1),p=MD(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:s,height:s,top:-s/2+a,left:-s/2+i},h=MD(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||f(!0),o.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),Bu.jsx("span",{className:p,style:m,children:Bu.jsx("span",{className:h})})}tB.propTypes="production"!==process.env.NODE_ENV?{component:ty.any,children:ty.node,appear:ty.bool,enter:ty.bool,exit:ty.bool,childFactory:ty.func}:{},tB.defaultProps={component:"div",childFactory:function(e){return e}},"production"!==process.env.NODE_ENV&&(nB.propTypes={classes:ty.object.isRequired,className:ty.string,in:ty.bool,onExited:ty.func,pulsate:ty.bool,rippleSize:ty.number,rippleX:ty.number,rippleY:ty.number,timeout:ty.number.isRequired});const rB=fF("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),oB=nT`
|
|
78
|
+
function(e,t){const n=nF(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const r="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}:n}(e,{shouldForwardProp:p,label:kF(n,a),...u}),h=e=>{if("function"==typeof e&&e.__emotion_real!==e)return function(t){return xF(t,e)};if(UD(e)){const t=yF(e);return t.variants?function(e){return xF(e,t)}:t.style}return e},g=(...t)=>{const r=[],o=t.map(h),s=[];if(r.push(i),n&&c&&s.push((function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=xF(e,r[t]);return c(e,o)})),n&&!d&&s.push((function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?CF(e,r):null})),f||s.push(Uj),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(s.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const l=[...r,...o,...s],u=m(...l);return e.muiName&&(u.muiName=e.muiName),"production"!==process.env.NODE_ENV&&(u.displayName=function(e,t,n){if(e)return`${e}${LD(t||"")}`;return`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return hF(e,"Component");if("object"==typeof e)switch(e.$$typeof){case YD.ForwardRef:return gF(e,e.render,"ForwardRef");case YD.Memo:return gF(e,e.type,"memo");default:return}}}(n)})`}(n,a,e)),u};return m.withConfig&&(g.withConfig=m.withConfig),g}}({themeId:"$$material",defaultTheme:vz,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),xz=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(rL.theme=r.theme,o=yF(e(rL)),t=o,n=r.theme),o}};function Cz(e){return nL(e)}function kz(e){return pF("MuiTable",e)}"production"!==process.env.NODE_ENV&&(ty.node,ty.object.isRequired),mF("MuiTable",["root","stickyHeader"]);const Ez=wz("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(xz((({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]})))),Sz="table",Iz=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTable"}),{className:r,component:i=Sz,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=n,u={...n,component:i,padding:a,size:s,stickyHeader:l},d=(e=>{const{classes:t,stickyHeader:n}=e;return DD({root:["root",n&&"stickyHeader"]},kz,t)})(u),f=o.useMemo((()=>({padding:a,size:s,stickyHeader:l})),[a,s,l]);return Bu.jsx(jD.Provider,{value:f,children:Bu.jsx(Ez,{as:i,role:i===Sz?null:"table",ref:t,className:PD(d.root,r),ownerState:u,...c})})}));"production"!==process.env.NODE_ENV&&(Iz.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,padding:ty.oneOf(["checkbox","none","normal"]),size:ty.oneOfType([ty.oneOf(["medium","small"]),ty.string]),stickyHeader:ty.bool,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});const _z=o.createContext();function Az(e){return pF("MuiTableBody",e)}"production"!==process.env.NODE_ENV&&(_z.displayName="Tablelvl2Context"),mF("MuiTableBody",["root"]);const Nz=wz("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Oz={variant:"body"},Rz="tbody",Mz=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTableBody"}),{className:r,component:o=Rz,...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return DD({root:["root"]},Az,t)})(a);return Bu.jsx(_z.Provider,{value:Oz,children:Bu.jsx(Nz,{className:PD(s.root,r),as:o,ref:t,role:o===Rz?null:"rowgroup",ownerState:a,...i})})}));function Tz(e){return pF("MuiTableCell",e)}"production"!==process.env.NODE_ENV&&(Mz.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});const Pz=mF("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Dz=wz("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${LD(n.size)}`],"normal"!==n.padding&&t[`padding${LD(n.padding)}`],"inherit"!==n.align&&t[`align${LD(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(xz((({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?LF(PF(e.palette.divider,1),.88):jF(PF(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Pz.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]})))),jz=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTableCell"}),{align:r="inherit",className:i,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d,...f}=n,p=o.useContext(jD),m=o.useContext(_z),h=m&&"head"===m.variant;let g;g=a||(h?"th":"td");let y=l;"td"===g?y=void 0:!y&&h&&(y="col");const b=d||m&&m.variant,v={...n,align:r,component:g,padding:s||(p&&p.padding?p.padding:"normal"),size:c||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b},w=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return DD({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${LD(r)}`,"normal"!==o&&`padding${LD(o)}`,`size${LD(i)}`]},Tz,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Bu.jsx(Dz,{as:g,ref:t,className:PD(w.root,i),"aria-sort":x,scope:y,ownerState:v,...f})}));function Fz(e){return pF("MuiTableContainer",e)}"production"!==process.env.NODE_ENV&&(jz.propTypes={align:ty.oneOf(["center","inherit","justify","left","right"]),children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,padding:ty.oneOf(["checkbox","none","normal"]),scope:ty.string,size:ty.oneOfType([ty.oneOf(["medium","small"]),ty.string]),sortDirection:ty.oneOf(["asc","desc",!1]),sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object]),variant:ty.oneOfType([ty.oneOf(["body","footer","head"]),ty.string])}),mF("MuiTableContainer",["root"]);const Lz=wz("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),zz=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTableContainer"}),{className:r,component:o="div",...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return DD({root:["root"]},Fz,t)})(a);return Bu.jsx(Lz,{ref:t,as:o,className:PD(s.root,r),ownerState:a,...i})}));function Bz(e){return pF("MuiTableHead",e)}"production"!==process.env.NODE_ENV&&(zz.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])}),mF("MuiTableHead",["root"]);const Vz=wz("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Gz={variant:"head"},Wz="thead",Hz=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTableHead"}),{className:r,component:o=Wz,...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return DD({root:["root"]},Bz,t)})(a);return Bu.jsx(_z.Provider,{value:Gz,children:Bu.jsx(Vz,{as:o,className:PD(s.root,r),ref:t,role:o===Wz?null:"rowgroup",ownerState:a,...i})})}));function Xz(e){return pF("MuiTableRow",e)}"production"!==process.env.NODE_ENV&&(Hz.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});const $z=mF("MuiTableRow",["root","selected","hover","head","footer"]),Zz=wz("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(xz((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${$z.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${$z.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:PF(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:PF(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})))),Yz="tr",Uz=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTableRow"}),{className:r,component:i=Yz,hover:a=!1,selected:s=!1,...l}=n,c=o.useContext(_z),u={...n,component:i,hover:a,selected:s,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant},d=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return DD({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},Xz,t)})(u);return Bu.jsx(Zz,{as:i,ref:t,className:PD(d.root,r),role:i===Yz?null:"row",ownerState:u,...l})}));"production"!==process.env.NODE_ENV&&(Uz.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,hover:ty.bool,selected:ty.bool,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});class Jz{static create(){return new Jz}static use(){const e=YF(Jz.create).current,[t,n]=o.useState(!1);return e.shouldMount=t,e.setShouldMount=n,o.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then((()=>this.ref.current?.start(...e)))}stop(...e){this.mount().then((()=>this.ref.current?.stop(...e)))}pulsate(...e){this.mount().then((()=>this.ref.current?.pulsate(...e)))}}function Kz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wR(e,t)}var qz=e.createContext(null);function Qz(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&e.isValidElement(t)?n(t):t}(t)})),r}function eB(e,t,n){return null!=n[t]?n[t]:e.props[t]}function tB(t,n,r){var o=Qz(t.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(n,o);return Object.keys(i).forEach((function(a){var s=i[a];if(e.isValidElement(s)){var l=a in n,c=a in o,u=n[a],d=e.isValidElement(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&e.isValidElement(u)&&(i[a]=e.cloneElement(s,{onExited:r.bind(null,s),in:u.props.in,exit:eB(s,"exit",t),enter:eB(s,"enter",t)})):i[a]=e.cloneElement(s,{in:!1}):i[a]=e.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:eB(s,"exit",t),enter:eB(s,"enter",t)})}})),i}var nB=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},rB=function(t){function n(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(kR(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Kz(n,t);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,o=a,Qz(r.children,(function(t){return e.cloneElement(t,{onExited:o.bind(null,t),in:!0,appear:eB(t,"appear",r),enter:eB(t,"enter",r),exit:eB(t,"exit",r)})}))):tB(t,i,a),firstRender:!1}},r.handleExited=function(e,t){var n=Qz(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=bR({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var t=this.props,n=t.component,r=t.childFactory,o=hR(t,["component","childFactory"]),i=this.state.contextValue,a=nB(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?e.createElement(qz.Provider,{value:i},a):e.createElement(qz.Provider,{value:i},e.createElement(n,o,a))},n}(e.Component);function oB(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,f]=o.useState(!1),p=PD(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:s,height:s,top:-s/2+a,left:-s/2+i},h=PD(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||f(!0),o.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),Bu.jsx("span",{className:p,style:m,children:Bu.jsx("span",{className:h})})}rB.propTypes="production"!==process.env.NODE_ENV?{component:ty.any,children:ty.node,appear:ty.bool,enter:ty.bool,exit:ty.bool,childFactory:ty.func}:{},rB.defaultProps={component:"div",childFactory:function(e){return e}},"production"!==process.env.NODE_ENV&&(oB.propTypes={classes:ty.object.isRequired,className:ty.string,in:ty.bool,onExited:ty.func,pulsate:ty.bool,rippleSize:ty.number,rippleX:ty.number,rippleY:ty.number,timeout:ty.number.isRequired});const iB=mF("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),aB=oT`
|
|
79
79
|
0% {
|
|
80
80
|
transform: scale(0);
|
|
81
81
|
opacity: 0.1;
|
|
@@ -85,7 +85,7 @@ function(e,t){const n=eF(e,t);return"production"!==process.env.NODE_ENV?(...t)=>
|
|
|
85
85
|
transform: scale(1);
|
|
86
86
|
opacity: 0.3;
|
|
87
87
|
}
|
|
88
|
-
`,
|
|
88
|
+
`,sB=oT`
|
|
89
89
|
0% {
|
|
90
90
|
opacity: 1;
|
|
91
91
|
}
|
|
@@ -93,7 +93,7 @@ function(e,t){const n=eF(e,t);return"production"!==process.env.NODE_ENV?(...t)=>
|
|
|
93
93
|
100% {
|
|
94
94
|
opacity: 0;
|
|
95
95
|
}
|
|
96
|
-
`,
|
|
96
|
+
`,lB=oT`
|
|
97
97
|
0% {
|
|
98
98
|
transform: scale(1);
|
|
99
99
|
}
|
|
@@ -105,23 +105,23 @@ function(e,t){const n=eF(e,t);return"production"!==process.env.NODE_ENV?(...t)=>
|
|
|
105
105
|
100% {
|
|
106
106
|
transform: scale(1);
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`,cB=wz("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),uB=wz(oB,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
109
109
|
opacity: 0;
|
|
110
110
|
position: absolute;
|
|
111
111
|
|
|
112
|
-
&.${
|
|
112
|
+
&.${iB.rippleVisible} {
|
|
113
113
|
opacity: 0.3;
|
|
114
114
|
transform: scale(1);
|
|
115
|
-
animation-name: ${
|
|
115
|
+
animation-name: ${aB};
|
|
116
116
|
animation-duration: ${550}ms;
|
|
117
117
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
&.${
|
|
120
|
+
&.${iB.ripplePulsate} {
|
|
121
121
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
& .${
|
|
124
|
+
& .${iB.child} {
|
|
125
125
|
opacity: 1;
|
|
126
126
|
display: block;
|
|
127
127
|
width: 100%;
|
|
@@ -130,28 +130,28 @@ function(e,t){const n=eF(e,t);return"production"!==process.env.NODE_ENV?(...t)=>
|
|
|
130
130
|
background-color: currentColor;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
& .${
|
|
133
|
+
& .${iB.childLeaving} {
|
|
134
134
|
opacity: 0;
|
|
135
|
-
animation-name: ${
|
|
135
|
+
animation-name: ${sB};
|
|
136
136
|
animation-duration: ${550}ms;
|
|
137
137
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
& .${
|
|
140
|
+
& .${iB.childPulsate} {
|
|
141
141
|
position: absolute;
|
|
142
142
|
/* @noflip */
|
|
143
143
|
left: 0px;
|
|
144
144
|
top: 0;
|
|
145
|
-
animation-name: ${
|
|
145
|
+
animation-name: ${lB};
|
|
146
146
|
animation-duration: 2500ms;
|
|
147
147
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
148
148
|
animation-iteration-count: infinite;
|
|
149
149
|
animation-delay: 200ms;
|
|
150
150
|
}
|
|
151
|
-
`,cB=o.forwardRef((function(e,t){const n=wz({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a,...s}=n,[l,c]=o.useState([]),u=o.useRef(0),d=o.useRef(null);o.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const f=o.useRef(!1),p=UF(),m=o.useRef(null),h=o.useRef(null),g=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;c((e=>[...e,Bu.jsx(lB,{classes:{ripple:MD(i.ripple,rB.ripple),rippleVisible:MD(i.rippleVisible,rB.rippleVisible),ripplePulsate:MD(i.ripplePulsate,rB.ripplePulsate),child:MD(i.child,rB.child),childLeaving:MD(i.childLeaving,rB.childLeaving),childPulsate:MD(i.childPulsate,rB.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)])),u.current+=1,d.current=a}),[i]),y=o.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&f.current)return void(f.current=!1);"touchstart"===e?.type&&(f.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===m.current&&(m.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},p.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,g,p]),b=o.useCallback((()=>{y({},{pulsate:!0})}),[y]),v=o.useCallback(((e,t)=>{if(p.clear(),"touchend"===e?.type&&m.current)return m.current(),m.current=null,void p.start(0,(()=>{v(e,t)}));m.current=null,c((e=>e.length>0?e.slice(1):e)),d.current=t}),[p]);return o.useImperativeHandle(t,(()=>({pulsate:b,start:y,stop:v})),[b,y,v]),Bu.jsx(sB,{className:MD(rB.root,i.root,a),ref:h,...s,children:Bu.jsx(tB,{component:null,exit:!0,children:l})})}));function uB(e){return dF("MuiButtonBase",e)}"production"!==process.env.NODE_ENV&&(cB.propTypes={center:ty.bool,classes:ty.object,className:ty.string});const dB=fF("MuiButtonBase",["root","disabled","focusVisible"]),fB=bz("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${dB.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pB=o.forwardRef((function(e,t){const n=wz({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:m="a",onBlur:h,onClick:g,onContextMenu:y,onDragLeave:b,onFocus:v,onFocusVisible:w,onKeyDown:x,onKeyUp:C,onMouseDown:k,onMouseLeave:E,onMouseUp:S,onTouchEnd:I,onTouchMove:_,onTouchStart:A,tabIndex:N=0,TouchRippleProps:O,touchRippleRef:R,type:M,...T}=n,P=o.useRef(null),D=Yz.use(),j=HF(D.ref,R),[F,L]=o.useState(!1);c&&F&&L(!1),o.useImperativeHandle(r,(()=>({focusVisible:()=>{L(!0),P.current.focus()}})),[]);const z=D.shouldMount&&!u&&!c;o.useEffect((()=>{F&&f&&!u&&D.pulsate()}),[u,f,F,D]);const B=mB(D,"start",k,d),V=mB(D,"stop",y,d),G=mB(D,"stop",b,d),W=mB(D,"stop",S,d),H=mB(D,"stop",(e=>{F&&e.preventDefault(),E&&E(e)}),d),X=mB(D,"start",A,d),$=mB(D,"stop",I,d),Z=mB(D,"stop",_,d),Y=mB(D,"stop",(e=>{JF(e.target)||L(!1),h&&h(e)}),!1),U=WF((e=>{P.current||(P.current=e.currentTarget),JF(e.target)&&(L(!0),w&&w(e)),v&&v(e)})),J=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},K=WF((e=>{f&&!e.repeat&&F&&" "===e.key&&D.stop(e,(()=>{D.start(e)})),e.target===e.currentTarget&&J()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&J()&&"Enter"===e.key&&!c&&(e.preventDefault(),g&&g(e))})),q=WF((e=>{f&&" "===e.key&&F&&!e.defaultPrevented&&D.stop(e,(()=>{D.pulsate(e)})),C&&C(e),g&&e.target===e.currentTarget&&J()&&" "===e.key&&!e.defaultPrevented&&g(e)}));let Q=l;"button"===Q&&(T.href||T.to)&&(Q=m);const ee={};"button"===Q?(ee.type=void 0===M?"button":M,ee.disabled=c):(T.href||T.to||(ee.role="button"),c&&(ee["aria-disabled"]=c));const te=HF(t,P),ne={...n,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:N,focusVisible:F},re=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=TD({root:["root",t&&"disabled",n&&"focusVisible"]},uB,o);return n&&r&&(i.root+=` ${r}`),i})(ne);return Bu.jsxs(fB,{as:Q,className:MD(re.root,s),ownerState:ne,onBlur:Y,onClick:g,onContextMenu:V,onFocus:U,onKeyDown:K,onKeyUp:q,onMouseDown:B,onMouseLeave:H,onMouseUp:W,onDragLeave:G,onTouchEnd:$,onTouchMove:Z,onTouchStart:X,ref:te,tabIndex:c?-1:N,type:M,...ee,...T,children:[a,z?Bu.jsx(cB,{ref:j,center:i,...O}):null]})}));function mB(e,t,n,r=!1){return WF((o=>(n&&n(o),r||e[t](o),!0)))}function hB(e){return dF("MuiSvgIcon",e)}"production"!==process.env.NODE_ENV&&(pB.propTypes={action:GF,centerRipple:ty.bool,children:ty.node,classes:ty.object,className:ty.string,component:VF,disabled:ty.bool,disableRipple:ty.bool,disableTouchRipple:ty.bool,focusRipple:ty.bool,focusVisibleClassName:ty.string,href:ty.any,LinkComponent:ty.elementType,onBlur:ty.func,onClick:ty.func,onContextMenu:ty.func,onDragLeave:ty.func,onFocus:ty.func,onFocusVisible:ty.func,onKeyDown:ty.func,onKeyUp:ty.func,onMouseDown:ty.func,onMouseLeave:ty.func,onMouseUp:ty.func,onTouchEnd:ty.func,onTouchMove:ty.func,onTouchStart:ty.func,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object]),tabIndex:ty.number,TouchRippleProps:ty.object,touchRippleRef:ty.oneOfType([ty.func,ty.shape({current:ty.shape({pulsate:ty.func.isRequired,start:ty.func.isRequired,stop:ty.func.isRequired})})]),type:ty.oneOfType([ty.oneOf(["button","reset","submit"]),ty.string])}),fF("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const gB=bz("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${jD(n.color)}`],t[`fontSize${jD(n.fontSize)}`]]}})(vz((({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter((([,e])=>e&&e.main)).map((([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}}))),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]})))),yB=o.forwardRef((function(e,t){const n=wz({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...p}=n,m=o.isValidElement(r)&&"svg"===r.type,h={...n,color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:m},g={};u||(g.viewBox=f);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return TD({root:["root","inherit"!==t&&`color${jD(t)}`,`fontSize${jD(n)}`]},hB,r)})(h);return Bu.jsxs(gB,{as:s,className:MD(y.root,i),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t,...g,...p,...m&&r.props,ownerState:h,children:[m?r.props.children:r,d?Bu.jsx("title",{children:d}):null]})}));"production"!==process.env.NODE_ENV&&(yB.propTypes={children:ty.node,classes:ty.object,className:ty.string,color:ty.oneOfType([ty.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ty.string]),component:ty.elementType,fontSize:ty.oneOfType([ty.oneOf(["inherit","large","medium","small"]),ty.string]),htmlColor:ty.string,inheritViewBox:ty.bool,shapeRendering:ty.string,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object]),titleAccess:ty.string,viewBox:ty.string}),yB.muiName="SvgIcon";var bB=function(e,t){function n(n,r){return Bu.jsx(yB,{"data-testid":`${t}Icon`,ref:r,...n,children:e})}return"production"!==process.env.NODE_ENV&&(n.displayName=`${t}Icon`),n.muiName=yB.muiName,o.memo(o.forwardRef(n))}(Bu.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function vB(e){return dF("MuiTableSortLabel",e)}const wB=fF("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]);function xB(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,p=u[e]||r,m=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],o),{props:{component:h,...g},internalRef:y}=qF({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:m}),b=HF(y,m?.ref,t.ref),v="root"===e?h||c:h,w=function(e,t,n){return void 0===e||function(e){return"string"==typeof e}(e)?t:{...t,ownerState:{...t.ownerState,...n}}}(p,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...g,...v&&!s&&{as:v},...v&&s&&{component:v},ref:b},o);return[p,w]}const CB=bz(pB,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(vz((({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${wB.icon}`]:{opacity:.5}},[`&.${wB.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${wB.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})))),kB=bz("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${jD(n.direction)}`]]}})(vz((({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]})))),EB=o.forwardRef((function(e,t){const n=wz({props:e,name:"MuiTableSortLabel"}),{active:r=!1,children:o,className:i,direction:a="asc",hideSortIcon:s=!1,IconComponent:l=bB,slots:c={},slotProps:u={},...d}=n,f={...n,active:r,direction:a,hideSortIcon:s,IconComponent:l},p=(e=>{const{classes:t,direction:n,active:r}=e;return TD({root:["root",r&&"active",`direction${jD(n)}`],icon:["icon",`iconDirection${jD(n)}`]},vB,t)})(f),m={slots:c,slotProps:u},[h,g]=xB("root",{elementType:CB,externalForwardedProps:m,ownerState:f,className:MD(p.root,i),ref:t}),[y,b]=xB("icon",{elementType:kB,externalForwardedProps:m,ownerState:f,className:p.icon});return Bu.jsxs(h,{disableRipple:!0,component:"span",...g,...d,children:[o,s&&!r?null:Bu.jsx(y,{as:l,...b})]})}));"production"!==process.env.NODE_ENV&&(EB.propTypes={active:ty.bool,children:ty.node,classes:ty.object,className:ty.string,direction:ty.oneOf(["asc","desc"]),hideSortIcon:ty.bool,IconComponent:ty.elementType,slotProps:ty.shape({icon:ty.oneOfType([ty.func,ty.object]),root:ty.oneOfType([ty.func,ty.object])}),slots:ty.shape({icon:ty.elementType,root:ty.elementType}),sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});const SB=({tabledata:t})=>{const n=e.useMemo((()=>(e=>{const t=[];if(void 0===e)return{header:[],rows:[]};void 0===e.data&&(e.data=[]),void 0===e.columns&&(0===e.data.length?e.columns=[]:e.columns=e.data[0].map(((e,t)=>`col${t}`))),void 0===e.index&&(e.index=e.data.map(((e,t)=>`row${t}`)));for(let n=0;n<e.index.length;n++){const r=[e.index[n]];for(let t=0;t<e.columns.length;t++)r.push(e.data[n][t]);t.push(r)}return{header:["index",...e.columns],rows:t}})(t)),[t]),[r,i]=e.useState("asc"),[a,s]=e.useState("index");let l=n.header.indexOf(a);-1===l&&(l=0);const c=((e,t)=>{const n=e.map(((e,t)=>[e,t]));return n.sort(((e,n)=>t(e[0],n[0]))),n.map((e=>e[0]))})(n.rows,(e=>"desc"===e?(e,t)=>t[l]<e[l]?-1:1:(e,t)=>e[l]<t[l]?-1:1)(r));return o.createElement(Fz,{className:"tablecontainer"},o.createElement(Ez,{size:"small"},o.createElement(Gz,{className:"tableHead"},o.createElement(Zz,{className:"tableheadercolor"},n.header.map((e=>o.createElement(Pz,{key:e,sortDirection:a===e&&r,className:"tableheadercolor"},o.createElement(EB,{active:a===e,direction:a===e?r:"asc",onClick:()=>(e=>{i(a===e&&"asc"===r?"desc":"asc"),s(e)})(e),className:"tableheadercolor",sx:{"& .MuiTableSortLabel-icon":{color:"inherit !important"}}},e)))))),o.createElement(Oz,null,c.map(((e,n)=>o.createElement(Zz,{key:t.index[n]},e.map(((e,t)=>o.createElement(Pz,{key:t,className:0==t?"indexcol":"datacol"},e)))))))))};var IB,_B={};
|
|
151
|
+
`,dB=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a,...s}=n,[l,c]=o.useState([]),u=o.useRef(0),d=o.useRef(null);o.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const f=o.useRef(!1),p=KF(),m=o.useRef(null),h=o.useRef(null),g=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;c((e=>[...e,Bu.jsx(uB,{classes:{ripple:PD(i.ripple,iB.ripple),rippleVisible:PD(i.rippleVisible,iB.rippleVisible),ripplePulsate:PD(i.ripplePulsate,iB.ripplePulsate),child:PD(i.child,iB.child),childLeaving:PD(i.childLeaving,iB.childLeaving),childPulsate:PD(i.childPulsate,iB.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)])),u.current+=1,d.current=a}),[i]),y=o.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&f.current)return void(f.current=!1);"touchstart"===e?.type&&(f.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===m.current&&(m.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},p.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,g,p]),b=o.useCallback((()=>{y({},{pulsate:!0})}),[y]),v=o.useCallback(((e,t)=>{if(p.clear(),"touchend"===e?.type&&m.current)return m.current(),m.current=null,void p.start(0,(()=>{v(e,t)}));m.current=null,c((e=>e.length>0?e.slice(1):e)),d.current=t}),[p]);return o.useImperativeHandle(t,(()=>({pulsate:b,start:y,stop:v})),[b,y,v]),Bu.jsx(cB,{className:PD(iB.root,i.root,a),ref:h,...s,children:Bu.jsx(rB,{component:null,exit:!0,children:l})})}));function fB(e){return pF("MuiButtonBase",e)}"production"!==process.env.NODE_ENV&&(dB.propTypes={center:ty.bool,classes:ty.object,className:ty.string});const pB=mF("MuiButtonBase",["root","disabled","focusVisible"]),mB=wz("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${pB.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hB=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:m="a",onBlur:h,onClick:g,onContextMenu:y,onDragLeave:b,onFocus:v,onFocusVisible:w,onKeyDown:x,onKeyUp:C,onMouseDown:k,onMouseLeave:E,onMouseUp:S,onTouchEnd:I,onTouchMove:_,onTouchStart:A,tabIndex:N=0,TouchRippleProps:O,touchRippleRef:R,type:M,...T}=n,P=o.useRef(null),D=Jz.use(),j=$F(D.ref,R),[F,L]=o.useState(!1);c&&F&&L(!1),o.useImperativeHandle(r,(()=>({focusVisible:()=>{L(!0),P.current.focus()}})),[]);const z=D.shouldMount&&!u&&!c;o.useEffect((()=>{F&&f&&!u&&D.pulsate()}),[u,f,F,D]);const B=gB(D,"start",k,d),V=gB(D,"stop",y,d),G=gB(D,"stop",b,d),W=gB(D,"stop",S,d),H=gB(D,"stop",(e=>{F&&e.preventDefault(),E&&E(e)}),d),X=gB(D,"start",A,d),$=gB(D,"stop",I,d),Z=gB(D,"stop",_,d),Y=gB(D,"stop",(e=>{qF(e.target)||L(!1),h&&h(e)}),!1),U=XF((e=>{P.current||(P.current=e.currentTarget),qF(e.target)&&(L(!0),w&&w(e)),v&&v(e)})),J=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},K=XF((e=>{f&&!e.repeat&&F&&" "===e.key&&D.stop(e,(()=>{D.start(e)})),e.target===e.currentTarget&&J()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&J()&&"Enter"===e.key&&!c&&(e.preventDefault(),g&&g(e))})),q=XF((e=>{f&&" "===e.key&&F&&!e.defaultPrevented&&D.stop(e,(()=>{D.pulsate(e)})),C&&C(e),g&&e.target===e.currentTarget&&J()&&" "===e.key&&!e.defaultPrevented&&g(e)}));let Q=l;"button"===Q&&(T.href||T.to)&&(Q=m);const ee={};"button"===Q?(ee.type=void 0===M?"button":M,ee.disabled=c):(T.href||T.to||(ee.role="button"),c&&(ee["aria-disabled"]=c));const te=$F(t,P),ne={...n,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:N,focusVisible:F},re=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=DD({root:["root",t&&"disabled",n&&"focusVisible"]},fB,o);return n&&r&&(i.root+=` ${r}`),i})(ne);return Bu.jsxs(mB,{as:Q,className:PD(re.root,s),ownerState:ne,onBlur:Y,onClick:g,onContextMenu:V,onFocus:U,onKeyDown:K,onKeyUp:q,onMouseDown:B,onMouseLeave:H,onMouseUp:W,onDragLeave:G,onTouchEnd:$,onTouchMove:Z,onTouchStart:X,ref:te,tabIndex:c?-1:N,type:M,...ee,...T,children:[a,z?Bu.jsx(dB,{ref:j,center:i,...O}):null]})}));function gB(e,t,n,r=!1){return XF((o=>(n&&n(o),r||e[t](o),!0)))}function yB(e){return pF("MuiSvgIcon",e)}"production"!==process.env.NODE_ENV&&(hB.propTypes={action:HF,centerRipple:ty.bool,children:ty.node,classes:ty.object,className:ty.string,component:WF,disabled:ty.bool,disableRipple:ty.bool,disableTouchRipple:ty.bool,focusRipple:ty.bool,focusVisibleClassName:ty.string,href:ty.any,LinkComponent:ty.elementType,onBlur:ty.func,onClick:ty.func,onContextMenu:ty.func,onDragLeave:ty.func,onFocus:ty.func,onFocusVisible:ty.func,onKeyDown:ty.func,onKeyUp:ty.func,onMouseDown:ty.func,onMouseLeave:ty.func,onMouseUp:ty.func,onTouchEnd:ty.func,onTouchMove:ty.func,onTouchStart:ty.func,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object]),tabIndex:ty.number,TouchRippleProps:ty.object,touchRippleRef:ty.oneOfType([ty.func,ty.shape({current:ty.shape({pulsate:ty.func.isRequired,start:ty.func.isRequired,stop:ty.func.isRequired})})]),type:ty.oneOfType([ty.oneOf(["button","reset","submit"]),ty.string])}),mF("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const bB=wz("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${LD(n.color)}`],t[`fontSize${LD(n.fontSize)}`]]}})(xz((({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter((([,e])=>e&&e.main)).map((([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}}))),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]})))),vB=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...p}=n,m=o.isValidElement(r)&&"svg"===r.type,h={...n,color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:m},g={};u||(g.viewBox=f);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return DD({root:["root","inherit"!==t&&`color${LD(t)}`,`fontSize${LD(n)}`]},yB,r)})(h);return Bu.jsxs(bB,{as:s,className:PD(y.root,i),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t,...g,...p,...m&&r.props,ownerState:h,children:[m?r.props.children:r,d?Bu.jsx("title",{children:d}):null]})}));"production"!==process.env.NODE_ENV&&(vB.propTypes={children:ty.node,classes:ty.object,className:ty.string,color:ty.oneOfType([ty.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ty.string]),component:ty.elementType,fontSize:ty.oneOfType([ty.oneOf(["inherit","large","medium","small"]),ty.string]),htmlColor:ty.string,inheritViewBox:ty.bool,shapeRendering:ty.string,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object]),titleAccess:ty.string,viewBox:ty.string}),vB.muiName="SvgIcon";var wB=function(e,t){function n(n,r){return Bu.jsx(vB,{"data-testid":`${t}Icon`,ref:r,...n,children:e})}return"production"!==process.env.NODE_ENV&&(n.displayName=`${t}Icon`),n.muiName=vB.muiName,o.memo(o.forwardRef(n))}(Bu.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function xB(e){return pF("MuiTableSortLabel",e)}const CB=mF("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]);function kB(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,p=u[e]||r,m=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],o),{props:{component:h,...g},internalRef:y}=eL({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:m}),b=$F(y,m?.ref,t.ref),v="root"===e?h||c:h,w=function(e,t,n){return void 0===e||function(e){return"string"==typeof e}(e)?t:{...t,ownerState:{...t.ownerState,...n}}}(p,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...g,...v&&!s&&{as:v},...v&&s&&{component:v},ref:b},o);return[p,w]}const EB=wz(hB,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(xz((({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${CB.icon}`]:{opacity:.5}},[`&.${CB.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${CB.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})))),SB=wz("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${LD(n.direction)}`]]}})(xz((({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]})))),IB=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTableSortLabel"}),{active:r=!1,children:o,className:i,direction:a="asc",hideSortIcon:s=!1,IconComponent:l=wB,slots:c={},slotProps:u={},...d}=n,f={...n,active:r,direction:a,hideSortIcon:s,IconComponent:l},p=(e=>{const{classes:t,direction:n,active:r}=e;return DD({root:["root",r&&"active",`direction${LD(n)}`],icon:["icon",`iconDirection${LD(n)}`]},xB,t)})(f),m={slots:c,slotProps:u},[h,g]=kB("root",{elementType:EB,externalForwardedProps:m,ownerState:f,className:PD(p.root,i),ref:t}),[y,b]=kB("icon",{elementType:SB,externalForwardedProps:m,ownerState:f,className:p.icon});return Bu.jsxs(h,{disableRipple:!0,component:"span",...g,...d,children:[o,s&&!r?null:Bu.jsx(y,{as:l,...b})]})}));"production"!==process.env.NODE_ENV&&(IB.propTypes={active:ty.bool,children:ty.node,classes:ty.object,className:ty.string,direction:ty.oneOf(["asc","desc"]),hideSortIcon:ty.bool,IconComponent:ty.elementType,slotProps:ty.shape({icon:ty.oneOfType([ty.func,ty.object]),root:ty.oneOfType([ty.func,ty.object])}),slots:ty.shape({icon:ty.elementType,root:ty.elementType}),sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});const _B=({tabledata:t})=>{const n=e.useMemo((()=>(e=>{const t=[];if(void 0===e)return{header:[],rows:[]};void 0===e.data&&(e.data=[]),void 0===e.columns&&(0===e.data.length?e.columns=[]:e.columns=e.data[0].map(((e,t)=>`col${t}`))),void 0===e.index&&(e.index=e.data.map(((e,t)=>`row${t}`)));for(let n=0;n<e.index.length;n++){const r=[e.index[n]];for(let t=0;t<e.columns.length;t++)r.push(e.data[n][t]);t.push(r)}return{header:["index",...e.columns],rows:t}})(t)),[t]),[r,i]=e.useState("asc"),[a,s]=e.useState("index");let l=n.header.indexOf(a);-1===l&&(l=0);const c=((e,t)=>{const n=e.map(((e,t)=>[e,t]));return n.sort(((e,n)=>t(e[0],n[0]))),n.map((e=>e[0]))})(n.rows,(e=>"desc"===e?(e,t)=>t[l]<e[l]?-1:1:(e,t)=>e[l]<t[l]?-1:1)(r));return o.createElement(zz,{className:"tablecontainer"},o.createElement(Iz,{size:"small"},o.createElement(Hz,{className:"tableHead"},o.createElement(Uz,{className:"tableheadercolor"},n.header.map((e=>o.createElement(jz,{key:e,sortDirection:a===e&&r,className:"tableheadercolor"},o.createElement(IB,{active:a===e,direction:a===e?r:"asc",onClick:()=>(e=>{i(a===e&&"asc"===r?"desc":"asc"),s(e)})(e),className:"tableheadercolor",sx:{"& .MuiTableSortLabel-icon":{color:"inherit !important"}}},e)))))),o.createElement(Mz,null,c.map(((e,n)=>o.createElement(Uz,{key:t.index[n]},e.map(((e,t)=>o.createElement(jz,{key:t,className:0==t?"indexcol":"datacol"},e)))))))))};var AB,NB={};
|
|
152
152
|
/*!
|
|
153
153
|
* content-type
|
|
154
154
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
155
155
|
* MIT Licensed
|
|
156
|
-
*/var AB=function(){if(IB)return _B;IB=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,o=/([\\"])/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function a(e){var r=String(e);if(n.test(r))return r;if(r.length>0&&!t.test(r))throw new TypeError("invalid parameter value");return'"'+r.replace(o,"\\$1")+'"'}function s(e){this.parameters=Object.create(null),this.type=e}return _B.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,r=e.type;if(!r||!i.test(r))throw new TypeError("invalid type");var o=r;if(t&&"object"==typeof t)for(var s,l=Object.keys(t).sort(),c=0;c<l.length;c++){if(s=l[c],!n.test(s))throw new TypeError("invalid parameter name");o+="; "+s+"="+a(t[s])}return o},_B.parse=function(t){if(!t)throw new TypeError("argument string is required");var n="object"==typeof t?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(t):t;if("string"!=typeof n)throw new TypeError("argument string is required to be a string");var o=n.indexOf(";"),a=-1!==o?n.slice(0,o).trim():n.trim();if(!i.test(a))throw new TypeError("invalid media type");var l=new s(a.toLowerCase());if(-1!==o){var c,u,d;for(e.lastIndex=o;u=e.exec(n);){if(u.index!==o)throw new TypeError("invalid parameter format");o+=u[0].length,c=u[1].toLowerCase(),34===(d=u[2]).charCodeAt(0)&&-1!==(d=d.slice(1,-1)).indexOf("\\")&&(d=d.replace(r,"$1")),l.parameters[c]=d}if(o!==n.length)throw new TypeError("invalid parameter format")}return l},_B}(),NB=new Map,OB=function(e){return e.cloneNode(!0)},RB=function(){return"file:"===window.location.protocol},MB=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===r.readyState){var t=r.getResponseHeader("Content-Type");if(!t)throw new Error("Content type not found");var o=AB.parse(t).type;if("image/svg+xml"!==o&&"text/plain"!==o)throw new Error("Invalid content type: ".concat(o))}if(4===r.readyState){if(404===r.status||null===r.responseXML)throw new Error(RB()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(!(200===r.status||RB()&&0===r.status))throw new Error("There was a problem injecting the SVG: "+r.status+" "+r.statusText);n(null,r)}}catch(e){if(r.abort(),!(e instanceof Error))throw e;n(e,r)}},r.open("GET",e),r.withCredentials=t,r.overrideMimeType&&r.overrideMimeType("text/xml"),r.send()},TB={},PB=function(e,t){TB[e]=TB[e]||[],TB[e].push(t)},DB=function(e,t,n){if(NB.has(e)){var r=NB.get(e);if(void 0===r)return void PB(e,n);if(r instanceof SVGSVGElement)return void n(null,OB(r))}NB.set(e,void 0),PB(e,n),MB(e,t,(function(t,n){var r;t?NB.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&NB.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(TB[e])){var n=NB.get(e),r=TB[e][t];n instanceof SVGSVGElement&&r(null,OB(n)),n instanceof Error&&r(n),t===TB[e].length-1&&delete TB[e]}}),0)},n=0,r=TB[e].length;n<r;n++)t(n)}(e)}))},jB=function(e,t,n){MB(e,t,(function(e,t){var r;e?n(e):(null===(r=t.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)}))},FB=0,LB=[],zB={},BB="http://www.w3.org/1999/xlink",VB=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==LB.indexOf(e))return LB.splice(LB.indexOf(e),1),void(e=null);LB.push(e),e.setAttribute("src",""),(r?DB:jB)(s,o,(function(r,o){if(!o)return LB.splice(LB.indexOf(e),1),e=null,void a(r);var l=e.getAttribute("id");l&&o.setAttribute("id",l);var c=e.getAttribute("title");c&&o.setAttribute("title",c);var u=e.getAttribute("width");u&&o.setAttribute("width",u);var d=e.getAttribute("height");d&&o.setAttribute("height",d);var f=Array.from(new Set(Ad(Ad(Ad([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",f);var p=e.getAttribute("style");p&&o.setAttribute("style",p),o.setAttribute("data-src",s);var m=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(m,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var h,g,y,b,v,w={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(w).forEach((function(e){h=e,y=w[e];for(var t=function(e,t){var n;b=g[e].id,v=b+"-"+ ++FB,Array.prototype.forEach.call(y,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+b+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+b+'"?\\)'))||n[t].setAttribute(e,"url(#"+v+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,s=r.length;a<s;a++){var l=r[a].getAttributeNS(BB,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,u=i.length;c<u;c++)i[c].setAttributeNS(BB,"href","#"+v);g[e].id=v},n=0,r=(g=o.querySelectorAll(h+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var x,C,k=o.querySelectorAll("script"),E=[],S=0,I=k.length;S<I;S++)(C=k[S].getAttribute("type"))&&"application/ecmascript"!==C&&"application/javascript"!==C&&"text/javascript"!==C||((x=k[S].innerText||k[S].textContent)&&E.push(x),o.removeChild(k[S]));if(E.length>0&&("always"===t||"once"===t&&!zB[s])){for(var _=0,A=E.length;_<A;_++)new Function(E[_])(window);zB[s]=!0}var N=o.querySelectorAll("style");if(Array.prototype.forEach.call(N,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",BB),i(o),!e.parentNode)return LB.splice(LB.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),LB.splice(LB.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},GB=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],WB="http://www.w3.org/2000/svg",HB="http://www.w3.org/1999/xlink",XB=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}Uz(t,e);var n=t.prototype;return n.renderSVG=function(){var e=this;if(this.reactWrapper instanceof function(e){return((null==e?void 0:e.ownerDocument)||document).defaultView||window}(this.reactWrapper).Node){var t,n,r=this.props,o=r.desc,i=r.evalScripts,a=r.httpRequestWithCredentials,s=r.renumerateIRIElements,l=r.src,c=r.title,u=r.useRequestCache,d=this.props.onError,f=this.props.beforeInjection,p=this.props.afterInjection,m=this.props.wrapper;"svg"===m?((t=document.createElementNS(WB,m)).setAttribute("xmlns",WB),t.setAttribute("xmlns:xlink",HB),n=document.createElementNS(WB,m)):(t=document.createElement(m),n=document.createElement(m)),t.appendChild(n),n.dataset.src=l,this.nonReactWrapper=this.reactWrapper.appendChild(t);var h=function(t){e.removeSVG(),e._isMounted?e.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){d(t)})):d(t)};!function(e,t){var n=void 0===t?{}:t,r=n.afterAll,o=void 0===r?function(){}:r,i=n.afterEach,a=void 0===i?function(){}:i,s=n.beforeEach,l=void 0===s?function(){}:s,c=n.cacheRequests,u=void 0===c||c,d=n.evalScripts,f=void 0===d?"never":d,p=n.httpRequestWithCredentials,m=void 0!==p&&p,h=n.renumerateIRIElements,g=void 0===h||h;if(e&&"length"in e)for(var y=0,b=0,v=e.length;b<v;b++)VB(e[b],f,g,u,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++y&&o(y)}));else e?VB(e,f,g,u,m,l,(function(t,n){a(t,n),o(1),e=null})):o(0)}(n,{afterEach:function(t,n){t?h(t):e._isMounted&&e.setState((function(){return{isLoading:!1}}),(function(){try{p(n)}catch(e){h(e)}}))},beforeEach:function(e){if(e.setAttribute("role","img"),o){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var n=document.createElement("desc");n.innerHTML=o,e.prepend(n)}if(c){var r=e.querySelector(":scope > title");r&&e.removeChild(r);var i=document.createElement("title");i.innerHTML=c,e.prepend(i)}try{f(e)}catch(e){h(e)}},cacheRequests:u,evalScripts:i,httpRequestWithCredentials:a,renumerateIRIElements:s})}},n.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(e){var t=this;(function(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1})(gR({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var n=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var r=e.wrapper,i=pR(e,GB),a=r;return o.createElement(a,gR({},i,{ref:this.refCallback},"svg"===r?{xmlns:WB,xmlnsXlink:HB}:{}),this.state.isLoading&&n&&o.createElement(n,null),this.state.hasError&&t&&o.createElement(t,null))},t}(o.Component);XB.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},XB.propTypes={afterInjection:ey.func,beforeInjection:ey.func,desc:ey.string,evalScripts:ey.oneOf(["always","once","never"]),fallback:ey.oneOfType([ey.func,ey.object,ey.string]),httpRequestWithCredentials:ey.bool,loading:ey.oneOfType([ey.func,ey.object,ey.string]),onError:ey.func,renumerateIRIElements:ey.bool,src:ey.string.isRequired,title:ey.string,useRequestCache:ey.bool,wrapper:ey.oneOf(["div","span","svg"])};const $B=({value:e,renderoptions:t})=>(void 0===t&&(t={}),void 0===t.format&&(t.format="jpeg"),o.createElement("img",{src:"data:image/"+t.format+";base64, "+e,style:{maxWidth:"100%",maxHeight:"100%"}})),ZB=({value:e})=>o.createElement(XB,{src:`data:image/svg+xml;base64,${btoa(e)}`,style:{maxWidth:"100%",maxHeight:"100%"},beforeInjection:e=>{e.classList.add("svg-class-name"),e.setAttribute("style","max-width: 100%; max-height: 100%;"),e.setAttribute("width","100%"),e.setAttribute("height","100%")}}),YB=({io:e})=>{let t=e.fullvalue;if(null==t&&(t=e.value),void 0===t&&(t=""),"string"!=typeof t||t.length%4!=0)return o.createElement("div",null,t);const n=Math.round(3*t.length/4);return o.createElement("div",null,o.createElement("pre",null,"Bytes(",n,")"))},UB=({io:e})=>{let t=e.fullvalue;return void 0===t&&(t=e.value),void 0===t&&(t={}),o.createElement(OD,{data:t})},JB={float:({io:e,inputconverter:t})=>aD({io:e,inputconverter:t,parser:parseFloat}),int:({io:e,inputconverter:t})=>aD({io:e,inputconverter:t,parser:parseInt}),bool:({io:t,inputconverter:n})=>{const r=e.useContext(FV),i=void 0===t.value,a=e.useRef(null);e.useEffect((()=>{a.current&&(a.current.indeterminate=i)}),[a,i]);return o.createElement("input",{ref:a,type:"checkbox",className:"styledcheckbox booleaninput",checked:!!n[1](t.value),onChange:e=>{let o=e.target.checked;try{o=n[0](e.target.checked)}catch(e){}r.worker?.set_io_value({nid:t.node,ioid:t.id,value:o,set_default:t.render_options.set_default})},disabled:t.connected})},string:sD,str:sD,color:({io:t})=>{const n=e.useContext(FV),r=t.value_options?.colorspace||"hex";let i=!1;return"string"!=typeof t.type&&"anyOf"in t.type&&void 0!==t.type.anyOf&&(i=t.type.anyOf.some((e=>"None"===e))),o.createElement(KN,{onChange:e=>{let o="<NoValue>";e&&(o=e[r]?e[r]():e.hex()),null===e&&(o=null),n.worker?.set_io_value({nid:t.node,ioid:t.id,value:o,set_default:t.render_options.set_default})},inicolordata:t.value,allow_null:i,inicolorspace:r})},select:fD,enum:fD,bytes:YB},KB={Inputrenderer:JB,Outputrenderer:{},HandlePreviewRenderer:{bytes:YB},DataOverlayRenderer:{},DataPreviewViewRenderer:{string:({io:e})=>{let t=e.fullvalue;return null==t&&(t=e.value),t=void 0===t?"":JSON.stringify(e.value).replace(/\\n/g,"\n"),o.createElement("div",null,o.createElement("pre",null,t))},table:({io:e})=>{let t=e.fullvalue;return null==t&&(t=e.value),void 0===t&&(t=[]),o.createElement(SB,{tabledata:t})},image:({io:e})=>{let t=e.fullvalue;return null==t&&(t=e.value),void 0===t&&(t=""),o.createElement($B,{value:t})},svg:({io:e})=>{let t=e.fullvalue;return null==t&&(t=e.value),void 0===t&&(t=""),o.createElement(ZB,{value:t})},dict:UB,bytes:YB},DataViewRenderer:{},InLineRenderer:{bytes:({io:e})=>{let t=e.fullvalue;null==t&&(t=e.value),t=void 0===t?"":JSON.stringify(e.value).replace(/\\n/g,"\n");return`Bytes(${Math.round(3*t.length/4)})`}}},qB=(e,t)=>{const n=t.options||{},r=void 0===n.overwrite||n.overwrite;switch(t.type){case"EXTEND_INPUT_RENDER":return!r&&e.Inputrenderer[t.payload.type]?e:{...e,Inputrenderer:{...e.Inputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_OUTPUT_RENDER":return!r&&e.Outputrenderer[t.payload.type]?e:{...e,Outputrenderer:{...e.Outputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_HANDLE_PREVIEW_RENDER":return!r&&e.HandlePreviewRenderer[t.payload.type]?e:{...e,HandlePreviewRenderer:{...e.HandlePreviewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_OVERLAY_RENDER":return!r&&e.DataOverlayRenderer[t.payload.type]?e:{...e,DataOverlayRenderer:{...e.DataOverlayRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_PREVIEW_RENDER":return!r&&e.DataPreviewViewRenderer[t.payload.type]?e:{...e,DataPreviewViewRenderer:{...e.DataPreviewViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_VIEW_RENDER":return!r&&e.DataViewRenderer[t.payload.type]?e:{...e,DataViewRenderer:{...e.DataViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_FROM_PLUGIN":let n=!1;const o=[[t.payload.plugin.input_renderers||{},e.Inputrenderer],[t.payload.plugin.output_renderers||{},e.Outputrenderer],[t.payload.plugin.handle_preview_renderers||{},e.HandlePreviewRenderer],[t.payload.plugin.data_overlay_renderers||{},e.DataOverlayRenderer],[t.payload.plugin.data_preview_renderers||{},e.DataPreviewViewRenderer],[t.payload.plugin.data_view_renderers||{},e.DataViewRenderer]];for(const[e,t]of o){if(Object.keys(e).length>0)if(r)n=!0;else for(const r in e)if(!t[r]){n=!0;break}if(n)break}if(!n)return e;for(const[e,t]of o)for(const n in e)!r&&t[n]||(t[n]=e[n]);return{...e};default:return e}},QB=({children:t,plugins:n,fnrf_zst:r})=>{const[i,a]=e.useReducer(qB,KB),s=(e,t)=>{a({type:"EXTEND_FROM_PLUGIN",payload:{plugin:e},options:t})};return e.useEffect((()=>{for(const e in n){const t=n[e].RendererPlugin;t&&s(t);const i=n[e].renderpluginfactory;i&&s(i({React:o,fnrf_zst:r}))}}),[n]),o.createElement(eV.Provider,{value:{Inputrenderer:i.Inputrenderer,Outputrenderer:i.Outputrenderer,HandlePreviewRenderer:i.HandlePreviewRenderer,DataOverlayRenderer:i.DataOverlayRenderer,DataPreviewViewRenderer:i.DataPreviewViewRenderer,DataViewRenderer:i.DataViewRenderer,InLineRenderer:i.InLineRenderer,extendInputRenderMapping:(e,t,n)=>{a({type:"EXTEND_INPUT_RENDER",payload:{type:e,component:t},options:n})},extendOutputRenderMapping:(e,t,n)=>{a({type:"EXTEND_OUTPUT_RENDER",payload:{type:e,component:t},options:n})},extendHandlePreviewRenderMapping:(e,t,n)=>{a({type:"EXTEND_HANDLE_PREVIEW_RENDER",payload:{type:e,component:t},options:n})},extendDataOverlayRenderMapping:(e,t,n)=>{a({type:"EXTEND_DATA_OVERLAY_RENDER",payload:{type:e,component:t},options:n})},extendDataPreviewRenderMapping:(e,t,n)=>{a({type:"EXTEND_DATA_PREVIEW_RENDER",payload:{type:e,component:t},options:n})},extendDataViewRenderMapping:(e,t,n)=>{a({type:"EXTEND_DATA_VIEW_RENDER",payload:{type:e,component:t},options:n})},extendFromPlugin:s}},t)},eV=e.createContext({Inputrenderer:KB.Inputrenderer,Outputrenderer:KB.Outputrenderer,HandlePreviewRenderer:KB.HandlePreviewRenderer,DataOverlayRenderer:KB.DataOverlayRenderer,DataPreviewViewRenderer:KB.DataPreviewViewRenderer,DataViewRenderer:KB.DataViewRenderer,InLineRenderer:KB.InLineRenderer,extendInputRenderMapping:(e,t,n)=>{},extendOutputRenderMapping:(e,t,n)=>{},extendHandlePreviewRenderMapping:(e,t,n)=>{},extendDataOverlayRenderMapping:(e,t,n)=>{},extendDataPreviewRenderMapping:(e,t,n)=>{},extendDataViewRenderMapping:(e,t,n)=>{},extendFromPlugin:(e,t)=>{}}),tV=({component:e,...t})=>o.createElement(e,{...t}),nV=t=>{const n=e.useContext(FV).render_options(),[r]=rV(t.type,n.typemap||{});if(!r)return UB;const{DataOverlayRenderer:o,DataPreviewViewRenderer:i}=e.useContext(eV);return o[r]?o[r]:i[r]?i[r]:UB},rV=(e,t)=>{if("string"==typeof e)return e in t?[t[e],e]:[e,e];if("allOf"in e&&void 0!==e.allOf)return[void 0,void 0];if("anyOf"in e&&void 0!==e.anyOf){const n=e.anyOf.map((e=>rV(e,t)));for(const e of n)switch(e[0]){case"bool":return["bool",e[1]];case"enum":return["enum",e[1]];case"float":return["float",e[1]];case"int":return["int",e[1]];case"string":case"str":return["string",e[1]]}return[void 0,void 0]}return"type"in e&&void 0!==e.type&&"enum"===e.type?["enum","enum"]:[void 0,void 0]},oV=({io:t,typestring:n,preview:r,...i})=>{const[a,s]=e.useState(!1),[l,c]=e.useState(!1),u=o.useContext(FV),[d,f]=t?(t=>{const n=e.useContext(FV).render_options(),[r]=rV(t.type,n.typemap||{}),{HandlePreviewRenderer:o,DataPreviewViewRenderer:i}=e.useContext(eV),a=nV(t);return r?o[r]?[o[r],a]:i[r]?[i[r],a]:[UB,a]:[UB,a]})(t):[void 0,void 0],p=u.local_state((()=>u.reactflowRef));return o.createElement(BN,{open:a||l,onOpenChange:c},o.createElement(VN,{asChild:!0},o.createElement(ci,{id:t.id,"data-type":n,...i})),o.createElement(GN,{container:p},o.createElement(WN,{className:"iotooltipcontent",sideOffset:5},o.createElement("div",{className:"iotooltip_container"},o.createElement("div",{className:"iotooltip_header"},a?o.createElement(Xy,{onClick:()=>s(!1)}):o.createElement(Hy,{onClick:()=>s(!0)}),f&&o.createElement(Uy,{title:t.full_id,trigger:o.createElement(jy,null),onOpenChange:e=>{e&&t.try_get_full_value&&t.try_get_full_value(),s(e)}},o.createElement(tV,{component:f,io:t}))),d?o.createElement(tV,{component:d,io:t}):`no preview available for "${n}"`),o.createElement(HN,{className:"iotooltipcontentarrow"}))))},iV={"":[e=>e,e=>e],str_to_json:[e=>JSON.parse(e),e=>"string"==typeof e?e:JSON.stringify(e)],str_to_list:[e=>{try{const t=JSON.parse(e);return Array.isArray(t)?t:[t]}catch(t){try{return JSON.parse("["+e+"]")}catch(e){}}throw new Error("Invalid list")},e=>JSON.stringify(e)]},aV=({io:t})=>{const n=e.useContext(FV).render_options(),[r,i]=rV(t.render_options.type,n.typemap||{}),{Inputrenderer:a}=e.useContext(eV),s=r?t.value_options?.options?fD:a[r]:void 0,l=iV[(i&&n.inputconverter?.[i])??""];return o.createElement("div",{className:"nodeinput","data-type":r},o.createElement(oV,{io:t,typestring:r,position:So.Left,type:"target"}),s&&o.createElement("div",{className:"iovaluefield nodrag","data-type":r},o.createElement(s,{io:t,inputconverter:l})),o.createElement("div",{className:"ioname"},t.name),o.createElement(oV,{io:t,typestring:r,position:So.Right,type:"source"}))},sV=({io:t,typestring:n})=>{const{InLineRenderer:r}=e.useContext(eV);if(n&&r[n])return o.createElement("div",null,r[n]({io:t}));let i=t.fullvalue;return null==i&&(i=t.value),i=void 0===i?"":JSON.stringify(i).replace(/\\n/g,"\n"),i.length>63&&(i=i.slice(0,60)+"..."),o.createElement("div",null,i)},lV=({io:t})=>{const n=e.useContext(FV).render_options(),[r]=rV(t.type,n.typemap||{}),{Outputrenderer:i}=e.useContext(eV),a=r?i[r]:void 0;return o.createElement("div",{className:"nodeoutput","data-type":r},o.createElement(oV,{io:t,typestring:r,position:So.Right,type:"source"}),o.createElement("div",{className:"ioname"},t.name),a?o.createElement("div",{className:"iovaluefield nodrag"},o.createElement(a,{io:t})):o.createElement("div",{className:"iovaluefield"},o.createElement(sV,{io:t,typestring:r})))};function cV(e){return`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,"0")}`}function uV(e,t){const n=["","K","M","G","T"];let r=0;for(;e>=t&&r<n.length-1;)e/=t,r++;return[e.toFixed(2),n[r]]}const dV=({state:t,className:n="reacttqdm",...r})=>{const i=e.useRef(null),a=e.useRef(null);e.useEffect((()=>{const e=()=>{i.current&&a.current&&function(e,t,n={}){const{maxFontSize:r=100,minFontSize:o=6,decrementFactor:i=.9}=n;if(!e||!t)return;if(i>=1||i<=0)throw new Error("decrementFactor must be between 0 and 1");const a=e.getBoundingClientRect(),s=a.width,l=a.height;let c=r;t.style.whiteSpace="nowrap",t.style.display="inline-block",t.style.fontSize=c+"px";let u=t.getBoundingClientRect();for(;(u.width>s||u.height>l)&&c>o;)c*=i,t.style.fontSize=c+"px",u=t.getBoundingClientRect()}(i.current,a.current,{maxFontSize:12,decrementFactor:.9})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t]);const s=t.total?t.n/t.total*100:0;return o.createElement("div",{ref:i,className:n,...r},o.createElement("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},o.createElement("div",{className:n+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"}},o.createElement("div",{className:n+"-progress",style:{width:`${s}%`,height:"100%"}})),o.createElement("div",{className:n+"-text",ref:a},function(e={n:0,elapsed:0,ascii:!1,unit:"it",unit_scale:!1,unit_divisor:1e3}){let t=e.total??null;const{n:n,unit_scale:r,elapsed:o,unit:i,unit_divisor:a,prefix:s="",rate:l,postfix:c=null,initial:u=0}=e;null!==t&&n>=t+.5&&(t=null);let d=n,f=t,p=l;r&&!0!==r&&1!==r&&(null!==t&&(f=t*r),d=n*r,void 0!==l&&(p=l*r));const m=cV(o);void 0===p&&o>0&&(p=(d-u)/o);const h=p?1/p:void 0,[g,y]=p?uV(p,a):[void 0,""],[b,v]=h?uV(h,1e3):[void 0,""],w=h&&h>1?b?`${b}${v}s/`+i:"?":(g||"?")+`${y}${i}/s`,x=r?uV(d,a).join(""):d.toString(),C=r&&null!==f?uV(f,a).join(""):f?.toString()??"?",k=p?cV(p&&null!==f?(f-d)/p:0):"?",E=s?`${s}: `:"";if(null!==t){const e=` ${x}/${C} [${m} < ${k}, ${w}${c??""}]`;return`${E}${(d/t*100).toFixed(0)}%${e}`}return`${E}${x}${i} [${m}, ${w}${c??""}]`}(t))))},fV=({node_data:t})=>{const n=e.useContext(FV);return o.createElement("div",{className:"nodeheader",title:t.description||t.node_name},o.createElement("div",{className:"nodeheader_element"},o.createElement(Zy,{fontSize:"inherit",className:"triggerbutton",onClick:()=>{n.on_node_action({type:"trigger",from_remote:!1,id:t.id})}}),o.createElement($y,{fontSize:"inherit",onClick:async()=>{n.logger.info("nodestatus",await(n.worker?.get_node_status(t.id)))}})),o.createElement("div",{className:"nodeheader_element nodeheader_title"},o.createElement("div",{className:"nodeheader_title_text"},t.node_name)),o.createElement("div",{className:"nodeheader_element"},o.createElement(Gy,{fontSize:"inherit"})))},pV=({node_data:t})=>{const n=t.render_options?.data?.src?t.io[t.render_options?.data?.src]:void 0,[r,i]=n?(t=>{const n=e.useContext(FV).render_options(),[r]=rV(t.type,n.typemap||{}),o=nV(t),{DataPreviewViewRenderer:i,DataViewRenderer:a}=e.useContext(eV);return r?a[r]?[a[r],o]:i[r]?[i[r],o]:[UB,o]:[UB,o]})(n):[void 0,void 0];return o.createElement("div",{className:"nodrag nodedatabody","data-src":t.render_options?.data?.src||""},r&&n&&o.createElement(Uy,{title:n.full_id,trigger:o.createElement("div",{className:"nodedatabutton"},o.createElement(tV,{component:r,io:n})),onOpenChange:e=>{e&&n?.try_get_full_value&&n?.try_get_full_value()}},o.createElement(tV,{component:i,io:n})))},mV=({node_data:e})=>{const t=Object.values(e.io).filter((e=>e.is_input)),n=Object.values(e.io).filter((e=>!e.is_input));return e.render_options,o.createElement("div",{className:"nodebody"},n.map((e=>e.hidden?null:o.createElement(lV,{key:e.id,io:e}))),o.createElement(pV,{node_data:e}),t.map((e=>e.hidden?null:o.createElement(aV,{key:e.id,io:e}))))},hV=({node_data:t})=>{const[n,r]=e.useState(t.name);e.useEffect((()=>{r(t.name)}),[t]);const i=e.useContext(FV);return o.createElement("input",{className:"nodename_input",value:n,onChange:e=>{r(e.target.value)},onBlur:e=>{const n=e.target.value;i.on_node_action({type:"update",from_remote:!1,id:t.id,node:{name:n}})}})},gV=({node_data:e})=>e.progress?o.createElement(dV,{style:{height:"idle"===e.progress.prefix?"0px":void 0},state:e.progress,className:"nodeprogress"}):null,yV=({node_data:e})=>o.createElement("div",{className:"nodefooter"},e.error&&o.createElement("div",{className:"nodeerror"},e.error),o.createElement(gV,{node_data:e})),bV=({io:e})=>{const t=o.useContext(FV).render_options(),[n,r]=rV(e.render_options.type,t.typemap||{}),{Inputrenderer:i}=o.useContext(eV),a=n?e.value_options?.options?fD:i[n]:void 0,s=iV[(r&&t.inputconverter?.[r])??""];return o.createElement("div",{className:"nodesettings_component"},o.createElement("div",null,e.name),a&&o.createElement(a,{io:e,inputconverter:s}),o.createElement("div",null,o.createElement("label",null,"hidden:",o.createElement("input",{className:"styledcheckbox",type:"checkbox",disabled:e.connected,onChange:t=>{e.set_hidden?.(t.target.checked)},checked:e.hidden}))))},vV=({io:e})=>o.createElement("div",{className:"nodesettings_component"},o.createElement("div",null,e.name),o.createElement("div",null,o.createElement("label",null,"hidden:",o.createElement("input",{className:"styledcheckbox",type:"checkbox",disabled:e.connected,onChange:t=>{e.set_hidden?.(t.target.checked)},checked:e.hidden})))),wV=({nodestore:e})=>{const t=e(),n=Object.values(t.io).filter((e=>e.is_input)),r=Object.values(t.io).filter((e=>!e.is_input));return o.createElement("div",{className:"nodesettings_content"},o.createElement("div",{className:"nodesettings_section"},o.createElement("div",{className:"nodesettings_component"},o.createElement("div",null,"Name"),o.createElement("div",null,o.createElement(hV,{node_data:t})))),o.createElement("div",{className:"nodesettings_section"},o.createElement("div",null,"Inputs"),n.map((e=>o.createElement(bV,{io:e,key:e.id})))),o.createElement("div",{className:"nodesettings_section"},o.createElement("div",null,"Outputs"),r.map((e=>o.createElement(vV,{io:e,key:e.id})))))},xV=()=>{const e=o.useContext(FV),t=e.local_state((e=>e.selected_nodes));if(0===t.length)return o.createElement("div",null,"Node Settings");if(t.length>1)return o.createElement("div",null,"Multiple Nodes Selected");const n=e.nodespace.get_node(t[0]);return n?o.createElement(wV,{nodestore:n}):o.createElement("div",null,"Node not found")},CV=()=>{const e=o.useContext(FV),t=e.local_settings((e=>e.view_settings.expand_node_props)),n=e.local_settings((e=>e.update_view_settings));return o.createElement(bC,{maxSize:"300px",direction:"left",expanded:void 0!==t&&t,containerClassName:"pos-right pos-top bg1 h-12",className:"nodesettings_content",onExpandChange:e=>{n({expand_node_props:e})}},o.createElement(xV,null))},kV=e=>({nodes:e.nodes,edges:e.edges,onNodesChange:e.onNodesChange,onEdgesChange:e.onEdgesChange,onConnect:e.onConnect}),EV={default:({data:t})=>{const n=t.UseNodeStore(),r=n.properties["frontend:collapsed"]||!1,{visualTrigger:i}=(t=>{const n=e.useContext(FV),[r,o]=e.useState(!1);return e.useEffect((()=>{n.worker?.call_hooks("node_mounted",t.id)}),[n.worker,t.id]),e.useEffect((()=>{let e;return t.in_trigger&&!r?o(!0):r&&(e=setTimeout((()=>o(!1)),200)),()=>clearTimeout(e)}),[t.in_trigger,r]),{visualTrigger:r}})(n);return o.createElement(o.Fragment,null,o.createElement("div",{className:"innernode"+(i?" intrigger":"")+(n.error?" error":"")},o.createElement(fV,{node_data:n}),o.createElement(hV,{node_data:n}),r?null:o.createElement(mV,{node_data:n}),o.createElement(yV,{node_data:n})))}},SV={default:({id:e,sourceX:t,sourceY:n,targetX:r,targetY:i,sourcePosition:a,targetPosition:s,data:l,...c})=>{const[u]=Lo({sourceX:t,sourceY:n,sourcePosition:a,targetX:r,targetY:i,targetPosition:s});return o.createElement(o.Fragment,null,o.createElement(go,{id:e,path:u,...c}))}},IV=()=>{const t=Zi();return e.useContext(FV).rf_instance=t,o.createElement(o.Fragment,null)},_V=()=>{const t=e.useContext(FV),n=Pi("Delete"),r=Hr(Cs,Z),i=Hr(xs,Z);if(n){for(const e of r)if(e.selected){if(!t.worker)return o.createElement(o.Fragment,null);if(!e.source||!e.target)return o.createElement(o.Fragment,null);if(!e.sourceHandle||!e.targetHandle)return o.createElement(o.Fragment,null);t.worker.remove_edge({src_nid:e.source,src_ioid:e.sourceHandle,trg_nid:e.target,trg_ioid:e.targetHandle})}for(const e of i)if(e.selected){if(!t.worker)return o.createElement(o.Fragment,null);t.worker.remove_node(e.id)}}return o.createElement(o.Fragment,null)},AV=({id:t,top:n,left:r,right:i,bottom:a,...s})=>{const{getNode:l,setNodes:c,addNodes:u,setEdges:d}=Zi(),f=e.useContext(FV),p=e.useCallback((()=>{const e=l(t);if(!e)return;const n={x:e.position.x+50,y:e.position.y+50};u({...e,id:`${e.id}-copy`,position:n})}),[t,l,u]),m=e.useCallback((()=>{f.on_node_action({type:"delete",id:t,from_remote:!1})}),[t,c,d]),h=f.nodespace.get_node(t,!1);if(!h)return o.createElement(o.Fragment,null," ");const g=h();return o.createElement("div",{style:{top:n,left:r,right:i,bottom:a},className:"context-menu",...s},o.createElement("p",{style:{fontWeight:"bold"}},o.createElement("small",null,g.name)),o.createElement("button",{onClick:p},"duplicate"),o.createElement("button",{onClick:m},"delete"))},NV=t=>{const n=e.useContext(FV),r=e.useRef(null);e.useEffect((()=>{n.reactflowRef=r.current}),[r]);const[i,a]=e.useState(null),s=e.useCallback((()=>a(null)),[a]),{nodes:l,edges:c,onNodesChange:u,onEdgesChange:d,onConnect:f}=n.useReactFlowStore(cN(kV));return o.createElement("div",{className:"reactflowlayer"},o.createElement(ws,{nodes:l,edges:c,onNodesChange:u,onEdgesChange:d,onConnect:f,nodeTypes:EV,edgeTypes:SV,minZoom:t.minZoom,maxZoom:t.maxZoom,fitView:!0,onSelectionChange:({nodes:e,edges:t})=>{const r=n.local_state.getState();n.local_state.setState({...r,selected_nodes:e.map((e=>e.id)),selected_edges:t.map((e=>e.id))})},ref:r,onPaneClick:s,panOnDrag:!t.static},o.createElement(IV,null),o.createElement(_V,null),o.createElement(zs,{color:"#888",gap:16,size:1}),t.minimap&&o.createElement(Ms,{nodeStrokeWidth:3,pannable:!t.static,zoomable:!t.static,zoomStep:3}),i&&o.createElement(AV,{onClick:s,...i})))},OV=e.createContext(void 0),RV=e.forwardRef(((t,n)=>{const{asChild:r,children:a,className:s,style:l,...c}=t,[u,d]=e.useState(!1),f=e.useRef(null),[p,m]=e.useState(null),[h,g]=e.useState({}),y=t.htime||300,b=t.vtime||300,v=t.hdelay||0,w=t.vdelay||200;e.useImperativeHandle(n,(()=>f.current),[]);let x;if(r&&o.isValidElement(a)){const e=a,t=[e.props.className,s,"smooth-expand",u?"smooth-expand-expanded":""].filter(Boolean).join(" "),n={...e.props.style,...l,...h};x=o.cloneElement(e,{ref:f,className:t,style:n,...c})}else x=o.createElement("div",{ref:f,...c,className:`smooth-expand ${u?"smooth-expand-expanded":""} ${s||""}`,style:{...l,...h}},a);const C=o.createElement(OV.Provider,{value:{isExpanded:u,toggleExpand:async()=>{f.current&&(u?await(async()=>{if(!f.current)return;if(!p)return;const e={transitionProperty:"width, left, height, top",transitionDuration:`${y}ms, ${y}ms, ${b}ms, ${b}ms`};g((t=>({...t,...e})));const[t,n,r,o]=p,i=new Promise((e=>{setTimeout((()=>{g((e=>({...e,left:`${t}px`,width:`${r}px`}))),e()}),w)})),a=new Promise((e=>{setTimeout((()=>{g((e=>({...e,top:`${n}px`,height:`${o}px`}))),e()}),v)})),s=Math.max(y+v,b+w),l=new Promise((e=>{setTimeout((()=>{e()}),s)}));await Promise.all([i,a,l]),f.current.style.transition="",g({}),d(!1)})():await(async()=>{if(!f.current)return;f.current.style.transition="none",f.current.style.position="",f.current.style.top="",f.current.style.left="",f.current.style.width="",f.current.style.height="";const e=f.current.getBoundingClientRect();m([e.left,e.top,e.width,e.height]),f.current.style.transition="none",g({position:"absolute",top:`${e.top}px`,left:`${e.left}px`,width:`${e.width}px`,height:`${e.height}px`}),g((e=>({...e,transitionProperty:"width, left, height, top",transitionDuration:`${y}ms, ${y}ms, ${b}ms, ${b}ms`}))),d(!0);const t=new Promise((e=>{setTimeout((()=>{g((e=>({...e,left:"0px",width:"100vw"}))),e()}),v)})),n=new Promise((e=>{setTimeout((()=>{g((e=>({...e,top:"0px",height:"100vh"}))),e()}),w)})),r=Math.max(y+v,b+w),o=new Promise((e=>{setTimeout((()=>{e()}),r)}));await Promise.all([t,n,o])})())}}},x);return u?i.createPortal(C,document.body):C}));RV.Trigger=function({children:t}){const n=e.useContext(OV);if(!n)throw new Error("SmoothExpandComponent.Trigger must be used within a SmoothExpandComponent");return o.createElement("div",{style:{cursor:"pointer"},onClick:n.toggleExpand},t)},RV.Expanded=function({children:t}){const n=e.useContext(OV);if(!n)throw new Error("SmoothExpandComponent.Expanded must be used within a SmoothExpandComponent");return n.isExpanded?o.createElement(o.Fragment,null,t):null},RV.Collapsed=function({children:t}){const n=e.useContext(OV);if(!n)throw new Error("SmoothExpandComponent.Collapsed must be used within a SmoothExpandComponent");return n.isExpanded?null:o.createElement(o.Fragment,null,t)};const MV=o.createContext(void 0),TV=e.forwardRef(((t,n)=>{const{asChild:r,children:i,className:a,style:s,...l}=t,c=e.useRef(null);e.useImperativeHandle(n,(()=>c.current),[]);const[u,d]=e.useState(!1),f=e.useCallback((async()=>{try{const e=c.current;if(!e)return;if(u){const e=document;e.exitFullscreen?await e.exitFullscreen():e.mozCancelFullScreen?await e.mozCancelFullScreen():e.webkitExitFullscreen?await e.webkitExitFullscreen():e.msExitFullscreen&&await e.msExitFullscreen(),d(!1)}else e.requestFullscreen?await e.requestFullscreen():e.mozRequestFullScreen?await e.mozRequestFullScreen():e.webkitRequestFullscreen?await e.webkitRequestFullscreen():e.msRequestFullscreen&&await e.msRequestFullscreen(),d(!0)}catch(e){console.error("Error toggling fullscreen",e)}}),[u]);let p;if(e.useEffect((()=>{const e=()=>{const e=document.fullscreenElement;d(!!e)};return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}}),[]),r&&o.isValidElement(i)){const e=i,t=[e.props.className,a].filter(Boolean).join(" "),n={...e.props.style,...s};p=o.cloneElement(e,{ref:c,className:t,style:n,...l})}else p=o.createElement("div",{ref:c,...l,className:a,style:s},i);return o.createElement(MV.Provider,{value:{isFullScreen:u,toggleFullscreen:f}},p)}));TV.Trigger=function({children:e}){const t=o.useContext(MV);if(!t)throw new Error("FullScreenComponent.Trigger must be used within a FullScreenComponent");return o.createElement("div",{style:{cursor:"pointer"},onClick:t.toggleFullscreen},e)},TV.InFullScreen=function({children:e}){const t=o.useContext(MV);if(!t)throw new Error("FullScreenComponent.Expanded must be used within a FullScreenComponent");return t.isFullScreen?o.createElement(o.Fragment,null,e):null},TV.OutFullScreen=function({children:e}){const t=o.useContext(MV);if(!t)throw new Error("FullScreenComponent.Collapsed must be used within a FullScreenComponent");return t.isFullScreen?null:o.createElement(o.Fragment,null,e)};const PV=({fnrf_zst:t,header:n,flow:r,library:i})=>{const[a,s]=e.useState(t.options.worker),l=o.useRef(null);t.workermanager&&(t.workermanager.on_setWorker=s),t.set_worker(a),o.useEffect((()=>{t.auto_progress()}),[]),o.useEffect((()=>{t.local_state.setState({funcnodescontainerRef:l.current})}),[l]);const c=t.plugins();return o.createElement(QB,{plugins:c,fnrf_zst:t},o.createElement(FV.Provider,{value:t},o.createElement(RV,{asChild:!0},o.createElement(TV,{asChild:!0},o.createElement(hC,{style:{height:"100%",width:"100%"}},o.createElement("div",{ref:l,className:"funcnodesreactflowcontainer funcnodescontainer"},n.show&&o.createElement(EC,{...n}),o.createElement("div",{className:"funcnodesreactflowbody"},o.createElement(NV,{...r}),a&&i.show&&o.createElement(sN,null),a&&r.showNodeSettings&&o.createElement(CV,null)),o.createElement("div",{className:"funcnodesflaotingmenu"},o.createElement(TV.OutFullScreen,null,r.allowExpand&&o.createElement(RV.Trigger,null,o.createElement(RV.Expanded,null,o.createElement(Ly,{size:"xl",style:{padding:"4px"}})),o.createElement(RV.Collapsed,null,o.createElement(zy,{size:"xl",style:{padding:"4px"}})))),r.allowFullScreen&&o.createElement(TV.Trigger,null,o.createElement(TV.OutFullScreen,null,o.createElement(jy,{size:"xl",style:{padding:"4px"}})),o.createElement(TV.InFullScreen,null,o.createElement(Fy,{size:"xl",style:{padding:"4px"}}))))))))))},DV={},jV={id:"",debug:!1,useWorkerManager:!0,show_library:!0,header:{show:!0,showmenu:!0},flow:{minimap:!0,static:!1,minZoom:.1,maxZoom:5,allowFullScreen:!0,allowExpand:!0,showNodeSettings:!0},library:{show:!0}},FV=e.createContext(Js(jV)),LV=e=>{let t=T(e,{...jV,id:Su()}).new_obj;if(!t.useWorkerManager&&void 0===t.worker)return o.createElement("div",null,"Error: If you don't use a worker manager, you must provide a default worker.");if(e.useWorkerManager&&void 0===e.workermanager_url)return o.createElement("div",null,"Error: If you use a worker manager, you must provide a worker manager url.");if(void 0===window.fnrf_zst&&(window.fnrf_zst=DV),void 0===DV[t.id]){const e=Js(t);DV[t.id]=e}if(t.worker&&t.worker.set_zustand(DV[t.id]),DV[t.id].options.debug=t.debug,t.useWorkerManager){const e=new Au(t.workermanager_url,DV[t.id]);DV[t.id].workermanager=e}return o.createElement(PV,{fnrf_zst:DV[t.id],header:t.header,library:t.library,flow:t.flow})},zV={set_io_value:({nid:t,ioid:n,value:r,set_default:o=!1})=>{const i=e.useContext(FV);i.worker?.set_io_value({nid:t,ioid:n,value:r,set_default:o})}};exports.FuncNodesContext=FV,exports.FuncNodesReactFlowZustand=Js,exports.FuncNodesWorker=Iu,exports.FuncnodesReactFlow=LV,exports.ReactFlowLayer=NV,exports.RenderMappingProvider=QB,exports.WebSocketWorker=_u,exports.assert_full_node=z,exports.deep_update=T,exports.default=e=>{const t=new Zs("FuncNodes",e.debug?"debug":"info");t.debug("Initalizing FuncNodes with props:",e);let n=T(e,{...jV,id:Su()}).new_obj;if(void 0===e.worker&&void 0!==e.worker_url&&(n.useWorkerManager=!1,n.worker=new _u({url:e.worker_url,uuid:n.id,on_sync_complete:n.on_sync_complete})),void 0!==n.worker){const e=Js(n);n.worker.set_zustand(e)}if(void 0!==e.fnw_url){if(void 0===n.worker)throw new Error("defining fnw_url requires a worker to be defined");const t=async function(e,t=!0){try{const n=await fetch(e);if(!n.ok)throw new Error(`Failed to fetch from URL: ${n.status} ${n.statusText}`);const r=await n.blob();return await new Promise(((e,n)=>{const o=new FileReader;o.onload=()=>{const r=o.result;"string"!=typeof r&&(n("Failed to convert URL to Base64: No result from FileReader"),n(o.error)),e(t?r.split(",")[1]:r)},o.onerror=()=>n(o.error),o.readAsDataURL(r)}))}catch(e){throw console.error("Error converting URL to Base64:",e),e}}(e.fnw_url),r=n.worker.on_sync_complete,o=async e=>{const n=await t;e.on_sync_complete=r,await e.update_from_export(n)};n.worker.on_sync_complete=o}return t.debug("Initalizing FuncnodesReactFlow with props:",n),o.createElement("div",{className:"FuncnodesApp"},o.createElement(LV,{...n}))},exports.helperfunctions=zV;
|
|
156
|
+
*/var OB=function(){if(AB)return NB;AB=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,o=/([\\"])/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function a(e){var r=String(e);if(n.test(r))return r;if(r.length>0&&!t.test(r))throw new TypeError("invalid parameter value");return'"'+r.replace(o,"\\$1")+'"'}function s(e){this.parameters=Object.create(null),this.type=e}return NB.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,r=e.type;if(!r||!i.test(r))throw new TypeError("invalid type");var o=r;if(t&&"object"==typeof t)for(var s,l=Object.keys(t).sort(),c=0;c<l.length;c++){if(s=l[c],!n.test(s))throw new TypeError("invalid parameter name");o+="; "+s+"="+a(t[s])}return o},NB.parse=function(t){if(!t)throw new TypeError("argument string is required");var n="object"==typeof t?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(t):t;if("string"!=typeof n)throw new TypeError("argument string is required to be a string");var o=n.indexOf(";"),a=-1!==o?n.slice(0,o).trim():n.trim();if(!i.test(a))throw new TypeError("invalid media type");var l=new s(a.toLowerCase());if(-1!==o){var c,u,d;for(e.lastIndex=o;u=e.exec(n);){if(u.index!==o)throw new TypeError("invalid parameter format");o+=u[0].length,c=u[1].toLowerCase(),34===(d=u[2]).charCodeAt(0)&&-1!==(d=d.slice(1,-1)).indexOf("\\")&&(d=d.replace(r,"$1")),l.parameters[c]=d}if(o!==n.length)throw new TypeError("invalid parameter format")}return l},NB}(),RB=new Map,MB=function(e){return e.cloneNode(!0)},TB=function(){return"file:"===window.location.protocol},PB=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===r.readyState){var t=r.getResponseHeader("Content-Type");if(!t)throw new Error("Content type not found");var o=OB.parse(t).type;if("image/svg+xml"!==o&&"text/plain"!==o)throw new Error("Invalid content type: ".concat(o))}if(4===r.readyState){if(404===r.status||null===r.responseXML)throw new Error(TB()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(!(200===r.status||TB()&&0===r.status))throw new Error("There was a problem injecting the SVG: "+r.status+" "+r.statusText);n(null,r)}}catch(e){if(r.abort(),!(e instanceof Error))throw e;n(e,r)}},r.open("GET",e),r.withCredentials=t,r.overrideMimeType&&r.overrideMimeType("text/xml"),r.send()},DB={},jB=function(e,t){DB[e]=DB[e]||[],DB[e].push(t)},FB=function(e,t,n){if(RB.has(e)){var r=RB.get(e);if(void 0===r)return void jB(e,n);if(r instanceof SVGSVGElement)return void n(null,MB(r))}RB.set(e,void 0),jB(e,n),PB(e,t,(function(t,n){var r;t?RB.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&RB.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(DB[e])){var n=RB.get(e),r=DB[e][t];n instanceof SVGSVGElement&&r(null,MB(n)),n instanceof Error&&r(n),t===DB[e].length-1&&delete DB[e]}}),0)},n=0,r=DB[e].length;n<r;n++)t(n)}(e)}))},LB=function(e,t,n){PB(e,t,(function(e,t){var r;e?n(e):(null===(r=t.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)}))},zB=0,BB=[],VB={},GB="http://www.w3.org/1999/xlink",WB=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==BB.indexOf(e))return BB.splice(BB.indexOf(e),1),void(e=null);BB.push(e),e.setAttribute("src",""),(r?FB:LB)(s,o,(function(r,o){if(!o)return BB.splice(BB.indexOf(e),1),e=null,void a(r);var l=e.getAttribute("id");l&&o.setAttribute("id",l);var c=e.getAttribute("title");c&&o.setAttribute("title",c);var u=e.getAttribute("width");u&&o.setAttribute("width",u);var d=e.getAttribute("height");d&&o.setAttribute("height",d);var f=Array.from(new Set(Ad(Ad(Ad([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",f);var p=e.getAttribute("style");p&&o.setAttribute("style",p),o.setAttribute("data-src",s);var m=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(m,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var h,g,y,b,v,w={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(w).forEach((function(e){h=e,y=w[e];for(var t=function(e,t){var n;b=g[e].id,v=b+"-"+ ++zB,Array.prototype.forEach.call(y,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+b+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+b+'"?\\)'))||n[t].setAttribute(e,"url(#"+v+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,s=r.length;a<s;a++){var l=r[a].getAttributeNS(GB,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,u=i.length;c<u;c++)i[c].setAttributeNS(GB,"href","#"+v);g[e].id=v},n=0,r=(g=o.querySelectorAll(h+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var x,C,k=o.querySelectorAll("script"),E=[],S=0,I=k.length;S<I;S++)(C=k[S].getAttribute("type"))&&"application/ecmascript"!==C&&"application/javascript"!==C&&"text/javascript"!==C||((x=k[S].innerText||k[S].textContent)&&E.push(x),o.removeChild(k[S]));if(E.length>0&&("always"===t||"once"===t&&!VB[s])){for(var _=0,A=E.length;_<A;_++)new Function(E[_])(window);VB[s]=!0}var N=o.querySelectorAll("style");if(Array.prototype.forEach.call(N,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",GB),i(o),!e.parentNode)return BB.splice(BB.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),BB.splice(BB.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},HB=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],XB="http://www.w3.org/2000/svg",$B="http://www.w3.org/1999/xlink",ZB=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}Kz(t,e);var n=t.prototype;return n.renderSVG=function(){var e=this;if(this.reactWrapper instanceof function(e){return((null==e?void 0:e.ownerDocument)||document).defaultView||window}(this.reactWrapper).Node){var t,n,r=this.props,o=r.desc,i=r.evalScripts,a=r.httpRequestWithCredentials,s=r.renumerateIRIElements,l=r.src,c=r.title,u=r.useRequestCache,d=this.props.onError,f=this.props.beforeInjection,p=this.props.afterInjection,m=this.props.wrapper;"svg"===m?((t=document.createElementNS(XB,m)).setAttribute("xmlns",XB),t.setAttribute("xmlns:xlink",$B),n=document.createElementNS(XB,m)):(t=document.createElement(m),n=document.createElement(m)),t.appendChild(n),n.dataset.src=l,this.nonReactWrapper=this.reactWrapper.appendChild(t);var h=function(t){e.removeSVG(),e._isMounted?e.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){d(t)})):d(t)};!function(e,t){var n=void 0===t?{}:t,r=n.afterAll,o=void 0===r?function(){}:r,i=n.afterEach,a=void 0===i?function(){}:i,s=n.beforeEach,l=void 0===s?function(){}:s,c=n.cacheRequests,u=void 0===c||c,d=n.evalScripts,f=void 0===d?"never":d,p=n.httpRequestWithCredentials,m=void 0!==p&&p,h=n.renumerateIRIElements,g=void 0===h||h;if(e&&"length"in e)for(var y=0,b=0,v=e.length;b<v;b++)WB(e[b],f,g,u,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++y&&o(y)}));else e?WB(e,f,g,u,m,l,(function(t,n){a(t,n),o(1),e=null})):o(0)}(n,{afterEach:function(t,n){t?h(t):e._isMounted&&e.setState((function(){return{isLoading:!1}}),(function(){try{p(n)}catch(e){h(e)}}))},beforeEach:function(e){if(e.setAttribute("role","img"),o){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var n=document.createElement("desc");n.innerHTML=o,e.prepend(n)}if(c){var r=e.querySelector(":scope > title");r&&e.removeChild(r);var i=document.createElement("title");i.innerHTML=c,e.prepend(i)}try{f(e)}catch(e){h(e)}},cacheRequests:u,evalScripts:i,httpRequestWithCredentials:a,renumerateIRIElements:s})}},n.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(e){var t=this;(function(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1})(bR({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var n=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var r=e.wrapper,i=hR(e,HB),a=r;return o.createElement(a,bR({},i,{ref:this.refCallback},"svg"===r?{xmlns:XB,xmlnsXlink:$B}:{}),this.state.isLoading&&n&&o.createElement(n,null),this.state.hasError&&t&&o.createElement(t,null))},t}(o.Component);ZB.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},ZB.propTypes={afterInjection:ey.func,beforeInjection:ey.func,desc:ey.string,evalScripts:ey.oneOf(["always","once","never"]),fallback:ey.oneOfType([ey.func,ey.object,ey.string]),httpRequestWithCredentials:ey.bool,loading:ey.oneOfType([ey.func,ey.object,ey.string]),onError:ey.func,renumerateIRIElements:ey.bool,src:ey.string.isRequired,title:ey.string,useRequestCache:ey.bool,wrapper:ey.oneOf(["div","span","svg"])};const YB=({value:e,renderoptions:t})=>(void 0===t&&(t={}),void 0===t.format&&(t.format="jpeg"),o.createElement("img",{src:"data:image/"+t.format+";base64, "+e,style:{maxWidth:"100%",maxHeight:"100%"}})),UB=({value:e})=>o.createElement(ZB,{src:`data:image/svg+xml;base64,${btoa(e)}`,style:{maxWidth:"100%",maxHeight:"100%"},beforeInjection:e=>{e.classList.add("svg-class-name"),e.setAttribute("style","max-width: 100%; max-height: 100%;"),e.setAttribute("width","100%"),e.setAttribute("height","100%")}}),JB=({io:e})=>{let t=e.fullvalue;if(null==t&&(t=e.value),void 0===t&&(t=""),"string"!=typeof t||t.length%4!=0)return o.createElement("div",null,t);const n=Math.round(3*t.length/4);return o.createElement("div",null,o.createElement("pre",null,"Bytes(",n,")"))},KB=({io:e})=>{let t=e.fullvalue;return void 0===t&&(t=e.value),void 0===t&&(t={}),o.createElement(MD,{data:t})},qB={float:({io:e,inputconverter:t})=>lD({io:e,inputconverter:t,parser:parseFloat}),int:({io:e,inputconverter:t})=>lD({io:e,inputconverter:t,parser:parseInt}),bool:({io:t,inputconverter:n})=>{const r=e.useContext(zV),i=void 0===t.value,a=e.useRef(null);e.useEffect((()=>{a.current&&(a.current.indeterminate=i)}),[a,i]);return o.createElement("input",{ref:a,type:"checkbox",className:"styledcheckbox booleaninput",checked:!!n[1](t.value),onChange:e=>{let o=e.target.checked;try{o=n[0](e.target.checked)}catch(e){}r.worker?.set_io_value({nid:t.node,ioid:t.id,value:o,set_default:t.render_options.set_default})},disabled:t.connected})},string:cD,str:cD,color:({io:t})=>{const n=e.useContext(zV),r=t.value_options?.colorspace||"hex";let i=!1;return"string"!=typeof t.type&&"anyOf"in t.type&&void 0!==t.type.anyOf&&(i=t.type.anyOf.some((e=>"None"===e))),o.createElement(QN,{onChange:e=>{let o="<NoValue>";e&&(o=e[r]?e[r]():e.hex()),null===e&&(o=null),n.worker?.set_io_value({nid:t.node,ioid:t.id,value:o,set_default:t.render_options.set_default})},inicolordata:t.value,allow_null:i,inicolorspace:r})},select:mD,enum:mD,bytes:JB},QB={Inputrenderer:qB,Outputrenderer:{},HandlePreviewRenderer:{bytes:JB},DataOverlayRenderer:{},DataPreviewViewRenderer:{string:({io:e})=>{let t=e.fullvalue;return null==t&&(t=e.value),t=void 0===t?"":JSON.stringify(e.value).replace(/\\n/g,"\n"),o.createElement("div",null,o.createElement("pre",null,t))},table:({io:e})=>{let t=e.fullvalue;return null==t&&(t=e.value),void 0===t&&(t=[]),o.createElement(_B,{tabledata:t})},image:({io:e})=>{let t=e.fullvalue;return null==t&&(t=e.value),void 0===t&&(t=""),o.createElement(YB,{value:t})},svg:({io:e})=>{let t=e.fullvalue;return null==t&&(t=e.value),void 0===t&&(t=""),o.createElement(UB,{value:t})},dict:KB,bytes:JB},DataViewRenderer:{},InLineRenderer:{bytes:({io:e})=>{let t=e.fullvalue;null==t&&(t=e.value),t=void 0===t?"":JSON.stringify(e.value).replace(/\\n/g,"\n");return`Bytes(${Math.round(3*t.length/4)})`}}},eV=(e,t)=>{const n=t.options||{},r=void 0===n.overwrite||n.overwrite;switch(t.type){case"EXTEND_INPUT_RENDER":return!r&&e.Inputrenderer[t.payload.type]?e:{...e,Inputrenderer:{...e.Inputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_OUTPUT_RENDER":return!r&&e.Outputrenderer[t.payload.type]?e:{...e,Outputrenderer:{...e.Outputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_HANDLE_PREVIEW_RENDER":return!r&&e.HandlePreviewRenderer[t.payload.type]?e:{...e,HandlePreviewRenderer:{...e.HandlePreviewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_OVERLAY_RENDER":return!r&&e.DataOverlayRenderer[t.payload.type]?e:{...e,DataOverlayRenderer:{...e.DataOverlayRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_PREVIEW_RENDER":return!r&&e.DataPreviewViewRenderer[t.payload.type]?e:{...e,DataPreviewViewRenderer:{...e.DataPreviewViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_VIEW_RENDER":return!r&&e.DataViewRenderer[t.payload.type]?e:{...e,DataViewRenderer:{...e.DataViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_FROM_PLUGIN":let n=!1;const o=[[t.payload.plugin.input_renderers||{},e.Inputrenderer],[t.payload.plugin.output_renderers||{},e.Outputrenderer],[t.payload.plugin.handle_preview_renderers||{},e.HandlePreviewRenderer],[t.payload.plugin.data_overlay_renderers||{},e.DataOverlayRenderer],[t.payload.plugin.data_preview_renderers||{},e.DataPreviewViewRenderer],[t.payload.plugin.data_view_renderers||{},e.DataViewRenderer]];for(const[e,t]of o){if(Object.keys(e).length>0)if(r)n=!0;else for(const r in e)if(!t[r]){n=!0;break}if(n)break}if(!n)return e;for(const[e,t]of o)for(const n in e)!r&&t[n]||(t[n]=e[n]);return{...e};default:return e}},tV=({children:t,plugins:n,fnrf_zst:r})=>{const[i,a]=e.useReducer(eV,QB),s=(e,t)=>{a({type:"EXTEND_FROM_PLUGIN",payload:{plugin:e},options:t})};return e.useEffect((()=>{for(const e in n){const t=n[e].RendererPlugin;t&&s(t);const i=n[e].renderpluginfactory;i&&s(i({React:o,fnrf_zst:r}))}}),[n]),o.createElement(nV.Provider,{value:{Inputrenderer:i.Inputrenderer,Outputrenderer:i.Outputrenderer,HandlePreviewRenderer:i.HandlePreviewRenderer,DataOverlayRenderer:i.DataOverlayRenderer,DataPreviewViewRenderer:i.DataPreviewViewRenderer,DataViewRenderer:i.DataViewRenderer,InLineRenderer:i.InLineRenderer,extendInputRenderMapping:(e,t,n)=>{a({type:"EXTEND_INPUT_RENDER",payload:{type:e,component:t},options:n})},extendOutputRenderMapping:(e,t,n)=>{a({type:"EXTEND_OUTPUT_RENDER",payload:{type:e,component:t},options:n})},extendHandlePreviewRenderMapping:(e,t,n)=>{a({type:"EXTEND_HANDLE_PREVIEW_RENDER",payload:{type:e,component:t},options:n})},extendDataOverlayRenderMapping:(e,t,n)=>{a({type:"EXTEND_DATA_OVERLAY_RENDER",payload:{type:e,component:t},options:n})},extendDataPreviewRenderMapping:(e,t,n)=>{a({type:"EXTEND_DATA_PREVIEW_RENDER",payload:{type:e,component:t},options:n})},extendDataViewRenderMapping:(e,t,n)=>{a({type:"EXTEND_DATA_VIEW_RENDER",payload:{type:e,component:t},options:n})},extendFromPlugin:s}},t)},nV=e.createContext({Inputrenderer:QB.Inputrenderer,Outputrenderer:QB.Outputrenderer,HandlePreviewRenderer:QB.HandlePreviewRenderer,DataOverlayRenderer:QB.DataOverlayRenderer,DataPreviewViewRenderer:QB.DataPreviewViewRenderer,DataViewRenderer:QB.DataViewRenderer,InLineRenderer:QB.InLineRenderer,extendInputRenderMapping:(e,t,n)=>{},extendOutputRenderMapping:(e,t,n)=>{},extendHandlePreviewRenderMapping:(e,t,n)=>{},extendDataOverlayRenderMapping:(e,t,n)=>{},extendDataPreviewRenderMapping:(e,t,n)=>{},extendDataViewRenderMapping:(e,t,n)=>{},extendFromPlugin:(e,t)=>{}}),rV=({component:e,...t})=>o.createElement(e,{...t}),oV=t=>{const n=e.useContext(zV).render_options(),[r]=iV(t.type,n.typemap||{});if(!r)return KB;const{DataOverlayRenderer:o,DataPreviewViewRenderer:i}=e.useContext(nV);return o[r]?o[r]:i[r]?i[r]:KB},iV=(e,t)=>{if("string"==typeof e)return e in t?[t[e],e]:[e,e];if("allOf"in e&&void 0!==e.allOf)return[void 0,void 0];if("anyOf"in e&&void 0!==e.anyOf){const n=e.anyOf.map((e=>iV(e,t)));for(const e of n)switch(e[0]){case"bool":return["bool",e[1]];case"enum":return["enum",e[1]];case"float":return["float",e[1]];case"int":return["int",e[1]];case"string":case"str":return["string",e[1]]}return[void 0,void 0]}return"type"in e&&void 0!==e.type&&"enum"===e.type?["enum","enum"]:[void 0,void 0]},aV=({io:t,typestring:n,preview:r,...i})=>{const[a,s]=e.useState(!1),[l,c]=e.useState(!1),u=o.useContext(zV),[d,f]=t?(t=>{const n=e.useContext(zV).render_options(),[r]=iV(t.type,n.typemap||{}),{HandlePreviewRenderer:o,DataPreviewViewRenderer:i}=e.useContext(nV),a=oV(t);return r?o[r]?[o[r],a]:i[r]?[i[r],a]:[KB,a]:[KB,a]})(t):[void 0,void 0],p=u.local_state((()=>u.reactflowRef));return o.createElement(GN,{open:a||l,onOpenChange:c},o.createElement(WN,{asChild:!0},o.createElement(ci,{id:t.id,"data-type":n,...i})),o.createElement(HN,{container:p},o.createElement(XN,{className:"iotooltipcontent",sideOffset:5},o.createElement("div",{className:"iotooltip_container"},o.createElement("div",{className:"iotooltip_header"},a?o.createElement(Xy,{onClick:()=>s(!1)}):o.createElement(Hy,{onClick:()=>s(!0)}),f&&o.createElement(Uy,{title:t.full_id,trigger:o.createElement(jy,null),onOpenChange:e=>{e&&t.try_get_full_value&&t.try_get_full_value(),s(e)}},o.createElement(rV,{component:f,io:t}))),d?o.createElement(rV,{component:d,io:t}):`no preview available for "${n}"`),o.createElement($N,{className:"iotooltipcontentarrow"}))))},sV={"":[e=>e,e=>e],str_to_json:[e=>JSON.parse(e),e=>"string"==typeof e?e:JSON.stringify(e)],str_to_list:[e=>{try{const t=JSON.parse(e);return Array.isArray(t)?t:[t]}catch(t){try{return JSON.parse("["+e+"]")}catch(e){}}throw new Error("Invalid list")},e=>JSON.stringify(e)]},lV=({io:t})=>{const n=e.useContext(zV).render_options(),[r,i]=iV(t.render_options.type,n.typemap||{}),{Inputrenderer:a}=e.useContext(nV),s=r?t.value_options?.options?mD:a[r]:void 0,l=sV[(i&&n.inputconverter?.[i])??""];return o.createElement("div",{className:"nodeinput","data-type":r},o.createElement(aV,{io:t,typestring:r,position:So.Left,type:"target"}),s&&o.createElement("div",{className:"iovaluefield nodrag","data-type":r},o.createElement(s,{io:t,inputconverter:l})),o.createElement("div",{className:"ioname"},t.name),o.createElement(aV,{io:t,typestring:r,position:So.Right,type:"source"}))},cV=({io:t,typestring:n})=>{const{InLineRenderer:r}=e.useContext(nV);if(n&&r[n])return o.createElement("div",null,r[n]({io:t}));let i=t.fullvalue;return null==i&&(i=t.value),i=void 0===i?"":JSON.stringify(i).replace(/\\n/g,"\n"),i.length>63&&(i=i.slice(0,60)+"..."),o.createElement("div",null,i)},uV=({io:t})=>{const n=e.useContext(zV).render_options(),[r]=iV(t.type,n.typemap||{}),{Outputrenderer:i}=e.useContext(nV),a=r?i[r]:void 0;return o.createElement("div",{className:"nodeoutput","data-type":r},o.createElement(aV,{io:t,typestring:r,position:So.Right,type:"source"}),o.createElement("div",{className:"ioname"},t.name),a?o.createElement("div",{className:"iovaluefield nodrag"},o.createElement(a,{io:t})):o.createElement("div",{className:"iovaluefield"},o.createElement(cV,{io:t,typestring:r})))};function dV(e){return`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,"0")}`}function fV(e,t){const n=["","K","M","G","T"];let r=0;for(;e>=t&&r<n.length-1;)e/=t,r++;return[e.toFixed(2),n[r]]}const pV=({state:t,className:n="reacttqdm",...r})=>{const i=e.useRef(null),a=e.useRef(null);e.useEffect((()=>{const e=()=>{i.current&&a.current&&function(e,t,n={}){const{maxFontSize:r=100,minFontSize:o=6,decrementFactor:i=.9}=n;if(!e||!t)return;if(i>=1||i<=0)throw new Error("decrementFactor must be between 0 and 1");const a=e.getBoundingClientRect(),s=a.width,l=a.height;let c=r;t.style.whiteSpace="nowrap",t.style.display="inline-block",t.style.fontSize=c+"px";let u=t.getBoundingClientRect();for(;(u.width>s||u.height>l)&&c>o;)c*=i,t.style.fontSize=c+"px",u=t.getBoundingClientRect()}(i.current,a.current,{maxFontSize:12,decrementFactor:.9})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t]);const s=t.total?t.n/t.total*100:0;return o.createElement("div",{ref:i,className:n,...r},o.createElement("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},o.createElement("div",{className:n+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"}},o.createElement("div",{className:n+"-progress",style:{width:`${s}%`,height:"100%"}})),o.createElement("div",{className:n+"-text",ref:a},function(e={n:0,elapsed:0,ascii:!1,unit:"it",unit_scale:!1,unit_divisor:1e3}){let t=e.total??null;const{n:n,unit_scale:r,elapsed:o,unit:i,unit_divisor:a,prefix:s="",rate:l,postfix:c=null,initial:u=0}=e;null!==t&&n>=t+.5&&(t=null);let d=n,f=t,p=l;r&&!0!==r&&1!==r&&(null!==t&&(f=t*r),d=n*r,void 0!==l&&(p=l*r));const m=dV(o);void 0===p&&o>0&&(p=(d-u)/o);const h=p?1/p:void 0,[g,y]=p?fV(p,a):[void 0,""],[b,v]=h?fV(h,1e3):[void 0,""],w=h&&h>1?b?`${b}${v}s/`+i:"?":(g||"?")+`${y}${i}/s`,x=r?fV(d,a).join(""):d.toString(),C=r&&null!==f?fV(f,a).join(""):f?.toString()??"?",k=p?dV(p&&null!==f?(f-d)/p:0):"?",E=s?`${s}: `:"";if(null!==t){const e=` ${x}/${C} [${m} < ${k}, ${w}${c??""}]`;return`${E}${(d/t*100).toFixed(0)}%${e}`}return`${E}${x}${i} [${m}, ${w}${c??""}]`}(t))))},mV=({node_data:t})=>{const n=e.useContext(zV);return o.createElement("div",{className:"nodeheader",title:t.description||t.node_name},o.createElement("div",{className:"nodeheader_element"},o.createElement(Zy,{fontSize:"inherit",className:"triggerbutton",onClick:()=>{n.on_node_action({type:"trigger",from_remote:!1,id:t.id})}}),o.createElement($y,{fontSize:"inherit",onClick:async()=>{n.logger.info("nodestatus",await(n.worker?.get_node_status(t.id)))}})),o.createElement("div",{className:"nodeheader_element nodeheader_title"},o.createElement("div",{className:"nodeheader_title_text"},t.node_name)),o.createElement("div",{className:"nodeheader_element"},o.createElement(Gy,{fontSize:"inherit"})))},hV=({node_data:t})=>{const n=t.render_options?.data?.src?t.io[t.render_options?.data?.src]:void 0,[r,i]=n?(t=>{const n=e.useContext(zV).render_options(),[r]=iV(t.type,n.typemap||{}),o=oV(t),{DataPreviewViewRenderer:i,DataViewRenderer:a}=e.useContext(nV);return r?a[r]?[a[r],o]:i[r]?[i[r],o]:[KB,o]:[KB,o]})(n):[void 0,void 0];return o.createElement("div",{className:"nodrag nodedatabody","data-src":t.render_options?.data?.src||""},r&&n&&o.createElement(Uy,{title:n.full_id,trigger:o.createElement("div",{className:"nodedatabutton"},o.createElement(rV,{component:r,io:n})),onOpenChange:e=>{e&&n?.try_get_full_value&&n?.try_get_full_value()}},o.createElement(rV,{component:i,io:n})))},gV=({node_data:e})=>{const t=Object.values(e.io).filter((e=>e.is_input)),n=Object.values(e.io).filter((e=>!e.is_input));return e.render_options,o.createElement("div",{className:"nodebody"},n.map((e=>e.hidden?null:o.createElement(uV,{key:e.id,io:e}))),o.createElement(hV,{node_data:e}),t.map((e=>e.hidden?null:o.createElement(lV,{key:e.id,io:e}))))},yV=({node_data:t})=>{const[n,r]=e.useState(t.name);e.useEffect((()=>{r(t.name)}),[t]);const i=e.useContext(zV);return o.createElement("input",{className:"nodename_input",value:n,onChange:e=>{r(e.target.value)},onBlur:e=>{const n=e.target.value;i.on_node_action({type:"update",from_remote:!1,id:t.id,node:{name:n}})}})},bV=({node_data:e})=>e.progress?o.createElement(pV,{style:{height:"idle"===e.progress.prefix?"0px":void 0},state:e.progress,className:"nodeprogress"}):null,vV=({node_data:e})=>o.createElement("div",{className:"nodefooter"},e.error&&o.createElement("div",{className:"nodeerror"},e.error),o.createElement(bV,{node_data:e})),wV=({io:e})=>{const t=o.useContext(zV).render_options(),[n,r]=iV(e.render_options.type,t.typemap||{}),{Inputrenderer:i}=o.useContext(nV),a=n?e.value_options?.options?mD:i[n]:void 0,s=sV[(r&&t.inputconverter?.[r])??""];return o.createElement("div",{className:"nodesettings_component"},o.createElement("div",null,e.name),a&&o.createElement(a,{io:e,inputconverter:s}),o.createElement("div",null,o.createElement("label",null,"hidden:",o.createElement("input",{className:"styledcheckbox",type:"checkbox",disabled:e.connected,onChange:t=>{e.set_hidden?.(t.target.checked)},checked:e.hidden}))))},xV=({io:e})=>o.createElement("div",{className:"nodesettings_component"},o.createElement("div",null,e.name),o.createElement("div",null,o.createElement("label",null,"hidden:",o.createElement("input",{className:"styledcheckbox",type:"checkbox",disabled:e.connected,onChange:t=>{e.set_hidden?.(t.target.checked)},checked:e.hidden})))),CV=({nodestore:e})=>{const t=e(),n=Object.values(t.io).filter((e=>e.is_input)),r=Object.values(t.io).filter((e=>!e.is_input));return o.createElement("div",{className:"nodesettings_content"},o.createElement("div",{className:"nodesettings_section"},o.createElement("div",{className:"nodesettings_component"},o.createElement("div",null,"Name"),o.createElement("div",null,o.createElement(yV,{node_data:t})))),o.createElement("div",{className:"nodesettings_section"},o.createElement("div",null,"Inputs"),n.map((e=>o.createElement(wV,{io:e,key:e.id})))),o.createElement("div",{className:"nodesettings_section"},o.createElement("div",null,"Outputs"),r.map((e=>o.createElement(xV,{io:e,key:e.id})))))},kV=()=>{const e=o.useContext(zV),t=e.local_state((e=>e.selected_nodes));if(0===t.length)return o.createElement("div",null,"Node Settings");if(t.length>1)return o.createElement("div",null,"Multiple Nodes Selected");const n=e.nodespace.get_node(t[0]);return n?o.createElement(CV,{nodestore:n}):o.createElement("div",null,"Node not found")},EV=()=>{const e=o.useContext(zV),t=e.local_settings((e=>e.view_settings.expand_node_props)),n=e.local_settings((e=>e.update_view_settings));return o.createElement(bC,{maxSize:"300px",direction:"left",expanded:void 0!==t&&t,containerClassName:"pos-right pos-top bg1 h-12",className:"nodesettings_content",onExpandChange:e=>{n({expand_node_props:e})}},o.createElement(kV,null))},SV=e=>({nodes:e.nodes,edges:e.edges,onNodesChange:e.onNodesChange,onEdgesChange:e.onEdgesChange,onConnect:e.onConnect}),IV={default:({data:t})=>{const n=t.UseNodeStore(),r=n.properties["frontend:collapsed"]||!1,{visualTrigger:i}=(t=>{const n=e.useContext(zV),[r,o]=e.useState(!1);return e.useEffect((()=>{n.worker?.call_hooks("node_mounted",t.id)}),[n.worker,t.id]),e.useEffect((()=>{let e;return t.in_trigger&&!r?o(!0):r&&(e=setTimeout((()=>o(!1)),200)),()=>clearTimeout(e)}),[t.in_trigger,r]),{visualTrigger:r}})(n);return o.createElement(o.Fragment,null,o.createElement("div",{className:"innernode"+(i?" intrigger":"")+(n.error?" error":"")},o.createElement(mV,{node_data:n}),o.createElement(yV,{node_data:n}),r?null:o.createElement(gV,{node_data:n}),o.createElement(vV,{node_data:n})))}},_V={default:({id:e,sourceX:t,sourceY:n,targetX:r,targetY:i,sourcePosition:a,targetPosition:s,data:l,...c})=>{const[u]=Lo({sourceX:t,sourceY:n,sourcePosition:a,targetX:r,targetY:i,targetPosition:s});return o.createElement(o.Fragment,null,o.createElement(go,{id:e,path:u,...c}))}},AV=()=>{const t=Zi();return e.useContext(zV).rf_instance=t,o.createElement(o.Fragment,null)},NV=()=>{const t=e.useContext(zV),n=Pi("Delete"),r=Hr(Cs,Z),i=Hr(xs,Z);if(n){for(const e of r)if(e.selected){if(!t.worker)return o.createElement(o.Fragment,null);if(!e.source||!e.target)return o.createElement(o.Fragment,null);if(!e.sourceHandle||!e.targetHandle)return o.createElement(o.Fragment,null);t.worker.remove_edge({src_nid:e.source,src_ioid:e.sourceHandle,trg_nid:e.target,trg_ioid:e.targetHandle})}for(const e of i)if(e.selected){if(!t.worker)return o.createElement(o.Fragment,null);t.worker.remove_node(e.id)}}return o.createElement(o.Fragment,null)},OV=({id:t,top:n,left:r,right:i,bottom:a,...s})=>{const{getNode:l,setNodes:c,addNodes:u,setEdges:d}=Zi(),f=e.useContext(zV),p=e.useCallback((()=>{const e=l(t);if(!e)return;const n={x:e.position.x+50,y:e.position.y+50};u({...e,id:`${e.id}-copy`,position:n})}),[t,l,u]),m=e.useCallback((()=>{f.on_node_action({type:"delete",id:t,from_remote:!1})}),[t,c,d]),h=f.nodespace.get_node(t,!1);if(!h)return o.createElement(o.Fragment,null," ");const g=h();return o.createElement("div",{style:{top:n,left:r,right:i,bottom:a},className:"context-menu",...s},o.createElement("p",{style:{fontWeight:"bold"}},o.createElement("small",null,g.name)),o.createElement("button",{onClick:p},"duplicate"),o.createElement("button",{onClick:m},"delete"))},RV=t=>{const n=e.useContext(zV),r=e.useRef(null);e.useEffect((()=>{n.reactflowRef=r.current}),[r]);const[i,a]=e.useState(null),s=e.useCallback((()=>a(null)),[a]),{nodes:l,edges:c,onNodesChange:u,onEdgesChange:d,onConnect:f}=n.useReactFlowStore(dN(SV));return o.createElement("div",{className:"reactflowlayer"},o.createElement(ws,{nodes:l,edges:c,onNodesChange:u,onEdgesChange:d,onConnect:f,nodeTypes:IV,edgeTypes:_V,minZoom:t.minZoom,maxZoom:t.maxZoom,fitView:!0,onSelectionChange:({nodes:e,edges:t})=>{const r=n.local_state.getState();n.local_state.setState({...r,selected_nodes:e.map((e=>e.id)),selected_edges:t.map((e=>e.id))})},ref:r,onPaneClick:s,panOnDrag:!t.static},o.createElement(AV,null),o.createElement(NV,null),o.createElement(zs,{color:"#888",gap:16,size:1}),t.minimap&&o.createElement(Ms,{nodeStrokeWidth:3,pannable:!t.static,zoomable:!t.static,zoomStep:3}),i&&o.createElement(OV,{onClick:s,...i})))},MV=e.createContext(void 0),TV=e.forwardRef(((t,n)=>{const{asChild:r,children:a,className:s,style:l,...c}=t,[u,d]=e.useState(!1),f=e.useRef(null),[p,m]=e.useState(null),[h,g]=e.useState({}),y=t.htime||300,b=t.vtime||300,v=t.hdelay||0,w=t.vdelay||200;e.useImperativeHandle(n,(()=>f.current),[]);let x;if(r&&o.isValidElement(a)){const e=a,t=[e.props.className,s,"smooth-expand",u?"smooth-expand-expanded":""].filter(Boolean).join(" "),n={...e.props.style,...l,...h};x=o.cloneElement(e,{ref:f,className:t,style:n,...c})}else x=o.createElement("div",{ref:f,...c,className:`smooth-expand ${u?"smooth-expand-expanded":""} ${s||""}`,style:{...l,...h}},a);const C=o.createElement(MV.Provider,{value:{isExpanded:u,toggleExpand:async()=>{f.current&&(u?await(async()=>{if(!f.current)return;if(!p)return;const e={transitionProperty:"width, left, height, top",transitionDuration:`${y}ms, ${y}ms, ${b}ms, ${b}ms`};g((t=>({...t,...e})));const[t,n,r,o]=p,i=new Promise((e=>{setTimeout((()=>{g((e=>({...e,left:`${t}px`,width:`${r}px`}))),e()}),w)})),a=new Promise((e=>{setTimeout((()=>{g((e=>({...e,top:`${n}px`,height:`${o}px`}))),e()}),v)})),s=Math.max(y+v,b+w),l=new Promise((e=>{setTimeout((()=>{e()}),s)}));await Promise.all([i,a,l]),f.current.style.transition="",g({}),d(!1)})():await(async()=>{if(!f.current)return;f.current.style.transition="none",f.current.style.position="",f.current.style.top="",f.current.style.left="",f.current.style.width="",f.current.style.height="";const e=f.current.getBoundingClientRect();m([e.left,e.top,e.width,e.height]),f.current.style.transition="none",g({position:"absolute",top:`${e.top}px`,left:`${e.left}px`,width:`${e.width}px`,height:`${e.height}px`}),g((e=>({...e,transitionProperty:"width, left, height, top",transitionDuration:`${y}ms, ${y}ms, ${b}ms, ${b}ms`}))),d(!0);const t=new Promise((e=>{setTimeout((()=>{g((e=>({...e,left:"0px",width:"100vw"}))),e()}),v)})),n=new Promise((e=>{setTimeout((()=>{g((e=>({...e,top:"0px",height:"100vh"}))),e()}),w)})),r=Math.max(y+v,b+w),o=new Promise((e=>{setTimeout((()=>{e()}),r)}));await Promise.all([t,n,o])})())}}},x);return u?i.createPortal(C,document.body):C}));TV.Trigger=function({children:t}){const n=e.useContext(MV);if(!n)throw new Error("SmoothExpandComponent.Trigger must be used within a SmoothExpandComponent");return o.createElement("div",{style:{cursor:"pointer"},onClick:n.toggleExpand},t)},TV.Expanded=function({children:t}){const n=e.useContext(MV);if(!n)throw new Error("SmoothExpandComponent.Expanded must be used within a SmoothExpandComponent");return n.isExpanded?o.createElement(o.Fragment,null,t):null},TV.Collapsed=function({children:t}){const n=e.useContext(MV);if(!n)throw new Error("SmoothExpandComponent.Collapsed must be used within a SmoothExpandComponent");return n.isExpanded?null:o.createElement(o.Fragment,null,t)};const PV=o.createContext(void 0),DV=e.forwardRef(((t,n)=>{const{asChild:r,children:i,className:a,style:s,...l}=t,c=e.useRef(null);e.useImperativeHandle(n,(()=>c.current),[]);const[u,d]=e.useState(!1),f=e.useCallback((async()=>{try{const e=c.current;if(!e)return;if(u){const e=document;e.exitFullscreen?await e.exitFullscreen():e.mozCancelFullScreen?await e.mozCancelFullScreen():e.webkitExitFullscreen?await e.webkitExitFullscreen():e.msExitFullscreen&&await e.msExitFullscreen(),d(!1)}else e.requestFullscreen?await e.requestFullscreen():e.mozRequestFullScreen?await e.mozRequestFullScreen():e.webkitRequestFullscreen?await e.webkitRequestFullscreen():e.msRequestFullscreen&&await e.msRequestFullscreen(),d(!0)}catch(e){console.error("Error toggling fullscreen",e)}}),[u]);let p;if(e.useEffect((()=>{const e=()=>{const e=document.fullscreenElement;d(!!e)};return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}}),[]),r&&o.isValidElement(i)){const e=i,t=[e.props.className,a].filter(Boolean).join(" "),n={...e.props.style,...s};p=o.cloneElement(e,{ref:c,className:t,style:n,...l})}else p=o.createElement("div",{ref:c,...l,className:a,style:s},i);return o.createElement(PV.Provider,{value:{isFullScreen:u,toggleFullscreen:f}},p)}));DV.Trigger=function({children:e}){const t=o.useContext(PV);if(!t)throw new Error("FullScreenComponent.Trigger must be used within a FullScreenComponent");return o.createElement("div",{style:{cursor:"pointer"},onClick:t.toggleFullscreen},e)},DV.InFullScreen=function({children:e}){const t=o.useContext(PV);if(!t)throw new Error("FullScreenComponent.Expanded must be used within a FullScreenComponent");return t.isFullScreen?o.createElement(o.Fragment,null,e):null},DV.OutFullScreen=function({children:e}){const t=o.useContext(PV);if(!t)throw new Error("FullScreenComponent.Collapsed must be used within a FullScreenComponent");return t.isFullScreen?null:o.createElement(o.Fragment,null,e)};const jV=({fnrf_zst:t,header:n,flow:r,library:i})=>{const[a,s]=e.useState(t.options.worker),l=o.useRef(null);t.workermanager&&(t.workermanager.on_setWorker=s),t.set_worker(a),o.useEffect((()=>{t.auto_progress()}),[]),o.useEffect((()=>{t.local_state.setState({funcnodescontainerRef:l.current})}),[l]);const c=t.plugins();return o.createElement(tV,{plugins:c,fnrf_zst:t},o.createElement(zV.Provider,{value:t},o.createElement(TV,{asChild:!0},o.createElement(DV,{asChild:!0},o.createElement(hC,{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",flex:1}},o.createElement("div",{ref:l,className:"funcnodesreactflowcontainer funcnodescontainer"},n.show&&o.createElement(EC,{...n}),o.createElement("div",{className:"funcnodesreactflowbody"},o.createElement(RV,{...r}),a&&i.show&&o.createElement(cN,null),a&&r.showNodeSettings&&o.createElement(EV,null)),o.createElement("div",{className:"funcnodesflaotingmenu"},o.createElement(DV.OutFullScreen,null,r.allowExpand&&o.createElement(TV.Trigger,null,o.createElement(TV.Expanded,null,o.createElement(Ly,{size:"xl",style:{padding:"4px"}})),o.createElement(TV.Collapsed,null,o.createElement(zy,{size:"xl",style:{padding:"4px"}})))),r.allowFullScreen&&o.createElement(DV.Trigger,null,o.createElement(DV.OutFullScreen,null,o.createElement(jy,{size:"xl",style:{padding:"4px"}})),o.createElement(DV.InFullScreen,null,o.createElement(Fy,{size:"xl",style:{padding:"4px"}}))))))))))},FV={},LV={id:"",debug:!1,useWorkerManager:!0,show_library:!0,header:{show:!0,showmenu:!0},flow:{minimap:!0,static:!1,minZoom:.1,maxZoom:5,allowFullScreen:!0,allowExpand:!0,showNodeSettings:!0},library:{show:!0}},zV=e.createContext(Js(LV)),BV=e=>{let t=T(e,{...LV,id:Su()}).new_obj;if(!t.useWorkerManager&&void 0===t.worker)return o.createElement("div",null,"Error: If you don't use a worker manager, you must provide a default worker.");if(e.useWorkerManager&&void 0===e.workermanager_url)return o.createElement("div",null,"Error: If you use a worker manager, you must provide a worker manager url.");if(void 0===window.fnrf_zst&&(window.fnrf_zst=FV),void 0===FV[t.id]){const e=Js(t);FV[t.id]=e}if(t.worker&&t.worker.set_zustand(FV[t.id]),FV[t.id].options.debug=t.debug,t.useWorkerManager){const e=new Au(t.workermanager_url,FV[t.id]);FV[t.id].workermanager=e}return o.createElement(jV,{fnrf_zst:FV[t.id],header:t.header,library:t.library,flow:t.flow})},VV={set_io_value:({nid:t,ioid:n,value:r,set_default:o=!1})=>{const i=e.useContext(zV);i.worker?.set_io_value({nid:t,ioid:n,value:r,set_default:o})}};exports.FuncNodesContext=zV,exports.FuncNodesReactFlowZustand=Js,exports.FuncNodesWorker=Iu,exports.FuncnodesReactFlow=BV,exports.ReactFlowLayer=RV,exports.RenderMappingProvider=tV,exports.WebSocketWorker=_u,exports.assert_full_node=z,exports.deep_update=T,exports.default=e=>{const t=new Zs("FuncNodes",e.debug?"debug":"info");t.debug("Initalizing FuncNodes with props:",e);let n=T(e,{...LV,id:Su()}).new_obj;if(void 0===e.worker&&void 0!==e.worker_url&&(n.useWorkerManager=!1,n.worker=new _u({url:e.worker_url,uuid:n.id,on_sync_complete:n.on_sync_complete})),void 0!==n.worker){const e=Js(n);n.worker.set_zustand(e)}if(void 0!==e.fnw_url){if(void 0===n.worker)throw new Error("defining fnw_url requires a worker to be defined");const t=async function(e,t=!0){try{const n=await fetch(e);if(!n.ok)throw new Error(`Failed to fetch from URL: ${n.status} ${n.statusText}`);const r=await n.blob();return await new Promise(((e,n)=>{const o=new FileReader;o.onload=()=>{const r=o.result;"string"!=typeof r&&(n("Failed to convert URL to Base64: No result from FileReader"),n(o.error)),e(t?r.split(",")[1]:r)},o.onerror=()=>n(o.error),o.readAsDataURL(r)}))}catch(e){throw console.error("Error converting URL to Base64:",e),e}}(e.fnw_url),r=n.worker.on_sync_complete,o=async e=>{const n=await t;e.on_sync_complete=r,await e.update_from_export(n)};n.worker.on_sync_complete=o}return t.debug("Initalizing FuncnodesReactFlow with props:",n),o.createElement("div",{className:"FuncnodesApp"},o.createElement(BV,{...n}))},exports.helperfunctions=VV;
|
|
157
157
|
//# sourceMappingURL=index.umd.js.map
|