@ws-ui/shared 1.11.3-rc2 → 1.11.3

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/index.cjs.js CHANGED
@@ -1,152 +1,157 @@
1
- "use strict";var CR=Object.defineProperty;var lv=e=>{throw TypeError(e)};var PR=(e,t,r)=>t in e?CR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Oe=(e,t,r)=>PR(e,typeof t!="symbol"?t+"":t,r),Uu=(e,t,r)=>t.has(e)||lv("Cannot "+r);var de=(e,t,r)=>(Uu(e,t,"read from private field"),r?r.call(e):t.get(e)),Ht=(e,t,r)=>t.has(e)?lv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),gt=(e,t,r,n)=>(Uu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),We=(e,t,r)=>(Uu(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),H=require("react"),ti=require("react-dom"),wt=require("@ws-ui/icons"),Kf=require("@emotion/react");function j0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const z=j0(H),IR=j0(ti),F0=({children:e,container:t=document.body})=>ti.createPortal(e,t);var cv=function(t){return t.reduce(function(r,n){var o=n[0],a=n[1];return r[o]=a,r},{})},uv=typeof window<"u"&&window.document&&window.document.createElement?z.useLayoutEffect:z.useEffect,rr="top",Cr="bottom",Pr="right",nr="left",Ad="auto",qa=[rr,Cr,Pr,nr],go="start",Ia="end",NR="clippingParents",H0="viewport",Vo="popper",MR="reference",fv=qa.reduce(function(e,t){return e.concat([t+"-"+go,t+"-"+Ia])},[]),W0=[].concat(qa,[Ad]).reduce(function(e,t){return e.concat([t,t+"-"+go,t+"-"+Ia])},[]),DR="beforeRead",$R="read",LR="afterRead",zR="beforeMain",jR="main",FR="afterMain",HR="beforeWrite",WR="write",BR="afterWrite",VR=[DR,$R,LR,zR,jR,FR,HR,WR,BR];function ln(e){return e?(e.nodeName||"").toLowerCase():null}function pr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pi(e){var t=pr(e).Element;return e instanceof t||e instanceof Element}function Rr(e){var t=pr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Td(e){if(typeof ShadowRoot>"u")return!1;var t=pr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function UR(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!Rr(a)||!ln(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(l){var c=o[l];c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":c)}))})}function qR(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),c=l.reduce(function(u,d){return u[d]="",u},{});!Rr(o)||!ln(o)||(Object.assign(o.style,c),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const GR={name:"applyStyles",enabled:!0,phase:"write",fn:UR,effect:qR,requires:["computeStyles"]};function an(e){return e.split("-")[0]}var Ri=Math.max,Bl=Math.min,vo=Math.round;function Zf(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function B0(){return!/^((?!chrome|android).)*safari/i.test(Zf())}function mo(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Rr(e)&&(o=e.offsetWidth>0&&vo(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&vo(n.height)/e.offsetHeight||1);var l=Pi(e)?pr(e):window,c=l.visualViewport,u=!B0()&&r,d=(n.left+(u&&c?c.offsetLeft:0))/o,p=(n.top+(u&&c?c.offsetTop:0))/a,h=n.width/o,g=n.height/a;return{width:h,height:g,top:p,right:d+h,bottom:p+g,left:d,x:d,y:p}}function Rd(e){var t=mo(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function V0(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Td(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Rn(e){return pr(e).getComputedStyle(e)}function YR(e){return["table","td","th"].indexOf(ln(e))>=0}function ri(e){return((Pi(e)?e.ownerDocument:e.document)||window.document).documentElement}function uc(e){return ln(e)==="html"?e:e.assignedSlot||e.parentNode||(Td(e)?e.host:null)||ri(e)}function dv(e){return!Rr(e)||Rn(e).position==="fixed"?null:e.offsetParent}function KR(e){var t=/firefox/i.test(Zf()),r=/Trident/i.test(Zf());if(r&&Rr(e)){var n=Rn(e);if(n.position==="fixed")return null}var o=uc(e);for(Td(o)&&(o=o.host);Rr(o)&&["html","body"].indexOf(ln(o))<0;){var a=Rn(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Ga(e){for(var t=pr(e),r=dv(e);r&&YR(r)&&Rn(r).position==="static";)r=dv(r);return r&&(ln(r)==="html"||ln(r)==="body"&&Rn(r).position==="static")?t:r||KR(e)||t}function Cd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oa(e,t,r){return Ri(e,Bl(t,r))}function ZR(e,t,r){var n=Oa(e,t,r);return n>r?r:n}function U0(){return{top:0,right:0,bottom:0,left:0}}function q0(e){return Object.assign({},U0(),e)}function G0(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var XR=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,q0(typeof t!="number"?t:G0(t,qa))};function JR(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,c=an(r.placement),u=Cd(c),d=[nr,Pr].indexOf(c)>=0,p=d?"height":"width";if(!(!a||!l)){var h=XR(o.padding,r),g=Rd(a),y=u==="y"?rr:nr,S=u==="y"?Cr:Pr,v=r.rects.reference[p]+r.rects.reference[u]-l[u]-r.rects.popper[p],b=l[u]-r.rects.reference[u],m=Ga(a),w=m?u==="y"?m.clientHeight||0:m.clientWidth||0:0,x=v/2-b/2,k=h[y],E=w-g[p]-h[S],R=w/2-g[p]/2+x,F=Oa(k,R,E),A=u;r.modifiersData[n]=(t={},t[A]=F,t.centerOffset=F-R,t)}}function QR(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||V0(t.elements.popper,o)&&(t.elements.arrow=o))}const eC={name:"arrow",enabled:!0,phase:"main",fn:JR,effect:QR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bo(e){return e.split("-")[1]}var tC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rC(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:vo(r*o)/o||0,y:vo(n*o)/o||0}}function pv(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,l=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,g=l.x,y=g===void 0?0:g,S=l.y,v=S===void 0?0:S,b=typeof p=="function"?p({x:y,y:v}):{x:y,y:v};y=b.x,v=b.y;var m=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),x=nr,k=rr,E=window;if(d){var R=Ga(r),F="clientHeight",A="clientWidth";if(R===pr(r)&&(R=ri(r),Rn(R).position!=="static"&&c==="absolute"&&(F="scrollHeight",A="scrollWidth")),R=R,o===rr||(o===nr||o===Pr)&&a===Ia){k=Cr;var N=h&&R===E&&E.visualViewport?E.visualViewport.height:R[F];v-=N-n.height,v*=u?1:-1}if(o===nr||(o===rr||o===Cr)&&a===Ia){x=Pr;var V=h&&R===E&&E.visualViewport?E.visualViewport.width:R[A];y-=V-n.width,y*=u?1:-1}}var $=Object.assign({position:c},d&&tC),M=p===!0?rC({x:y,y:v},pr(r)):{x:y,y:v};if(y=M.x,v=M.y,u){var B;return Object.assign({},$,(B={},B[k]=w?"0":"",B[x]=m?"0":"",B.transform=(E.devicePixelRatio||1)<=1?"translate("+y+"px, "+v+"px)":"translate3d("+y+"px, "+v+"px, 0)",B))}return Object.assign({},$,(t={},t[k]=w?v+"px":"",t[x]=m?y+"px":"",t.transform="",t))}function nC(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,l=a===void 0?!0:a,c=r.roundOffsets,u=c===void 0?!0:c,d={placement:an(t.placement),variation:bo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,pv(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,pv(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const iC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nC,data:{}};var Vs={passive:!0};function oC(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,l=n.resize,c=l===void 0?!0:l,u=pr(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(p){p.addEventListener("scroll",r.update,Vs)}),c&&u.addEventListener("resize",r.update,Vs),function(){a&&d.forEach(function(p){p.removeEventListener("scroll",r.update,Vs)}),c&&u.removeEventListener("resize",r.update,Vs)}}const aC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oC,data:{}};var sC={left:"right",right:"left",bottom:"top",top:"bottom"};function kl(e){return e.replace(/left|right|bottom|top/g,function(t){return sC[t]})}var lC={start:"end",end:"start"};function hv(e){return e.replace(/start|end/g,function(t){return lC[t]})}function Pd(e){var t=pr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Id(e){return mo(ri(e)).left+Pd(e).scrollLeft}function cC(e,t){var r=pr(e),n=ri(e),o=r.visualViewport,a=n.clientWidth,l=n.clientHeight,c=0,u=0;if(o){a=o.width,l=o.height;var d=B0();(d||!d&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:a,height:l,x:c+Id(e),y:u}}function uC(e){var t,r=ri(e),n=Pd(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ri(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Ri(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+Id(e),u=-n.scrollTop;return Rn(o||r).direction==="rtl"&&(c+=Ri(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:c,y:u}}function Nd(e){var t=Rn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Y0(e){return["html","body","#document"].indexOf(ln(e))>=0?e.ownerDocument.body:Rr(e)&&Nd(e)?e:Y0(uc(e))}function Aa(e,t){var r;t===void 0&&(t=[]);var n=Y0(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=pr(n),l=o?[a].concat(a.visualViewport||[],Nd(n)?n:[]):n,c=t.concat(l);return o?c:c.concat(Aa(uc(l)))}function Xf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fC(e,t){var r=mo(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function gv(e,t,r){return t===H0?Xf(cC(e,r)):Pi(t)?fC(t,r):Xf(uC(ri(e)))}function dC(e){var t=Aa(uc(e)),r=["absolute","fixed"].indexOf(Rn(e).position)>=0,n=r&&Rr(e)?Ga(e):e;return Pi(n)?t.filter(function(o){return Pi(o)&&V0(o,n)&&ln(o)!=="body"}):[]}function pC(e,t,r,n){var o=t==="clippingParents"?dC(e):[].concat(t),a=[].concat(o,[r]),l=a[0],c=a.reduce(function(u,d){var p=gv(e,d,n);return u.top=Ri(p.top,u.top),u.right=Bl(p.right,u.right),u.bottom=Bl(p.bottom,u.bottom),u.left=Ri(p.left,u.left),u},gv(e,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function K0(e){var t=e.reference,r=e.element,n=e.placement,o=n?an(n):null,a=n?bo(n):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,u;switch(o){case rr:u={x:l,y:t.y-r.height};break;case Cr:u={x:l,y:t.y+t.height};break;case Pr:u={x:t.x+t.width,y:c};break;case nr:u={x:t.x-r.width,y:c};break;default:u={x:t.x,y:t.y}}var d=o?Cd(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case go:u[d]=u[d]-(t[p]/2-r[p]/2);break;case Ia:u[d]=u[d]+(t[p]/2-r[p]/2);break}}return u}function Na(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,l=a===void 0?e.strategy:a,c=r.boundary,u=c===void 0?NR:c,d=r.rootBoundary,p=d===void 0?H0:d,h=r.elementContext,g=h===void 0?Vo:h,y=r.altBoundary,S=y===void 0?!1:y,v=r.padding,b=v===void 0?0:v,m=q0(typeof b!="number"?b:G0(b,qa)),w=g===Vo?MR:Vo,x=e.rects.popper,k=e.elements[S?w:g],E=pC(Pi(k)?k:k.contextElement||ri(e.elements.popper),u,p,l),R=mo(e.elements.reference),F=K0({reference:R,element:x,placement:o}),A=Xf(Object.assign({},x,F)),N=g===Vo?A:R,V={top:E.top-N.top+m.top,bottom:N.bottom-E.bottom+m.bottom,left:E.left-N.left+m.left,right:N.right-E.right+m.right},$=e.modifiersData.offset;if(g===Vo&&$){var M=$[o];Object.keys(V).forEach(function(B){var j=[Pr,Cr].indexOf(B)>=0?1:-1,I=[rr,Cr].indexOf(B)>=0?"y":"x";V[B]+=M[I]*j})}return V}function hC(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,l=r.padding,c=r.flipVariations,u=r.allowedAutoPlacements,d=u===void 0?W0:u,p=bo(n),h=p?c?fv:fv.filter(function(S){return bo(S)===p}):qa,g=h.filter(function(S){return d.indexOf(S)>=0});g.length===0&&(g=h);var y=g.reduce(function(S,v){return S[v]=Na(e,{placement:v,boundary:o,rootBoundary:a,padding:l})[an(v)],S},{});return Object.keys(y).sort(function(S,v){return y[S]-y[v]})}function gC(e){if(an(e)===Ad)return[];var t=kl(e);return[hv(e),t,hv(t)]}function vC(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!0:l,u=r.fallbackPlacements,d=r.padding,p=r.boundary,h=r.rootBoundary,g=r.altBoundary,y=r.flipVariations,S=y===void 0?!0:y,v=r.allowedAutoPlacements,b=t.options.placement,m=an(b),w=m===b,x=u||(w||!S?[kl(b)]:gC(b)),k=[b].concat(x).reduce(function(J,ae){return J.concat(an(ae)===Ad?hC(t,{placement:ae,boundary:p,rootBoundary:h,padding:d,flipVariations:S,allowedAutoPlacements:v}):ae)},[]),E=t.rects.reference,R=t.rects.popper,F=new Map,A=!0,N=k[0],V=0;V<k.length;V++){var $=k[V],M=an($),B=bo($)===go,j=[rr,Cr].indexOf(M)>=0,I=j?"width":"height",Y=Na(t,{placement:$,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),X=j?B?Pr:nr:B?Cr:rr;E[I]>R[I]&&(X=kl(X));var K=kl(X),me=[];if(a&&me.push(Y[M]<=0),c&&me.push(Y[X]<=0,Y[K]<=0),me.every(function(J){return J})){N=$,A=!1;break}F.set($,me)}if(A)for(var L=S?3:1,U=function(ae){var se=k.find(function(ne){var ce=F.get(ne);if(ce)return ce.slice(0,ae).every(function(he){return he})});if(se)return N=se,"break"},te=L;te>0;te--){var ee=U(te);if(ee==="break")break}t.placement!==N&&(t.modifiersData[n]._skip=!0,t.placement=N,t.reset=!0)}}const mC={name:"flip",enabled:!0,phase:"main",fn:vC,requiresIfExists:["offset"],data:{_skip:!1}};function vv(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function mv(e){return[rr,Pr,Cr,nr].some(function(t){return e[t]>=0})}function bC(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,l=Na(t,{elementContext:"reference"}),c=Na(t,{altBoundary:!0}),u=vv(l,n),d=vv(c,o,a),p=mv(u),h=mv(d);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const yC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bC};function wC(e,t,r){var n=an(e),o=[nr,rr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],c=a[1];return l=l||0,c=(c||0)*o,[nr,Pr].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function xC(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,l=W0.reduce(function(p,h){return p[h]=wC(h,t.rects,a),p},{}),c=l[t.placement],u=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=l}const SC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xC};function _C(e){var t=e.state,r=e.name;t.modifiersData[r]=K0({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const EC={name:"popperOffsets",enabled:!0,phase:"read",fn:_C,data:{}};function kC(e){return e==="x"?"y":"x"}function OC(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!1:l,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.padding,g=r.tether,y=g===void 0?!0:g,S=r.tetherOffset,v=S===void 0?0:S,b=Na(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:p}),m=an(t.placement),w=bo(t.placement),x=!w,k=Cd(m),E=kC(k),R=t.modifiersData.popperOffsets,F=t.rects.reference,A=t.rects.popper,N=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,V=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(R){if(a){var B,j=k==="y"?rr:nr,I=k==="y"?Cr:Pr,Y=k==="y"?"height":"width",X=R[k],K=X+b[j],me=X-b[I],L=y?-A[Y]/2:0,U=w===go?F[Y]:A[Y],te=w===go?-A[Y]:-F[Y],ee=t.elements.arrow,J=y&&ee?Rd(ee):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:U0(),se=ae[j],ne=ae[I],ce=Oa(0,F[Y],J[Y]),he=x?F[Y]/2-L-ce-se-V.mainAxis:U-ce-se-V.mainAxis,pe=x?-F[Y]/2+L+ce+ne+V.mainAxis:te+ce+ne+V.mainAxis,Se=t.elements.arrow&&Ga(t.elements.arrow),Z=Se?k==="y"?Se.clientTop||0:Se.clientLeft||0:0,Pe=(B=$==null?void 0:$[k])!=null?B:0,ge=X+he-Pe-Z,Et=X+pe-Pe,vr=Oa(y?Bl(K,ge):K,X,y?Ri(me,Et):me);R[k]=vr,M[k]=vr-X}if(c){var Ct,zi=k==="x"?rr:nr,ji=k==="x"?Cr:Pr,zt=R[E],kt=E==="y"?"height":"width",qr=zt+b[zi],Nr=zt-b[ji],ai=[rr,nr].indexOf(m)!==-1,Mr=(Ct=$==null?void 0:$[E])!=null?Ct:0,Fi=ai?qr:zt-F[kt]-A[kt]-Mr+V.altAxis,Dr=ai?zt+F[kt]+A[kt]-Mr-V.altAxis:Nr,Re=y&&ai?ZR(Fi,zt,Dr):Oa(y?Fi:qr,zt,y?Dr:Nr);R[E]=Re,M[E]=Re-zt}t.modifiersData[n]=M}}const AC={name:"preventOverflow",enabled:!0,phase:"main",fn:OC,requiresIfExists:["offset"]};function TC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function RC(e){return e===pr(e)||!Rr(e)?Pd(e):TC(e)}function CC(e){var t=e.getBoundingClientRect(),r=vo(t.width)/e.offsetWidth||1,n=vo(t.height)/e.offsetHeight||1;return r!==1||n!==1}function PC(e,t,r){r===void 0&&(r=!1);var n=Rr(t),o=Rr(t)&&CC(t),a=ri(t),l=mo(e,o,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ln(t)!=="body"||Nd(a))&&(c=RC(t)),Rr(t)?(u=mo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Id(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function IC(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var u=t.get(c);u&&o(u)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function NC(e){var t=IC(e);return VR.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function MC(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function DC(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var bv={placement:"bottom",modifiers:[],strategy:"absolute"};function yv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function $C(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?bv:o;return function(c,u,d){d===void 0&&(d=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},bv,a),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(m){var w=typeof m=="function"?m(p.options):m;v(),p.options=Object.assign({},a,p.options,w),p.scrollParents={reference:Pi(c)?Aa(c):c.contextElement?Aa(c.contextElement):[],popper:Aa(u)};var x=NC(DC([].concat(n,p.options.modifiers)));return p.orderedModifiers=x.filter(function(k){return k.enabled}),S(),y.update()},forceUpdate:function(){if(!g){var m=p.elements,w=m.reference,x=m.popper;if(yv(w,x)){p.rects={reference:PC(w,Ga(x),p.options.strategy==="fixed"),popper:Rd(x)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(V){return p.modifiersData[V.name]=Object.assign({},V.data)});for(var k=0;k<p.orderedModifiers.length;k++){if(p.reset===!0){p.reset=!1,k=-1;continue}var E=p.orderedModifiers[k],R=E.fn,F=E.options,A=F===void 0?{}:F,N=E.name;typeof R=="function"&&(p=R({state:p,options:A,name:N,instance:y})||p)}}}},update:MC(function(){return new Promise(function(b){y.forceUpdate(),b(p)})}),destroy:function(){v(),g=!0}};if(!yv(c,u))return y;y.setOptions(d).then(function(b){!g&&d.onFirstUpdate&&d.onFirstUpdate(b)});function S(){p.orderedModifiers.forEach(function(b){var m=b.name,w=b.options,x=w===void 0?{}:w,k=b.effect;if(typeof k=="function"){var E=k({state:p,name:m,instance:y,options:x}),R=function(){};h.push(E||R)}})}function v(){h.forEach(function(b){return b()}),h=[]}return y}}var LC=[aC,EC,iC,GR,SC,mC,AC,eC,yC],zC=$C({defaultModifiers:LC}),Us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Z0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qu,wv;function jC(){if(wv)return qu;wv=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(a,l){if(a===l)return!0;if(a&&l&&typeof a=="object"&&typeof l=="object"){if(a.constructor!==l.constructor)return!1;var c,u,d;if(Array.isArray(a)){if(c=a.length,c!=l.length)return!1;for(u=c;u--!==0;)if(!o(a[u],l[u]))return!1;return!0}var p;if(t&&a instanceof Map&&l instanceof Map){if(a.size!==l.size)return!1;for(p=a.entries();!(u=p.next()).done;)if(!l.has(u.value[0]))return!1;for(p=a.entries();!(u=p.next()).done;)if(!o(u.value[1],l.get(u.value[0])))return!1;return!0}if(r&&a instanceof Set&&l instanceof Set){if(a.size!==l.size)return!1;for(p=a.entries();!(u=p.next()).done;)if(!l.has(u.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(l)){if(c=a.length,c!=l.length)return!1;for(u=c;u--!==0;)if(a[u]!==l[u])return!1;return!0}if(a.constructor===RegExp)return a.source===l.source&&a.flags===l.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof l.valueOf=="function")return a.valueOf()===l.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof l.toString=="function")return a.toString()===l.toString();if(d=Object.keys(a),c=d.length,c!==Object.keys(l).length)return!1;for(u=c;u--!==0;)if(!Object.prototype.hasOwnProperty.call(l,d[u]))return!1;if(e&&a instanceof Element)return!1;for(u=c;u--!==0;)if(!((d[u]==="_owner"||d[u]==="__v"||d[u]==="__o")&&a.$$typeof)&&!o(a[d[u]],l[d[u]]))return!1;return!0}return a!==a&&l!==l}return qu=function(l,c){try{return o(l,c)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},qu}var FC=jC();const HC=Z0(FC);var WC=[],Md=function(t,r,n){n===void 0&&(n={});var o=z.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||WC},l=z.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],u=l[1],d=z.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(y){var S=y.state,v=Object.keys(S.elements);IR.flushSync(function(){u({styles:cv(v.map(function(b){return[b,S.styles[b]||{}]})),attributes:cv(v.map(function(b){return[b,S.attributes[b]]}))})})},requires:["computeStyles"]}},[]),p=z.useMemo(function(){var g={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[d,{name:"applyStyles",enabled:!1}])};return HC(o.current,g)?o.current||g:(o.current=g,g)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,d]),h=z.useRef();return uv(function(){h.current&&h.current.setOptions(p)},[p]),uv(function(){if(!(t==null||r==null)){var g=n.createPopper||zC,y=g(t,r,p);return h.current=y,function(){y.destroy(),h.current=null}}},[t,r,n.createPopper]),{state:h.current?h.current.state:null,styles:c.styles,attributes:c.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}};const X0=e=>C.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),J0=H.forwardRef(({children:e,style:t,attributes:r},n)=>C.jsx("div",{style:{...t,zIndex:2e3},...r,ref:n,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),BC=({referenceElement:e,placement:t,isOpen:r,children:n,onClose:o})=>{const[a,l]=H.useState(null),{styles:c,attributes:u}=Md(e,a,{placement:t||"bottom-start"}),d=H.useCallback(()=>{o&&o()},[o]);return r?C.jsxs(F0,{children:[C.jsx(X0,{onClick:()=>d()}),C.jsx(J0,{ref:l,style:c.popper,attributes:u.popper,children:n})]}):null};var Gu={exports:{}};/*!
1
+ "use strict";var yO=Object.defineProperty;var uh=e=>{throw TypeError(e)};var bO=(e,t,r)=>t in e?yO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ve=(e,t,r)=>bO(e,typeof t!="symbol"?t+"":t,r),ml=(e,t,r)=>t.has(e)||uh("Cannot "+r);var re=(e,t,r)=>(ml(e,t,"read from private field"),r?r.call(e):t.get(e)),xt=(e,t,r)=>t.has(e)?uh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Qe=(e,t,r,i)=>(ml(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),$e=(e,t,r)=>(ml(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("react/jsx-runtime"),W=require("react"),Do=require("react-dom"),nt=require("@ws-ui/icons"),sc=require("@emotion/react"),wO=require("re-resizable");function Um(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const $=Um(W),xO=Um(Do),Bm=({children:e,container:t=document.body})=>Do.createPortal(e,t);var lh=function(t){return t.reduce(function(r,i){var a=i[0],s=i[1];return r[a]=s,r},{})},ch=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,It="top",or="bottom",ar="right",Lt="left",Lc="auto",No=[It,or,ar,Lt],vi="start",Ao="end",SO="clippingParents",Hm="viewport",Ui="popper",EO="reference",fh=No.reduce(function(e,t){return e.concat([t+"-"+vi,t+"-"+Ao])},[]),qm=[].concat(No,[Lc]).reduce(function(e,t){return e.concat([t,t+"-"+vi,t+"-"+Ao])},[]),_O="beforeRead",OO="read",AO="afterRead",TO="beforeMain",RO="main",PO="afterMain",CO="beforeWrite",kO="write",$O="afterWrite",IO=[_O,OO,AO,TO,RO,PO,CO,kO,$O];function Pr(e){return e?(e.nodeName||"").toLowerCase():null}function Ht(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wn(e){var t=Ht(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=Ht(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Mc(e){if(typeof ShadowRoot>"u")return!1;var t=Ht(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function LO(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},s=t.elements[r];!ir(s)||!Pr(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){var c=a[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function MO(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],s=t.attributes[i]||{},l=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=l.reduce(function(f,v){return f[v]="",f},{});!ir(a)||!Pr(a)||(Object.assign(a.style,c),Object.keys(s).forEach(function(f){a.removeAttribute(f)}))})}}const FO={name:"applyStyles",enabled:!0,phase:"write",fn:LO,effect:MO,requires:["computeStyles"]};function Tr(e){return e.split("-")[0]}var jn=Math.max,gs=Math.min,yi=Math.round;function uc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Zm(){return!/^((?!chrome|android).)*safari/i.test(uc())}function bi(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,s=1;t&&ir(e)&&(a=e.offsetWidth>0&&yi(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&yi(i.height)/e.offsetHeight||1);var l=Wn(e)?Ht(e):window,c=l.visualViewport,f=!Zm()&&r,v=(i.left+(f&&c?c.offsetLeft:0))/a,m=(i.top+(f&&c?c.offsetTop:0))/s,g=i.width/a,p=i.height/s;return{width:g,height:p,top:m,right:v+g,bottom:m+p,left:v,x:v,y:m}}function Fc(e){var t=bi(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function Gm(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Mc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Gr(e){return Ht(e).getComputedStyle(e)}function DO(e){return["table","td","th"].indexOf(Pr(e))>=0}function mn(e){return((Wn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Cs(e){return Pr(e)==="html"?e:e.assignedSlot||e.parentNode||(Mc(e)?e.host:null)||mn(e)}function dh(e){return!ir(e)||Gr(e).position==="fixed"?null:e.offsetParent}function NO(e){var t=/firefox/i.test(uc()),r=/Trident/i.test(uc());if(r&&ir(e)){var i=Gr(e);if(i.position==="fixed")return null}var a=Cs(e);for(Mc(a)&&(a=a.host);ir(a)&&["html","body"].indexOf(Pr(a))<0;){var s=Gr(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function jo(e){for(var t=Ht(e),r=dh(e);r&&DO(r)&&Gr(r).position==="static";)r=dh(r);return r&&(Pr(r)==="html"||Pr(r)==="body"&&Gr(r).position==="static")?t:r||NO(e)||t}function Dc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xo(e,t,r){return jn(e,gs(t,r))}function jO(e,t,r){var i=xo(e,t,r);return i>r?r:i}function Km(){return{top:0,right:0,bottom:0,left:0}}function Vm(e){return Object.assign({},Km(),e)}function Ym(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var zO=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Vm(typeof t!="number"?t:Ym(t,No))};function WO(e){var t,r=e.state,i=e.name,a=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Tr(r.placement),f=Dc(c),v=[Lt,ar].indexOf(c)>=0,m=v?"height":"width";if(!(!s||!l)){var g=zO(a.padding,r),p=Fc(s),b=f==="y"?It:Lt,x=f==="y"?or:ar,d=r.rects.reference[m]+r.rects.reference[f]-l[f]-r.rects.popper[m],w=l[f]-r.rects.reference[f],h=jo(s),S=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0,E=d/2-w/2,R=g[b],O=S-p[m]-g[x],k=S/2-p[m]/2+E,U=xo(R,k,O),M=f;r.modifiersData[i]=(t={},t[M]=U,t.centerOffset=U-k,t)}}function UO(e){var t=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Gm(t.elements.popper,a)&&(t.elements.arrow=a))}const BO={name:"arrow",enabled:!0,phase:"main",fn:WO,effect:UO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wi(e){return e.split("-")[1]}var HO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qO(e,t){var r=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:yi(r*a)/a||0,y:yi(i*a)/a||0}}function ph(e){var t,r=e.popper,i=e.popperRect,a=e.placement,s=e.variation,l=e.offsets,c=e.position,f=e.gpuAcceleration,v=e.adaptive,m=e.roundOffsets,g=e.isFixed,p=l.x,b=p===void 0?0:p,x=l.y,d=x===void 0?0:x,w=typeof m=="function"?m({x:b,y:d}):{x:b,y:d};b=w.x,d=w.y;var h=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),E=Lt,R=It,O=window;if(v){var k=jo(r),U="clientHeight",M="clientWidth";if(k===Ht(r)&&(k=mn(r),Gr(k).position!=="static"&&c==="absolute"&&(U="scrollHeight",M="scrollWidth")),k=k,a===It||(a===Lt||a===ar)&&s===Ao){R=or;var F=g&&k===O&&O.visualViewport?O.visualViewport.height:k[U];d-=F-i.height,d*=f?1:-1}if(a===Lt||(a===It||a===or)&&s===Ao){E=ar;var G=g&&k===O&&O.visualViewport?O.visualViewport.width:k[M];b-=G-i.width,b*=f?1:-1}}var j=Object.assign({position:c},v&&HO),L=m===!0?qO({x:b,y:d},Ht(r)):{x:b,y:d};if(b=L.x,d=L.y,f){var B;return Object.assign({},j,(B={},B[R]=S?"0":"",B[E]=h?"0":"",B.transform=(O.devicePixelRatio||1)<=1?"translate("+b+"px, "+d+"px)":"translate3d("+b+"px, "+d+"px, 0)",B))}return Object.assign({},j,(t={},t[R]=S?d+"px":"",t[E]=h?b+"px":"",t.transform="",t))}function ZO(e){var t=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,s=r.adaptive,l=s===void 0?!0:s,c=r.roundOffsets,f=c===void 0?!0:c,v={placement:Tr(t.placement),variation:wi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ph(Object.assign({},v,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ph(Object.assign({},v,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const GO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ZO,data:{}};var Da={passive:!0};function KO(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,s=a===void 0?!0:a,l=i.resize,c=l===void 0?!0:l,f=Ht(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&v.forEach(function(m){m.addEventListener("scroll",r.update,Da)}),c&&f.addEventListener("resize",r.update,Da),function(){s&&v.forEach(function(m){m.removeEventListener("scroll",r.update,Da)}),c&&f.removeEventListener("resize",r.update,Da)}}const VO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:KO,data:{}};var YO={left:"right",right:"left",bottom:"top",top:"bottom"};function os(e){return e.replace(/left|right|bottom|top/g,function(t){return YO[t]})}var XO={start:"end",end:"start"};function hh(e){return e.replace(/start|end/g,function(t){return XO[t]})}function Nc(e){var t=Ht(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function jc(e){return bi(mn(e)).left+Nc(e).scrollLeft}function JO(e,t){var r=Ht(e),i=mn(e),a=r.visualViewport,s=i.clientWidth,l=i.clientHeight,c=0,f=0;if(a){s=a.width,l=a.height;var v=Zm();(v||!v&&t==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:s,height:l,x:c+jc(e),y:f}}function QO(e){var t,r=mn(e),i=Nc(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=jn(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=jn(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-i.scrollLeft+jc(e),f=-i.scrollTop;return Gr(a||r).direction==="rtl"&&(c+=jn(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:l,x:c,y:f}}function zc(e){var t=Gr(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function Xm(e){return["html","body","#document"].indexOf(Pr(e))>=0?e.ownerDocument.body:ir(e)&&zc(e)?e:Xm(Cs(e))}function So(e,t){var r;t===void 0&&(t=[]);var i=Xm(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Ht(i),l=a?[s].concat(s.visualViewport||[],zc(i)?i:[]):i,c=t.concat(l);return a?c:c.concat(So(Cs(l)))}function lc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eA(e,t){var r=bi(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function gh(e,t,r){return t===Hm?lc(JO(e,r)):Wn(t)?eA(t,r):lc(QO(mn(e)))}function tA(e){var t=So(Cs(e)),r=["absolute","fixed"].indexOf(Gr(e).position)>=0,i=r&&ir(e)?jo(e):e;return Wn(i)?t.filter(function(a){return Wn(a)&&Gm(a,i)&&Pr(a)!=="body"}):[]}function rA(e,t,r,i){var a=t==="clippingParents"?tA(e):[].concat(t),s=[].concat(a,[r]),l=s[0],c=s.reduce(function(f,v){var m=gh(e,v,i);return f.top=jn(m.top,f.top),f.right=gs(m.right,f.right),f.bottom=gs(m.bottom,f.bottom),f.left=jn(m.left,f.left),f},gh(e,l,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Jm(e){var t=e.reference,r=e.element,i=e.placement,a=i?Tr(i):null,s=i?wi(i):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(a){case It:f={x:l,y:t.y-r.height};break;case or:f={x:l,y:t.y+t.height};break;case ar:f={x:t.x+t.width,y:c};break;case Lt:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var v=a?Dc(a):null;if(v!=null){var m=v==="y"?"height":"width";switch(s){case vi:f[v]=f[v]-(t[m]/2-r[m]/2);break;case Ao:f[v]=f[v]+(t[m]/2-r[m]/2);break}}return f}function To(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=i===void 0?e.placement:i,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,f=c===void 0?SO:c,v=r.rootBoundary,m=v===void 0?Hm:v,g=r.elementContext,p=g===void 0?Ui:g,b=r.altBoundary,x=b===void 0?!1:b,d=r.padding,w=d===void 0?0:d,h=Vm(typeof w!="number"?w:Ym(w,No)),S=p===Ui?EO:Ui,E=e.rects.popper,R=e.elements[x?S:p],O=rA(Wn(R)?R:R.contextElement||mn(e.elements.popper),f,m,l),k=bi(e.elements.reference),U=Jm({reference:k,element:E,placement:a}),M=lc(Object.assign({},E,U)),F=p===Ui?M:k,G={top:O.top-F.top+h.top,bottom:F.bottom-O.bottom+h.bottom,left:O.left-F.left+h.left,right:F.right-O.right+h.right},j=e.modifiersData.offset;if(p===Ui&&j){var L=j[a];Object.keys(G).forEach(function(B){var q=[ar,or].indexOf(B)>=0?1:-1,C=[It,or].indexOf(B)>=0?"y":"x";G[B]+=L[C]*q})}return G}function nA(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,s=r.rootBoundary,l=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,v=f===void 0?qm:f,m=wi(i),g=m?c?fh:fh.filter(function(x){return wi(x)===m}):No,p=g.filter(function(x){return v.indexOf(x)>=0});p.length===0&&(p=g);var b=p.reduce(function(x,d){return x[d]=To(e,{placement:d,boundary:a,rootBoundary:s,padding:l})[Tr(d)],x},{});return Object.keys(b).sort(function(x,d){return b[x]-b[d]})}function iA(e){if(Tr(e)===Lc)return[];var t=os(e);return[hh(e),t,hh(t)]}function oA(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,c=l===void 0?!0:l,f=r.fallbackPlacements,v=r.padding,m=r.boundary,g=r.rootBoundary,p=r.altBoundary,b=r.flipVariations,x=b===void 0?!0:b,d=r.allowedAutoPlacements,w=t.options.placement,h=Tr(w),S=h===w,E=f||(S||!x?[os(w)]:iA(w)),R=[w].concat(E).reduce(function(ne,ce){return ne.concat(Tr(ce)===Lc?nA(t,{placement:ce,boundary:m,rootBoundary:g,padding:v,flipVariations:x,allowedAutoPlacements:d}):ce)},[]),O=t.rects.reference,k=t.rects.popper,U=new Map,M=!0,F=R[0],G=0;G<R.length;G++){var j=R[G],L=Tr(j),B=wi(j)===vi,q=[It,or].indexOf(L)>=0,C=q?"width":"height",J=To(t,{placement:j,boundary:m,rootBoundary:g,altBoundary:p,padding:v}),Y=q?B?ar:Lt:B?or:It;O[C]>k[C]&&(Y=os(Y));var te=os(Y),de=[];if(s&&de.push(J[L]<=0),c&&de.push(J[Y]<=0,J[te]<=0),de.every(function(ne){return ne})){F=j,M=!1;break}U.set(j,de)}if(M)for(var Z=x?3:1,Q=function(ce){var fe=R.find(function(ye){var me=U.get(ye);if(me)return me.slice(0,ce).every(function(Ee){return Ee})});if(fe)return F=fe,"break"},ae=Z;ae>0;ae--){var ue=Q(ae);if(ue==="break")break}t.placement!==F&&(t.modifiersData[i]._skip=!0,t.placement=F,t.reset=!0)}}const aA={name:"flip",enabled:!0,phase:"main",fn:oA,requiresIfExists:["offset"],data:{_skip:!1}};function mh(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function vh(e){return[It,ar,or,Lt].some(function(t){return e[t]>=0})}function sA(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,l=To(t,{elementContext:"reference"}),c=To(t,{altBoundary:!0}),f=mh(l,i),v=mh(c,a,s),m=vh(f),g=vh(v);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:v,isReferenceHidden:m,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":g})}const uA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sA};function lA(e,t,r){var i=Tr(e),a=[Lt,It].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*a,[Lt,ar].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}function cA(e){var t=e.state,r=e.options,i=e.name,a=r.offset,s=a===void 0?[0,0]:a,l=qm.reduce(function(m,g){return m[g]=lA(g,t.rects,s),m},{}),c=l[t.placement],f=c.x,v=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=v),t.modifiersData[i]=l}const fA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cA};function dA(e){var t=e.state,r=e.name;t.modifiersData[r]=Jm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const pA={name:"popperOffsets",enabled:!0,phase:"read",fn:dA,data:{}};function hA(e){return e==="x"?"y":"x"}function gA(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,c=l===void 0?!1:l,f=r.boundary,v=r.rootBoundary,m=r.altBoundary,g=r.padding,p=r.tether,b=p===void 0?!0:p,x=r.tetherOffset,d=x===void 0?0:x,w=To(t,{boundary:f,rootBoundary:v,padding:g,altBoundary:m}),h=Tr(t.placement),S=wi(t.placement),E=!S,R=Dc(h),O=hA(R),k=t.modifiersData.popperOffsets,U=t.rects.reference,M=t.rects.popper,F=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,G=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(s){var B,q=R==="y"?It:Lt,C=R==="y"?or:ar,J=R==="y"?"height":"width",Y=k[R],te=Y+w[q],de=Y-w[C],Z=b?-M[J]/2:0,Q=S===vi?U[J]:M[J],ae=S===vi?-M[J]:-U[J],ue=t.elements.arrow,ne=b&&ue?Fc(ue):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Km(),fe=ce[q],ye=ce[C],me=xo(0,U[J],ne[J]),Ee=E?U[J]/2-Z-me-fe-G.mainAxis:Q-me-fe-G.mainAxis,Ae=E?-U[J]/2+Z+me+ye+G.mainAxis:ae+me+ye+G.mainAxis,Ze=t.elements.arrow&&jo(t.elements.arrow),ie=Ze?R==="y"?Ze.clientTop||0:Ze.clientLeft||0:0,vt=(B=j==null?void 0:j[R])!=null?B:0,lt=Y+Ee-vt-ie,mr=Y+Ae-vt,Zo=xo(b?gs(te,lt):te,Y,b?jn(de,mr):de);k[R]=Zo,L[R]=Zo-Y}if(c){var Gt,Go=R==="x"?It:Lt,Ks=R==="x"?or:ar,Mt=k[O],yt=O==="y"?"height":"width",Kr=Mt+w[Go],wn=Mt-w[Ks],Ai=[It,Lt].indexOf(h)!==-1,Vr=(Gt=j==null?void 0:j[O])!=null?Gt:0,Ko=Ai?Kr:Mt-U[yt]-M[yt]-Vr+G.altAxis,Yr=Ai?Mt+U[yt]+M[yt]-Vr-G.altAxis:wn,$r=b&&Ai?jO(Ko,Mt,Yr):xo(b?Ko:Kr,Mt,b?Yr:wn);k[O]=$r,L[O]=$r-Mt}t.modifiersData[i]=L}}const mA={name:"preventOverflow",enabled:!0,phase:"main",fn:gA,requiresIfExists:["offset"]};function vA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yA(e){return e===Ht(e)||!ir(e)?Nc(e):vA(e)}function bA(e){var t=e.getBoundingClientRect(),r=yi(t.width)/e.offsetWidth||1,i=yi(t.height)/e.offsetHeight||1;return r!==1||i!==1}function wA(e,t,r){r===void 0&&(r=!1);var i=ir(t),a=ir(t)&&bA(t),s=mn(t),l=bi(e,a,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((Pr(t)!=="body"||zc(s))&&(c=yA(t)),ir(t)?(f=bi(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):s&&(f.x=jc(s))),{x:l.left+c.scrollLeft-f.x,y:l.top+c.scrollTop-f.y,width:l.width,height:l.height}}function xA(e){var t=new Map,r=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function a(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var f=t.get(c);f&&a(f)}}),i.push(s)}return e.forEach(function(s){r.has(s.name)||a(s)}),i}function SA(e){var t=xA(e);return IO.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function EA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function _A(e){var t=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var yh={placement:"bottom",modifiers:[],strategy:"absolute"};function bh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function OA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,s=a===void 0?yh:a;return function(c,f,v){v===void 0&&(v=s);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},yh,s),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},g=[],p=!1,b={state:m,setOptions:function(h){var S=typeof h=="function"?h(m.options):h;d(),m.options=Object.assign({},s,m.options,S),m.scrollParents={reference:Wn(c)?So(c):c.contextElement?So(c.contextElement):[],popper:So(f)};var E=SA(_A([].concat(i,m.options.modifiers)));return m.orderedModifiers=E.filter(function(R){return R.enabled}),x(),b.update()},forceUpdate:function(){if(!p){var h=m.elements,S=h.reference,E=h.popper;if(bh(S,E)){m.rects={reference:wA(S,jo(E),m.options.strategy==="fixed"),popper:Fc(E)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(G){return m.modifiersData[G.name]=Object.assign({},G.data)});for(var R=0;R<m.orderedModifiers.length;R++){if(m.reset===!0){m.reset=!1,R=-1;continue}var O=m.orderedModifiers[R],k=O.fn,U=O.options,M=U===void 0?{}:U,F=O.name;typeof k=="function"&&(m=k({state:m,options:M,name:F,instance:b})||m)}}}},update:EA(function(){return new Promise(function(w){b.forceUpdate(),w(m)})}),destroy:function(){d(),p=!0}};if(!bh(c,f))return b;b.setOptions(v).then(function(w){!p&&v.onFirstUpdate&&v.onFirstUpdate(w)});function x(){m.orderedModifiers.forEach(function(w){var h=w.name,S=w.options,E=S===void 0?{}:S,R=w.effect;if(typeof R=="function"){var O=R({state:m,name:h,instance:b,options:E}),k=function(){};g.push(O||k)}})}function d(){g.forEach(function(w){return w()}),g=[]}return b}}var AA=[VO,pA,GO,FO,fA,aA,mA,BO,uA],TA=OA({defaultModifiers:AA}),Na=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vl,wh;function RA(){if(wh)return vl;wh=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(s,l){if(s===l)return!0;if(s&&l&&typeof s=="object"&&typeof l=="object"){if(s.constructor!==l.constructor)return!1;var c,f,v;if(Array.isArray(s)){if(c=s.length,c!=l.length)return!1;for(f=c;f--!==0;)if(!a(s[f],l[f]))return!1;return!0}var m;if(t&&s instanceof Map&&l instanceof Map){if(s.size!==l.size)return!1;for(m=s.entries();!(f=m.next()).done;)if(!l.has(f.value[0]))return!1;for(m=s.entries();!(f=m.next()).done;)if(!a(f.value[1],l.get(f.value[0])))return!1;return!0}if(r&&s instanceof Set&&l instanceof Set){if(s.size!==l.size)return!1;for(m=s.entries();!(f=m.next()).done;)if(!l.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(l)){if(c=s.length,c!=l.length)return!1;for(f=c;f--!==0;)if(s[f]!==l[f])return!1;return!0}if(s.constructor===RegExp)return s.source===l.source&&s.flags===l.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof l.valueOf=="function")return s.valueOf()===l.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof l.toString=="function")return s.toString()===l.toString();if(v=Object.keys(s),c=v.length,c!==Object.keys(l).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(l,v[f]))return!1;if(e&&s instanceof Element)return!1;for(f=c;f--!==0;)if(!((v[f]==="_owner"||v[f]==="__v"||v[f]==="__o")&&s.$$typeof)&&!a(s[v[f]],l[v[f]]))return!1;return!0}return s!==s&&l!==l}return vl=function(l,c){try{return a(l,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},vl}var PA=RA();const CA=Qm(PA);var kA=[],ev=function(t,r,i){i===void 0&&(i={});var a=$.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||kA},l=$.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],f=l[1],v=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var x=b.state,d=Object.keys(x.elements);xO.flushSync(function(){f({styles:lh(d.map(function(w){return[w,x.styles[w]||{}]})),attributes:lh(d.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),m=$.useMemo(function(){var p={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[v,{name:"applyStyles",enabled:!1}])};return CA(a.current,p)?a.current||p:(a.current=p,p)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,v]),g=$.useRef();return ch(function(){g.current&&g.current.setOptions(m)},[m]),ch(function(){if(!(t==null||r==null)){var p=i.createPopper||TA,b=p(t,r,m);return g.current=b,function(){b.destroy(),g.current=null}}},[t,r,i.createPopper]),{state:g.current?g.current.state:null,styles:c.styles,attributes:c.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}};const tv=e=>D.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),rv=W.forwardRef(({children:e,style:t,attributes:r},i)=>D.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),$A=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:a})=>{const[s,l]=W.useState(null),{styles:c,attributes:f}=ev(e,s,{placement:t||"bottom-start"}),v=W.useCallback(()=>{a&&a()},[a]);return r?D.jsxs(Bm,{children:[D.jsx(tv,{onClick:()=>v()}),D.jsx(rv,{ref:l,style:c.popper,attributes:f.popper,children:i})]}):null};var yl={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */var xv;function Q0(){return xv||(xv=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(a=o(a,n(c)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var c in a)t.call(a,c)&&a[c]&&(l=o(l,c));return l}function o(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Gu)),Gu.exports}var VC=Q0();const tt=Z0(VC);function ki(){return ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ki.apply(this,arguments)}const UC=["children","options"],Sv=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),_v={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},qC=["style","script","pre"],GC=["src","href","data","formAction","srcDoc","action"],YC=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,KC=/\n{2,}$/,Ev=/^(\s*>[\s\S]*?)(?=\n\n|$)/,ZC=/^ *> ?/gm,XC=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,JC=/^ {2,}\n/,QC=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,kv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ov=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,eP=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,tP=/^(?:\n *)*\n/,rP=/\r\n?/g,nP=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,iP=/^\[\^([^\]]+)]/,oP=/\f/g,aP=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,sP=/^\s*?\[(x|\s)\]/,Av=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Tv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Rv=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Yu=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,lP=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Cv=/^<!--[\s\S]*?(?:-->)/,cP=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ku=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,uP=/^\{.*\}$/,fP=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,dP=/^<([^ >]+[:@\/][^ >]+)>/,pP=/-([a-z])?/gi,Pv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,hP=/^[^\n]+(?: \n|\n{2,})/,gP=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,vP=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,mP=/^\[([^\]]*)\] ?\[([^\]]*)\]/,bP=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,yP=/\t/g,wP=/(^ *\||\| *$)/g,xP=/^ *:-+: *$/,SP=/^ *:-+ *$/,_P=/^ *-+: *$/,fc=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,dc="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",EP=RegExp(`^([*_])\\1${fc(1)}${dc}\\1\\1(?!\\1)`),kP=RegExp(`^([*_])${fc(0)}${dc}\\1(?!\\1)`),OP=RegExp(`^(==)${fc(0)}${dc}\\1`),AP=RegExp(`^(~~)${fc(0)}${dc}\\1`),TP=/^(:[a-zA-Z0-9-_]+:)/,RP=/^\\([^0-9A-Za-z\s])/,CP=/\\([^0-9A-Za-z\s])/g,PP=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,IP=/^\n+/,NP=/^([ \t]*)/,MP=/(?:^|\n)( *)$/,Dd="(?:\\d+\\.)",$d="(?:[*+-])";function ey(e){return"( *)("+(e===1?Dd:$d)+") +"}const ty=ey(1),ry=ey(2);function ny(e){return RegExp("^"+(e===1?ty:ry))}const DP=ny(1),$P=ny(2);function iy(e){return RegExp("^"+(e===1?ty:ry)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Dd:$d)+" )[^\\n]*)*(\\n|$)","gm")}const LP=iy(1),zP=iy(2);function oy(e){const t=e===1?Dd:$d;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const ay=oy(1),sy=oy(2);function Iv(e,t){const r=t===1,n=r?ay:sy,o=r?LP:zP,a=r?DP:$P;return{t:l=>a.test(l),o:yo(function(l,c){const u=MP.exec(c.prevCapture);return u&&(c.list||!c.inline&&!c.simple)?n.exec(l=u[1]+l):null}),i:1,u(l,c,u){const d=r?+l[2]:void 0,p=l[0].replace(KC,`
6
- `).match(o);let h=!1;return{items:p.map(function(g,y){const S=a.exec(g)[0].length,v=RegExp("^ {1,"+S+"}","gm"),b=g.replace(v,"").replace(a,""),m=y===p.length-1,w=b.indexOf(`
5
+ */var xh;function nv(){return xh||(xh=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=a(s,i(c)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=a(l,c));return l}function a(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(yl)),yl.exports}var IA=nv();const We=Qm(IA);function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Mn.apply(this,arguments)}const LA=["children","options"],Sh=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),Eh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},MA=["style","script","pre"],FA=["src","href","data","formAction","srcDoc","action"],DA=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,NA=/\n{2,}$/,_h=/^(\s*>[\s\S]*?)(?=\n\n|$)/,jA=/^ *> ?/gm,zA=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,WA=/^ {2,}\n/,UA=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Oh=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ah=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,BA=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,HA=/^(?:\n *)*\n/,qA=/\r\n?/g,ZA=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,GA=/^\[\^([^\]]+)]/,KA=/\f/g,VA=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,YA=/^\s*?\[(x|\s)\]/,Th=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Rh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ph=/^([^\n]+)\n *(=|-)\2{2,} *\n/,bl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,XA=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Ch=/^<!--[\s\S]*?(?:-->)/,JA=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,wl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,QA=/^\{.*\}$/,eT=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,tT=/^<([^ >]+[:@\/][^ >]+)>/,rT=/-([a-z])?/gi,kh=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,nT=/^[^\n]+(?: \n|\n{2,})/,iT=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,oT=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,aT=/^\[([^\]]*)\] ?\[([^\]]*)\]/,sT=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,uT=/\t/g,lT=/(^ *\||\| *$)/g,cT=/^ *:-+: *$/,fT=/^ *:-+ *$/,dT=/^ *-+: *$/,ks=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,$s="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",pT=RegExp(`^([*_])\\1${ks(1)}${$s}\\1\\1(?!\\1)`),hT=RegExp(`^([*_])${ks(0)}${$s}\\1(?!\\1)`),gT=RegExp(`^(==)${ks(0)}${$s}\\1`),mT=RegExp(`^(~~)${ks(0)}${$s}\\1`),vT=/^(:[a-zA-Z0-9-_]+:)/,yT=/^\\([^0-9A-Za-z\s])/,bT=/\\([^0-9A-Za-z\s])/g,wT=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,xT=/^\n+/,ST=/^([ \t]*)/,ET=/(?:^|\n)( *)$/,Wc="(?:\\d+\\.)",Uc="(?:[*+-])";function iv(e){return"( *)("+(e===1?Wc:Uc)+") +"}const ov=iv(1),av=iv(2);function sv(e){return RegExp("^"+(e===1?ov:av))}const _T=sv(1),OT=sv(2);function uv(e){return RegExp("^"+(e===1?ov:av)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Wc:Uc)+" )[^\\n]*)*(\\n|$)","gm")}const AT=uv(1),TT=uv(2);function lv(e){const t=e===1?Wc:Uc;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const cv=lv(1),fv=lv(2);function $h(e,t){const r=t===1,i=r?cv:fv,a=r?AT:TT,s=r?_T:OT;return{t:l=>s.test(l),o:xi(function(l,c){const f=ET.exec(c.prevCapture);return f&&(c.list||!c.inline&&!c.simple)?i.exec(l=f[1]+l):null}),i:1,u(l,c,f){const v=r?+l[2]:void 0,m=l[0].replace(NA,`
6
+ `).match(a);let g=!1;return{items:m.map(function(p,b){const x=s.exec(p)[0].length,d=RegExp("^ {1,"+x+"}","gm"),w=p.replace(d,"").replace(s,""),h=b===m.length-1,S=w.indexOf(`
7
7
 
8
- `)!==-1||m&&h;h=w;const x=u.inline,k=u.list;let E;u.list=!0,w?(u.inline=!1,E=Ta(b)+`
8
+ `)!==-1||h&&g;g=S;const E=f.inline,R=f.list;let O;f.list=!0,S?(f.inline=!1,O=Eo(w)+`
9
9
 
10
- `):(u.inline=!0,E=Ta(b));const R=c(E,u);return u.inline=x,u.list=k,R}),ordered:r,start:d}},l:(l,c,u)=>e(l.ordered?"ol":"ul",{key:u.key,start:l.type==="20"?l.start:void 0},l.items.map(function(d,p){return e("li",{key:p},c(d,u))}))}}const jP=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),FP=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Nv(e){return typeof e=="string"}function Ta(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Ol(e,t){return e.startsWith(t)}function HP(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(Ol(e,r[n]))return!0;return!1}return r(e,t)}function Uo(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function WP(e){return _P.test(e)?"right":xP.test(e)?"center":SP.test(e)?"left":null}function Mv(e,t,r,n){const o=r.inTable;r.inTable=!0;let a=[[]],l="";function c(){if(!l)return;const u=a[a.length-1];u.push.apply(u,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((u,d,p)=>{u.trim()==="|"&&(c(),n)?d!==0&&d!==p.length-1&&a.push([]):l+=u}),c(),r.inTable=o,a}function BP(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(wP,"").split("|").map(WP):[],o=e[3]?(function(l,c,u){return l.trim().split(`
11
- `).map(function(d){return Mv(d,c,u,!0)})})(e[3],t,r):[],a=Mv(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:a,type:"25"}:{children:a,type:"21"}}function Dv(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function yo(e){return e.inline=1,e}function yi(e){return yo(function(t,r){return r.inline?e.exec(t):null})}function Wn(e){return yo(function(t,r){return r.inline||r.simple?e.exec(t):null})}function xn(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function qs(e){return yo(function(t){return e.exec(t)})}const VP=/(javascript|vbscript|data(?!:image)):/i;function UP(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(VP.test(t))return null}catch{return null}return e}function Zr(e){return e&&e.replace(CP,"$1")}function Al(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function qP(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function GP(e,t,r){const n=r.inline||!1;r.inline=!1;const o=e(t,r);return r.inline=n,o}const Zu=(e,t,r)=>({children:Al(t,e[2],r)});function Xu(){return{}}function Ju(){return null}function YP(...e){return e.filter(Boolean).join(" ")}function Qu(e,t,r){let n=e;const o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function KP(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?ki({},_v,t.namedCodesToUnicode):_v;const r=t.slugify||Uo,n=t.sanitizer||UP,o=t.createElement||z.createElement,a=[Ev,kv,Ov,t.enforceAtxHeadings?Tv:Av,Rv,Pv,ay,sy],l=[...a,hP,Yu,Cv,Ku];function c(m,w){for(let x=0;x<m.length;x++)if(m[x].test(w))return!0;return!1}function u(m,w,...x){const k=Qu(t.overrides,m+".props",{});return o((function(E,R){const F=Qu(R,E);return F?typeof F=="function"||typeof F=="object"&&"render"in F?F:Qu(R,E+".component",E):E})(m,t.overrides),ki({},w,k,{className:YP(w==null?void 0:w.className,k.className)||void 0}),...x)}function d(m){m=m.replace(aP,"");let w=!1;t.forceInline?w=!0:t.forceBlock||(w=bP.test(m)===!1);const x=v(S(w?m:Ta(m).replace(IP,"")+`
10
+ `):(f.inline=!0,O=Eo(w));const k=c(O,f);return f.inline=E,f.list=R,k}),ordered:r,start:v}},l:(l,c,f)=>e(l.ordered?"ol":"ul",{key:f.key,start:l.type==="20"?l.start:void 0},l.items.map(function(v,m){return e("li",{key:m},c(v,f))}))}}const RT=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),PT=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Ih(e){return typeof e=="string"}function Eo(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function as(e,t){return e.startsWith(t)}function CT(e,t,r){if(Array.isArray(r)){for(let i=0;i<r.length;i++)if(as(e,r[i]))return!0;return!1}return r(e,t)}function Bi(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function kT(e){return dT.test(e)?"right":cT.test(e)?"center":fT.test(e)?"left":null}function Lh(e,t,r,i){const a=r.inTable;r.inTable=!0;let s=[[]],l="";function c(){if(!l)return;const f=s[s.length-1];f.push.apply(f,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,v,m)=>{f.trim()==="|"&&(c(),i)?v!==0&&v!==m.length-1&&s.push([]):l+=f}),c(),r.inTable=a,s}function $T(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(lT,"").split("|").map(kT):[],a=e[3]?(function(l,c,f){return l.trim().split(`
11
+ `).map(function(v){return Lh(v,c,f,!0)})})(e[3],t,r):[],s=Lh(e[1],t,r,!!a.length);return r.inline=!1,a.length?{align:i,cells:a,header:s,type:"25"}:{children:s,type:"21"}}function Mh(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function xi(e){return e.inline=1,e}function Cn(e){return xi(function(t,r){return r.inline?e.exec(t):null})}function sn(e){return xi(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Ur(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function ja(e){return xi(function(t){return e.exec(t)})}const IT=/(javascript|vbscript|data(?!:image)):/i;function LT(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(IT.test(t))return null}catch{return null}return e}function wr(e){return e&&e.replace(bT,"$1")}function ss(e,t,r){const i=r.inline||!1,a=r.simple||!1;r.inline=!0,r.simple=!0;const s=e(t,r);return r.inline=i,r.simple=a,s}function MT(e,t,r){const i=r.inline||!1,a=r.simple||!1;r.inline=!1,r.simple=!0;const s=e(t,r);return r.inline=i,r.simple=a,s}function FT(e,t,r){const i=r.inline||!1;r.inline=!1;const a=e(t,r);return r.inline=i,a}const xl=(e,t,r)=>({children:ss(t,e[2],r)});function Sl(){return{}}function El(){return null}function DT(...e){return e.filter(Boolean).join(" ")}function _l(e,t,r){let i=e;const a=t.split(".");for(;a.length&&(i=i[a[0]],i!==void 0);)a.shift();return i||r}function NT(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Mn({},Eh,t.namedCodesToUnicode):Eh;const r=t.slugify||Bi,i=t.sanitizer||LT,a=t.createElement||$.createElement,s=[_h,Oh,Ah,t.enforceAtxHeadings?Rh:Th,Ph,kh,cv,fv],l=[...s,nT,bl,Ch,wl];function c(h,S){for(let E=0;E<h.length;E++)if(h[E].test(S))return!0;return!1}function f(h,S,...E){const R=_l(t.overrides,h+".props",{});return a((function(O,k){const U=_l(k,O);return U?typeof U=="function"||typeof U=="object"&&"render"in U?U:_l(k,O+".component",O):O})(h,t.overrides),Mn({},S,R,{className:DT(S==null?void 0:S.className,R.className)||void 0}),...E)}function v(h){h=h.replace(VA,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=sT.test(h)===!1);const E=d(x(S?h:Eo(h).replace(xT,"")+`
12
12
 
13
- `,{inline:w}));for(;Nv(x[x.length-1])&&!x[x.length-1].trim();)x.pop();if(t.wrapper===null)return x;const k=t.wrapper||(w?"span":"div");let E;if(x.length>1||t.forceWrapper)E=x;else{if(x.length===1)return E=x[0],typeof E=="string"?u("span",{key:"outer"},E):E;E=null}return o(k,{key:"outer"},E)}function p(m,w){if(!w||!w.trim())return null;const x=w.match(YC);return x?x.reduce(function(k,E){const R=E.indexOf("=");if(R!==-1){const F=(function($){return $.indexOf("-")!==-1&&$.match(cP)===null&&($=$.replace(pP,function(M,B){return B.toUpperCase()})),$})(E.slice(0,R)).trim(),A=(function($){const M=$[0];return(M==='"'||M==="'")&&$.length>=2&&$[$.length-1]===M?$.slice(1,-1):$})(E.slice(R+1).trim()),N=Sv[F]||F;if(N==="ref")return k;const V=k[N]=(function($,M,B,j){return M==="style"?(function(I){const Y=[];let X="",K=!1,me=!1,L="";if(!I)return Y;for(let te=0;te<I.length;te++){const ee=I[te];if(ee!=='"'&&ee!=="'"||K||(me?ee===L&&(me=!1,L=""):(me=!0,L=ee)),ee==="("&&X.endsWith("url")?K=!0:ee===")"&&K&&(K=!1),ee!==";"||me||K)X+=ee;else{const J=X.trim();if(J){const ae=J.indexOf(":");if(ae>0){const se=J.slice(0,ae).trim(),ne=J.slice(ae+1).trim();Y.push([se,ne])}}X=""}}const U=X.trim();if(U){const te=U.indexOf(":");if(te>0){const ee=U.slice(0,te).trim(),J=U.slice(te+1).trim();Y.push([ee,J])}}return Y})(B).reduce(function(I,[Y,X]){return I[Y.replace(/(-[a-z])/g,K=>K[1].toUpperCase())]=j(X,$,Y),I},{}):GC.indexOf(M)!==-1?j(Zr(B),$,M):(B.match(uP)&&(B=Zr(B.slice(1,B.length-1))),B==="true"||B!=="false"&&B)})(m,F,A,n);typeof V=="string"&&(Yu.test(V)||Ku.test(V))&&(k[N]=d(V.trim()))}else E!=="style"&&(k[Sv[E]||E]=!0);return k},{}):null}const h=[],g={},y={0:{t:[">"],o:xn(Ev),i:1,u(m,w,x){const[,k,E]=m[0].replace(ZC,"").match(XC);return{alert:k,children:w(E,x)}},l(m,w,x){const k={key:x.key};return m.alert&&(k.className="markdown-alert-"+r(m.alert.toLowerCase(),Uo),m.children.unshift({attrs:{},children:[{type:"27",text:m.alert}],noInnerParse:!0,type:"11",tag:"header"})),u("blockquote",k,w(m.children,x))}},1:{t:[" "],o:qs(JC),i:1,u:Xu,l:(m,w,x)=>u("br",{key:x.key})},2:{t:["--","__","**","- ","* ","_ "],o:xn(QC),i:1,u:Xu,l:(m,w,x)=>u("hr",{key:x.key})},3:{t:[" "],o:xn(Ov),i:0,u:m=>({lang:void 0,text:Zr(Ta(m[0].replace(/^ {4}/gm,"")))}),l:(m,w,x)=>u("pre",{key:x.key},u("code",ki({},m.attrs,{className:m.lang?"lang-"+m.lang:""}),m.text))},4:{t:["```","~~~"],o:xn(kv),i:0,u:m=>({attrs:p("code",m[3]||""),lang:m[2]||void 0,text:m[4],type:"3"})},5:{t:["`"],o:Wn(eP),i:3,u:m=>({text:Zr(m[2])}),l:(m,w,x)=>u("code",{key:x.key},m.text)},6:{t:["[^"],o:xn(nP),i:0,u:m=>(h.push({footnote:m[2],identifier:m[1]}),{}),l:Ju},7:{t:["[^"],o:yi(iP),i:1,u:m=>({target:"#"+r(m[1],Uo),text:m[1]}),l:(m,w,x)=>u("a",{key:x.key,href:n(m.target,"a","href")},u("sup",{key:x.key},m.text))},8:{t:["[ ]","[x]"],o:yi(sP),i:1,u:m=>({completed:m[1].toLowerCase()==="x"}),l:(m,w,x)=>u("input",{checked:m.completed,key:x.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:xn(t.enforceAtxHeadings?Tv:Av),i:1,u:(m,w,x)=>({children:Al(w,m[2],x),id:r(m[2],Uo),level:m[1].length}),l:(m,w,x)=>u("h"+m.level,{id:m.id,key:x.key},w(m.children,x))},10:{t:m=>{const w=m.indexOf(`
14
- `);return w>0&&w<m.length-1&&(m[w+1]==="="||m[w+1]==="-")},o:xn(Rv),i:0,u:(m,w,x)=>({children:Al(w,m[1],x),level:m[2]==="="?1:2,type:"9"})},11:{t:["<"],o:qs(Yu),i:1,u(m,w,x){const[,k]=m[3].match(NP),E=RegExp("^"+k,"gm"),R=m[3].replace(E,""),F=c(l,R)?GP:Al,A=m[1].toLowerCase(),N=qC.indexOf(A)!==-1,V=(N?A:m[1]).trim(),$={attrs:p(V,m[2]),noInnerParse:N,tag:V};if(x.inAnchor=x.inAnchor||A==="a",N)$.text=m[3];else{const M=x.inHTML;x.inHTML=!0,$.children=F(w,R,x),x.inHTML=M}return x.inAnchor=!1,$},l:(m,w,x)=>u(m.tag,ki({key:x.key},m.attrs),m.text||(m.children?w(m.children,x):""))},13:{t:["<"],o:qs(Ku),i:1,u(m){const w=m[1].trim();return{attrs:p(w,m[2]||""),tag:w}},l:(m,w,x)=>u(m.tag,ki({},m.attrs,{key:x.key}))},12:{t:["<!--"],o:qs(Cv),i:1,u:()=>({}),l:Ju},14:{t:["!["],o:Wn(FP),i:1,u:m=>({alt:Zr(m[1]),target:Zr(m[2]),title:Zr(m[3])}),l:(m,w,x)=>u("img",{key:x.key,alt:m.alt||void 0,title:m.title||void 0,src:n(m.target,"img","src")})},15:{t:["["],o:yi(jP),i:3,u:(m,w,x)=>({children:qP(w,m[1],x),target:Zr(m[2]),title:Zr(m[3])}),l:(m,w,x)=>u("a",{key:x.key,href:n(m.target,"a","href"),title:m.title},w(m.children,x))},16:{t:["<"],o:yi(dP),i:0,u(m){let w=m[1],x=!1;return w.indexOf("@")!==-1&&w.indexOf("//")===-1&&(x=!0,w=w.replace("mailto:","")),{children:[{text:w,type:"27"}],target:x?"mailto:"+w:w,type:"15"}}},17:{t:(m,w)=>!w.inAnchor&&!t.disableAutoLink&&(Ol(m,"http://")||Ol(m,"https://")),o:yi(fP),i:0,u:m=>({children:[{text:m[1],type:"27"}],target:m[1],title:void 0,type:"15"})},20:Iv(u,1),33:Iv(u,2),19:{t:[`
15
- `],o:xn(tP),i:3,u:Xu,l:()=>`
16
- `},21:{o:yo(function(m,w){if(w.inline||w.simple||w.inHTML&&m.indexOf(`
13
+ `,{inline:S}));for(;Ih(E[E.length-1])&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;const R=t.wrapper||(S?"span":"div");let O;if(E.length>1||t.forceWrapper)O=E;else{if(E.length===1)return O=E[0],typeof O=="string"?f("span",{key:"outer"},O):O;O=null}return a(R,{key:"outer"},O)}function m(h,S){if(!S||!S.trim())return null;const E=S.match(DA);return E?E.reduce(function(R,O){const k=O.indexOf("=");if(k!==-1){const U=(function(j){return j.indexOf("-")!==-1&&j.match(JA)===null&&(j=j.replace(rT,function(L,B){return B.toUpperCase()})),j})(O.slice(0,k)).trim(),M=(function(j){const L=j[0];return(L==='"'||L==="'")&&j.length>=2&&j[j.length-1]===L?j.slice(1,-1):j})(O.slice(k+1).trim()),F=Sh[U]||U;if(F==="ref")return R;const G=R[F]=(function(j,L,B,q){return L==="style"?(function(C){const J=[];let Y="",te=!1,de=!1,Z="";if(!C)return J;for(let ae=0;ae<C.length;ae++){const ue=C[ae];if(ue!=='"'&&ue!=="'"||te||(de?ue===Z&&(de=!1,Z=""):(de=!0,Z=ue)),ue==="("&&Y.endsWith("url")?te=!0:ue===")"&&te&&(te=!1),ue!==";"||de||te)Y+=ue;else{const ne=Y.trim();if(ne){const ce=ne.indexOf(":");if(ce>0){const fe=ne.slice(0,ce).trim(),ye=ne.slice(ce+1).trim();J.push([fe,ye])}}Y=""}}const Q=Y.trim();if(Q){const ae=Q.indexOf(":");if(ae>0){const ue=Q.slice(0,ae).trim(),ne=Q.slice(ae+1).trim();J.push([ue,ne])}}return J})(B).reduce(function(C,[J,Y]){return C[J.replace(/(-[a-z])/g,te=>te[1].toUpperCase())]=q(Y,j,J),C},{}):FA.indexOf(L)!==-1?q(wr(B),j,L):(B.match(QA)&&(B=wr(B.slice(1,B.length-1))),B==="true"||B!=="false"&&B)})(h,U,M,i);typeof G=="string"&&(bl.test(G)||wl.test(G))&&(R[F]=v(G.trim()))}else O!=="style"&&(R[Sh[O]||O]=!0);return R},{}):null}const g=[],p={},b={0:{t:[">"],o:Ur(_h),i:1,u(h,S,E){const[,R,O]=h[0].replace(jA,"").match(zA);return{alert:R,children:S(O,E)}},l(h,S,E){const R={key:E.key};return h.alert&&(R.className="markdown-alert-"+r(h.alert.toLowerCase(),Bi),h.children.unshift({attrs:{},children:[{type:"27",text:h.alert}],noInnerParse:!0,type:"11",tag:"header"})),f("blockquote",R,S(h.children,E))}},1:{t:[" "],o:ja(WA),i:1,u:Sl,l:(h,S,E)=>f("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:Ur(UA),i:1,u:Sl,l:(h,S,E)=>f("hr",{key:E.key})},3:{t:[" "],o:Ur(Ah),i:0,u:h=>({lang:void 0,text:wr(Eo(h[0].replace(/^ {4}/gm,"")))}),l:(h,S,E)=>f("pre",{key:E.key},f("code",Mn({},h.attrs,{className:h.lang?"lang-"+h.lang:""}),h.text))},4:{t:["```","~~~"],o:Ur(Oh),i:0,u:h=>({attrs:m("code",h[3]||""),lang:h[2]||void 0,text:h[4],type:"3"})},5:{t:["`"],o:sn(BA),i:3,u:h=>({text:wr(h[2])}),l:(h,S,E)=>f("code",{key:E.key},h.text)},6:{t:["[^"],o:Ur(ZA),i:0,u:h=>(g.push({footnote:h[2],identifier:h[1]}),{}),l:El},7:{t:["[^"],o:Cn(GA),i:1,u:h=>({target:"#"+r(h[1],Bi),text:h[1]}),l:(h,S,E)=>f("a",{key:E.key,href:i(h.target,"a","href")},f("sup",{key:E.key},h.text))},8:{t:["[ ]","[x]"],o:Cn(YA),i:1,u:h=>({completed:h[1].toLowerCase()==="x"}),l:(h,S,E)=>f("input",{checked:h.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Ur(t.enforceAtxHeadings?Rh:Th),i:1,u:(h,S,E)=>({children:ss(S,h[2],E),id:r(h[2],Bi),level:h[1].length}),l:(h,S,E)=>f("h"+h.level,{id:h.id,key:E.key},S(h.children,E))},10:{t:h=>{const S=h.indexOf(`
14
+ `);return S>0&&S<h.length-1&&(h[S+1]==="="||h[S+1]==="-")},o:Ur(Ph),i:0,u:(h,S,E)=>({children:ss(S,h[1],E),level:h[2]==="="?1:2,type:"9"})},11:{t:["<"],o:ja(bl),i:1,u(h,S,E){const[,R]=h[3].match(ST),O=RegExp("^"+R,"gm"),k=h[3].replace(O,""),U=c(l,k)?FT:ss,M=h[1].toLowerCase(),F=MA.indexOf(M)!==-1,G=(F?M:h[1]).trim(),j={attrs:m(G,h[2]),noInnerParse:F,tag:G};if(E.inAnchor=E.inAnchor||M==="a",F)j.text=h[3];else{const L=E.inHTML;E.inHTML=!0,j.children=U(S,k,E),E.inHTML=L}return E.inAnchor=!1,j},l:(h,S,E)=>f(h.tag,Mn({key:E.key},h.attrs),h.text||(h.children?S(h.children,E):""))},13:{t:["<"],o:ja(wl),i:1,u(h){const S=h[1].trim();return{attrs:m(S,h[2]||""),tag:S}},l:(h,S,E)=>f(h.tag,Mn({},h.attrs,{key:E.key}))},12:{t:["<!--"],o:ja(Ch),i:1,u:()=>({}),l:El},14:{t:["!["],o:sn(PT),i:1,u:h=>({alt:wr(h[1]),target:wr(h[2]),title:wr(h[3])}),l:(h,S,E)=>f("img",{key:E.key,alt:h.alt||void 0,title:h.title||void 0,src:i(h.target,"img","src")})},15:{t:["["],o:Cn(RT),i:3,u:(h,S,E)=>({children:MT(S,h[1],E),target:wr(h[2]),title:wr(h[3])}),l:(h,S,E)=>f("a",{key:E.key,href:i(h.target,"a","href"),title:h.title},S(h.children,E))},16:{t:["<"],o:Cn(tT),i:0,u(h){let S=h[1],E=!1;return S.indexOf("@")!==-1&&S.indexOf("//")===-1&&(E=!0,S=S.replace("mailto:","")),{children:[{text:S,type:"27"}],target:E?"mailto:"+S:S,type:"15"}}},17:{t:(h,S)=>!S.inAnchor&&!t.disableAutoLink&&(as(h,"http://")||as(h,"https://")),o:Cn(eT),i:0,u:h=>({children:[{text:h[1],type:"27"}],target:h[1],title:void 0,type:"15"})},20:$h(f,1),33:$h(f,2),19:{t:[`
15
+ `],o:Ur(HA),i:3,u:Sl,l:()=>`
16
+ `},21:{o:xi(function(h,S){if(S.inline||S.simple||S.inHTML&&h.indexOf(`
17
17
 
18
- `)===-1&&w.prevCapture.indexOf(`
18
+ `)===-1&&S.prevCapture.indexOf(`
19
19
 
20
- `)===-1)return null;let x="",k=0;for(;;){const R=m.indexOf(`
21
- `,k),F=m.slice(k,R===-1?void 0:R+1);if(c(a,F)||(x+=F,R===-1||!F.trim()))break;k=R+1}const E=Ta(x);return E===""?null:[x,,E]}),i:3,u:Zu,l:(m,w,x)=>u("p",{key:x.key},w(m.children,x))},22:{t:["["],o:yi(gP),i:0,u:m=>(g[m[1]]={target:m[2],title:m[4]},{}),l:Ju},23:{t:["!["],o:Wn(vP),i:0,u:m=>({alt:m[1]?Zr(m[1]):void 0,ref:m[2]}),l:(m,w,x)=>g[m.ref]?u("img",{key:x.key,alt:m.alt,src:n(g[m.ref].target,"img","src"),title:g[m.ref].title}):null},24:{t:m=>m[0]==="["&&m.indexOf("](")===-1,o:yi(mP),i:0,u:(m,w,x)=>({children:w(m[1],x),fallbackChildren:m[0],ref:m[2]}),l:(m,w,x)=>g[m.ref]?u("a",{key:x.key,href:n(g[m.ref].target,"a","href"),title:g[m.ref].title},w(m.children,x)):u("span",{key:x.key},m.fallbackChildren)},25:{t:["|"],o:xn(Pv),i:1,u:BP,l(m,w,x){const k=m;return u("table",{key:x.key},u("thead",null,u("tr",null,k.header.map(function(E,R){return u("th",{key:R,style:Dv(k,R)},w(E,x))}))),u("tbody",null,k.cells.map(function(E,R){return u("tr",{key:R},E.map(function(F,A){return u("td",{key:A,style:Dv(k,A)},w(F,x))}))})))}},27:{o:yo(function(m,w){let x;return Ol(m,":")&&(x=TP.exec(m)),x||PP.exec(m)}),i:4,u(m){const w=m[0];return{text:w.indexOf("&")===-1?w:w.replace(lP,(x,k)=>t.namedCodesToUnicode[k]||x)}},l:m=>m.text},28:{t:["**","__"],o:Wn(EP),i:2,u:(m,w,x)=>({children:w(m[2],x)}),l:(m,w,x)=>u("strong",{key:x.key},w(m.children,x))},29:{t:m=>{const w=m[0];return(w==="*"||w==="_")&&m[1]!==w},o:Wn(kP),i:3,u:(m,w,x)=>({children:w(m[2],x)}),l:(m,w,x)=>u("em",{key:x.key},w(m.children,x))},30:{t:["\\"],o:Wn(RP),i:1,u:m=>({text:m[1],type:"27"})},31:{t:["=="],o:Wn(OP),i:3,u:Zu,l:(m,w,x)=>u("mark",{key:x.key},w(m.children,x))},32:{t:["~~"],o:Wn(AP),i:3,u:Zu,l:(m,w,x)=>u("del",{key:x.key},w(m.children,x))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const S=(function(m){var w=Object.keys(m);function x(k,E){var R=[];if(E.prevCapture=E.prevCapture||"",k.trim())for(;k;)for(var F=0;F<w.length;){var A=w[F],N=m[A];if(!N.t||HP(k,E,N.t)){var V=N.o(k,E);if(V&&V[0]){k=k.substring(V[0].length);var $=N.u(V,x,E);E.prevCapture+=V[0],$.type||($.type=A),R.push($);break}F++}else F++}return E.prevCapture="",R}return w.sort(function(k,E){return m[k].i-m[E].i||(k<E?-1:1)}),function(k,E){return x((function(R){return R.replace(rP,`
22
- `).replace(oP,"").replace(yP," ")})(k),E)}})(y),v=(function(m,w){return function x(k,E={}){if(Array.isArray(k)){const R=E.key,F=[];let A=!1;for(let N=0;N<k.length;N++){E.key=N;const V=x(k[N],E),$=Nv(V);$&&A?F[F.length-1]+=V:V!==null&&F.push(V),A=$}return E.key=R,F}return(function(R,F,A){const N=m[R.type].l;return w?w(()=>N(R,F,A),R,F,A):N(R,F,A)})(k,x,E)}})(y,t.renderRule),b=d(e);return h.length?u("div",null,b,u("footer",{key:"footer"},h.map(function(m){return u("div",{id:r(m.identifier,Uo),key:m.identifier},m.identifier,v(S(m.footnote,{inline:!0})))}))):b}const Vl=e=>{let{children:t="",options:r}=e,n=(function(o,a){if(o==null)return{};var l,c,u={},d=Object.keys(o);for(c=0;c<d.length;c++)a.indexOf(l=d[c])>=0||(u[l]=o[l]);return u})(e,UC);return z.cloneElement(KP(t,r),n)},$v=({kind:e,customIcon:t})=>{const r={"text-yellow-400":e==="warning","text-red-500":e==="danger"||e==="error","text-primary":e==="info","text-green-500":e==="message"};if(t)return C.jsx(t,{className:tt("flex-none size-6",r)});switch(e){case"error":case"danger":return C.jsx(wt.FdSanityCheckInfo,{className:tt("flex-none size-6",r)});case"info":return C.jsx(C.Fragment,{children:C.jsx(wt.FdInfoBold,{className:tt("flex-none size-6",r)})});case"warning":return C.jsx(C.Fragment,{children:C.jsx(wt.FdWarningDanger,{className:tt("flex-none size-6",r)})});case"message":return C.jsx(C.Fragment,{children:C.jsx(wt.FdInfoBold,{className:tt("flex-none size-6",r)})});default:return null}},ZP=({id:e,onClose:t,kind:r,message:n,markdown:o,customIcon:a})=>{const l=({className:c}={})=>C.jsx("button",{onClick:t,className:tt("flex justify-center p-1",c),children:C.jsx(wt.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return C.jsx("div",{className:tt("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof n=="string"?C.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[C.jsx("div",{className:"pt-1",children:C.jsx($v,{kind:r,customIcon:a})}),C.jsx("div",{className:"flex items-center gap-1 prose",children:o?C.jsx(Vl,{children:n}):C.jsx(C.Fragment,{children:n})}),l()]}):C.jsxs("div",{className:"flex items-start",children:[C.jsx("div",{className:"flex flex-col gap-2 justify-between",children:n.filter(c=>c.messages.length>0).map(c=>C.jsxs(C.Fragment,{children:[c.title&&C.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[C.jsx($v,{kind:r,customIcon:a}),C.jsxs("span",{children:[c.title," :"]})]}),C.jsx("ul",{className:tt("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(u=>C.jsx("li",{children:o?C.jsx(Vl,{children:u}):C.jsx(C.Fragment,{children:u})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},ly=({children:e,size:t,className:r,...n})=>C.jsx("div",{style:{"--width":`${t||24}px`},className:tt("h-6 flex items-center pr-1 w-[--width]",r),...n,children:e});var ef={},qo={},Gs={},Lv;function cy(){if(Lv)return Gs;Lv=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return Gs}var to={},Go={},Yo={},zv;function XP(){if(zv)return Yo;zv=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Yo.default=e,Yo}var jv;function pc(){if(jv)return Go;jv=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.default=void 0;var e=t(XP());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){return typeof o=="string"&&e.default.test(o)}var n=r;return Go.default=n,Go}var Fv;function hc(){if(Fv)return to;Fv=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0,to.unsafeStringify=n;var e=t(pc());function t(l){return l&&l.__esModule?l:{default:l}}const r=[];for(let l=0;l<256;++l)r.push((l+256).toString(16).slice(1));function n(l,c=0){return r[l[c+0]]+r[l[c+1]]+r[l[c+2]]+r[l[c+3]]+"-"+r[l[c+4]]+r[l[c+5]]+"-"+r[l[c+6]]+r[l[c+7]]+"-"+r[l[c+8]]+r[l[c+9]]+"-"+r[l[c+10]]+r[l[c+11]]+r[l[c+12]]+r[l[c+13]]+r[l[c+14]]+r[l[c+15]]}function o(l,c=0){const u=n(l,c);if(!(0,e.default)(u))throw TypeError("Stringified UUID is invalid");return u}var a=o;return to.default=a,to}var Hv;function JP(){if(Hv)return qo;Hv=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=void 0;var e=r(cy()),t=hc();function r(d){return d&&d.__esModule?d:{default:d}}let n,o,a=0,l=0;function c(d,p,h){let g=p&&h||0;const y=p||new Array(16);d=d||{};let S=d.node||n,v=d.clockseq!==void 0?d.clockseq:o;if(S==null||v==null){const E=d.random||(d.rng||e.default)();S==null&&(S=n=[E[0]|1,E[1],E[2],E[3],E[4],E[5]]),v==null&&(v=o=(E[6]<<8|E[7])&16383)}let b=d.msecs!==void 0?d.msecs:Date.now(),m=d.nsecs!==void 0?d.nsecs:l+1;const w=b-a+(m-l)/1e4;if(w<0&&d.clockseq===void 0&&(v=v+1&16383),(w<0||b>a)&&d.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=b,l=m,o=v,b+=122192928e5;const x=((b&268435455)*1e4+m)%4294967296;y[g++]=x>>>24&255,y[g++]=x>>>16&255,y[g++]=x>>>8&255,y[g++]=x&255;const k=b/4294967296*1e4&268435455;y[g++]=k>>>8&255,y[g++]=k&255,y[g++]=k>>>24&15|16,y[g++]=k>>>16&255,y[g++]=v>>>8|128,y[g++]=v&255;for(let E=0;E<6;++E)y[g+E]=S[E];return p||(0,t.unsafeStringify)(y)}var u=c;return qo.default=u,qo}var Ko={},Bn={},Zo={},Wv;function uy(){if(Wv)return Zo;Wv=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.default=void 0;var e=t(pc());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){if(!(0,e.default)(o))throw TypeError("Invalid UUID");let a;const l=new Uint8Array(16);return l[0]=(a=parseInt(o.slice(0,8),16))>>>24,l[1]=a>>>16&255,l[2]=a>>>8&255,l[3]=a&255,l[4]=(a=parseInt(o.slice(9,13),16))>>>8,l[5]=a&255,l[6]=(a=parseInt(o.slice(14,18),16))>>>8,l[7]=a&255,l[8]=(a=parseInt(o.slice(19,23),16))>>>8,l[9]=a&255,l[10]=(a=parseInt(o.slice(24,36),16))/1099511627776&255,l[11]=a/4294967296&255,l[12]=a>>>24&255,l[13]=a>>>16&255,l[14]=a>>>8&255,l[15]=a&255,l}var n=r;return Zo.default=n,Zo}var Bv;function fy(){if(Bv)return Bn;Bv=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.URL=Bn.DNS=void 0,Bn.default=l;var e=hc(),t=r(uy());function r(c){return c&&c.__esModule?c:{default:c}}function n(c){c=unescape(encodeURIComponent(c));const u=[];for(let d=0;d<c.length;++d)u.push(c.charCodeAt(d));return u}const o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Bn.DNS=o;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Bn.URL=a;function l(c,u,d){function p(h,g,y,S){var v;if(typeof h=="string"&&(h=n(h)),typeof g=="string"&&(g=(0,t.default)(g)),((v=g)===null||v===void 0?void 0:v.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let b=new Uint8Array(16+h.length);if(b.set(g),b.set(h,g.length),b=d(b),b[6]=b[6]&15|u,b[8]=b[8]&63|128,y){S=S||0;for(let m=0;m<16;++m)y[S+m]=b[m];return y}return(0,e.unsafeStringify)(b)}try{p.name=c}catch{}return p.DNS=o,p.URL=a,p}return Bn}var Xo={},Vv;function QP(){if(Vv)return Xo;Vv=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.default=void 0;function e(y){if(typeof y=="string"){const S=unescape(encodeURIComponent(y));y=new Uint8Array(S.length);for(let v=0;v<S.length;++v)y[v]=S.charCodeAt(v)}return t(n(o(y),y.length*8))}function t(y){const S=[],v=y.length*32,b="0123456789abcdef";for(let m=0;m<v;m+=8){const w=y[m>>5]>>>m%32&255,x=parseInt(b.charAt(w>>>4&15)+b.charAt(w&15),16);S.push(x)}return S}function r(y){return(y+64>>>9<<4)+14+1}function n(y,S){y[S>>5]|=128<<S%32,y[r(S)-1]=S;let v=1732584193,b=-271733879,m=-1732584194,w=271733878;for(let x=0;x<y.length;x+=16){const k=v,E=b,R=m,F=w;v=u(v,b,m,w,y[x],7,-680876936),w=u(w,v,b,m,y[x+1],12,-389564586),m=u(m,w,v,b,y[x+2],17,606105819),b=u(b,m,w,v,y[x+3],22,-1044525330),v=u(v,b,m,w,y[x+4],7,-176418897),w=u(w,v,b,m,y[x+5],12,1200080426),m=u(m,w,v,b,y[x+6],17,-1473231341),b=u(b,m,w,v,y[x+7],22,-45705983),v=u(v,b,m,w,y[x+8],7,1770035416),w=u(w,v,b,m,y[x+9],12,-1958414417),m=u(m,w,v,b,y[x+10],17,-42063),b=u(b,m,w,v,y[x+11],22,-1990404162),v=u(v,b,m,w,y[x+12],7,1804603682),w=u(w,v,b,m,y[x+13],12,-40341101),m=u(m,w,v,b,y[x+14],17,-1502002290),b=u(b,m,w,v,y[x+15],22,1236535329),v=d(v,b,m,w,y[x+1],5,-165796510),w=d(w,v,b,m,y[x+6],9,-1069501632),m=d(m,w,v,b,y[x+11],14,643717713),b=d(b,m,w,v,y[x],20,-373897302),v=d(v,b,m,w,y[x+5],5,-701558691),w=d(w,v,b,m,y[x+10],9,38016083),m=d(m,w,v,b,y[x+15],14,-660478335),b=d(b,m,w,v,y[x+4],20,-405537848),v=d(v,b,m,w,y[x+9],5,568446438),w=d(w,v,b,m,y[x+14],9,-1019803690),m=d(m,w,v,b,y[x+3],14,-187363961),b=d(b,m,w,v,y[x+8],20,1163531501),v=d(v,b,m,w,y[x+13],5,-1444681467),w=d(w,v,b,m,y[x+2],9,-51403784),m=d(m,w,v,b,y[x+7],14,1735328473),b=d(b,m,w,v,y[x+12],20,-1926607734),v=p(v,b,m,w,y[x+5],4,-378558),w=p(w,v,b,m,y[x+8],11,-2022574463),m=p(m,w,v,b,y[x+11],16,1839030562),b=p(b,m,w,v,y[x+14],23,-35309556),v=p(v,b,m,w,y[x+1],4,-1530992060),w=p(w,v,b,m,y[x+4],11,1272893353),m=p(m,w,v,b,y[x+7],16,-155497632),b=p(b,m,w,v,y[x+10],23,-1094730640),v=p(v,b,m,w,y[x+13],4,681279174),w=p(w,v,b,m,y[x],11,-358537222),m=p(m,w,v,b,y[x+3],16,-722521979),b=p(b,m,w,v,y[x+6],23,76029189),v=p(v,b,m,w,y[x+9],4,-640364487),w=p(w,v,b,m,y[x+12],11,-421815835),m=p(m,w,v,b,y[x+15],16,530742520),b=p(b,m,w,v,y[x+2],23,-995338651),v=h(v,b,m,w,y[x],6,-198630844),w=h(w,v,b,m,y[x+7],10,1126891415),m=h(m,w,v,b,y[x+14],15,-1416354905),b=h(b,m,w,v,y[x+5],21,-57434055),v=h(v,b,m,w,y[x+12],6,1700485571),w=h(w,v,b,m,y[x+3],10,-1894986606),m=h(m,w,v,b,y[x+10],15,-1051523),b=h(b,m,w,v,y[x+1],21,-2054922799),v=h(v,b,m,w,y[x+8],6,1873313359),w=h(w,v,b,m,y[x+15],10,-30611744),m=h(m,w,v,b,y[x+6],15,-1560198380),b=h(b,m,w,v,y[x+13],21,1309151649),v=h(v,b,m,w,y[x+4],6,-145523070),w=h(w,v,b,m,y[x+11],10,-1120210379),m=h(m,w,v,b,y[x+2],15,718787259),b=h(b,m,w,v,y[x+9],21,-343485551),v=a(v,k),b=a(b,E),m=a(m,R),w=a(w,F)}return[v,b,m,w]}function o(y){if(y.length===0)return[];const S=y.length*8,v=new Uint32Array(r(S));for(let b=0;b<S;b+=8)v[b>>5]|=(y[b/8]&255)<<b%32;return v}function a(y,S){const v=(y&65535)+(S&65535);return(y>>16)+(S>>16)+(v>>16)<<16|v&65535}function l(y,S){return y<<S|y>>>32-S}function c(y,S,v,b,m,w){return a(l(a(a(S,y),a(b,w)),m),v)}function u(y,S,v,b,m,w,x){return c(S&v|~S&b,y,S,m,w,x)}function d(y,S,v,b,m,w,x){return c(S&b|v&~b,y,S,m,w,x)}function p(y,S,v,b,m,w,x){return c(S^v^b,y,S,m,w,x)}function h(y,S,v,b,m,w,x){return c(v^(S|~b),y,S,m,w,x)}var g=e;return Xo.default=g,Xo}var Uv;function eI(){if(Uv)return Ko;Uv=1,Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.default=void 0;var e=r(fy()),t=r(QP());function r(a){return a&&a.__esModule?a:{default:a}}var o=(0,e.default)("v3",48,t.default);return Ko.default=o,Ko}var Jo={},Qo={},qv;function tI(){if(qv)return Qo;qv=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Qo.default=t,Qo}var Gv;function rI(){if(Gv)return Jo;Gv=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.default=void 0;var e=n(tI()),t=n(cy()),r=hc();function n(l){return l&&l.__esModule?l:{default:l}}function o(l,c,u){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const d=l.random||(l.rng||t.default)();if(d[6]=d[6]&15|64,d[8]=d[8]&63|128,c){u=u||0;for(let p=0;p<16;++p)c[u+p]=d[p];return c}return(0,r.unsafeStringify)(d)}var a=o;return Jo.default=a,Jo}var ea={},ta={},Yv;function nI(){if(Yv)return ta;Yv=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.default=void 0;function e(o,a,l,c){switch(o){case 0:return a&l^~a&c;case 1:return a^l^c;case 2:return a&l^a&c^l&c;case 3:return a^l^c}}function t(o,a){return o<<a|o>>>32-a}function r(o){const a=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof o=="string"){const p=unescape(encodeURIComponent(o));o=[];for(let h=0;h<p.length;++h)o.push(p.charCodeAt(h))}else Array.isArray(o)||(o=Array.prototype.slice.call(o));o.push(128);const c=o.length/4+2,u=Math.ceil(c/16),d=new Array(u);for(let p=0;p<u;++p){const h=new Uint32Array(16);for(let g=0;g<16;++g)h[g]=o[p*64+g*4]<<24|o[p*64+g*4+1]<<16|o[p*64+g*4+2]<<8|o[p*64+g*4+3];d[p]=h}d[u-1][14]=(o.length-1)*8/Math.pow(2,32),d[u-1][14]=Math.floor(d[u-1][14]),d[u-1][15]=(o.length-1)*8&4294967295;for(let p=0;p<u;++p){const h=new Uint32Array(80);for(let m=0;m<16;++m)h[m]=d[p][m];for(let m=16;m<80;++m)h[m]=t(h[m-3]^h[m-8]^h[m-14]^h[m-16],1);let g=l[0],y=l[1],S=l[2],v=l[3],b=l[4];for(let m=0;m<80;++m){const w=Math.floor(m/20),x=t(g,5)+e(w,y,S,v)+b+a[w]+h[m]>>>0;b=v,v=S,S=t(y,30)>>>0,y=g,g=x}l[0]=l[0]+g>>>0,l[1]=l[1]+y>>>0,l[2]=l[2]+S>>>0,l[3]=l[3]+v>>>0,l[4]=l[4]+b>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var n=r;return ta.default=n,ta}var Kv;function iI(){if(Kv)return ea;Kv=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.default=void 0;var e=r(fy()),t=r(nI());function r(a){return a&&a.__esModule?a:{default:a}}var o=(0,e.default)("v5",80,t.default);return ea.default=o,ea}var ra={},Zv;function oI(){if(Zv)return ra;Zv=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.default=void 0;var e="00000000-0000-0000-0000-000000000000";return ra.default=e,ra}var na={},Xv;function aI(){if(Xv)return na;Xv=1,Object.defineProperty(na,"__esModule",{value:!0}),na.default=void 0;var e=t(pc());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){if(!(0,e.default)(o))throw TypeError("Invalid UUID");return parseInt(o.slice(14,15),16)}var n=r;return na.default=n,na}var Jv;function sI(){return Jv||(Jv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var t=p(JP()),r=p(eI()),n=p(rI()),o=p(iI()),a=p(oI()),l=p(aI()),c=p(pc()),u=p(hc()),d=p(uy());function p(h){return h&&h.__esModule?h:{default:h}}})(ef)),ef}var tf,Qv;function lI(){if(Qv)return tf;Qv=1;function e(t,r){if(!t||!r||!t.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=r}return e.prototype.convert=function(t){var r,n,o,a={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,u=t.length,d=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<u;r++)a[r]=this.srcAlphabet.indexOf(t[r]);do{for(n=0,o=0,r=0;r<u;r++)n=n*l+a[r],n>=c?(a[o++]=parseInt(n/c,10),n=n%c):o>0&&(a[o++]=0);u=o,d=this.dstAlphabet.slice(n,n+1).concat(d)}while(o!==0);return d},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},tf=e,tf}var rf,em;function cI(){if(em)return rf;em=1;var e=lI();function t(r,n){var o=new e(r,n);return function(a){return o.convert(a)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",rf=t,rf}var nf,tm;function uI(){if(tm)return nf;tm=1;const{v4:e,validate:t}=sI(),r=cI(),n={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},o={consistentLength:!0};let a;const l=(d,p,h)=>{const g=p(d.toLowerCase().replace(/-/g,""));return!h||!h.consistentLength?g:g.padStart(h.shortIdLength,h.paddingChar)},c=(d,p)=>{const g=p(d).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[g[1],g[2],g[3],g[4],g[5]].join("-")},u=d=>Math.ceil(Math.log(2**128)/Math.log(d));return nf=(()=>{const d=(p,h)=>{const g=p||n.flickrBase58,y={...o,...h};if([...new Set(Array.from(g))].length!==g.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const S=u(g.length),v={shortIdLength:S,consistentLength:y.consistentLength,paddingChar:g[0]},b=r(r.HEX,g),m=r(g,r.HEX),w=()=>l(e(),b,v),k={alphabet:g,fromUUID:E=>l(E,b,v),maxLength:S,generate:w,new:w,toUUID:E=>c(E,m),uuid:e,validate:(E,R=!1)=>{if(!E||typeof E!="string")return!1;const F=y.consistentLength?E.length===S:E.length<=S,A=E.split("").every(N=>g.includes(N));return R===!1?F&&A:F&&A&&t(c(E,m))}};return Object.freeze(k),k};return d.constants=n,d.uuid=e,d.generate=()=>(a||(a=d(n.flickrBase58).generate),a()),d})(),nf}var Ii=uI();const dy=({depth:e,height:t=24,width:r=11,showLines:n=!0,stroke:o="rgb(241, 245, 249)"})=>{const a=`indent_line_${Ii.generate()}`;return C.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[C.jsx("defs",{children:C.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:C.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:o})})}),n?C.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):C.jsx("rect",{fill:n?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},py=({show:e,expanded:t,onClick:r,variant:n="arrow"})=>e?C.jsx("div",{className:"flex h-6 w-5 items-center",onClick:o=>r&&r(o),children:(()=>{switch(n){case"arrow":return C.jsx(wt.FdDown,{className:tt(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?C.jsx(wt.FdDown,{}):C.jsx(wt.FdRight,{});default:return C.jsx(wt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):C.jsx("div",{className:"flex h-6 w-3 items-center"}),Ld=({node:e,depth:t,expandedKeys:r,selectedKeys:n,actions:o,searchQuery:a,renderNode:l,onNodeClick:c})=>{var y;const{key:u,children:d}=e,p=H.useMemo(()=>({expanded:r.includes(e.key),selected:n.includes(e.key)}),[r,e.key,n]),h=l&&typeof l=="function"?l(e,t,p,o,a):pI(e,t,p,c);return!((y=e.options)!=null&&y.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?C.jsxs(C.Fragment,{children:[C.jsx("div",{className:"flex items-center space-x-2",children:h},u),dI(d||[],t,a,r,n,p.expanded,o,c,l)]}):null},fI=function(e,t){var l;const{title:r,icon:n,subtitle:o}=e;let a=null;return n&&(a=C.jsx(ly,{children:n})),C.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[a,C.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),o&&C.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:o})]})},dI=function(e,t,r,n,o,a,l,c,u){return e.length&&a?e.map(d=>C.jsx(Ld,{actions:l,node:d,searchQuery:r,depth:t+1,expandedKeys:n,selectedKeys:o,onNodeClick:c,renderNode:u},d.key)):null},pI=function(e,t,r,n){return C.jsxs(C.Fragment,{children:[C.jsx(dy,{showLines:!0,depth:t}),C.jsx(py,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),fI(e,n)]})},Ys=e=>t=>e===t,hI=function({treeData:t,renderNode:r,onNodeClick:n,onExpandNode:o,searchQuery:a,expandedKeys:l,expandCondition:c="always",encapsulated:u,className:d}){const[p,h]=H.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));H.useEffect(()=>{c==="when-collapsed"&&p.expandedKeys.length>0||h({...p,expandedKeys:l||p.expandedKeys})},[l]);const g=H.useCallback(m=>{if(!m)return;const w=p.expandedKeys.findIndex(Ys(m.key));let x=[];w===-1?(x=[...p.expandedKeys,m.key],h(()=>({...p,expandedKeys:x})),o&&o(x)):(x=p.expandedKeys.filter(k=>k!==m.key),h(()=>({...p,expandedKeys:x})),o&&o(x))},[p]),y=H.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;p.selectedKeys.findIndex(Ys(m.key))===-1&&h({...p,selectedKeys:[...p.selectedKeys,m.key]})},[p]),S=H.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;p.selectedKeys.findIndex(Ys(m.key))===-1&&h({...p,selectedKeys:[m.key]})},[p]),v=H.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable)){h({...p,selectedKeys:[]});return}p.selectedKeys.findIndex(Ys(m.key))!==-1&&h({...p,selectedKeys:p.selectedKeys.filter(k=>k!==m.key)})},[p]),b=H.useMemo(()=>({expand:g,select:y,selectSingle:S,deselect:v}),[v,g,y,S]);return C.jsx("div",{className:tt("fd-tree",d,{"pl-2 mb-1 rounded border bg-grey-900 p-1":u}),children:t.map(m=>C.jsx(Ld,{node:m,searchQuery:a||"",depth:0,expandedKeys:p.expandedKeys,selectedKeys:p.selectedKeys,actions:b,renderNode:r,onNodeClick:n},m.key))})};function Tl(e){return e.of&&e.children?C.jsx(C.Fragment,{children:e.children}):null}function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pt.apply(null,arguments)}function gI(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var vI={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};function hy(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var mI=/[A-Z]|^ms/g,bI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gy=function(t){return t.charCodeAt(1)===45},rm=function(t){return t!=null&&typeof t!="boolean"},of=hy(function(e){return gy(e)?e:e.replace(mI,"-$&").toLowerCase()}),nm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(bI,function(n,o,a){return rn={name:o,styles:a,next:rn},o})}return vI[t]!==1&&!gy(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ma(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return rn={name:o.name,styles:o.styles,next:rn},o.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)rn={name:l.name,styles:l.styles,next:rn},l=l.next;var c=a.styles+";";return c}return yI(e,t,r)}case"function":{if(e!==void 0){var u=rn,d=r(e);return rn=u,Ma(e,t,d)}break}}var p=r;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function yI(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Ma(e,t,r[o])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?n+=a+"{"+t[c]+"}":rm(c)&&(n+=of(a)+":"+nm(a,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var u=0;u<l.length;u++)rm(l[u])&&(n+=of(a)+":"+nm(a,l[u])+";");else{var d=Ma(e,t,l);switch(a){case"animation":case"animationName":{n+=of(a)+":"+d+";";break}default:n+=a+"{"+d+"}"}}}return n}var im=/label:\s*([^\s;{]+)\s*(;|$)/g,rn;function wI(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";rn=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Ma(r,t,a);else{var l=a;o+=l[0]}for(var c=1;c<e.length;c++)if(o+=Ma(r,t,e[c]),n){var u=a;o+=u[c]}im.lastIndex=0;for(var d="",p;(p=im.exec(o))!==null;)d+="-"+p[1];var h=gI(o)+d;return{name:h,styles:o,next:rn}}var xI=function(t){return t()},SI=z.useInsertionEffect?z.useInsertionEffect:!1,_I=SI||xI,EI=!0;function kI(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var vy=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||EI===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},OI=function(t,r,n){vy(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},AI=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,TI=hy(function(e){return AI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),RI=TI,CI=function(t){return t!=="theme"},om=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?RI:CI},am=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},PI=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return vy(r,n,o),_I(function(){return OI(r,n,o)}),null},II=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,l;r!==void 0&&(a=r.label,l=r.target);var c=am(t,r,n),u=c||om(o),d=!u("as");return function(){var p=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{var g=p[0];h.push(g[0]);for(var y=p.length,S=1;S<y;S++)h.push(p[S],g[S])}var v=Kf.withEmotionCache(function(b,m,w){var x=d&&b.as||o,k="",E=[],R=b;if(b.theme==null){R={};for(var F in b)R[F]=b[F];R.theme=z.useContext(Kf.ThemeContext)}typeof b.className=="string"?k=kI(m.registered,E,b.className):b.className!=null&&(k=b.className+" ");var A=wI(h.concat(E),m.registered,R);k+=m.key+"-"+A.name,l!==void 0&&(k+=" "+l);var N=d&&c===void 0?om(x):u,V={};for(var $ in b)d&&$==="as"||N($)&&(V[$]=b[$]);return V.className=k,w&&(V.ref=w),z.createElement(z.Fragment,null,z.createElement(PI,{cache:m,serialized:A,isStringTag:typeof x=="string"}),z.createElement(x,V))});return v.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=o,v.__emotion_styles=h,v.__emotion_forwardProp=c,Object.defineProperty(v,"toString",{value:function(){return"."+l}}),v.withComponent=function(b,m){var w=e(b,pt({},r,m,{shouldForwardProp:am(v,m,!0)}));return w.apply(void 0,h)},v}},NI=["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"],Ul=II.bind(null);NI.forEach(function(e){Ul[e]=Ul(e)});var MI=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ro=new WeakMap,Ks=new WeakMap,Zs={},af=0,my=function(e){return e&&(e.host||my(e.parentNode))},DI=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=my(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},$I=function(e,t,r,n){var o=DI(t,Array.isArray(e)?e:[e]);Zs[r]||(Zs[r]=new WeakMap);var a=Zs[r],l=[],c=new Set,u=new Set(o),d=function(h){!h||c.has(h)||(c.add(h),d(h.parentNode))};o.forEach(d);var p=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(g){if(c.has(g))p(g);else try{var y=g.getAttribute(n),S=y!==null&&y!=="false",v=(ro.get(g)||0)+1,b=(a.get(g)||0)+1;ro.set(g,v),a.set(g,b),l.push(g),v===1&&S&&Ks.set(g,!0),b===1&&g.setAttribute(r,"true"),S||g.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",g,m)}})};return p(t),c.clear(),af++,function(){l.forEach(function(h){var g=ro.get(h)-1,y=a.get(h)-1;ro.set(h,g),a.set(h,y),g||(Ks.has(h)||h.removeAttribute(n),Ks.delete(h)),y||h.removeAttribute(r)}),af--,af||(ro=new WeakMap,ro=new WeakMap,Ks=new WeakMap,Zs={})}},LI=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=MI(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),$I(n,o,r,"aria-hidden")):function(){return null}},Jf=function(e,t){return Jf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Jf(e,t)};function gc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Jf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var nn=function(){return nn=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},nn.apply(this,arguments)};function by(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Qf(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ed(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],l;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(c){l={error:c}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return a}function ql(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Rl="right-scroll-bar-position",Cl="width-before-scroll-bar",zI="with-scroll-bars-hidden",jI="--removed-body-scroll-bar-size";function sf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function FI(e,t){var r=H.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var HI=typeof window<"u"?z.useLayoutEffect:z.useEffect,sm=new WeakMap;function WI(e,t){var r=FI(null,function(n){return e.forEach(function(o){return sf(o,n)})});return HI(function(){var n=sm.get(r);if(n){var o=new Set(n),a=new Set(e),l=r.current;o.forEach(function(c){a.has(c)||sf(c,null)}),a.forEach(function(c){o.has(c)||sf(c,l)})}sm.set(r,e)},[e]),r}function BI(e){return e}function VI(e,t){t===void 0&&(t=BI);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var l=t(a,n);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(a){for(n=!0;r.length;){var l=r;r=[],l.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){n=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(a),l=r}var u=function(){var p=l;l=[],p.forEach(a)},d=function(){return Promise.resolve().then(u)};d(),r={push:function(p){l.push(p),d()},filter:function(p){return l=l.filter(p),r}}}};return o}function UI(e){e===void 0&&(e={});var t=VI(null);return t.options=nn({async:!0,ssr:!1},e),t}var yy=function(e){var t=e.sideCar,r=by(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return z.createElement(n,nn({},r))};yy.isSideCarExport=!0;function qI(e,t){return e.useMedium(t),yy}var wy=UI(),lf=function(){},vc=z.forwardRef(function(e,t){var r=z.useRef(null),n=z.useState({onScrollCapture:lf,onWheelCapture:lf,onTouchMoveCapture:lf}),o=n[0],a=n[1],l=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,p=e.enabled,h=e.shards,g=e.sideCar,y=e.noRelative,S=e.noIsolation,v=e.inert,b=e.allowPinchZoom,m=e.as,w=m===void 0?"div":m,x=e.gapMode,k=by(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,R=WI([r,t]),F=nn(nn({},k),o);return z.createElement(z.Fragment,null,p&&z.createElement(E,{sideCar:wy,removeScrollBar:d,shards:h,noRelative:y,noIsolation:S,inert:v,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:x}),l?z.cloneElement(z.Children.only(c),nn(nn({},F),{ref:R})):z.createElement(w,nn({},F,{className:u,ref:R}),c))});vc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};vc.classNames={fullWidth:Cl,zeroRight:Rl};var GI=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=GI();return t&&e.setAttribute("nonce",t),e}function KI(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ZI(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var XI=function(){var e=0,t=null;return{add:function(r){e==0&&(t=YI())&&(KI(t,r),ZI(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},JI=function(){var e=XI();return function(t,r){z.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},xy=function(){var e=JI(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},QI={left:0,top:0,right:0,gap:0},cf=function(e){return parseInt(e||"",10)||0},e2=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[cf(r),cf(n),cf(o)]},t2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return QI;var t=e2(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},r2=xy(),po="data-scroll-locked",n2=function(e,t,r,n){var o=e.left,a=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
23
- .`.concat(zI,` {
24
- overflow: hidden `).concat(n,`;
25
- padding-right: `).concat(c,"px ").concat(n,`;
20
+ `)===-1)return null;let E="",R=0;for(;;){const k=h.indexOf(`
21
+ `,R),U=h.slice(R,k===-1?void 0:k+1);if(c(s,U)||(E+=U,k===-1||!U.trim()))break;R=k+1}const O=Eo(E);return O===""?null:[E,,O]}),i:3,u:xl,l:(h,S,E)=>f("p",{key:E.key},S(h.children,E))},22:{t:["["],o:Cn(iT),i:0,u:h=>(p[h[1]]={target:h[2],title:h[4]},{}),l:El},23:{t:["!["],o:sn(oT),i:0,u:h=>({alt:h[1]?wr(h[1]):void 0,ref:h[2]}),l:(h,S,E)=>p[h.ref]?f("img",{key:E.key,alt:h.alt,src:i(p[h.ref].target,"img","src"),title:p[h.ref].title}):null},24:{t:h=>h[0]==="["&&h.indexOf("](")===-1,o:Cn(aT),i:0,u:(h,S,E)=>({children:S(h[1],E),fallbackChildren:h[0],ref:h[2]}),l:(h,S,E)=>p[h.ref]?f("a",{key:E.key,href:i(p[h.ref].target,"a","href"),title:p[h.ref].title},S(h.children,E)):f("span",{key:E.key},h.fallbackChildren)},25:{t:["|"],o:Ur(kh),i:1,u:$T,l(h,S,E){const R=h;return f("table",{key:E.key},f("thead",null,f("tr",null,R.header.map(function(O,k){return f("th",{key:k,style:Mh(R,k)},S(O,E))}))),f("tbody",null,R.cells.map(function(O,k){return f("tr",{key:k},O.map(function(U,M){return f("td",{key:M,style:Mh(R,M)},S(U,E))}))})))}},27:{o:xi(function(h,S){let E;return as(h,":")&&(E=vT.exec(h)),E||wT.exec(h)}),i:4,u(h){const S=h[0];return{text:S.indexOf("&")===-1?S:S.replace(XA,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:h=>h.text},28:{t:["**","__"],o:sn(pT),i:2,u:(h,S,E)=>({children:S(h[2],E)}),l:(h,S,E)=>f("strong",{key:E.key},S(h.children,E))},29:{t:h=>{const S=h[0];return(S==="*"||S==="_")&&h[1]!==S},o:sn(hT),i:3,u:(h,S,E)=>({children:S(h[2],E)}),l:(h,S,E)=>f("em",{key:E.key},S(h.children,E))},30:{t:["\\"],o:sn(yT),i:1,u:h=>({text:h[1],type:"27"})},31:{t:["=="],o:sn(gT),i:3,u:xl,l:(h,S,E)=>f("mark",{key:E.key},S(h.children,E))},32:{t:["~~"],o:sn(mT),i:3,u:xl,l:(h,S,E)=>f("del",{key:E.key},S(h.children,E))}};t.disableParsingRawHTML===!0&&(delete b[11],delete b[13]);const x=(function(h){var S=Object.keys(h);function E(R,O){var k=[];if(O.prevCapture=O.prevCapture||"",R.trim())for(;R;)for(var U=0;U<S.length;){var M=S[U],F=h[M];if(!F.t||CT(R,O,F.t)){var G=F.o(R,O);if(G&&G[0]){R=R.substring(G[0].length);var j=F.u(G,E,O);O.prevCapture+=G[0],j.type||(j.type=M),k.push(j);break}U++}else U++}return O.prevCapture="",k}return S.sort(function(R,O){return h[R].i-h[O].i||(R<O?-1:1)}),function(R,O){return E((function(k){return k.replace(qA,`
22
+ `).replace(KA,"").replace(uT," ")})(R),O)}})(b),d=(function(h,S){return function E(R,O={}){if(Array.isArray(R)){const k=O.key,U=[];let M=!1;for(let F=0;F<R.length;F++){O.key=F;const G=E(R[F],O),j=Ih(G);j&&M?U[U.length-1]+=G:G!==null&&U.push(G),M=j}return O.key=k,U}return(function(k,U,M){const F=h[k.type].l;return S?S(()=>F(k,U,M),k,U,M):F(k,U,M)})(R,E,O)}})(b,t.renderRule),w=v(e);return g.length?f("div",null,w,f("footer",{key:"footer"},g.map(function(h){return f("div",{id:r(h.identifier,Bi),key:h.identifier},h.identifier,d(x(h.footnote,{inline:!0})))}))):w}const ms=e=>{let{children:t="",options:r}=e,i=(function(a,s){if(a==null)return{};var l,c,f={},v=Object.keys(a);for(c=0;c<v.length;c++)s.indexOf(l=v[c])>=0||(f[l]=a[l]);return f})(e,LA);return $.cloneElement(NT(t,r),i)},Fh=({kind:e,customIcon:t})=>{const r={"text-yellow-400":e==="warning","text-red-500":e==="danger"||e==="error","text-primary":e==="info","text-green-500":e==="message"};if(t)return D.jsx(t,{className:We("flex-none size-6",r)});switch(e){case"error":case"danger":return D.jsx(nt.FdSanityCheckInfo,{className:We("flex-none size-6",r)});case"info":return D.jsx(D.Fragment,{children:D.jsx(nt.FdInfoBold,{className:We("flex-none size-6",r)})});case"warning":return D.jsx(D.Fragment,{children:D.jsx(nt.FdWarningDanger,{className:We("flex-none size-6",r)})});case"message":return D.jsx(D.Fragment,{children:D.jsx(nt.FdInfoBold,{className:We("flex-none size-6",r)})});default:return null}},jT=({id:e,onClose:t,kind:r,message:i,markdown:a,customIcon:s})=>{const l=({className:c}={})=>D.jsx("button",{onClick:t,className:We("flex justify-center p-1",c),children:D.jsx(nt.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return D.jsx("div",{className:We("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof i=="string"?D.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[D.jsx("div",{className:"pt-1",children:D.jsx(Fh,{kind:r,customIcon:s})}),D.jsx("div",{className:"flex items-center gap-1 prose",children:a?D.jsx(ms,{children:i}):D.jsx(D.Fragment,{children:i})}),l()]}):D.jsxs("div",{className:"flex items-start",children:[D.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>D.jsxs(D.Fragment,{children:[c.title&&D.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[D.jsx(Fh,{kind:r,customIcon:s}),D.jsxs("span",{children:[c.title," :"]})]}),D.jsx("ul",{className:We("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(f=>D.jsx("li",{children:a?D.jsx(ms,{children:f}):D.jsx(D.Fragment,{children:f})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},dv=({children:e,size:t,className:r,...i})=>D.jsx("div",{style:{"--width":`${t||24}px`},className:We("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var Ol={},Hi={},za={},Dh;function pv(){if(Dh)return za;Dh=1,Object.defineProperty(za,"__esModule",{value:!0}),za.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return za}var li={},qi={},Zi={},Nh;function zT(){if(Nh)return Zi;Nh=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Zi.default=e,Zi}var jh;function Is(){if(jh)return qi;jh=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.default=void 0;var e=t(zT());function t(a){return a&&a.__esModule?a:{default:a}}function r(a){return typeof a=="string"&&e.default.test(a)}var i=r;return qi.default=i,qi}var zh;function Ls(){if(zh)return li;zh=1,Object.defineProperty(li,"__esModule",{value:!0}),li.default=void 0,li.unsafeStringify=i;var e=t(Is());function t(l){return l&&l.__esModule?l:{default:l}}const r=[];for(let l=0;l<256;++l)r.push((l+256).toString(16).slice(1));function i(l,c=0){return r[l[c+0]]+r[l[c+1]]+r[l[c+2]]+r[l[c+3]]+"-"+r[l[c+4]]+r[l[c+5]]+"-"+r[l[c+6]]+r[l[c+7]]+"-"+r[l[c+8]]+r[l[c+9]]+"-"+r[l[c+10]]+r[l[c+11]]+r[l[c+12]]+r[l[c+13]]+r[l[c+14]]+r[l[c+15]]}function a(l,c=0){const f=i(l,c);if(!(0,e.default)(f))throw TypeError("Stringified UUID is invalid");return f}var s=a;return li.default=s,li}var Wh;function WT(){if(Wh)return Hi;Wh=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=void 0;var e=r(pv()),t=Ls();function r(v){return v&&v.__esModule?v:{default:v}}let i,a,s=0,l=0;function c(v,m,g){let p=m&&g||0;const b=m||new Array(16);v=v||{};let x=v.node||i,d=v.clockseq!==void 0?v.clockseq:a;if(x==null||d==null){const O=v.random||(v.rng||e.default)();x==null&&(x=i=[O[0]|1,O[1],O[2],O[3],O[4],O[5]]),d==null&&(d=a=(O[6]<<8|O[7])&16383)}let w=v.msecs!==void 0?v.msecs:Date.now(),h=v.nsecs!==void 0?v.nsecs:l+1;const S=w-s+(h-l)/1e4;if(S<0&&v.clockseq===void 0&&(d=d+1&16383),(S<0||w>s)&&v.nsecs===void 0&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=w,l=h,a=d,w+=122192928e5;const E=((w&268435455)*1e4+h)%4294967296;b[p++]=E>>>24&255,b[p++]=E>>>16&255,b[p++]=E>>>8&255,b[p++]=E&255;const R=w/4294967296*1e4&268435455;b[p++]=R>>>8&255,b[p++]=R&255,b[p++]=R>>>24&15|16,b[p++]=R>>>16&255,b[p++]=d>>>8|128,b[p++]=d&255;for(let O=0;O<6;++O)b[p+O]=x[O];return m||(0,t.unsafeStringify)(b)}var f=c;return Hi.default=f,Hi}var Gi={},un={},Ki={},Uh;function hv(){if(Uh)return Ki;Uh=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=void 0;var e=t(Is());function t(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");let s;const l=new Uint8Array(16);return l[0]=(s=parseInt(a.slice(0,8),16))>>>24,l[1]=s>>>16&255,l[2]=s>>>8&255,l[3]=s&255,l[4]=(s=parseInt(a.slice(9,13),16))>>>8,l[5]=s&255,l[6]=(s=parseInt(a.slice(14,18),16))>>>8,l[7]=s&255,l[8]=(s=parseInt(a.slice(19,23),16))>>>8,l[9]=s&255,l[10]=(s=parseInt(a.slice(24,36),16))/1099511627776&255,l[11]=s/4294967296&255,l[12]=s>>>24&255,l[13]=s>>>16&255,l[14]=s>>>8&255,l[15]=s&255,l}var i=r;return Ki.default=i,Ki}var Bh;function gv(){if(Bh)return un;Bh=1,Object.defineProperty(un,"__esModule",{value:!0}),un.URL=un.DNS=void 0,un.default=l;var e=Ls(),t=r(hv());function r(c){return c&&c.__esModule?c:{default:c}}function i(c){c=unescape(encodeURIComponent(c));const f=[];for(let v=0;v<c.length;++v)f.push(c.charCodeAt(v));return f}const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";un.DNS=a;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";un.URL=s;function l(c,f,v){function m(g,p,b,x){var d;if(typeof g=="string"&&(g=i(g)),typeof p=="string"&&(p=(0,t.default)(p)),((d=p)===null||d===void 0?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let w=new Uint8Array(16+g.length);if(w.set(p),w.set(g,p.length),w=v(w),w[6]=w[6]&15|f,w[8]=w[8]&63|128,b){x=x||0;for(let h=0;h<16;++h)b[x+h]=w[h];return b}return(0,e.unsafeStringify)(w)}try{m.name=c}catch{}return m.DNS=a,m.URL=s,m}return un}var Vi={},Hh;function UT(){if(Hh)return Vi;Hh=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.default=void 0;function e(b){if(typeof b=="string"){const x=unescape(encodeURIComponent(b));b=new Uint8Array(x.length);for(let d=0;d<x.length;++d)b[d]=x.charCodeAt(d)}return t(i(a(b),b.length*8))}function t(b){const x=[],d=b.length*32,w="0123456789abcdef";for(let h=0;h<d;h+=8){const S=b[h>>5]>>>h%32&255,E=parseInt(w.charAt(S>>>4&15)+w.charAt(S&15),16);x.push(E)}return x}function r(b){return(b+64>>>9<<4)+14+1}function i(b,x){b[x>>5]|=128<<x%32,b[r(x)-1]=x;let d=1732584193,w=-271733879,h=-1732584194,S=271733878;for(let E=0;E<b.length;E+=16){const R=d,O=w,k=h,U=S;d=f(d,w,h,S,b[E],7,-680876936),S=f(S,d,w,h,b[E+1],12,-389564586),h=f(h,S,d,w,b[E+2],17,606105819),w=f(w,h,S,d,b[E+3],22,-1044525330),d=f(d,w,h,S,b[E+4],7,-176418897),S=f(S,d,w,h,b[E+5],12,1200080426),h=f(h,S,d,w,b[E+6],17,-1473231341),w=f(w,h,S,d,b[E+7],22,-45705983),d=f(d,w,h,S,b[E+8],7,1770035416),S=f(S,d,w,h,b[E+9],12,-1958414417),h=f(h,S,d,w,b[E+10],17,-42063),w=f(w,h,S,d,b[E+11],22,-1990404162),d=f(d,w,h,S,b[E+12],7,1804603682),S=f(S,d,w,h,b[E+13],12,-40341101),h=f(h,S,d,w,b[E+14],17,-1502002290),w=f(w,h,S,d,b[E+15],22,1236535329),d=v(d,w,h,S,b[E+1],5,-165796510),S=v(S,d,w,h,b[E+6],9,-1069501632),h=v(h,S,d,w,b[E+11],14,643717713),w=v(w,h,S,d,b[E],20,-373897302),d=v(d,w,h,S,b[E+5],5,-701558691),S=v(S,d,w,h,b[E+10],9,38016083),h=v(h,S,d,w,b[E+15],14,-660478335),w=v(w,h,S,d,b[E+4],20,-405537848),d=v(d,w,h,S,b[E+9],5,568446438),S=v(S,d,w,h,b[E+14],9,-1019803690),h=v(h,S,d,w,b[E+3],14,-187363961),w=v(w,h,S,d,b[E+8],20,1163531501),d=v(d,w,h,S,b[E+13],5,-1444681467),S=v(S,d,w,h,b[E+2],9,-51403784),h=v(h,S,d,w,b[E+7],14,1735328473),w=v(w,h,S,d,b[E+12],20,-1926607734),d=m(d,w,h,S,b[E+5],4,-378558),S=m(S,d,w,h,b[E+8],11,-2022574463),h=m(h,S,d,w,b[E+11],16,1839030562),w=m(w,h,S,d,b[E+14],23,-35309556),d=m(d,w,h,S,b[E+1],4,-1530992060),S=m(S,d,w,h,b[E+4],11,1272893353),h=m(h,S,d,w,b[E+7],16,-155497632),w=m(w,h,S,d,b[E+10],23,-1094730640),d=m(d,w,h,S,b[E+13],4,681279174),S=m(S,d,w,h,b[E],11,-358537222),h=m(h,S,d,w,b[E+3],16,-722521979),w=m(w,h,S,d,b[E+6],23,76029189),d=m(d,w,h,S,b[E+9],4,-640364487),S=m(S,d,w,h,b[E+12],11,-421815835),h=m(h,S,d,w,b[E+15],16,530742520),w=m(w,h,S,d,b[E+2],23,-995338651),d=g(d,w,h,S,b[E],6,-198630844),S=g(S,d,w,h,b[E+7],10,1126891415),h=g(h,S,d,w,b[E+14],15,-1416354905),w=g(w,h,S,d,b[E+5],21,-57434055),d=g(d,w,h,S,b[E+12],6,1700485571),S=g(S,d,w,h,b[E+3],10,-1894986606),h=g(h,S,d,w,b[E+10],15,-1051523),w=g(w,h,S,d,b[E+1],21,-2054922799),d=g(d,w,h,S,b[E+8],6,1873313359),S=g(S,d,w,h,b[E+15],10,-30611744),h=g(h,S,d,w,b[E+6],15,-1560198380),w=g(w,h,S,d,b[E+13],21,1309151649),d=g(d,w,h,S,b[E+4],6,-145523070),S=g(S,d,w,h,b[E+11],10,-1120210379),h=g(h,S,d,w,b[E+2],15,718787259),w=g(w,h,S,d,b[E+9],21,-343485551),d=s(d,R),w=s(w,O),h=s(h,k),S=s(S,U)}return[d,w,h,S]}function a(b){if(b.length===0)return[];const x=b.length*8,d=new Uint32Array(r(x));for(let w=0;w<x;w+=8)d[w>>5]|=(b[w/8]&255)<<w%32;return d}function s(b,x){const d=(b&65535)+(x&65535);return(b>>16)+(x>>16)+(d>>16)<<16|d&65535}function l(b,x){return b<<x|b>>>32-x}function c(b,x,d,w,h,S){return s(l(s(s(x,b),s(w,S)),h),d)}function f(b,x,d,w,h,S,E){return c(x&d|~x&w,b,x,h,S,E)}function v(b,x,d,w,h,S,E){return c(x&w|d&~w,b,x,h,S,E)}function m(b,x,d,w,h,S,E){return c(x^d^w,b,x,h,S,E)}function g(b,x,d,w,h,S,E){return c(d^(x|~w),b,x,h,S,E)}var p=e;return Vi.default=p,Vi}var qh;function BT(){if(qh)return Gi;qh=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.default=void 0;var e=r(gv()),t=r(UT());function r(s){return s&&s.__esModule?s:{default:s}}var a=(0,e.default)("v3",48,t.default);return Gi.default=a,Gi}var Yi={},Xi={},Zh;function HT(){if(Zh)return Xi;Zh=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Xi.default=t,Xi}var Gh;function qT(){if(Gh)return Yi;Gh=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=i(HT()),t=i(pv()),r=Ls();function i(l){return l&&l.__esModule?l:{default:l}}function a(l,c,f){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const v=l.random||(l.rng||t.default)();if(v[6]=v[6]&15|64,v[8]=v[8]&63|128,c){f=f||0;for(let m=0;m<16;++m)c[f+m]=v[m];return c}return(0,r.unsafeStringify)(v)}var s=a;return Yi.default=s,Yi}var Ji={},Qi={},Kh;function ZT(){if(Kh)return Qi;Kh=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;function e(a,s,l,c){switch(a){case 0:return s&l^~s&c;case 1:return s^l^c;case 2:return s&l^s&c^l&c;case 3:return s^l^c}}function t(a,s){return a<<s|a>>>32-s}function r(a){const s=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof a=="string"){const m=unescape(encodeURIComponent(a));a=[];for(let g=0;g<m.length;++g)a.push(m.charCodeAt(g))}else Array.isArray(a)||(a=Array.prototype.slice.call(a));a.push(128);const c=a.length/4+2,f=Math.ceil(c/16),v=new Array(f);for(let m=0;m<f;++m){const g=new Uint32Array(16);for(let p=0;p<16;++p)g[p]=a[m*64+p*4]<<24|a[m*64+p*4+1]<<16|a[m*64+p*4+2]<<8|a[m*64+p*4+3];v[m]=g}v[f-1][14]=(a.length-1)*8/Math.pow(2,32),v[f-1][14]=Math.floor(v[f-1][14]),v[f-1][15]=(a.length-1)*8&4294967295;for(let m=0;m<f;++m){const g=new Uint32Array(80);for(let h=0;h<16;++h)g[h]=v[m][h];for(let h=16;h<80;++h)g[h]=t(g[h-3]^g[h-8]^g[h-14]^g[h-16],1);let p=l[0],b=l[1],x=l[2],d=l[3],w=l[4];for(let h=0;h<80;++h){const S=Math.floor(h/20),E=t(p,5)+e(S,b,x,d)+w+s[S]+g[h]>>>0;w=d,d=x,x=t(b,30)>>>0,b=p,p=E}l[0]=l[0]+p>>>0,l[1]=l[1]+b>>>0,l[2]=l[2]+x>>>0,l[3]=l[3]+d>>>0,l[4]=l[4]+w>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var i=r;return Qi.default=i,Qi}var Vh;function GT(){if(Vh)return Ji;Vh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var e=r(gv()),t=r(ZT());function r(s){return s&&s.__esModule?s:{default:s}}var a=(0,e.default)("v5",80,t.default);return Ji.default=a,Ji}var eo={},Yh;function KT(){if(Yh)return eo;Yh=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e="00000000-0000-0000-0000-000000000000";return eo.default=e,eo}var to={},Xh;function VT(){if(Xh)return to;Xh=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var e=t(Is());function t(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");return parseInt(a.slice(14,15),16)}var i=r;return to.default=i,to}var Jh;function YT(){return Jh||(Jh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var t=m(WT()),r=m(BT()),i=m(qT()),a=m(GT()),s=m(KT()),l=m(VT()),c=m(Is()),f=m(Ls()),v=m(hv());function m(g){return g&&g.__esModule?g:{default:g}}})(Ol)),Ol}var Al,Qh;function XT(){if(Qh)return Al;Qh=1;function e(t,r){if(!t||!r||!t.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=r}return e.prototype.convert=function(t){var r,i,a,s={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,f=t.length,v=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<f;r++)s[r]=this.srcAlphabet.indexOf(t[r]);do{for(i=0,a=0,r=0;r<f;r++)i=i*l+s[r],i>=c?(s[a++]=parseInt(i/c,10),i=i%c):a>0&&(s[a++]=0);f=a,v=this.dstAlphabet.slice(i,i+1).concat(v)}while(a!==0);return v},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},Al=e,Al}var Tl,eg;function JT(){if(eg)return Tl;eg=1;var e=XT();function t(r,i){var a=new e(r,i);return function(s){return a.convert(s)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",Tl=t,Tl}var Rl,tg;function QT(){if(tg)return Rl;tg=1;const{v4:e,validate:t}=YT(),r=JT(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},a={consistentLength:!0};let s;const l=(v,m,g)=>{const p=m(v.toLowerCase().replace(/-/g,""));return!g||!g.consistentLength?p:p.padStart(g.shortIdLength,g.paddingChar)},c=(v,m)=>{const p=m(v).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[p[1],p[2],p[3],p[4],p[5]].join("-")},f=v=>Math.ceil(Math.log(2**128)/Math.log(v));return Rl=(()=>{const v=(m,g)=>{const p=m||i.flickrBase58,b={...a,...g};if([...new Set(Array.from(p))].length!==p.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=f(p.length),d={shortIdLength:x,consistentLength:b.consistentLength,paddingChar:p[0]},w=r(r.HEX,p),h=r(p,r.HEX),S=()=>l(e(),w,d),R={alphabet:p,fromUUID:O=>l(O,w,d),maxLength:x,generate:S,new:S,toUUID:O=>c(O,h),uuid:e,validate:(O,k=!1)=>{if(!O||typeof O!="string")return!1;const U=b.consistentLength?O.length===x:O.length<=x,M=O.split("").every(F=>p.includes(F));return k===!1?U&&M:U&&M&&t(c(O,h))}};return Object.freeze(R),R};return v.constants=i,v.uuid=e,v.generate=()=>(s||(s=v(i.flickrBase58).generate),s()),v})(),Rl}var Bc=QT();const mv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:a="rgb(241, 245, 249)"})=>{const s=`indent_line_${Bc.generate()}`;return D.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[D.jsx("defs",{children:D.jsx("pattern",{id:s,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:D.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:a})})}),i?D.jsx("rect",{fill:`url(#${s})`,x:"0",y:"0",width:`${11*e}`,height:t}):D.jsx("rect",{fill:i?`url(#${s})`:"",x:"0",y:"0",width:0,height:t})]})},vv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?D.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>r&&r(a),children:(()=>{switch(i){case"arrow":return D.jsx(nt.FdDown,{className:We(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?D.jsx(nt.FdDown,{}):D.jsx(nt.FdRight,{});default:return D.jsx(nt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):D.jsx("div",{className:"flex h-6 w-3 items-center"}),Hc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:a,searchQuery:s,renderNode:l,onNodeClick:c})=>{var b;const{key:f,children:v}=e,m=W.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),g=l&&typeof l=="function"?l(e,t,m,a,s):rR(e,t,m,c);return!((b=e.options)!=null&&b.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?D.jsxs(D.Fragment,{children:[D.jsx("div",{className:"flex items-center space-x-2",children:g},f),tR(v||[],t,s,r,i,m.expanded,a,c,l)]}):null},eR=function(e,t){var l;const{title:r,icon:i,subtitle:a}=e;let s=null;return i&&(s=D.jsx(dv,{children:i})),D.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[s,D.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),a&&D.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},tR=function(e,t,r,i,a,s,l,c,f){return e.length&&s?e.map(v=>D.jsx(Hc,{actions:l,node:v,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:a,onNodeClick:c,renderNode:f},v.key)):null},rR=function(e,t,r,i){return D.jsxs(D.Fragment,{children:[D.jsx(mv,{showLines:!0,depth:t}),D.jsx(vv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),eR(e,i)]})},Wa=e=>t=>e===t,nR=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:a,searchQuery:s,expandedKeys:l,expandCondition:c="always",encapsulated:f,className:v}){const[m,g]=W.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));W.useEffect(()=>{c==="when-collapsed"&&m.expandedKeys.length>0||g({...m,expandedKeys:l||m.expandedKeys})},[l]);const p=W.useCallback(h=>{if(!h)return;const S=m.expandedKeys.findIndex(Wa(h.key));let E=[];S===-1?(E=[...m.expandedKeys,h.key],g(()=>({...m,expandedKeys:E})),a&&a(E)):(E=m.expandedKeys.filter(R=>R!==h.key),g(()=>({...m,expandedKeys:E})),a&&a(E))},[m]),b=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;m.selectedKeys.findIndex(Wa(h.key))===-1&&g({...m,selectedKeys:[...m.selectedKeys,h.key]})},[m]),x=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;m.selectedKeys.findIndex(Wa(h.key))===-1&&g({...m,selectedKeys:[h.key]})},[m]),d=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable)){g({...m,selectedKeys:[]});return}m.selectedKeys.findIndex(Wa(h.key))!==-1&&g({...m,selectedKeys:m.selectedKeys.filter(R=>R!==h.key)})},[m]),w=W.useMemo(()=>({expand:p,select:b,selectSingle:x,deselect:d}),[d,p,b,x]);return D.jsx("div",{className:We("fd-tree",v,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(h=>D.jsx(Hc,{node:h,searchQuery:s||"",depth:0,expandedKeys:m.expandedKeys,selectedKeys:m.selectedKeys,actions:w,renderNode:r,onNodeClick:i},h.key))})};function us(e){return e.of&&e.children?D.jsx(D.Fragment,{children:e.children}):null}function Xe(){return Xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Xe.apply(null,arguments)}function iR(e){for(var t=0,r,i=0,a=e.length;a>=4;++i,a-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var oR={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};function yv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var aR=/[A-Z]|^ms/g,sR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bv=function(t){return t.charCodeAt(1)===45},rg=function(t){return t!=null&&typeof t!="boolean"},Pl=yv(function(e){return bv(e)?e:e.replace(aR,"-$&").toLowerCase()}),ng=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(sR,function(i,a,s){return _r={name:a,styles:s,next:_r},a})}return oR[t]!==1&&!bv(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ro(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return _r={name:a.name,styles:a.styles,next:_r},a.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)_r={name:l.name,styles:l.styles,next:_r},l=l.next;var c=s.styles+";";return c}return uR(e,t,r)}case"function":{if(e!==void 0){var f=_r,v=r(e);return _r=f,Ro(e,t,v)}break}}var m=r;if(t==null)return m;var g=t[m];return g!==void 0?g:m}function uR(e,t,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=Ro(e,t,r[a])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?i+=s+"{"+t[c]+"}":rg(c)&&(i+=Pl(s)+":"+ng(s,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var f=0;f<l.length;f++)rg(l[f])&&(i+=Pl(s)+":"+ng(s,l[f])+";");else{var v=Ro(e,t,l);switch(s){case"animation":case"animationName":{i+=Pl(s)+":"+v+";";break}default:i+=s+"{"+v+"}"}}}return i}var ig=/label:\s*([^\s;{]+)\s*(;|$)/g,_r;function lR(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,a="";_r=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,a+=Ro(r,t,s);else{var l=s;a+=l[0]}for(var c=1;c<e.length;c++)if(a+=Ro(r,t,e[c]),i){var f=s;a+=f[c]}ig.lastIndex=0;for(var v="",m;(m=ig.exec(a))!==null;)v+="-"+m[1];var g=iR(a)+v;return{name:g,styles:a,next:_r}}var cR=function(t){return t()},fR=$.useInsertionEffect?$.useInsertionEffect:!1,dR=fR||cR,pR=!0;function hR(e,t,r){var i="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(i+=a+" ")}),i}var wv=function(t,r,i){var a=t.key+"-"+r.name;(i===!1||pR===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},gR=function(t,r,i){wv(t,r,i);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}},mR=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,vR=yv(function(e){return mR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),yR=vR,bR=function(t){return t!=="theme"},og=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?yR:bR},ag=function(t,r,i){var a;if(r){var s=r.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof a!="function"&&i&&(a=t.__emotion_forwardProp),a},wR=function(t){var r=t.cache,i=t.serialized,a=t.isStringTag;return wv(r,i,a),dR(function(){return gR(r,i,a)}),null},xR=function e(t,r){var i=t.__emotion_real===t,a=i&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var c=ag(t,r,i),f=c||og(a),v=!f("as");return function(){var m=arguments,g=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&g.push("label:"+s+";"),m[0]==null||m[0].raw===void 0)g.push.apply(g,m);else{var p=m[0];g.push(p[0]);for(var b=m.length,x=1;x<b;x++)g.push(m[x],p[x])}var d=sc.withEmotionCache(function(w,h,S){var E=v&&w.as||a,R="",O=[],k=w;if(w.theme==null){k={};for(var U in w)k[U]=w[U];k.theme=$.useContext(sc.ThemeContext)}typeof w.className=="string"?R=hR(h.registered,O,w.className):w.className!=null&&(R=w.className+" ");var M=lR(g.concat(O),h.registered,k);R+=h.key+"-"+M.name,l!==void 0&&(R+=" "+l);var F=v&&c===void 0?og(E):f,G={};for(var j in w)v&&j==="as"||F(j)&&(G[j]=w[j]);return G.className=R,S&&(G.ref=S),$.createElement($.Fragment,null,$.createElement(wR,{cache:h,serialized:M,isStringTag:typeof E=="string"}),$.createElement(E,G))});return d.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",d.defaultProps=t.defaultProps,d.__emotion_real=d,d.__emotion_base=a,d.__emotion_styles=g,d.__emotion_forwardProp=c,Object.defineProperty(d,"toString",{value:function(){return"."+l}}),d.withComponent=function(w,h){var S=e(w,Xe({},r,h,{shouldForwardProp:ag(d,h,!0)}));return S.apply(void 0,g)},d}},SR=["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"],vs=xR.bind(null);SR.forEach(function(e){vs[e]=vs(e)});var ER=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ci=new WeakMap,Ua=new WeakMap,Ba={},Cl=0,xv=function(e){return e&&(e.host||xv(e.parentNode))},_R=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=xv(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},OR=function(e,t,r,i){var a=_R(t,Array.isArray(e)?e:[e]);Ba[r]||(Ba[r]=new WeakMap);var s=Ba[r],l=[],c=new Set,f=new Set(a),v=function(g){!g||c.has(g)||(c.add(g),v(g.parentNode))};a.forEach(v);var m=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(p){if(c.has(p))m(p);else try{var b=p.getAttribute(i),x=b!==null&&b!=="false",d=(ci.get(p)||0)+1,w=(s.get(p)||0)+1;ci.set(p,d),s.set(p,w),l.push(p),d===1&&x&&Ua.set(p,!0),w===1&&p.setAttribute(r,"true"),x||p.setAttribute(i,"true")}catch(h){console.error("aria-hidden: cannot operate on ",p,h)}})};return m(t),c.clear(),Cl++,function(){l.forEach(function(g){var p=ci.get(g)-1,b=s.get(g)-1;ci.set(g,p),s.set(g,b),p||(Ua.has(g)||g.removeAttribute(i),Ua.delete(g)),b||g.removeAttribute(r)}),Cl--,Cl||(ci=new WeakMap,ci=new WeakMap,Ua=new WeakMap,Ba={})}},AR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=ER(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),OR(i,a,r,"aria-hidden")):function(){return null}},cc=function(e,t){return cc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},cc(e,t)};function Ms(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Or=function(){return Or=Object.assign||function(t){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Or.apply(this,arguments)};function Sv(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}function fc(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function dc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,s=[],l;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return s}function ys(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,s;i<a;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var ls="right-scroll-bar-position",cs="width-before-scroll-bar",TR="with-scroll-bars-hidden",RR="--removed-body-scroll-bar-size";function kl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function PR(e,t){var r=W.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var a=r.value;a!==i&&(r.value=i,r.callback(i,a))}}}})[0];return r.callback=t,r.facade}var CR=typeof window<"u"?$.useLayoutEffect:$.useEffect,sg=new WeakMap;function kR(e,t){var r=PR(null,function(i){return e.forEach(function(a){return kl(a,i)})});return CR(function(){var i=sg.get(r);if(i){var a=new Set(i),s=new Set(e),l=r.current;a.forEach(function(c){s.has(c)||kl(c,null)}),s.forEach(function(c){a.has(c)||kl(c,l)})}sg.set(r,e)},[e]),r}function $R(e){return e}function IR(e,t){t===void 0&&(t=$R);var r=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var l=t(s,i);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(i=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(c){return s(c)},filter:function(){return r}}},assignMedium:function(s){i=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(s),l=r}var f=function(){var m=l;l=[],m.forEach(s)},v=function(){return Promise.resolve().then(f)};v(),r={push:function(m){l.push(m),v()},filter:function(m){return l=l.filter(m),r}}}};return a}function LR(e){e===void 0&&(e={});var t=IR(null);return t.options=Or({async:!0,ssr:!1},e),t}var Ev=function(e){var t=e.sideCar,r=Sv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return $.createElement(i,Or({},r))};Ev.isSideCarExport=!0;function MR(e,t){return e.useMedium(t),Ev}var _v=LR(),$l=function(){},Fs=$.forwardRef(function(e,t){var r=$.useRef(null),i=$.useState({onScrollCapture:$l,onWheelCapture:$l,onTouchMoveCapture:$l}),a=i[0],s=i[1],l=e.forwardProps,c=e.children,f=e.className,v=e.removeScrollBar,m=e.enabled,g=e.shards,p=e.sideCar,b=e.noRelative,x=e.noIsolation,d=e.inert,w=e.allowPinchZoom,h=e.as,S=h===void 0?"div":h,E=e.gapMode,R=Sv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,k=kR([r,t]),U=Or(Or({},R),a);return $.createElement($.Fragment,null,m&&$.createElement(O,{sideCar:_v,removeScrollBar:v,shards:g,noRelative:b,noIsolation:x,inert:d,setCallbacks:s,allowPinchZoom:!!w,lockRef:r,gapMode:E}),l?$.cloneElement($.Children.only(c),Or(Or({},U),{ref:k})):$.createElement(S,Or({},U,{className:f,ref:k}),c))});Fs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fs.classNames={fullWidth:cs,zeroRight:ls};var FR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function DR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=FR();return t&&e.setAttribute("nonce",t),e}function NR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function jR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=DR())&&(NR(t,r),jR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},WR=function(){var e=zR();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ov=function(){var e=WR(),t=function(r){var i=r.styles,a=r.dynamic;return e(i,a),null};return t},UR={left:0,top:0,right:0,gap:0},Il=function(e){return parseInt(e||"",10)||0},BR=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Il(r),Il(i),Il(a)]},HR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return UR;var t=BR(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},qR=Ov(),hi="data-scroll-locked",ZR=function(e,t,r,i){var a=e.left,s=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
23
+ .`.concat(TR,` {
24
+ overflow: hidden `).concat(i,`;
25
+ padding-right: `).concat(c,"px ").concat(i,`;
26
26
  }
27
- body[`).concat(po,`] {
28
- overflow: hidden `).concat(n,`;
27
+ body[`).concat(hi,`] {
28
+ overflow: hidden `).concat(i,`;
29
29
  overscroll-behavior: contain;
30
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
31
- padding-left: `.concat(o,`px;
32
- padding-top: `).concat(a,`px;
30
+ `).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
31
+ padding-left: `.concat(a,`px;
32
+ padding-top: `).concat(s,`px;
33
33
  padding-right: `).concat(l,`px;
34
34
  margin-left:0;
35
35
  margin-top:0;
36
- margin-right: `).concat(c,"px ").concat(n,`;
37
- `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),`
36
+ margin-right: `).concat(c,"px ").concat(i,`;
37
+ `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
38
38
  }
39
39
 
40
- .`).concat(Rl,` {
41
- right: `).concat(c,"px ").concat(n,`;
40
+ .`).concat(ls,` {
41
+ right: `).concat(c,"px ").concat(i,`;
42
42
  }
43
43
 
44
- .`).concat(Cl,` {
45
- margin-right: `).concat(c,"px ").concat(n,`;
44
+ .`).concat(cs,` {
45
+ margin-right: `).concat(c,"px ").concat(i,`;
46
46
  }
47
47
 
48
- .`).concat(Rl," .").concat(Rl,` {
49
- right: 0 `).concat(n,`;
48
+ .`).concat(ls," .").concat(ls,` {
49
+ right: 0 `).concat(i,`;
50
50
  }
51
51
 
52
- .`).concat(Cl," .").concat(Cl,` {
53
- margin-right: 0 `).concat(n,`;
52
+ .`).concat(cs," .").concat(cs,` {
53
+ margin-right: 0 `).concat(i,`;
54
54
  }
55
55
 
56
- body[`).concat(po,`] {
57
- `).concat(jI,": ").concat(c,`px;
56
+ body[`).concat(hi,`] {
57
+ `).concat(RR,": ").concat(c,`px;
58
58
  }
59
- `)},lm=function(){var e=parseInt(document.body.getAttribute(po)||"0",10);return isFinite(e)?e:0},i2=function(){z.useEffect(function(){return document.body.setAttribute(po,(lm()+1).toString()),function(){var e=lm()-1;e<=0?document.body.removeAttribute(po):document.body.setAttribute(po,e.toString())}},[])},o2=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;i2();var a=z.useMemo(function(){return t2(o)},[o]);return z.createElement(r2,{styles:n2(a,!t,o,r?"":"!important")})},td=!1;if(typeof window<"u")try{var Xs=Object.defineProperty({},"passive",{get:function(){return td=!0,!0}});window.addEventListener("test",Xs,Xs),window.removeEventListener("test",Xs,Xs)}catch{td=!1}var no=td?{passive:!1}:!1,a2=function(e){return e.tagName==="TEXTAREA"},Sy=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!a2(e)&&r[t]==="visible")},s2=function(e){return Sy(e,"overflowY")},l2=function(e){return Sy(e,"overflowX")},cm=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=_y(e,n);if(o){var a=Ey(e,n),l=a[1],c=a[2];if(l>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},c2=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},u2=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},_y=function(e,t){return e==="v"?s2(t):l2(t)},Ey=function(e,t){return e==="v"?c2(t):u2(t)},f2=function(e,t){return e==="h"&&t==="rtl"?-1:1},d2=function(e,t,r,n,o){var a=f2(e,window.getComputedStyle(t).direction),l=a*n,c=r.target,u=t.contains(c),d=!1,p=l>0,h=0,g=0;do{if(!c)break;var y=Ey(e,c),S=y[0],v=y[1],b=y[2],m=v-b-a*S;(S||m)&&_y(e,c)&&(h+=m,g+=S);var w=c.parentNode;c=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(p&&Math.abs(h)<1||!p&&Math.abs(g)<1)&&(d=!0),d},Js=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},um=function(e){return[e.deltaX,e.deltaY]},fm=function(e){return e&&"current"in e?e.current:e},p2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},h2=function(e){return`
59
+ `)},ug=function(){var e=parseInt(document.body.getAttribute(hi)||"0",10);return isFinite(e)?e:0},GR=function(){$.useEffect(function(){return document.body.setAttribute(hi,(ug()+1).toString()),function(){var e=ug()-1;e<=0?document.body.removeAttribute(hi):document.body.setAttribute(hi,e.toString())}},[])},KR=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;GR();var s=$.useMemo(function(){return HR(a)},[a]);return $.createElement(qR,{styles:ZR(s,!t,a,r?"":"!important")})},pc=!1;if(typeof window<"u")try{var Ha=Object.defineProperty({},"passive",{get:function(){return pc=!0,!0}});window.addEventListener("test",Ha,Ha),window.removeEventListener("test",Ha,Ha)}catch{pc=!1}var fi=pc?{passive:!1}:!1,VR=function(e){return e.tagName==="TEXTAREA"},Av=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!VR(e)&&r[t]==="visible")},YR=function(e){return Av(e,"overflowY")},XR=function(e){return Av(e,"overflowX")},lg=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=Tv(e,i);if(a){var s=Rv(e,i),l=s[1],c=s[2];if(l>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},JR=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},QR=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},Tv=function(e,t){return e==="v"?YR(t):XR(t)},Rv=function(e,t){return e==="v"?JR(t):QR(t)},eP=function(e,t){return e==="h"&&t==="rtl"?-1:1},tP=function(e,t,r,i,a){var s=eP(e,window.getComputedStyle(t).direction),l=s*i,c=r.target,f=t.contains(c),v=!1,m=l>0,g=0,p=0;do{if(!c)break;var b=Rv(e,c),x=b[0],d=b[1],w=b[2],h=d-w-s*x;(x||h)&&Tv(e,c)&&(g+=h,p+=x);var S=c.parentNode;c=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(m&&Math.abs(g)<1||!m&&Math.abs(p)<1)&&(v=!0),v},qa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},cg=function(e){return[e.deltaX,e.deltaY]},fg=function(e){return e&&"current"in e?e.current:e},rP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nP=function(e){return`
60
60
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
61
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},g2=0,io=[];function v2(e){var t=z.useRef([]),r=z.useRef([0,0]),n=z.useRef(),o=z.useState(g2++)[0],a=z.useState(xy)[0],l=z.useRef(e);z.useEffect(function(){l.current=e},[e]),z.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=ql([e.lockRef.current],(e.shards||[]).map(fm),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=z.useCallback(function(v,b){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var m=Js(v),w=r.current,x="deltaX"in v?v.deltaX:w[0]-m[0],k="deltaY"in v?v.deltaY:w[1]-m[1],E,R=v.target,F=Math.abs(x)>Math.abs(k)?"h":"v";if("touches"in v&&F==="h"&&R.type==="range")return!1;var A=cm(F,R);if(!A)return!0;if(A?E=F:(E=F==="v"?"h":"v",A=cm(F,R)),!A)return!1;if(!n.current&&"changedTouches"in v&&(x||k)&&(n.current=E),!E)return!0;var N=n.current||E;return d2(N,b,v,N==="h"?x:k)},[]),u=z.useCallback(function(v){var b=v;if(!(!io.length||io[io.length-1]!==a)){var m="deltaY"in b?um(b):Js(b),w=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&p2(E.delta,m)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var x=(l.current.shards||[]).map(fm).filter(Boolean).filter(function(E){return E.contains(b.target)}),k=x.length>0?c(b,x[0]):!l.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),d=z.useCallback(function(v,b,m,w){var x={name:v,delta:b,target:m,should:w,shadowParent:m2(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(k){return k!==x})},1)},[]),p=z.useCallback(function(v){r.current=Js(v),n.current=void 0},[]),h=z.useCallback(function(v){d(v.type,um(v),v.target,c(v,e.lockRef.current))},[]),g=z.useCallback(function(v){d(v.type,Js(v),v.target,c(v,e.lockRef.current))},[]);z.useEffect(function(){return io.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",u,no),document.addEventListener("touchmove",u,no),document.addEventListener("touchstart",p,no),function(){io=io.filter(function(v){return v!==a}),document.removeEventListener("wheel",u,no),document.removeEventListener("touchmove",u,no),document.removeEventListener("touchstart",p,no)}},[]);var y=e.removeScrollBar,S=e.inert;return z.createElement(z.Fragment,null,S?z.createElement(a,{styles:h2(o)}):null,y?z.createElement(o2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function m2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const b2=qI(wy,v2);var ky=z.forwardRef(function(e,t){return z.createElement(vc,nn({},e,{ref:t,sideCar:b2}))});ky.classNames=vc.classNames;const y2=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{},w2=z.useId||(()=>{});let x2=0;function Oy(e){const[t,r]=z.useState(w2());return y2((()=>{r((n=>n??String(x2++)))}),[e]),e||(t?`radix-${t}`:"")}function Ay(...e){return t=>e.forEach((r=>(function(n,o){typeof n=="function"?n(o):n!=null&&(n.current=o)})(r,t)))}function ni(...e){return z.useCallback(Ay(...e),e)}const Ty=z.forwardRef(((e,t)=>{const{children:r,...n}=e;return z.Children.toArray(r).some(dm)?z.createElement(z.Fragment,null,z.Children.map(r,(o=>dm(o)?z.createElement(rd,pt({},n,{ref:t}),o.props.children):o))):z.createElement(rd,pt({},n,{ref:t}),r)}));Ty.displayName="Slot";const rd=z.forwardRef(((e,t)=>{const{children:r,...n}=e;return z.isValidElement(r)?z.cloneElement(r,{...S2(n,r.props),ref:Ay(t,r.ref)}):z.Children.count(r)>1?z.Children.only(null):null}));rd.displayName="SlotClone";const Ry=({children:e})=>z.createElement(z.Fragment,null,e);function dm(e){return z.isValidElement(e)&&e.type===Ry}function S2(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?r[n]=(...l)=>{a==null||a(...l),o==null||o(...l)}:n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}const ii=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:z.forwardRef(((r,n)=>{const{asChild:o,...a}=r,l=o?Ty:t;return z.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),z.createElement(l,pt({},a,{ref:n}))}))})),{}),pm=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{},zd=e=>{const{present:t,children:r}=e,n=(function(l){const[c,u]=z.useState(),d=z.useRef({}),p=z.useRef(l),h=z.useRef("none"),g=l?"mounted":"unmounted",[y,S]=(function(v,b){return z.useReducer(((m,w)=>{const x=b[m][w];return x??m}),v)})(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return z.useEffect((()=>{const v=Qs(d.current);h.current=y==="mounted"?v:"none"}),[y]),pm((()=>{const v=d.current,b=p.current;if(b!==l){const m=h.current,w=Qs(v);l?S("MOUNT"):w==="none"||(v==null?void 0:v.display)==="none"?S("UNMOUNT"):S(b&&m!==w?"ANIMATION_OUT":"UNMOUNT"),p.current=l}}),[l,S]),pm((()=>{if(c){const v=m=>{const w=Qs(d.current).includes(m.animationName);m.target===c&&w&&S("ANIMATION_END")},b=m=>{m.target===c&&(h.current=Qs(d.current))};return c.addEventListener("animationstart",b),c.addEventListener("animationcancel",v),c.addEventListener("animationend",v),()=>{c.removeEventListener("animationstart",b),c.removeEventListener("animationcancel",v),c.removeEventListener("animationend",v)}}S("ANIMATION_END")}),[c,S]),{isPresent:["mounted","unmountSuspended"].includes(y),ref:z.useCallback((v=>{v&&(d.current=getComputedStyle(v)),u(v)}),[])}})(t),o=typeof r=="function"?r({present:n.isPresent}):z.Children.only(r),a=ni(n.ref,o.ref);return typeof r=="function"||n.isPresent?z.cloneElement(o,{ref:a}):null};function Qs(e){return(e==null?void 0:e.animationName)||"none"}zd.displayName="Presence";let uf=0;function _2(){z.useEffect((()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:hm()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:hm()),uf++,()=>{uf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((n=>n.remove())),uf--}}),[])}function hm(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const E2=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{},jd=z.forwardRef(((e,t)=>{var r,n;const{containerRef:o,style:a,...l}=e,c=(r=o==null?void 0:o.current)!==null&&r!==void 0?r:globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,[,u]=z.useState({});return E2((()=>{u({})}),[]),c?ti.createPortal(z.createElement(ii.div,pt({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function Ni(e){const t=z.useRef(e);return z.useEffect((()=>{t.current=e})),z.useMemo((()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)}),[])}const gm={bubbles:!1,cancelable:!0},k2=z.forwardRef(((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...l}=e,[c,u]=z.useState(null),d=Ni(o),p=Ni(a),h=z.useRef(null),g=ni(t,(v=>u(v))),y=z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;z.useEffect((()=>{if(n){let v=function(m){if(y.paused||!c)return;const w=m.target;c.contains(w)?h.current=w:wi(h.current,{select:!0})},b=function(m){!y.paused&&c&&(c.contains(m.relatedTarget)||wi(h.current,{select:!0}))};return document.addEventListener("focusin",v),document.addEventListener("focusout",b),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",b)}}}),[n,c,y.paused]),z.useEffect((()=>{if(c){bm.add(y);const b=document.activeElement;if(!c.contains(b)){const m=new Event("focusScope.autoFocusOnMount",gm);c.addEventListener("focusScope.autoFocusOnMount",d),c.dispatchEvent(m),m.defaultPrevented||((function(w,{select:x=!1}={}){const k=document.activeElement;for(const E of w)if(wi(E,{select:x}),document.activeElement!==k)return})((v=vm(c),v.filter((w=>w.tagName!=="A"))),{select:!0}),document.activeElement===b&&wi(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",d),setTimeout((()=>{const m=new Event("focusScope.autoFocusOnUnmount",gm);c.addEventListener("focusScope.autoFocusOnUnmount",p),c.dispatchEvent(m),m.defaultPrevented||wi(b??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",p),bm.remove(y)}),0)}}var v}),[c,d,p,y]);const S=z.useCallback((v=>{if(!r&&!n||y.paused)return;const b=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(b&&m){const w=v.currentTarget,[x,k]=(function(E){const R=vm(E),F=mm(R,E),A=mm(R.reverse(),E);return[F,A]})(w);x&&k?v.shiftKey||m!==k?v.shiftKey&&m===x&&(v.preventDefault(),r&&wi(k,{select:!0})):(v.preventDefault(),r&&wi(x,{select:!0})):m===w&&v.preventDefault()}}),[r,n,y.paused]);return z.createElement(ii.div,pt({tabIndex:-1},l,{ref:g,onKeyDown:S}))}));function vm(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function mm(e,t){for(const r of e)if(!O2(r,{upTo:t}))return r}function O2(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function wi(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(n){return n instanceof HTMLInputElement&&"select"in n})(e)&&t&&e.select()}}const bm=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=ym(e,t),e.unshift(t)},remove(t){var r;e=ym(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function ym(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Cy(e){const t=Ni(e);z.useEffect((()=>{const r=n=>{n.key==="Escape"&&t(n)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const A2=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{};let wm,el=0;function T2({disabled:e}){const t=z.useRef(!1);A2((()=>{if(e){let r=function(){el--,el===0&&(document.body.style.pointerEvents=wm)},n=function(o){t.current=o.pointerType!=="mouse"};return el===0&&(wm=document.body.style.pointerEvents),document.body.style.pointerEvents="none",el++,document.addEventListener("pointerup",n),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",n)}}}),[e])}function dr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}const R2=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),C2=z.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=e,d=z.useContext(R2),[p,h]=z.useState(null),[,g]=z.useState({}),y=ni(t,(R=>h(R))),S=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=S.indexOf(v),m=p?S.indexOf(p):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,x=m>=b,k=(function(R){const F=Ni(R),A=z.useRef(!1);return z.useEffect((()=>{const N=$=>{$.target&&!A.current&&Sm("dismissableLayer.pointerDownOutside",F,{originalEvent:$}),A.current=!1},V=window.setTimeout((()=>{document.addEventListener("pointerdown",N)}),0);return()=>{window.clearTimeout(V),document.removeEventListener("pointerdown",N)}}),[F]),{onPointerDownCapture:()=>A.current=!0}})((R=>{const F=R.target,A=[...d.branches].some((N=>N.contains(F)));x&&!A&&(o==null||o(R),l==null||l(R),R.defaultPrevented||c==null||c())})),E=(function(R){const F=Ni(R),A=z.useRef(!1);return z.useEffect((()=>{const N=V=>{V.target&&!A.current&&Sm("dismissableLayer.focusOutside",F,{originalEvent:V})};return document.addEventListener("focusin",N),()=>document.removeEventListener("focusin",N)}),[F]),{onFocusCapture:()=>A.current=!0,onBlurCapture:()=>A.current=!1}})((R=>{const F=R.target;[...d.branches].some((A=>A.contains(F)))||(a==null||a(R),l==null||l(R),R.defaultPrevented||c==null||c())}));return Cy((R=>{m===d.layers.size-1&&(n==null||n(R),R.defaultPrevented||c==null||c())})),T2({disabled:r}),z.useEffect((()=>{p&&(r&&d.layersWithOutsidePointerEventsDisabled.add(p),d.layers.add(p),xm())}),[p,r,d]),z.useEffect((()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),xm())}),[p,d]),z.useEffect((()=>{const R=()=>g({});return document.addEventListener("dismissableLayer.update",R),()=>document.removeEventListener("dismissableLayer.update",R)}),[]),z.createElement(ii.div,pt({},u,{ref:y,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:dr(e.onFocusCapture,E.onFocusCapture),onBlurCapture:dr(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:dr(e.onPointerDownCapture,k.onPointerDownCapture)}))}));function xm(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Sm(e,t,r){const n=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&n.addEventListener(e,t,{once:!0}),!n.dispatchEvent(o)}function _m(e){const[t,r]=z.useState(void 0);return z.useEffect((()=>{if(e){const n=new ResizeObserver((o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let l,c;if("borderBoxSize"in a){const u=a.borderBoxSize,d=Array.isArray(u)?u[0]:u;l=d.inlineSize,c=d.blockSize}else{const u=e.getBoundingClientRect();l=u.width,c=u.height}r({width:l,height:c})}));return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}r(void 0)}),[e]),t}function P2(e,t){const r=Si.get(e);return r===void 0?(Si.set(e,{rect:{},callbacks:[t]}),Si.size===1&&(nd=requestAnimationFrame(Py))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=Si.get(e);if(n===void 0)return;const o=n.callbacks.indexOf(t);o>-1&&n.callbacks.splice(o,1),n.callbacks.length===0&&(Si.delete(e),Si.size===0&&cancelAnimationFrame(nd))}}let nd;const Si=new Map;function Py(){const e=[];Si.forEach(((t,r)=>{const n=r.getBoundingClientRect();var o,a;o=t.rect,a=n,(o.width!==a.width||o.height!==a.height||o.top!==a.top||o.right!==a.right||o.bottom!==a.bottom||o.left!==a.left)&&(t.rect=n,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),nd=requestAnimationFrame(Py)}function Iy(e){const[t,r]=z.useState();return z.useEffect((()=>{if(e){const n=P2(e,r);return()=>{r(void 0),n()}}}),[e]),t}function Fd(e,t=[]){let r=[];const n=()=>{const o=r.map((a=>z.createContext(a)));return function(a){const l=(a==null?void 0:a[e])||o;return z.useMemo((()=>({[`__scope${e}`]:{...a,[e]:l}})),[a,l])}};return n.scopeName=e,[function(o,a){const l=z.createContext(a),c=r.length;function u(d){const{scope:p,children:h,...g}=d,y=(p==null?void 0:p[e][c])||l,S=z.useMemo((()=>g),Object.values(g));return z.createElement(y.Provider,{value:S},h)}return r=[...r,a],u.displayName=o+"Provider",[u,function(d,p){const h=(p==null?void 0:p[e][c])||l,g=z.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${o}\``)}]},I2(n,...t)]}function I2(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map((o=>({useScope:o(),scopeName:o.scopeName})));return function(o){const a=n.reduce(((l,{useScope:c,scopeName:u})=>({...l,...c(o)[`__scope${u}`]})),{});return z.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function N2({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:n=0,side:o,sideOffset:a=0,align:l,alignOffset:c=0,shouldAvoidCollisions:u=!0,collisionBoundariesRect:d,collisionTolerance:p=0}){if(!e||!t||!d)return{popperStyles:M2,arrowStyles:ff};const h=(function(F,A,N=0,V=0,$){const M=$?$.height:0,B=Em(A,F,"x"),j=Em(A,F,"y"),I=j.before-N-M,Y=j.after+N+M,X=B.before-N-M,K=B.after+N+M;return{top:{start:{x:B.start+V,y:I},center:{x:B.center,y:I},end:{x:B.end-V,y:I}},right:{start:{x:K,y:j.start+V},center:{x:K,y:j.center},end:{x:K,y:j.end-V}},bottom:{start:{x:B.start+V,y:Y},center:{x:B.center,y:Y},end:{x:B.end-V,y:Y}},left:{start:{x:X,y:j.start+V},center:{x:X,y:j.center},end:{x:X,y:j.end-V}}}})(t,e,a,c,r),g=h[o][l];if(u===!1){const F=km(g);let A=ff;return r&&(A=Am({popperSize:t,arrowSize:r,arrowOffset:n,side:o,align:l})),{popperStyles:{...F,"--radix-popper-transform-origin":Om(t,o,l,n,r)},arrowStyles:A,placedSide:o,placedAlign:l}}const y=DOMRect.fromRect({...t,...g}),S=(v=d,b=p,DOMRect.fromRect({width:v.width-2*b,height:v.height-2*b,x:v.left+b,y:v.top+b}));var v,b;const m=Rm(y,S),w=h[Tm(o)][l],x=(function(F,A,N){const V=Tm(F);return A[F]&&!N[V]?V:F})(o,m,Rm(DOMRect.fromRect({...t,...w}),S)),k=(function(F,A,N,V,$){const M=N==="top"||N==="bottom",B=M?"left":"top",j=M?"right":"bottom",I=M?"width":"height",Y=A[I]>F[I];return(V==="start"||V==="center")&&($[B]&&Y||$[j]&&!Y)?"end":(V==="end"||V==="center")&&($[j]&&Y||$[B]&&!Y)?"start":V})(t,e,o,l,m),E=km(h[x][k]);let R=ff;return r&&(R=Am({popperSize:t,arrowSize:r,arrowOffset:n,side:x,align:k})),{popperStyles:{...E,"--radix-popper-transform-origin":Om(t,x,k,n,r)},arrowStyles:R,placedSide:x,placedAlign:k}}function Em(e,t,r){const n=e[r==="x"?"left":"top"],o=r==="x"?"width":"height",a=e[o],l=t[o];return{before:n-l,start:n,center:n+(a-l)/2,end:n+a-l,after:n+a}}function km(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Om(e,t,r,n,o){const a=t==="top"||t==="bottom",l=o?o.width:0,c=o?o.height:0,u=l/2+n;let d="",p="";return a?(d={start:`${u}px`,center:"center",end:e.width-u+"px"}[r],p=t==="top"?`${e.height+c}px`:-c+"px"):(d=t==="left"?`${e.width+c}px`:-c+"px",p={start:`${u}px`,center:"center",end:e.height-u+"px"}[r]),`${d} ${p}`}const M2={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},ff={position:"absolute",opacity:0};function Am({popperSize:e,arrowSize:t,arrowOffset:r,side:n,align:o}){const a=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[n],u=Math.max(t.width,t.height),d={width:`${u}px`,height:`${u}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[n]:"100%",direction:D2(n,o)};return n!=="top"&&n!=="bottom"||(o==="start"&&(d.left=`${r}px`),o==="center"&&(d.left=`${a}px`),o==="end"&&(d.right=`${r}px`)),n!=="left"&&n!=="right"||(o==="start"&&(d.top=`${r}px`),o==="center"&&(d.top=`${l}px`),o==="end"&&(d.bottom=`${r}px`)),d}function D2(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Tm(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Rm(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Ny,mc]=Fd("Popper"),[$2,My]=Ny("Popper"),L2=e=>{const{__scopePopper:t,children:r}=e,[n,o]=z.useState(null);return z.createElement($2,{scope:t,anchor:n,onAnchorChange:o},r)},z2=z.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=My("PopperAnchor",r),l=z.useRef(null),c=ni(t,l);return z.useEffect((()=>{a.onAnchorChange((n==null?void 0:n.current)||l.current)})),n?null:z.createElement(ii.div,pt({},o,{ref:c}))})),[j2,YF]=Ny("PopperContent"),F2=z.forwardRef(((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o,align:a="center",alignOffset:l,collisionTolerance:c,avoidCollisions:u=!0,...d}=e,p=My("PopperContent",r),[h,g]=z.useState(),y=Iy(p.anchor),[S,v]=z.useState(null),b=_m(S),[m,w]=z.useState(null),x=_m(m),k=ni(t,(M=>v(M))),E=(function(){const[M,B]=z.useState(void 0);return z.useEffect((()=>{let j;function I(){B({width:window.innerWidth,height:window.innerHeight})}function Y(){window.clearTimeout(j),j=window.setTimeout(I,100)}return I(),window.addEventListener("resize",Y),()=>window.removeEventListener("resize",Y)}),[]),M})(),R=E?DOMRect.fromRect({...E,x:0,y:0}):void 0,{popperStyles:F,arrowStyles:A,placedSide:N,placedAlign:V}=N2({anchorRect:y,popperSize:b,arrowSize:x,arrowOffset:h,side:n,sideOffset:o,align:a,alignOffset:l,shouldAvoidCollisions:u,collisionBoundariesRect:R,collisionTolerance:c}),$=N!==void 0;return z.createElement("div",{style:F,"data-radix-popper-content-wrapper":""},z.createElement(j2,{scope:r,arrowStyles:A,onArrowChange:w,onArrowOffsetChange:g},z.createElement(ii.div,pt({"data-side":N,"data-align":V},d,{style:{...d.style,animation:$?void 0:"none"},ref:k}))))})),Dy=L2,$y=z2,Ly=F2;function zy({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[n,o]=(function({defaultProp:u,onChange:d}){const p=z.useState(u),[h]=p,g=z.useRef(h),y=Ni(d);return z.useEffect((()=>{g.current!==h&&(y(h),g.current=h)}),[h,g,y]),p})({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:n,c=Ni(r);return[l,z.useCallback((u=>{if(a){const d=u,p=typeof u=="function"?d(e):u;p!==e&&c(p)}else o(u)}),[a,e,o,c])]}const[H2]=Fd("Popover",[mc]),Hd=mc(),[W2,Ya]=H2("Popover"),B2=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:l=!1}=e,c=Hd(t),u=z.useRef(null),[d,p]=z.useState(!1),[h=!1,g]=zy({prop:n,defaultProp:o,onChange:a});return z.createElement(Dy,c,z.createElement(W2,{scope:t,contentId:Oy(),triggerRef:u,open:h,onOpenChange:g,onOpenToggle:z.useCallback((()=>g((y=>!y))),[g]),hasCustomAnchor:d,onCustomAnchorAdd:z.useCallback((()=>p(!0)),[]),onCustomAnchorRemove:z.useCallback((()=>p(!1)),[]),modal:l},r))},V2=z.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,o=Ya("PopoverTrigger",r),a=Hd(r),l=ni(t,o.triggerRef),c=z.createElement(ii.button,pt({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Fy(o.open)},n,{ref:l,onClick:dr(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?c:z.createElement($y,pt({asChild:!0},a),c)})),U2=z.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,o=Ya("PopoverContent",e.__scopePopover);return z.createElement(zd,{present:r||o.open},o.modal?z.createElement(q2,pt({},n,{ref:t})):z.createElement(G2,pt({},n,{ref:t})))})),q2=z.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:n=!0,...o}=e,a=Ya("PopoverContent",e.__scopePopover),l=z.useRef(null),c=ni(t,l),u=z.useRef(!1);z.useEffect((()=>{const p=l.current;if(p)return LI(p)}),[]);const d=n?jd:z.Fragment;return z.createElement(d,null,z.createElement(ky,{allowPinchZoom:r},z.createElement(jy,pt({},o,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:dr(e.onCloseAutoFocus,(p=>{var h;p.preventDefault(),u.current||(h=a.triggerRef.current)===null||h===void 0||h.focus()})),onPointerDownOutside:dr(e.onPointerDownOutside,(p=>{const h=p.detail.originalEvent,g=h.button===0&&h.ctrlKey===!0,y=h.button===2||g;u.current=y}),{checkForDefaultPrevented:!1}),onFocusOutside:dr(e.onFocusOutside,(p=>p.preventDefault()),{checkForDefaultPrevented:!1})}))))})),G2=z.forwardRef(((e,t)=>{const{portalled:r=!0,...n}=e,o=Ya("PopoverContent",e.__scopePopover),a=z.useRef(!1),l=r?jd:z.Fragment;return z.createElement(l,null,z.createElement(jy,pt({},n,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var u,d;(u=e.onCloseAutoFocus)===null||u===void 0||u.call(e,c),c.defaultPrevented||(a.current||(d=o.triggerRef.current)===null||d===void 0||d.focus(),c.preventDefault()),a.current=!1},onInteractOutside:c=>{var u,d;(u=e.onInteractOutside)===null||u===void 0||u.call(e,c),c.defaultPrevented||(a.current=!0);const p=c.target;!((d=o.triggerRef.current)===null||d===void 0)&&d.contains(p)&&c.preventDefault()}})))})),jy=z.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:p,...h}=e,g=Ya("PopoverContent",r),y=Hd(r);return _2(),z.createElement(k2,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a},z.createElement(C2,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1)},z.createElement(Ly,pt({"data-state":Fy(g.open),role:"dialog",id:g.contentId},y,h,{ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Fy(e){return e?"open":"closed"}const Y2=B2,K2=V2,Z2=U2;var Pl=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Pl||{}),df={},ia={},tl={},rl={},nl={exports:{}},il={exports:{}},Be={};/** @license React v16.13.1
62
+ `)},iP=0,di=[];function oP(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),a=$.useState(iP++)[0],s=$.useState(Ov)[0],l=$.useRef(e);$.useEffect(function(){l.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var d=ys([e.lockRef.current],(e.shards||[]).map(fg),!0).filter(Boolean);return d.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),d.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=$.useCallback(function(d,w){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!l.current.allowPinchZoom;var h=qa(d),S=r.current,E="deltaX"in d?d.deltaX:S[0]-h[0],R="deltaY"in d?d.deltaY:S[1]-h[1],O,k=d.target,U=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in d&&U==="h"&&k.type==="range")return!1;var M=lg(U,k);if(!M)return!0;if(M?O=U:(O=U==="v"?"h":"v",M=lg(U,k)),!M)return!1;if(!i.current&&"changedTouches"in d&&(E||R)&&(i.current=O),!O)return!0;var F=i.current||O;return tP(F,w,d,F==="h"?E:R)},[]),f=$.useCallback(function(d){var w=d;if(!(!di.length||di[di.length-1]!==s)){var h="deltaY"in w?cg(w):qa(w),S=t.current.filter(function(O){return O.name===w.type&&(O.target===w.target||w.target===O.shadowParent)&&rP(O.delta,h)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(l.current.shards||[]).map(fg).filter(Boolean).filter(function(O){return O.contains(w.target)}),R=E.length>0?c(w,E[0]):!l.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),v=$.useCallback(function(d,w,h,S){var E={name:d,delta:w,target:h,should:S,shadowParent:aP(h)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),m=$.useCallback(function(d){r.current=qa(d),i.current=void 0},[]),g=$.useCallback(function(d){v(d.type,cg(d),d.target,c(d,e.lockRef.current))},[]),p=$.useCallback(function(d){v(d.type,qa(d),d.target,c(d,e.lockRef.current))},[]);$.useEffect(function(){return di.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:p}),document.addEventListener("wheel",f,fi),document.addEventListener("touchmove",f,fi),document.addEventListener("touchstart",m,fi),function(){di=di.filter(function(d){return d!==s}),document.removeEventListener("wheel",f,fi),document.removeEventListener("touchmove",f,fi),document.removeEventListener("touchstart",m,fi)}},[]);var b=e.removeScrollBar,x=e.inert;return $.createElement($.Fragment,null,x?$.createElement(s,{styles:nP(a)}):null,b?$.createElement(KR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function aP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sP=MR(_v,oP);var Pv=$.forwardRef(function(e,t){return $.createElement(Fs,Or({},e,{ref:t,sideCar:sP}))});Pv.classNames=Fs.classNames;const uP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},lP=$.useId||(()=>{});let cP=0;function Cv(e){const[t,r]=$.useState(lP());return uP((()=>{r((i=>i??String(cP++)))}),[e]),e||(t?`radix-${t}`:"")}function kv(...e){return t=>e.forEach((r=>(function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)})(r,t)))}function vn(...e){return $.useCallback(kv(...e),e)}const $v=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.Children.toArray(r).some(dg)?$.createElement($.Fragment,null,$.Children.map(r,(a=>dg(a)?$.createElement(hc,Xe({},i,{ref:t}),a.props.children):a))):$.createElement(hc,Xe({},i,{ref:t}),r)}));$v.displayName="Slot";const hc=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.isValidElement(r)?$.cloneElement(r,{...fP(i,r.props),ref:kv(t,r.ref)}):$.Children.count(r)>1?$.Children.only(null):null}));hc.displayName="SlotClone";const Iv=({children:e})=>$.createElement($.Fragment,null,e);function dg(e){return $.isValidElement(e)&&e.type===Iv}function fP(e,t){const r={...t};for(const i in t){const a=e[i],s=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{s==null||s(...l),a==null||a(...l)}:i==="style"?r[i]={...a,...s}:i==="className"&&(r[i]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}const yn=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:$.forwardRef(((r,i)=>{const{asChild:a,...s}=r,l=a?$v:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(l,Xe({},s,{ref:i}))}))})),{}),pg=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},qc=e=>{const{present:t,children:r}=e,i=(function(l){const[c,f]=$.useState(),v=$.useRef({}),m=$.useRef(l),g=$.useRef("none"),p=l?"mounted":"unmounted",[b,x]=(function(d,w){return $.useReducer(((h,S)=>{const E=w[h][S];return E??h}),d)})(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect((()=>{const d=Za(v.current);g.current=b==="mounted"?d:"none"}),[b]),pg((()=>{const d=v.current,w=m.current;if(w!==l){const h=g.current,S=Za(d);l?x("MOUNT"):S==="none"||(d==null?void 0:d.display)==="none"?x("UNMOUNT"):x(w&&h!==S?"ANIMATION_OUT":"UNMOUNT"),m.current=l}}),[l,x]),pg((()=>{if(c){const d=h=>{const S=Za(v.current).includes(h.animationName);h.target===c&&S&&x("ANIMATION_END")},w=h=>{h.target===c&&(g.current=Za(v.current))};return c.addEventListener("animationstart",w),c.addEventListener("animationcancel",d),c.addEventListener("animationend",d),()=>{c.removeEventListener("animationstart",w),c.removeEventListener("animationcancel",d),c.removeEventListener("animationend",d)}}x("ANIMATION_END")}),[c,x]),{isPresent:["mounted","unmountSuspended"].includes(b),ref:$.useCallback((d=>{d&&(v.current=getComputedStyle(d)),f(d)}),[])}})(t),a=typeof r=="function"?r({present:i.isPresent}):$.Children.only(r),s=vn(i.ref,a.ref);return typeof r=="function"||i.isPresent?$.cloneElement(a,{ref:s}):null};function Za(e){return(e==null?void 0:e.animationName)||"none"}qc.displayName="Presence";let Ll=0;function dP(){$.useEffect((()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:hg()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:hg()),Ll++,()=>{Ll===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),Ll--}}),[])}function hg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const pP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},Zc=$.forwardRef(((e,t)=>{var r,i;const{containerRef:a,style:s,...l}=e,c=(r=a==null?void 0:a.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,f]=$.useState({});return pP((()=>{f({})}),[]),c?Do.createPortal($.createElement(yn.div,Xe({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),c):null}));function Un(e){const t=$.useRef(e);return $.useEffect((()=>{t.current=e})),$.useMemo((()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)}),[])}const gg={bubbles:!1,cancelable:!0},hP=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[c,f]=$.useState(null),v=Un(a),m=Un(s),g=$.useRef(null),p=vn(t,(d=>f(d))),b=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect((()=>{if(i){let d=function(h){if(b.paused||!c)return;const S=h.target;c.contains(S)?g.current=S:kn(g.current,{select:!0})},w=function(h){!b.paused&&c&&(c.contains(h.relatedTarget)||kn(g.current,{select:!0}))};return document.addEventListener("focusin",d),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",w)}}}),[i,c,b.paused]),$.useEffect((()=>{if(c){yg.add(b);const w=document.activeElement;if(!c.contains(w)){const h=new Event("focusScope.autoFocusOnMount",gg);c.addEventListener("focusScope.autoFocusOnMount",v),c.dispatchEvent(h),h.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const O of S)if(kn(O,{select:E}),document.activeElement!==R)return})((d=mg(c),d.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===w&&kn(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",v),setTimeout((()=>{const h=new Event("focusScope.autoFocusOnUnmount",gg);c.addEventListener("focusScope.autoFocusOnUnmount",m),c.dispatchEvent(h),h.defaultPrevented||kn(w??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",m),yg.remove(b)}),0)}}var d}),[c,v,m,b]);const x=$.useCallback((d=>{if(!r&&!i||b.paused)return;const w=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,h=document.activeElement;if(w&&h){const S=d.currentTarget,[E,R]=(function(O){const k=mg(O),U=vg(k,O),M=vg(k.reverse(),O);return[U,M]})(S);E&&R?d.shiftKey||h!==R?d.shiftKey&&h===E&&(d.preventDefault(),r&&kn(R,{select:!0})):(d.preventDefault(),r&&kn(E,{select:!0})):h===S&&d.preventDefault()}}),[r,i,b.paused]);return $.createElement(yn.div,Xe({tabIndex:-1},l,{ref:p,onKeyDown:x}))}));function mg(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function vg(e,t){for(const r of e)if(!gP(r,{upTo:t}))return r}function gP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function kn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(i){return i instanceof HTMLInputElement&&"select"in i})(e)&&t&&e.select()}}const yg=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=bg(e,t),e.unshift(t)},remove(t){var r;e=bg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function bg(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function Lv(e){const t=Un(e);$.useEffect((()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const mP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let wg,Ga=0;function vP({disabled:e}){const t=$.useRef(!1);mP((()=>{if(e){let r=function(){Ga--,Ga===0&&(document.body.style.pointerEvents=wg)},i=function(a){t.current=a.pointerType!=="mouse"};return Ga===0&&(wg=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ga++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}}),[e])}function Bt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}const yP=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bP=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...f}=e,v=$.useContext(yP),[m,g]=$.useState(null),[,p]=$.useState({}),b=vn(t,(k=>g(k))),x=Array.from(v.layers),[d]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(d),h=m?x.indexOf(m):-1,S=v.layersWithOutsidePointerEventsDisabled.size>0,E=h>=w,R=(function(k){const U=Un(k),M=$.useRef(!1);return $.useEffect((()=>{const F=j=>{j.target&&!M.current&&Sg("dismissableLayer.pointerDownOutside",U,{originalEvent:j}),M.current=!1},G=window.setTimeout((()=>{document.addEventListener("pointerdown",F)}),0);return()=>{window.clearTimeout(G),document.removeEventListener("pointerdown",F)}}),[U]),{onPointerDownCapture:()=>M.current=!0}})((k=>{const U=k.target,M=[...v.branches].some((F=>F.contains(U)));E&&!M&&(a==null||a(k),l==null||l(k),k.defaultPrevented||c==null||c())})),O=(function(k){const U=Un(k),M=$.useRef(!1);return $.useEffect((()=>{const F=G=>{G.target&&!M.current&&Sg("dismissableLayer.focusOutside",U,{originalEvent:G})};return document.addEventListener("focusin",F),()=>document.removeEventListener("focusin",F)}),[U]),{onFocusCapture:()=>M.current=!0,onBlurCapture:()=>M.current=!1}})((k=>{const U=k.target;[...v.branches].some((M=>M.contains(U)))||(s==null||s(k),l==null||l(k),k.defaultPrevented||c==null||c())}));return Lv((k=>{h===v.layers.size-1&&(i==null||i(k),k.defaultPrevented||c==null||c())})),vP({disabled:r}),$.useEffect((()=>{m&&(r&&v.layersWithOutsidePointerEventsDisabled.add(m),v.layers.add(m),xg())}),[m,r,v]),$.useEffect((()=>()=>{m&&(v.layers.delete(m),v.layersWithOutsidePointerEventsDisabled.delete(m),xg())}),[m,v]),$.useEffect((()=>{const k=()=>p({});return document.addEventListener("dismissableLayer.update",k),()=>document.removeEventListener("dismissableLayer.update",k)}),[]),$.createElement(yn.div,Xe({},f,{ref:b,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:Bt(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Bt(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Bt(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function xg(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Sg(e,t,r){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(a)}function Eg(e){const[t,r]=$.useState(void 0);return $.useEffect((()=>{if(e){const i=new ResizeObserver((a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,c;if("borderBoxSize"in s){const f=s.borderBoxSize,v=Array.isArray(f)?f[0]:f;l=v.inlineSize,c=v.blockSize}else{const f=e.getBoundingClientRect();l=f.width,c=f.height}r({width:l,height:c})}));return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)}),[e]),t}function wP(e,t){const r=$n.get(e);return r===void 0?($n.set(e,{rect:{},callbacks:[t]}),$n.size===1&&(gc=requestAnimationFrame(Mv))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=$n.get(e);if(i===void 0)return;const a=i.callbacks.indexOf(t);a>-1&&i.callbacks.splice(a,1),i.callbacks.length===0&&($n.delete(e),$n.size===0&&cancelAnimationFrame(gc))}}let gc;const $n=new Map;function Mv(){const e=[];$n.forEach(((t,r)=>{const i=r.getBoundingClientRect();var a,s;a=t.rect,s=i,(a.width!==s.width||a.height!==s.height||a.top!==s.top||a.right!==s.right||a.bottom!==s.bottom||a.left!==s.left)&&(t.rect=i,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),gc=requestAnimationFrame(Mv)}function Fv(e){const[t,r]=$.useState();return $.useEffect((()=>{if(e){const i=wP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function Gc(e,t=[]){let r=[];const i=()=>{const a=r.map((s=>$.createContext(s)));return function(s){const l=(s==null?void 0:s[e])||a;return $.useMemo((()=>({[`__scope${e}`]:{...s,[e]:l}})),[s,l])}};return i.scopeName=e,[function(a,s){const l=$.createContext(s),c=r.length;function f(v){const{scope:m,children:g,...p}=v,b=(m==null?void 0:m[e][c])||l,x=$.useMemo((()=>p),Object.values(p));return $.createElement(b.Provider,{value:x},g)}return r=[...r,s],f.displayName=a+"Provider",[f,function(v,m){const g=(m==null?void 0:m[e][c])||l,p=$.useContext(g);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${v}\` must be used within \`${a}\``)}]},xP(i,...t)]}function xP(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map((a=>({useScope:a(),scopeName:a.scopeName})));return function(a){const s=i.reduce(((l,{useScope:c,scopeName:f})=>({...l,...c(a)[`__scope${f}`]})),{});return $.useMemo((()=>({[`__scope${t.scopeName}`]:s})),[s])}};return r.scopeName=t.scopeName,r}function SP({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:a,sideOffset:s=0,align:l,alignOffset:c=0,shouldAvoidCollisions:f=!0,collisionBoundariesRect:v,collisionTolerance:m=0}){if(!e||!t||!v)return{popperStyles:EP,arrowStyles:Ml};const g=(function(U,M,F=0,G=0,j){const L=j?j.height:0,B=_g(M,U,"x"),q=_g(M,U,"y"),C=q.before-F-L,J=q.after+F+L,Y=B.before-F-L,te=B.after+F+L;return{top:{start:{x:B.start+G,y:C},center:{x:B.center,y:C},end:{x:B.end-G,y:C}},right:{start:{x:te,y:q.start+G},center:{x:te,y:q.center},end:{x:te,y:q.end-G}},bottom:{start:{x:B.start+G,y:J},center:{x:B.center,y:J},end:{x:B.end-G,y:J}},left:{start:{x:Y,y:q.start+G},center:{x:Y,y:q.center},end:{x:Y,y:q.end-G}}}})(t,e,s,c,r),p=g[a][l];if(f===!1){const U=Og(p);let M=Ml;return r&&(M=Tg({popperSize:t,arrowSize:r,arrowOffset:i,side:a,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":Ag(t,a,l,i,r)},arrowStyles:M,placedSide:a,placedAlign:l}}const b=DOMRect.fromRect({...t,...p}),x=(d=v,w=m,DOMRect.fromRect({width:d.width-2*w,height:d.height-2*w,x:d.left+w,y:d.top+w}));var d,w;const h=Pg(b,x),S=g[Rg(a)][l],E=(function(U,M,F){const G=Rg(U);return M[U]&&!F[G]?G:U})(a,h,Pg(DOMRect.fromRect({...t,...S}),x)),R=(function(U,M,F,G,j){const L=F==="top"||F==="bottom",B=L?"left":"top",q=L?"right":"bottom",C=L?"width":"height",J=M[C]>U[C];return(G==="start"||G==="center")&&(j[B]&&J||j[q]&&!J)?"end":(G==="end"||G==="center")&&(j[q]&&J||j[B]&&!J)?"start":G})(t,e,a,l,h),O=Og(g[E][R]);let k=Ml;return r&&(k=Tg({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...O,"--radix-popper-transform-origin":Ag(t,E,R,i,r)},arrowStyles:k,placedSide:E,placedAlign:R}}function _g(e,t,r){const i=e[r==="x"?"left":"top"],a=r==="x"?"width":"height",s=e[a],l=t[a];return{before:i-l,start:i,center:i+(s-l)/2,end:i+s-l,after:i+s}}function Og(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Ag(e,t,r,i,a){const s=t==="top"||t==="bottom",l=a?a.width:0,c=a?a.height:0,f=l/2+i;let v="",m="";return s?(v={start:`${f}px`,center:"center",end:e.width-f+"px"}[r],m=t==="top"?`${e.height+c}px`:-c+"px"):(v=t==="left"?`${e.width+c}px`:-c+"px",m={start:`${f}px`,center:"center",end:e.height-f+"px"}[r]),`${v} ${m}`}const EP={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Ml={position:"absolute",opacity:0};function Tg({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:a}){const s=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[i],f=Math.max(t.width,t.height),v={width:`${f}px`,height:`${f}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:_P(i,a)};return i!=="top"&&i!=="bottom"||(a==="start"&&(v.left=`${r}px`),a==="center"&&(v.left=`${s}px`),a==="end"&&(v.right=`${r}px`)),i!=="left"&&i!=="right"||(a==="start"&&(v.top=`${r}px`),a==="center"&&(v.top=`${l}px`),a==="end"&&(v.bottom=`${r}px`)),v}function _P(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Rg(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Pg(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Dv,Ds]=Gc("Popper"),[OP,Nv]=Dv("Popper"),AP=e=>{const{__scopePopper:t,children:r}=e,[i,a]=$.useState(null);return $.createElement(OP,{scope:t,anchor:i,onAnchorChange:a},r)},TP=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,s=Nv("PopperAnchor",r),l=$.useRef(null),c=vn(t,l);return $.useEffect((()=>{s.onAnchorChange((i==null?void 0:i.current)||l.current)})),i?null:$.createElement(yn.div,Xe({},a,{ref:c}))})),[RP,aM]=Dv("PopperContent"),PP=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:a,align:s="center",alignOffset:l,collisionTolerance:c,avoidCollisions:f=!0,...v}=e,m=Nv("PopperContent",r),[g,p]=$.useState(),b=Fv(m.anchor),[x,d]=$.useState(null),w=Eg(x),[h,S]=$.useState(null),E=Eg(h),R=vn(t,(L=>d(L))),O=(function(){const[L,B]=$.useState(void 0);return $.useEffect((()=>{let q;function C(){B({width:window.innerWidth,height:window.innerHeight})}function J(){window.clearTimeout(q),q=window.setTimeout(C,100)}return C(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)}),[]),L})(),k=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:M,placedSide:F,placedAlign:G}=SP({anchorRect:b,popperSize:w,arrowSize:E,arrowOffset:g,side:i,sideOffset:a,align:s,alignOffset:l,shouldAvoidCollisions:f,collisionBoundariesRect:k,collisionTolerance:c}),j=F!==void 0;return $.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},$.createElement(RP,{scope:r,arrowStyles:M,onArrowChange:S,onArrowOffsetChange:p},$.createElement(yn.div,Xe({"data-side":F,"data-align":G},v,{style:{...v.style,animation:j?void 0:"none"},ref:R}))))})),jv=AP,zv=TP,Wv=PP;function Uv({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,a]=(function({defaultProp:f,onChange:v}){const m=$.useState(f),[g]=m,p=$.useRef(g),b=Un(v);return $.useEffect((()=>{p.current!==g&&(b(g),p.current=g)}),[g,p,b]),m})({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:i,c=Un(r);return[l,$.useCallback((f=>{if(s){const v=f,m=typeof f=="function"?v(e):f;m!==e&&c(m)}else a(f)}),[s,e,a,c])]}const[CP]=Gc("Popover",[Ds]),Kc=Ds(),[kP,zo]=CP("Popover"),$P=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,c=Kc(t),f=$.useRef(null),[v,m]=$.useState(!1),[g=!1,p]=Uv({prop:i,defaultProp:a,onChange:s});return $.createElement(jv,c,$.createElement(kP,{scope:t,contentId:Cv(),triggerRef:f,open:g,onOpenChange:p,onOpenToggle:$.useCallback((()=>p((b=>!b))),[p]),hasCustomAnchor:v,onCustomAnchorAdd:$.useCallback((()=>m(!0)),[]),onCustomAnchorRemove:$.useCallback((()=>m(!1)),[]),modal:l},r))},IP=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,a=zo("PopoverTrigger",r),s=Kc(r),l=vn(t,a.triggerRef),c=$.createElement(yn.button,Xe({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Hv(a.open)},i,{ref:l,onClick:Bt(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?c:$.createElement(zv,Xe({asChild:!0},s),c)})),LP=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,a=zo("PopoverContent",e.__scopePopover);return $.createElement(qc,{present:r||a.open},a.modal?$.createElement(MP,Xe({},i,{ref:t})):$.createElement(FP,Xe({},i,{ref:t})))})),MP=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...a}=e,s=zo("PopoverContent",e.__scopePopover),l=$.useRef(null),c=vn(t,l),f=$.useRef(!1);$.useEffect((()=>{const m=l.current;if(m)return AR(m)}),[]);const v=i?Zc:$.Fragment;return $.createElement(v,null,$.createElement(Pv,{allowPinchZoom:r},$.createElement(Bv,Xe({},a,{ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bt(e.onCloseAutoFocus,(m=>{var g;m.preventDefault(),f.current||(g=s.triggerRef.current)===null||g===void 0||g.focus()})),onPointerDownOutside:Bt(e.onPointerDownOutside,(m=>{const g=m.detail.originalEvent,p=g.button===0&&g.ctrlKey===!0,b=g.button===2||p;f.current=b}),{checkForDefaultPrevented:!1}),onFocusOutside:Bt(e.onFocusOutside,(m=>m.preventDefault()),{checkForDefaultPrevented:!1})}))))})),FP=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,a=zo("PopoverContent",e.__scopePopover),s=$.useRef(!1),l=r?Zc:$.Fragment;return $.createElement(l,null,$.createElement(Bv,Xe({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f,v;(f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,c),c.defaultPrevented||(s.current||(v=a.triggerRef.current)===null||v===void 0||v.focus(),c.preventDefault()),s.current=!1},onInteractOutside:c=>{var f,v;(f=e.onInteractOutside)===null||f===void 0||f.call(e,c),c.defaultPrevented||(s.current=!0);const m=c.target;!((v=a.triggerRef.current)===null||v===void 0)&&v.contains(m)&&c.preventDefault()}})))})),Bv=$.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:m,...g}=e,p=zo("PopoverContent",r),b=Kc(r);return dP(),$.createElement(hP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s},$.createElement(bP,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:m,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:v,onDismiss:()=>p.onOpenChange(!1)},$.createElement(Wv,Xe({"data-state":Hv(p.open),role:"dialog",id:p.contentId},b,g,{ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Hv(e){return e?"open":"closed"}const DP=$P,NP=IP,jP=LP;var fs=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(fs||{}),Fl={},ro={},Ka={},Va={},Ya={exports:{}},Xa={exports:{}},Ie={};/** @license React v16.13.1
63
63
  * react-is.production.min.js
64
64
  *
65
65
  * Copyright (c) Facebook, Inc. and its affiliates.
66
66
  *
67
67
  * This source code is licensed under the MIT license found in the
68
68
  * LICENSE file in the root directory of this source tree.
69
- */var Cm;function X2(){if(Cm)return Be;Cm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(E){if(typeof E=="object"&&E!==null){var R=E.$$typeof;switch(R){case t:switch(E=E.type,E){case u:case d:case n:case a:case o:case h:return E;default:switch(E=E&&E.$$typeof,E){case c:case p:case S:case y:case l:return E;default:return R}}case r:return R}}}function k(E){return x(E)===d}return Be.AsyncMode=u,Be.ConcurrentMode=d,Be.ContextConsumer=c,Be.ContextProvider=l,Be.Element=t,Be.ForwardRef=p,Be.Fragment=n,Be.Lazy=S,Be.Memo=y,Be.Portal=r,Be.Profiler=a,Be.StrictMode=o,Be.Suspense=h,Be.isAsyncMode=function(E){return k(E)||x(E)===u},Be.isConcurrentMode=k,Be.isContextConsumer=function(E){return x(E)===c},Be.isContextProvider=function(E){return x(E)===l},Be.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Be.isForwardRef=function(E){return x(E)===p},Be.isFragment=function(E){return x(E)===n},Be.isLazy=function(E){return x(E)===S},Be.isMemo=function(E){return x(E)===y},Be.isPortal=function(E){return x(E)===r},Be.isProfiler=function(E){return x(E)===a},Be.isStrictMode=function(E){return x(E)===o},Be.isSuspense=function(E){return x(E)===h},Be.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===d||E===a||E===o||E===h||E===g||typeof E=="object"&&E!==null&&(E.$$typeof===S||E.$$typeof===y||E.$$typeof===l||E.$$typeof===c||E.$$typeof===p||E.$$typeof===b||E.$$typeof===m||E.$$typeof===w||E.$$typeof===v)},Be.typeOf=x,Be}var Ve={};/** @license React v16.13.1
69
+ */var Cg;function zP(){if(Cg)return Ie;Cg=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(O){if(typeof O=="object"&&O!==null){var k=O.$$typeof;switch(k){case t:switch(O=O.type,O){case f:case v:case i:case s:case a:case g:return O;default:switch(O=O&&O.$$typeof,O){case c:case m:case x:case b:case l:return O;default:return k}}case r:return k}}}function R(O){return E(O)===v}return Ie.AsyncMode=f,Ie.ConcurrentMode=v,Ie.ContextConsumer=c,Ie.ContextProvider=l,Ie.Element=t,Ie.ForwardRef=m,Ie.Fragment=i,Ie.Lazy=x,Ie.Memo=b,Ie.Portal=r,Ie.Profiler=s,Ie.StrictMode=a,Ie.Suspense=g,Ie.isAsyncMode=function(O){return R(O)||E(O)===f},Ie.isConcurrentMode=R,Ie.isContextConsumer=function(O){return E(O)===c},Ie.isContextProvider=function(O){return E(O)===l},Ie.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Ie.isForwardRef=function(O){return E(O)===m},Ie.isFragment=function(O){return E(O)===i},Ie.isLazy=function(O){return E(O)===x},Ie.isMemo=function(O){return E(O)===b},Ie.isPortal=function(O){return E(O)===r},Ie.isProfiler=function(O){return E(O)===s},Ie.isStrictMode=function(O){return E(O)===a},Ie.isSuspense=function(O){return E(O)===g},Ie.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===i||O===v||O===s||O===a||O===g||O===p||typeof O=="object"&&O!==null&&(O.$$typeof===x||O.$$typeof===b||O.$$typeof===l||O.$$typeof===c||O.$$typeof===m||O.$$typeof===w||O.$$typeof===h||O.$$typeof===S||O.$$typeof===d)},Ie.typeOf=E,Ie}var Le={};/** @license React v16.13.1
70
70
  * react-is.development.js
71
71
  *
72
72
  * Copyright (c) Facebook, Inc. and its affiliates.
73
73
  *
74
74
  * This source code is licensed under the MIT license found in the
75
75
  * LICENSE file in the root directory of this source tree.
76
- */var Pm;function J2(){return Pm||(Pm=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(Z){return typeof Z=="string"||typeof Z=="function"||Z===n||Z===d||Z===a||Z===o||Z===h||Z===g||typeof Z=="object"&&Z!==null&&(Z.$$typeof===S||Z.$$typeof===y||Z.$$typeof===l||Z.$$typeof===c||Z.$$typeof===p||Z.$$typeof===b||Z.$$typeof===m||Z.$$typeof===w||Z.$$typeof===v)}function k(Z){if(typeof Z=="object"&&Z!==null){var Pe=Z.$$typeof;switch(Pe){case t:var ge=Z.type;switch(ge){case u:case d:case n:case a:case o:case h:return ge;default:var Et=ge&&ge.$$typeof;switch(Et){case c:case p:case S:case y:case l:return Et;default:return Pe}}case r:return Pe}}}var E=u,R=d,F=c,A=l,N=t,V=p,$=n,M=S,B=y,j=r,I=a,Y=o,X=h,K=!1;function me(Z){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(Z)||k(Z)===u}function L(Z){return k(Z)===d}function U(Z){return k(Z)===c}function te(Z){return k(Z)===l}function ee(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function J(Z){return k(Z)===p}function ae(Z){return k(Z)===n}function se(Z){return k(Z)===S}function ne(Z){return k(Z)===y}function ce(Z){return k(Z)===r}function he(Z){return k(Z)===a}function pe(Z){return k(Z)===o}function Se(Z){return k(Z)===h}Ve.AsyncMode=E,Ve.ConcurrentMode=R,Ve.ContextConsumer=F,Ve.ContextProvider=A,Ve.Element=N,Ve.ForwardRef=V,Ve.Fragment=$,Ve.Lazy=M,Ve.Memo=B,Ve.Portal=j,Ve.Profiler=I,Ve.StrictMode=Y,Ve.Suspense=X,Ve.isAsyncMode=me,Ve.isConcurrentMode=L,Ve.isContextConsumer=U,Ve.isContextProvider=te,Ve.isElement=ee,Ve.isForwardRef=J,Ve.isFragment=ae,Ve.isLazy=se,Ve.isMemo=ne,Ve.isPortal=ce,Ve.isProfiler=he,Ve.isStrictMode=pe,Ve.isSuspense=Se,Ve.isValidElementType=x,Ve.typeOf=k})()),Ve}var Im;function Hy(){return Im||(Im=1,process.env.NODE_ENV==="production"?il.exports=X2():il.exports=J2()),il.exports}/*
76
+ */var kg;function WP(){return kg||(kg=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(ie){return typeof ie=="string"||typeof ie=="function"||ie===i||ie===v||ie===s||ie===a||ie===g||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===x||ie.$$typeof===b||ie.$$typeof===l||ie.$$typeof===c||ie.$$typeof===m||ie.$$typeof===w||ie.$$typeof===h||ie.$$typeof===S||ie.$$typeof===d)}function R(ie){if(typeof ie=="object"&&ie!==null){var vt=ie.$$typeof;switch(vt){case t:var lt=ie.type;switch(lt){case f:case v:case i:case s:case a:case g:return lt;default:var mr=lt&&lt.$$typeof;switch(mr){case c:case m:case x:case b:case l:return mr;default:return vt}}case r:return vt}}}var O=f,k=v,U=c,M=l,F=t,G=m,j=i,L=x,B=b,q=r,C=s,J=a,Y=g,te=!1;function de(ie){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(ie)||R(ie)===f}function Z(ie){return R(ie)===v}function Q(ie){return R(ie)===c}function ae(ie){return R(ie)===l}function ue(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function ne(ie){return R(ie)===m}function ce(ie){return R(ie)===i}function fe(ie){return R(ie)===x}function ye(ie){return R(ie)===b}function me(ie){return R(ie)===r}function Ee(ie){return R(ie)===s}function Ae(ie){return R(ie)===a}function Ze(ie){return R(ie)===g}Le.AsyncMode=O,Le.ConcurrentMode=k,Le.ContextConsumer=U,Le.ContextProvider=M,Le.Element=F,Le.ForwardRef=G,Le.Fragment=j,Le.Lazy=L,Le.Memo=B,Le.Portal=q,Le.Profiler=C,Le.StrictMode=J,Le.Suspense=Y,Le.isAsyncMode=de,Le.isConcurrentMode=Z,Le.isContextConsumer=Q,Le.isContextProvider=ae,Le.isElement=ue,Le.isForwardRef=ne,Le.isFragment=ce,Le.isLazy=fe,Le.isMemo=ye,Le.isPortal=me,Le.isProfiler=Ee,Le.isStrictMode=Ae,Le.isSuspense=Ze,Le.isValidElementType=E,Le.typeOf=R})()),Le}var $g;function qv(){return $g||($g=1,process.env.NODE_ENV==="production"?Xa.exports=zP():Xa.exports=WP()),Xa.exports}/*
77
77
  object-assign
78
78
  (c) Sindre Sorhus
79
79
  @license MIT
80
- */var pf,Nm;function Q2(){if(Nm)return pf;Nm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(p){return l[p]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return pf=o()?Object.assign:function(a,l){for(var c,u=n(a),d,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var h in c)t.call(c,h)&&(u[h]=c[h]);if(e){d=e(c);for(var g=0;g<d.length;g++)r.call(c,d[g])&&(u[d[g]]=c[d[g]])}}return u},pf}var hf,Mm;function Wd(){if(Mm)return hf;Mm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hf=e,hf}var gf,Dm;function Wy(){return Dm||(Dm=1,gf=Function.call.bind(Object.prototype.hasOwnProperty)),gf}var vf,$m;function eN(){if($m)return vf;$m=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Wd(),r={},n=Wy();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(a,l,c,u,d){if(process.env.NODE_ENV!=="production"){for(var p in a)if(n(a,p)){var h;try{if(typeof a[p]!="function"){var g=Error((u||"React class")+": "+c+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}h=a[p](l,p,u,c,null,t)}catch(S){h=S}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var y=d?d():"";e("Failed "+c+" type: "+h.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},vf=o,vf}var mf,Lm;function tN(){if(Lm)return mf;Lm=1;var e=Hy(),t=Q2(),r=Wd(),n=Wy(),o=eN(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return mf=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function h(L){var U=L&&(d&&L[d]||L[p]);if(typeof U=="function")return U}var g="<<anonymous>>",y={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:w(),arrayOf:x,element:k(),elementType:E(),instanceOf:R,node:V(),objectOf:A,oneOf:F,oneOfType:N,shape:M,exact:B};function S(L,U){return L===U?L!==0||1/L===1/U:L!==L&&U!==U}function v(L,U){this.message=L,this.data=U&&typeof U=="object"?U:{},this.stack=""}v.prototype=Error.prototype;function b(L){if(process.env.NODE_ENV!=="production")var U={},te=0;function ee(ae,se,ne,ce,he,pe,Se){if(ce=ce||g,pe=pe||ne,Se!==r){if(u){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Pe=ce+":"+ne;!U[Pe]&&te<3&&(a("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+ce+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[Pe]=!0,te++)}}return se[ne]==null?ae?se[ne]===null?new v("The "+he+" `"+pe+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new v("The "+he+" `"+pe+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:L(se,ne,ce,he,pe)}var J=ee.bind(null,!1);return J.isRequired=ee.bind(null,!0),J}function m(L){function U(te,ee,J,ae,se,ne){var ce=te[ee],he=Y(ce);if(he!==L){var pe=X(ce);return new v("Invalid "+ae+" `"+se+"` of type "+("`"+pe+"` supplied to `"+J+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return b(U)}function w(){return b(l)}function x(L){function U(te,ee,J,ae,se){if(typeof L!="function")return new v("Property `"+se+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var ne=te[ee];if(!Array.isArray(ne)){var ce=Y(ne);return new v("Invalid "+ae+" `"+se+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected an array."))}for(var he=0;he<ne.length;he++){var pe=L(ne,he,J,ae,se+"["+he+"]",r);if(pe instanceof Error)return pe}return null}return b(U)}function k(){function L(U,te,ee,J,ae){var se=U[te];if(!c(se)){var ne=Y(se);return new v("Invalid "+J+" `"+ae+"` of type "+("`"+ne+"` supplied to `"+ee+"`, expected a single ReactElement."))}return null}return b(L)}function E(){function L(U,te,ee,J,ae){var se=U[te];if(!e.isValidElementType(se)){var ne=Y(se);return new v("Invalid "+J+" `"+ae+"` of type "+("`"+ne+"` supplied to `"+ee+"`, expected a single ReactElement type."))}return null}return b(L)}function R(L){function U(te,ee,J,ae,se){if(!(te[ee]instanceof L)){var ne=L.name||g,ce=me(te[ee]);return new v("Invalid "+ae+" `"+se+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected ")+("instance of `"+ne+"`."))}return null}return b(U)}function F(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function U(te,ee,J,ae,se){for(var ne=te[ee],ce=0;ce<L.length;ce++)if(S(ne,L[ce]))return null;var he=JSON.stringify(L,function(Se,Z){var Pe=X(Z);return Pe==="symbol"?String(Z):Z});return new v("Invalid "+ae+" `"+se+"` of value `"+String(ne)+"` "+("supplied to `"+J+"`, expected one of "+he+"."))}return b(U)}function A(L){function U(te,ee,J,ae,se){if(typeof L!="function")return new v("Property `"+se+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var ne=te[ee],ce=Y(ne);if(ce!=="object")return new v("Invalid "+ae+" `"+se+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected an object."));for(var he in ne)if(n(ne,he)){var pe=L(ne,he,J,ae,se+"."+he,r);if(pe instanceof Error)return pe}return null}return b(U)}function N(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var U=0;U<L.length;U++){var te=L[U];if(typeof te!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(te)+" at index "+U+"."),l}function ee(J,ae,se,ne,ce){for(var he=[],pe=0;pe<L.length;pe++){var Se=L[pe],Z=Se(J,ae,se,ne,ce,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&he.push(Z.data.expectedType)}var Pe=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new v("Invalid "+ne+" `"+ce+"` supplied to "+("`"+se+"`"+Pe+"."))}return b(ee)}function V(){function L(U,te,ee,J,ae){return j(U[te])?null:new v("Invalid "+J+" `"+ae+"` supplied to "+("`"+ee+"`, expected a ReactNode."))}return b(L)}function $(L,U,te,ee,J){return new v((L||"React class")+": "+U+" type `"+te+"."+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function M(L){function U(te,ee,J,ae,se){var ne=te[ee],ce=Y(ne);if(ce!=="object")return new v("Invalid "+ae+" `"+se+"` of type `"+ce+"` "+("supplied to `"+J+"`, expected `object`."));for(var he in L){var pe=L[he];if(typeof pe!="function")return $(J,ae,se,he,X(pe));var Se=pe(ne,he,J,ae,se+"."+he,r);if(Se)return Se}return null}return b(U)}function B(L){function U(te,ee,J,ae,se){var ne=te[ee],ce=Y(ne);if(ce!=="object")return new v("Invalid "+ae+" `"+se+"` of type `"+ce+"` "+("supplied to `"+J+"`, expected `object`."));var he=t({},te[ee],L);for(var pe in he){var Se=L[pe];if(n(L,pe)&&typeof Se!="function")return $(J,ae,se,pe,X(Se));if(!Se)return new v("Invalid "+ae+" `"+se+"` key `"+pe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(te[ee],null," ")+`
81
- Valid keys: `+JSON.stringify(Object.keys(L),null," "));var Z=Se(ne,pe,J,ae,se+"."+pe,r);if(Z)return Z}return null}return b(U)}function j(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(j);if(L===null||c(L))return!0;var U=h(L);if(U){var te=U.call(L),ee;if(U!==L.entries){for(;!(ee=te.next()).done;)if(!j(ee.value))return!1}else for(;!(ee=te.next()).done;){var J=ee.value;if(J&&!j(J[1]))return!1}}else return!1;return!0;default:return!1}}function I(L,U){return L==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function Y(L){var U=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":I(U,L)?"symbol":U}function X(L){if(typeof L>"u"||L===null)return""+L;var U=Y(L);if(U==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return U}function K(L){var U=X(L);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function me(L){return!L.constructor||!L.constructor.name?g:L.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},mf}var bf,zm;function rN(){if(zm)return bf;zm=1;var e=Wd();function t(){}function r(){}return r.resetWarningCache=t,bf=function(){function n(l,c,u,d,p,h){if(h!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},bf}var jm;function nN(){if(jm)return nl.exports;if(jm=1,process.env.NODE_ENV!=="production"){var e=Hy(),t=!0;nl.exports=tN()(e.isElement,t)}else nl.exports=rN()();return nl.exports}var Fm;function iN(){return Fm||(Fm=1,(function(e){(function(t,r){r(e,H,nN())})(rl,function(t,r,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=S;var o=l(r),a=l(n);function l(w){return w&&w.__esModule?w:{default:w}}var c=Object.assign||function(w){for(var x=1;x<arguments.length;x++){var k=arguments[x];for(var E in k)Object.prototype.hasOwnProperty.call(k,E)&&(w[E]=k[E])}return w};function u(w,x){var k={};for(var E in w)x.indexOf(E)>=0||Object.prototype.hasOwnProperty.call(w,E)&&(k[E]=w[E]);return k}function d(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}var p=(function(){function w(x,k){for(var E=0;E<k.length;E++){var R=k[E];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(x,R.key,R)}}return function(x,k,E){return k&&w(x.prototype,k),E&&w(x,E),x}})();function h(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function g(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var y=!1;function S(w){y=w}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function v(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return y?w:w.capture}function b(w){if("touches"in w){var x=w.touches[0],k=x.pageX,E=x.pageY;return{x:k,y:E}}var R=w.screenX,F=w.screenY;return{x:R,y:F}}var m=(function(w){g(x,w);function x(){var k;d(this,x);for(var E=arguments.length,R=Array(E),F=0;F<E;F++)R[F]=arguments[F];var A=h(this,(k=x.__proto__||Object.getPrototypeOf(x)).call.apply(k,[this].concat(R)));return A._handleSwipeStart=A._handleSwipeStart.bind(A),A._handleSwipeMove=A._handleSwipeMove.bind(A),A._handleSwipeEnd=A._handleSwipeEnd.bind(A),A._onMouseDown=A._onMouseDown.bind(A),A._onMouseMove=A._onMouseMove.bind(A),A._onMouseUp=A._onMouseUp.bind(A),A._setSwiperRef=A._setSwiperRef.bind(A),A}return p(x,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(E){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(E))}},{key:"_onMouseMove",value:function(E){this.mouseDown&&this._handleSwipeMove(E)}},{key:"_onMouseUp",value:function(E){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(E)}},{key:"_handleSwipeStart",value:function(E){var R=b(E),F=R.x,A=R.y;this.moveStart={x:F,y:A},this.props.onSwipeStart(E)}},{key:"_handleSwipeMove",value:function(E){if(this.moveStart){var R=b(E),F=R.x,A=R.y,N=F-this.moveStart.x,V=A-this.moveStart.y;this.moving=!0;var $=this.props.onSwipeMove({x:N,y:V},E);$&&E.cancelable&&E.preventDefault(),this.movePosition={deltaX:N,deltaY:V}}}},{key:"_handleSwipeEnd",value:function(E){this.props.onSwipeEnd(E);var R=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-R?this.props.onSwipeLeft(1,E):this.movePosition.deltaX>R&&this.props.onSwipeRight(1,E),this.movePosition.deltaY<-R?this.props.onSwipeUp(1,E):this.movePosition.deltaY>R&&this.props.onSwipeDown(1,E)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(E){this.swiper=E,this.props.innerRef(E)}},{key:"render",value:function(){var E=this.props;E.tagName;var R=E.className,F=E.style,A=E.children;E.allowMouseEvents,E.onSwipeUp,E.onSwipeDown,E.onSwipeLeft,E.onSwipeRight,E.onSwipeStart,E.onSwipeMove,E.onSwipeEnd,E.innerRef,E.tolerance;var N=u(E,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return o.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:R,style:F},N),A)}}]),x})(r.Component);m.displayName="ReactSwipe",m.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.default.number.isRequired},m.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=m})})(rl)),rl}var Hm;function By(){return Hm||(Hm=1,(function(e){(function(t,r){r(e,iN())})(tl,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=o(r);function o(a){return a&&a.__esModule?a:{default:a}}t.default=n.default})})(tl)),tl}var oa={},Wm;function Vy(){if(Wm)return oa;Wm=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.default=void 0;var e=t(Q0());function t(o){return o&&o.__esModule?o:{default:o}}function r(o,a,l){return a in o?Object.defineProperty(o,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[a]=l,o}var n={ROOT:function(a){return(0,e.default)(r({"carousel-root":!0},a||"",!!a))},CAROUSEL:function(a){return(0,e.default)({carousel:!0,"carousel-slider":a})},WRAPPER:function(a,l){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(a,l){return(0,e.default)({thumbs:!a,slider:a,animated:!l})},ITEM:function(a,l,c){return(0,e.default)({thumb:!a,slide:a,selected:l,previous:c})},ARROW_PREV:function(a){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":a})},ARROW_NEXT:function(a){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":a})},DOT:function(a){return(0,e.default)({dot:!0,selected:a})}};return oa.default=n,oa}var aa={},sa={},Bm;function oN(){if(Bm)return sa;Bm=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.outerWidth=void 0;var e=function(r){var n=r.offsetWidth,o=getComputedStyle(r);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight),n};return sa.outerWidth=e,sa}var la={},Vm;function Bd(){if(Vm)return la;Vm=1,Object.defineProperty(la,"__esModule",{value:!0}),la.default=void 0;var e=function(r,n,o){var a=r===0?r:r+n,l=o==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",u="("+l.join(",")+")";return c+u};return la.default=e,la}var ca={},Um;function Uy(){if(Um)return ca;Um=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.default=void 0;var e=function(){return window};return ca.default=e,ca}var qm;function qy(){if(qm)return aa;qm=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.default=void 0;var e=u(H),t=l(Vy()),r=oN(),n=l(Bd()),o=l(By()),a=l(Uy());function l(A){return A&&A.__esModule?A:{default:A}}function c(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return c=function(){return A},A}function u(A){if(A&&A.__esModule)return A;if(A===null||d(A)!=="object"&&typeof A!="function")return{default:A};var N=c();if(N&&N.has(A))return N.get(A);var V={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in A)if(Object.prototype.hasOwnProperty.call(A,M)){var B=$?Object.getOwnPropertyDescriptor(A,M):null;B&&(B.get||B.set)?Object.defineProperty(V,M,B):V[M]=A[M]}return V.default=A,N&&N.set(A,V),V}function d(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(V){return typeof V}:d=function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},d(A)}function p(){return p=Object.assign||function(A){for(var N=1;N<arguments.length;N++){var V=arguments[N];for(var $ in V)Object.prototype.hasOwnProperty.call(V,$)&&(A[$]=V[$])}return A},p.apply(this,arguments)}function h(A,N){if(!(A instanceof N))throw new TypeError("Cannot call a class as a function")}function g(A,N){for(var V=0;V<N.length;V++){var $=N[V];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(A,$.key,$)}}function y(A,N,V){return N&&g(A.prototype,N),A}function S(A,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(N&&N.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),N&&v(A,N)}function v(A,N){return v=Object.setPrototypeOf||function($,M){return $.__proto__=M,$},v(A,N)}function b(A){var N=x();return function(){var $=k(A),M;if(N){var B=k(this).constructor;M=Reflect.construct($,arguments,B)}else M=$.apply(this,arguments);return m(this,M)}}function m(A,N){return N&&(d(N)==="object"||typeof N=="function")?N:w(A)}function w(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function k(A){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)},k(A)}function E(A,N,V){return N in A?Object.defineProperty(A,N,{value:V,enumerable:!0,configurable:!0,writable:!0}):A[N]=V,A}var R=function(N){return N.hasOwnProperty("key")},F=(function(A){S(V,A);var N=b(V);function V($){var M;return h(this,V),M=N.call(this,$),E(w(M),"itemsWrapperRef",void 0),E(w(M),"itemsListRef",void 0),E(w(M),"thumbsRef",void 0),E(w(M),"setItemsWrapperRef",function(B){M.itemsWrapperRef=B}),E(w(M),"setItemsListRef",function(B){M.itemsListRef=B}),E(w(M),"setThumbsRef",function(B,j){M.thumbsRef||(M.thumbsRef=[]),M.thumbsRef[j]=B}),E(w(M),"updateSizes",function(){if(!(!M.props.children||!M.itemsWrapperRef||!M.thumbsRef)){var B=e.Children.count(M.props.children),j=M.itemsWrapperRef.clientWidth,I=M.props.thumbWidth?M.props.thumbWidth:(0,r.outerWidth)(M.thumbsRef[0]),Y=Math.floor(j/I),X=Y<B,K=X?B-Y:0;M.setState(function(me,L){return{itemSize:I,visibleItems:Y,firstItem:X?M.getFirstItem(L.selectedItem):0,lastPosition:K,showArrows:X}})}}),E(w(M),"handleClickItem",function(B,j,I){if(!R(I)||I.key==="Enter"){var Y=M.props.onSelectItem;typeof Y=="function"&&Y(B,j)}}),E(w(M),"onSwipeStart",function(){M.setState({swiping:!0})}),E(w(M),"onSwipeEnd",function(){M.setState({swiping:!1})}),E(w(M),"onSwipeMove",function(B){var j=B.x;if(!M.state.itemSize||!M.itemsWrapperRef||!M.state.visibleItems)return!1;var I=0,Y=e.Children.count(M.props.children),X=-(M.state.firstItem*100)/M.state.visibleItems,K=Math.max(Y-M.state.visibleItems,0),me=-K*100/M.state.visibleItems;X===I&&j>0&&(j=0),X===me&&j<0&&(j=0);var L=M.itemsWrapperRef.clientWidth,U=X+100/(L/j);return M.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(te){M.itemsListRef.style[te]=(0,n.default)(U,"%",M.props.axis)}),!0}),E(w(M),"slideRight",function(B){M.moveTo(M.state.firstItem-(typeof B=="number"?B:1))}),E(w(M),"slideLeft",function(B){M.moveTo(M.state.firstItem+(typeof B=="number"?B:1))}),E(w(M),"moveTo",function(B){B=B<0?0:B,B=B>=M.state.lastPosition?M.state.lastPosition:B,M.setState({firstItem:B})}),M.state={selectedItem:$.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},M}return y(V,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(M){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==M.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(M){var B=M;return M>=this.state.lastPosition&&(B=this.state.lastPosition),M<this.state.firstItem+this.state.visibleItems&&(B=this.state.firstItem),M<this.state.firstItem&&(B=M),B}},{key:"renderItems",value:function(){var M=this;return this.props.children.map(function(B,j){var I=t.default.ITEM(!1,j===M.state.selectedItem),Y={key:j,ref:function(K){return M.setThumbsRef(K,j)},className:I,onClick:M.handleClickItem.bind(M,j,M.props.children[j]),onKeyDown:M.handleClickItem.bind(M,j,M.props.children[j]),"aria-label":"".concat(M.props.labels.item," ").concat(j+1),style:{width:M.props.thumbWidth}};return e.default.createElement("li",p({},Y,{role:"button",tabIndex:0}),B)})}},{key:"render",value:function(){var M=this;if(!this.props.children)return null;var B=e.Children.count(this.props.children)>1,j=this.state.showArrows&&this.state.firstItem>0,I=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,Y={},X=-this.state.firstItem*(this.state.itemSize||0),K=(0,n.default)(X,"px",this.props.axis),me=this.props.transitionTime+"ms";return Y={WebkitTransform:K,MozTransform:K,MsTransform:K,OTransform:K,transform:K,msTransform:K,WebkitTransitionDuration:me,MozTransitionDuration:me,MsTransitionDuration:me,OTransitionDuration:me,transitionDuration:me,msTransitionDuration:me},e.default.createElement("div",{className:t.default.CAROUSEL(!1)},e.default.createElement("div",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:t.default.ARROW_PREV(!j),onClick:function(){return M.slideRight()},"aria-label":this.props.labels.leftArrow}),B?e.default.createElement(o.default,{tagName:"ul",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:Y,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(U){return M.setItemsListRef(U)},style:Y},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!I),onClick:function(){return M.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),V})(e.Component);return aa.default=F,E(F,"displayName","Thumbs"),E(F,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),aa}var ua={},Gm;function aN(){if(Gm)return ua;Gm=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.default=void 0;var e=function(){return document};return ua.default=e,ua}var ur={},Ym;function Gy(){if(Ym)return ur;Ym=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.setPosition=ur.getPosition=ur.isKeyboardEvent=ur.defaultStatusFormatter=ur.noop=void 0;var e=H,t=r(Bd());function r(u){return u&&u.__esModule?u:{default:u}}var n=function(){};ur.noop=n;var o=function(d,p){return"".concat(d," of ").concat(p)};ur.defaultStatusFormatter=o;var a=function(d){return d?d.hasOwnProperty("key"):!1};ur.isKeyboardEvent=a;var l=function(d,p){if(p.infiniteLoop&&++d,d===0)return 0;var h=e.Children.count(p.children);if(p.centerMode&&p.axis==="horizontal"){var g=-d*p.centerSlidePercentage,y=h-1;return d&&(d!==y||p.infiniteLoop)?g+=(100-p.centerSlidePercentage)/2:d===y&&(g+=100-p.centerSlidePercentage),g}return-d*100};ur.getPosition=l;var c=function(d,p){var h={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(g){h[g]=(0,t.default)(d,"%",p)}),h};return ur.setPosition=c,ur}var Fr={},Km;function sN(){if(Km)return Fr;Km=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.fadeAnimationHandler=Fr.slideStopSwipingHandler=Fr.slideSwipeAnimationHandler=Fr.slideAnimationHandler=void 0;var e=H,t=n(Bd()),r=Gy();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,g){var y=Object.keys(h);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(h);g&&(S=S.filter(function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable})),y.push.apply(y,S)}return y}function a(h){for(var g=1;g<arguments.length;g++){var y=arguments[g]!=null?arguments[g]:{};g%2?o(Object(y),!0).forEach(function(S){l(h,S,y[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(y)):o(Object(y)).forEach(function(S){Object.defineProperty(h,S,Object.getOwnPropertyDescriptor(y,S))})}return h}function l(h,g,y){return g in h?Object.defineProperty(h,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):h[g]=y,h}var c=function(g,y){var S={},v=y.selectedItem,b=v,m=e.Children.count(g.children)-1,w=g.infiniteLoop&&(v<0||v>m);if(w)return b<0?g.centerMode&&g.centerSlidePercentage&&g.axis==="horizontal"?S.itemListStyle=(0,r.setPosition)(-(m+2)*g.centerSlidePercentage-(100-g.centerSlidePercentage)/2,g.axis):S.itemListStyle=(0,r.setPosition)(-(m+2)*100,g.axis):b>m&&(S.itemListStyle=(0,r.setPosition)(0,g.axis)),S;var x=(0,r.getPosition)(v,g),k=(0,t.default)(x,"%",g.axis),E=g.transitionTime+"ms";return S.itemListStyle={WebkitTransform:k,msTransform:k,OTransform:k,transform:k},y.swiping||(S.itemListStyle=a(a({},S.itemListStyle),{},{WebkitTransitionDuration:E,MozTransitionDuration:E,OTransitionDuration:E,transitionDuration:E,msTransitionDuration:E})),S};Fr.slideAnimationHandler=c;var u=function(g,y,S,v){var b={},m=y.axis==="horizontal",w=e.Children.count(y.children),x=0,k=(0,r.getPosition)(S.selectedItem,y),E=y.infiniteLoop?(0,r.getPosition)(w-1,y)-100:(0,r.getPosition)(w-1,y),R=m?g.x:g.y,F=R;k===x&&R>0&&(F=0),k===E&&R<0&&(F=0);var A=k+100/(S.itemSize/F),N=Math.abs(R)>y.swipeScrollTolerance;return y.infiniteLoop&&N&&(S.selectedItem===0&&A>-100?A-=w*100:S.selectedItem===w-1&&A<-w*100&&(A+=w*100)),(!y.preventMovementUntilSwipeScrollTolerance||N||S.swipeMovementStarted)&&(S.swipeMovementStarted||v({swipeMovementStarted:!0}),b.itemListStyle=(0,r.setPosition)(A,y.axis)),N&&!S.cancelClick&&v({cancelClick:!0}),b};Fr.slideSwipeAnimationHandler=u;var d=function(g,y){var S=(0,r.getPosition)(y.selectedItem,g),v=(0,r.setPosition)(S,g.axis);return{itemListStyle:v}};Fr.slideStopSwipingHandler=d;var p=function(g,y){var S=g.transitionTime+"ms",v="ease-in-out",b={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:v,msTransitionTimingFunction:v,MozTransitionTimingFunction:v,WebkitTransitionTimingFunction:v,OTransitionTimingFunction:v};return y.swiping||(b=a(a({},b),{},{WebkitTransitionDuration:S,MozTransitionDuration:S,OTransitionDuration:S,transitionDuration:S,msTransitionDuration:S})),{slideStyle:b,selectedStyle:a(a({},b),{},{opacity:1,position:"relative"}),prevStyle:a({},b)}};return Fr.fadeAnimationHandler=p,Fr}var Zm;function lN(){if(Zm)return ia;Zm=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.default=void 0;var e=p(H),t=u(By()),r=u(Vy()),n=u(qy()),o=u(aN()),a=u(Uy()),l=Gy(),c=sN();function u($){return $&&$.__esModule?$:{default:$}}function d(){if(typeof WeakMap!="function")return null;var $=new WeakMap;return d=function(){return $},$}function p($){if($&&$.__esModule)return $;if($===null||h($)!=="object"&&typeof $!="function")return{default:$};var M=d();if(M&&M.has($))return M.get($);var B={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in $)if(Object.prototype.hasOwnProperty.call($,I)){var Y=j?Object.getOwnPropertyDescriptor($,I):null;Y&&(Y.get||Y.set)?Object.defineProperty(B,I,Y):B[I]=$[I]}return B.default=$,M&&M.set($,B),B}function h($){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h=function(B){return typeof B}:h=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},h($)}function g(){return g=Object.assign||function($){for(var M=1;M<arguments.length;M++){var B=arguments[M];for(var j in B)Object.prototype.hasOwnProperty.call(B,j)&&($[j]=B[j])}return $},g.apply(this,arguments)}function y($,M){var B=Object.keys($);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols($);M&&(j=j.filter(function(I){return Object.getOwnPropertyDescriptor($,I).enumerable})),B.push.apply(B,j)}return B}function S($){for(var M=1;M<arguments.length;M++){var B=arguments[M]!=null?arguments[M]:{};M%2?y(Object(B),!0).forEach(function(j){N($,j,B[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(B)):y(Object(B)).forEach(function(j){Object.defineProperty($,j,Object.getOwnPropertyDescriptor(B,j))})}return $}function v($,M){if(!($ instanceof M))throw new TypeError("Cannot call a class as a function")}function b($,M){for(var B=0;B<M.length;B++){var j=M[B];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty($,j.key,j)}}function m($,M,B){return M&&b($.prototype,M),$}function w($,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(M&&M.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),M&&x($,M)}function x($,M){return x=Object.setPrototypeOf||function(j,I){return j.__proto__=I,j},x($,M)}function k($){var M=F();return function(){var j=A($),I;if(M){var Y=A(this).constructor;I=Reflect.construct(j,arguments,Y)}else I=j.apply(this,arguments);return E(this,I)}}function E($,M){return M&&(h(M)==="object"||typeof M=="function")?M:R($)}function R($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function F(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A($){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},A($)}function N($,M,B){return M in $?Object.defineProperty($,M,{value:B,enumerable:!0,configurable:!0,writable:!0}):$[M]=B,$}var V=(function($){w(B,$);var M=k(B);function B(j){var I;v(this,B),I=M.call(this,j),N(R(I),"thumbsRef",void 0),N(R(I),"carouselWrapperRef",void 0),N(R(I),"listRef",void 0),N(R(I),"itemsRef",void 0),N(R(I),"timer",void 0),N(R(I),"animationHandler",void 0),N(R(I),"setThumbsRef",function(X){I.thumbsRef=X}),N(R(I),"setCarouselWrapperRef",function(X){I.carouselWrapperRef=X}),N(R(I),"setListRef",function(X){I.listRef=X}),N(R(I),"setItemsRef",function(X,K){I.itemsRef||(I.itemsRef=[]),I.itemsRef[K]=X}),N(R(I),"autoPlay",function(){e.Children.count(I.props.children)<=1||(I.clearAutoPlay(),I.props.autoPlay&&(I.timer=setTimeout(function(){I.increment()},I.props.interval)))}),N(R(I),"clearAutoPlay",function(){I.timer&&clearTimeout(I.timer)}),N(R(I),"resetAutoPlay",function(){I.clearAutoPlay(),I.autoPlay()}),N(R(I),"stopOnHover",function(){I.setState({isMouseEntered:!0},I.clearAutoPlay)}),N(R(I),"startOnLeave",function(){I.setState({isMouseEntered:!1},I.autoPlay)}),N(R(I),"isFocusWithinTheCarousel",function(){return I.carouselWrapperRef?!!((0,o.default)().activeElement===I.carouselWrapperRef||I.carouselWrapperRef.contains((0,o.default)().activeElement)):!1}),N(R(I),"navigateWithKeyboard",function(X){if(I.isFocusWithinTheCarousel()){var K=I.props.axis,me=K==="horizontal",L={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},U=me?L.ArrowRight:L.ArrowDown,te=me?L.ArrowLeft:L.ArrowUp;U===X.keyCode?I.increment():te===X.keyCode&&I.decrement()}}),N(R(I),"updateSizes",function(){if(!(!I.state.initialized||!I.itemsRef||I.itemsRef.length===0)){var X=I.props.axis==="horizontal",K=I.itemsRef[0];if(K){var me=X?K.clientWidth:K.clientHeight;I.setState({itemSize:me}),I.thumbsRef&&I.thumbsRef.updateSizes()}}}),N(R(I),"setMountState",function(){I.setState({hasMount:!0}),I.updateSizes()}),N(R(I),"handleClickItem",function(X,K){if(e.Children.count(I.props.children)!==0){if(I.state.cancelClick){I.setState({cancelClick:!1});return}I.props.onClickItem(X,K),X!==I.state.selectedItem&&I.setState({selectedItem:X})}}),N(R(I),"handleOnChange",function(X,K){e.Children.count(I.props.children)<=1||I.props.onChange(X,K)}),N(R(I),"handleClickThumb",function(X,K){I.props.onClickThumb(X,K),I.moveTo(X)}),N(R(I),"onSwipeStart",function(X){I.setState({swiping:!0}),I.props.onSwipeStart(X)}),N(R(I),"onSwipeEnd",function(X){I.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),I.props.onSwipeEnd(X),I.clearAutoPlay(),I.state.autoPlay&&I.autoPlay()}),N(R(I),"onSwipeMove",function(X,K){I.props.onSwipeMove(K);var me=I.props.swipeAnimationHandler(X,I.props,I.state,I.setState.bind(R(I)));return I.setState(S({},me)),!!Object.keys(me).length}),N(R(I),"decrement",function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;I.moveTo(I.state.selectedItem-(typeof X=="number"?X:1))}),N(R(I),"increment",function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;I.moveTo(I.state.selectedItem+(typeof X=="number"?X:1))}),N(R(I),"moveTo",function(X){if(typeof X=="number"){var K=e.Children.count(I.props.children)-1;X<0&&(X=I.props.infiniteLoop?K:0),X>K&&(X=I.props.infiniteLoop?0:K),I.selectItem({selectedItem:X}),I.state.autoPlay&&I.state.isMouseEntered===!1&&I.resetAutoPlay()}}),N(R(I),"onClickNext",function(){I.increment(1)}),N(R(I),"onClickPrev",function(){I.decrement(1)}),N(R(I),"onSwipeForward",function(){I.increment(1),I.props.emulateTouch&&I.setState({cancelClick:!0})}),N(R(I),"onSwipeBackwards",function(){I.decrement(1),I.props.emulateTouch&&I.setState({cancelClick:!0})}),N(R(I),"changeItem",function(X){return function(K){(!(0,l.isKeyboardEvent)(K)||K.key==="Enter")&&I.moveTo(X)}}),N(R(I),"selectItem",function(X){I.setState(S({previousItem:I.state.selectedItem},X),function(){I.setState(I.animationHandler(I.props,I.state))}),I.handleOnChange(X.selectedItem,e.Children.toArray(I.props.children)[X.selectedItem])}),N(R(I),"getInitialImage",function(){var X=I.props.selectedItem,K=I.itemsRef&&I.itemsRef[X],me=K&&K.getElementsByTagName("img")||[];return me[0]}),N(R(I),"getVariableItemHeight",function(X){var K=I.itemsRef&&I.itemsRef[X];if(I.state.hasMount&&K&&K.children.length){var me=K.children[0].getElementsByTagName("img")||[];if(me.length>0){var L=me[0];if(!L.complete){var U=function J(){I.forceUpdate(),L.removeEventListener("load",J)};L.addEventListener("load",U)}}var te=me[0]||K.children[0],ee=te.clientHeight;return ee>0?ee:null}return null});var Y={initialized:!1,previousItem:j.selectedItem,selectedItem:j.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:j.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return I.animationHandler=typeof j.animationHandler=="function"&&j.animationHandler||j.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,I.state=S(S({},Y),I.animationHandler(j,Y)),I}return m(B,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(I,Y){!I.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!I.autoFocus&&this.props.autoFocus&&this.forceFocus(),Y.swiping&&!this.state.swiping&&this.setState(S({},this.props.stopSwipingHandler(this.props,this.state))),(I.selectedItem!==this.props.selectedItem||I.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),I.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var I=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var Y=I.getInitialImage();Y&&!Y.complete?Y.addEventListener("load",I.setMountState):I.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var I=this.carouselWrapperRef;this.props.stopOnHover&&I&&(I.addEventListener("mouseenter",this.stopOnHover),I.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var I=this.carouselWrapperRef;this.props.stopOnHover&&I&&(I.removeEventListener("mouseenter",this.stopOnHover),I.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,o.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var I=this.getInitialImage();I&&I.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,o.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var I;(I=this.carouselWrapperRef)===null||I===void 0||I.focus()}},{key:"renderItems",value:function(I){var Y=this;return this.props.children?e.Children.map(this.props.children,function(X,K){var me=K===Y.state.selectedItem,L=K===Y.state.previousItem,U=me&&Y.state.selectedStyle||L&&Y.state.prevStyle||Y.state.slideStyle||{};Y.props.centerMode&&Y.props.axis==="horizontal"&&(U=S(S({},U),{},{minWidth:Y.props.centerSlidePercentage+"%"})),Y.state.swiping&&Y.state.swipeMovementStarted&&(U=S(S({},U),{},{pointerEvents:"none"}));var te={ref:function(J){return Y.setItemsRef(J,K)},key:"itemKey"+K+(I?"clone":""),className:r.default.ITEM(!0,K===Y.state.selectedItem,K===Y.state.previousItem),onClick:Y.handleClickItem.bind(Y,K,X),style:U};return e.default.createElement("li",te,Y.props.renderItem(X,{isSelected:K===Y.state.selectedItem,isPrevious:K===Y.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var I=this,Y=this.props,X=Y.showIndicators,K=Y.labels,me=Y.renderIndicator,L=Y.children;return X?e.default.createElement("ul",{className:"control-dots"},e.Children.map(L,function(U,te){return me&&me(I.changeItem(te),te===I.state.selectedItem,te,K.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(n.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var I=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var Y=this.props.swipeable&&e.Children.count(this.props.children)>1,X=this.props.axis==="horizontal",K=this.props.showArrows&&e.Children.count(this.props.children)>1,me=K&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,L=K&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,U=this.renderItems(!0),te=U.shift(),ee=U.pop(),J={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},ae={};if(X){if(J.onSwipeLeft=this.onSwipeForward,J.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var se=this.getVariableItemHeight(this.state.selectedItem);ae.height=se||"auto"}}else J.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,J.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,J.style=S(S({},J.style),{},{height:this.state.itemSize}),ae.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,me,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:ae},Y?e.default.createElement(t.default,g({tagName:"ul",innerRef:this.setListRef},J,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ee,this.renderItems(),this.props.infiniteLoop&&te):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(ce){return I.setListRef(ce)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ee,this.renderItems(),this.props.infiniteLoop&&te)),this.props.renderArrowNext(this.onClickNext,L,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),B})(e.default.Component);return ia.default=V,N(V,"displayName","Carousel"),N(V,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(M,B,j){return e.default.createElement("button",{type:"button","aria-label":j,className:r.default.ARROW_PREV(!B),onClick:M})},renderArrowNext:function(M,B,j){return e.default.createElement("button",{type:"button","aria-label":j,className:r.default.ARROW_NEXT(!B),onClick:M})},renderIndicator:function(M,B,j,I){return e.default.createElement("li",{className:r.default.DOT(B),onClick:M,onKeyDown:M,value:j,key:j,role:"button",tabIndex:0,"aria-label":"".concat(I," ").concat(j+1)})},renderItem:function(M){return M},renderThumbs:function(M){var B=e.Children.map(M,function(j){var I=j;if(j.type!=="img"&&(I=e.Children.toArray(j.props.children).find(function(Y){return Y.type==="img"})),!!I)return I});return B.filter(function(j){return j}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):B},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),ia}var Xm={},Jm;function cN(){return Jm||(Jm=1),Xm}var Qm;function uN(){return Qm||(Qm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return n.default}});var t=o(lN()),r=cN(),n=o(qy());function o(a){return a&&a.__esModule?a:{default:a}}})(df)),df}var fN=uN();const dN=({tip:e})=>C.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:Yy(e,!0)}),pN=({pages:e})=>C.jsx("div",{className:"min-h-[10rem] w-96",children:C.jsx(fN.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>C.jsx(dN,{tip:t},t.key))})}),hN=({body:e,isInsideCarousel:t})=>C.jsx("article",{className:tt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:C.jsx(Vl,{children:e,options:{overrides:{a:{component:({children:r,...n})=>C.jsxs("a",{...n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,C.jsx(wt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),gN=({video:e,body:t,title:r,isInsideCarousel:n})=>C.jsxs("div",{className:tt([{"flex flex-row":!n,"flex max-h-[10rem] flex-col overflow-y-auto":n}]),children:[C.jsx("div",{className:tt([{"mr-1":!n,"mb-1":n}]),children:C.jsx("iframe",{height:n?"auto":90,width:n?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),C.jsx("article",{className:tt(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!n,"-mt-6":n}]),children:C.jsx(Vl,{children:t||"",options:{overrides:{a:{component:({children:o,...a})=>C.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[o,C.jsx(wt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Yy=(e,t)=>{switch(e.type){case Pl.TEXT:return C.jsx(hN,{body:e.body,isInsideCarousel:t});case Pl.VIDEO:return C.jsx(gN,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case Pl.CAROUSEL:return C.jsx(pN,{pages:e.pages})}},Ky=H.createContext(void 0);function eb(e,t){const r=[];return e.forEach(n=>{n.key===t&&r.push(n)}),r}const vN=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:n,show:o},a]=H.useState({tips:{},show:!0});H.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(u=>u.json()).then(u=>{const d=u.reduce((p,h)=>eb(u,h.key).length>1?{...p,[h.key]:{type:"carousel",pages:eb(u,h.key)}}:{...p,[h.key]:h},{});a(p=>({...p,tips:d}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{a(c=>({...c,show:!o}))};return C.jsx(Ky.Provider,{value:{tips:n,toggleTips:l,show:o,enabled:t},children:e})},Zy=e=>{const t=H.useContext(Ky);if(t===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?t.tips[e]:null,toggleTips:t.toggleTips,show:t.show,enabled:t.enabled}},mN=Ul(K2)`
80
+ */var Dl,Ig;function UP(){if(Ig)return Dl;Ig=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(l).map(function(m){return l[m]});if(f.join("")!=="0123456789")return!1;var v={};return"abcdefghijklmnopqrst".split("").forEach(function(m){v[m]=m}),Object.keys(Object.assign({},v)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Dl=a()?Object.assign:function(s,l){for(var c,f=i(s),v,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var g in c)t.call(c,g)&&(f[g]=c[g]);if(e){v=e(c);for(var p=0;p<v.length;p++)r.call(c,v[p])&&(f[v[p]]=c[v[p]])}}return f},Dl}var Nl,Lg;function Vc(){if(Lg)return Nl;Lg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Nl=e,Nl}var jl,Mg;function Zv(){return Mg||(Mg=1,jl=Function.call.bind(Object.prototype.hasOwnProperty)),jl}var zl,Fg;function BP(){if(Fg)return zl;Fg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Vc(),r={},i=Zv();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(s,l,c,f,v){if(process.env.NODE_ENV!=="production"){for(var m in s)if(i(s,m)){var g;try{if(typeof s[m]!="function"){var p=Error((f||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}g=s[m](l,m,f,c,null,t)}catch(x){g=x}if(g&&!(g instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in r)){r[g.message]=!0;var b=v?v():"";e("Failed "+c+" type: "+g.message+(b??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},zl=a,zl}var Wl,Dg;function HP(){if(Dg)return Wl;Dg=1;var e=qv(),t=UP(),r=Vc(),i=Zv(),a=BP(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function l(){return null}return Wl=function(c,f){var v=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function g(Z){var Q=Z&&(v&&Z[v]||Z[m]);if(typeof Q=="function")return Q}var p="<<anonymous>>",b={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:S(),arrayOf:E,element:R(),elementType:O(),instanceOf:k,node:G(),objectOf:M,oneOf:U,oneOfType:F,shape:L,exact:B};function x(Z,Q){return Z===Q?Z!==0||1/Z===1/Q:Z!==Z&&Q!==Q}function d(Z,Q){this.message=Z,this.data=Q&&typeof Q=="object"?Q:{},this.stack=""}d.prototype=Error.prototype;function w(Z){if(process.env.NODE_ENV!=="production")var Q={},ae=0;function ue(ce,fe,ye,me,Ee,Ae,Ze){if(me=me||p,Ae=Ae||ye,Ze!==r){if(f){var ie=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ie.name="Invariant Violation",ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var vt=me+":"+ye;!Q[vt]&&ae<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Ae+"` prop on `"+me+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Q[vt]=!0,ae++)}}return fe[ye]==null?ce?fe[ye]===null?new d("The "+Ee+" `"+Ae+"` is marked as required "+("in `"+me+"`, but its value is `null`.")):new d("The "+Ee+" `"+Ae+"` is marked as required in "+("`"+me+"`, but its value is `undefined`.")):null:Z(fe,ye,me,Ee,Ae)}var ne=ue.bind(null,!1);return ne.isRequired=ue.bind(null,!0),ne}function h(Z){function Q(ae,ue,ne,ce,fe,ye){var me=ae[ue],Ee=J(me);if(Ee!==Z){var Ae=Y(me);return new d("Invalid "+ce+" `"+fe+"` of type "+("`"+Ae+"` supplied to `"+ne+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return w(Q)}function S(){return w(l)}function E(Z){function Q(ae,ue,ne,ce,fe){if(typeof Z!="function")return new d("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var ye=ae[ue];if(!Array.isArray(ye)){var me=J(ye);return new d("Invalid "+ce+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ne+"`, expected an array."))}for(var Ee=0;Ee<ye.length;Ee++){var Ae=Z(ye,Ee,ne,ce,fe+"["+Ee+"]",r);if(Ae instanceof Error)return Ae}return null}return w(Q)}function R(){function Z(Q,ae,ue,ne,ce){var fe=Q[ae];if(!c(fe)){var ye=J(fe);return new d("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return w(Z)}function O(){function Z(Q,ae,ue,ne,ce){var fe=Q[ae];if(!e.isValidElementType(fe)){var ye=J(fe);return new d("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return w(Z)}function k(Z){function Q(ae,ue,ne,ce,fe){if(!(ae[ue]instanceof Z)){var ye=Z.name||p,me=de(ae[ue]);return new d("Invalid "+ce+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ne+"`, expected ")+("instance of `"+ye+"`."))}return null}return w(Q)}function U(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function Q(ae,ue,ne,ce,fe){for(var ye=ae[ue],me=0;me<Z.length;me++)if(x(ye,Z[me]))return null;var Ee=JSON.stringify(Z,function(Ze,ie){var vt=Y(ie);return vt==="symbol"?String(ie):ie});return new d("Invalid "+ce+" `"+fe+"` of value `"+String(ye)+"` "+("supplied to `"+ne+"`, expected one of "+Ee+"."))}return w(Q)}function M(Z){function Q(ae,ue,ne,ce,fe){if(typeof Z!="function")return new d("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var ye=ae[ue],me=J(ye);if(me!=="object")return new d("Invalid "+ce+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ne+"`, expected an object."));for(var Ee in ye)if(i(ye,Ee)){var Ae=Z(ye,Ee,ne,ce,fe+"."+Ee,r);if(Ae instanceof Error)return Ae}return null}return w(Q)}function F(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var Q=0;Q<Z.length;Q++){var ae=Z[Q];if(typeof ae!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(ae)+" at index "+Q+"."),l}function ue(ne,ce,fe,ye,me){for(var Ee=[],Ae=0;Ae<Z.length;Ae++){var Ze=Z[Ae],ie=Ze(ne,ce,fe,ye,me,r);if(ie==null)return null;ie.data&&i(ie.data,"expectedType")&&Ee.push(ie.data.expectedType)}var vt=Ee.length>0?", expected one of type ["+Ee.join(", ")+"]":"";return new d("Invalid "+ye+" `"+me+"` supplied to "+("`"+fe+"`"+vt+"."))}return w(ue)}function G(){function Z(Q,ae,ue,ne,ce){return q(Q[ae])?null:new d("Invalid "+ne+" `"+ce+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(Z)}function j(Z,Q,ae,ue,ne){return new d((Z||"React class")+": "+Q+" type `"+ae+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function L(Z){function Q(ae,ue,ne,ce,fe){var ye=ae[ue],me=J(ye);if(me!=="object")return new d("Invalid "+ce+" `"+fe+"` of type `"+me+"` "+("supplied to `"+ne+"`, expected `object`."));for(var Ee in Z){var Ae=Z[Ee];if(typeof Ae!="function")return j(ne,ce,fe,Ee,Y(Ae));var Ze=Ae(ye,Ee,ne,ce,fe+"."+Ee,r);if(Ze)return Ze}return null}return w(Q)}function B(Z){function Q(ae,ue,ne,ce,fe){var ye=ae[ue],me=J(ye);if(me!=="object")return new d("Invalid "+ce+" `"+fe+"` of type `"+me+"` "+("supplied to `"+ne+"`, expected `object`."));var Ee=t({},ae[ue],Z);for(var Ae in Ee){var Ze=Z[Ae];if(i(Z,Ae)&&typeof Ze!="function")return j(ne,ce,fe,Ae,Y(Ze));if(!Ze)return new d("Invalid "+ce+" `"+fe+"` key `"+Ae+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(ae[ue],null," ")+`
81
+ Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ie=Ze(ye,Ae,ne,ce,fe+"."+Ae,r);if(ie)return ie}return null}return w(Q)}function q(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(q);if(Z===null||c(Z))return!0;var Q=g(Z);if(Q){var ae=Q.call(Z),ue;if(Q!==Z.entries){for(;!(ue=ae.next()).done;)if(!q(ue.value))return!1}else for(;!(ue=ae.next()).done;){var ne=ue.value;if(ne&&!q(ne[1]))return!1}}else return!1;return!0;default:return!1}}function C(Z,Q){return Z==="symbol"?!0:Q?Q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Q instanceof Symbol:!1}function J(Z){var Q=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":C(Q,Z)?"symbol":Q}function Y(Z){if(typeof Z>"u"||Z===null)return""+Z;var Q=J(Z);if(Q==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return Q}function te(Z){var Q=Y(Z);switch(Q){case"array":case"object":return"an "+Q;case"boolean":case"date":case"regexp":return"a "+Q;default:return Q}}function de(Z){return!Z.constructor||!Z.constructor.name?p:Z.constructor.name}return b.checkPropTypes=a,b.resetWarningCache=a.resetWarningCache,b.PropTypes=b,b},Wl}var Ul,Ng;function qP(){if(Ng)return Ul;Ng=1;var e=Vc();function t(){}function r(){}return r.resetWarningCache=t,Ul=function(){function i(l,c,f,v,m,g){if(g!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}i.isRequired=i;function a(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Ul}var jg;function ZP(){if(jg)return Ya.exports;if(jg=1,process.env.NODE_ENV!=="production"){var e=qv(),t=!0;Ya.exports=HP()(e.isElement,t)}else Ya.exports=qP()();return Ya.exports}var zg;function GP(){return zg||(zg=1,(function(e){(function(t,r){r(e,W,ZP())})(Va,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var a=l(r),s=l(i);function l(S){return S&&S.__esModule?S:{default:S}}var c=Object.assign||function(S){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&(S[O]=R[O])}return S};function f(S,E){var R={};for(var O in S)E.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(S,O)&&(R[O]=S[O]);return R}function v(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}var m=(function(){function S(E,R){for(var O=0;O<R.length;O++){var k=R[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(E,k.key,k)}}return function(E,R,O){return R&&S(E.prototype,R),O&&S(E,O),E}})();function g(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function p(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var b=!1;function x(S){b=S}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function d(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return b?S:S.capture}function w(S){if("touches"in S){var E=S.touches[0],R=E.pageX,O=E.pageY;return{x:R,y:O}}var k=S.screenX,U=S.screenY;return{x:k,y:U}}var h=(function(S){p(E,S);function E(){var R;v(this,E);for(var O=arguments.length,k=Array(O),U=0;U<O;U++)k[U]=arguments[U];var M=g(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(k)));return M._handleSwipeStart=M._handleSwipeStart.bind(M),M._handleSwipeMove=M._handleSwipeMove.bind(M),M._handleSwipeEnd=M._handleSwipeEnd.bind(M),M._onMouseDown=M._onMouseDown.bind(M),M._onMouseMove=M._onMouseMove.bind(M),M._onMouseUp=M._onMouseUp.bind(M),M._setSwiperRef=M._setSwiperRef.bind(M),M}return m(E,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(O){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(O))}},{key:"_onMouseMove",value:function(O){this.mouseDown&&this._handleSwipeMove(O)}},{key:"_onMouseUp",value:function(O){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(O)}},{key:"_handleSwipeStart",value:function(O){var k=w(O),U=k.x,M=k.y;this.moveStart={x:U,y:M},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var k=w(O),U=k.x,M=k.y,F=U-this.moveStart.x,G=M-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:F,y:G},O);j&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:F,deltaY:G}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var k=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-k?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>k&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-k?this.props.onSwipeUp(1,O):this.movePosition.deltaY>k&&this.props.onSwipeDown(1,O)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(O){this.swiper=O,this.props.innerRef(O)}},{key:"render",value:function(){var O=this.props;O.tagName;var k=O.className,U=O.style,M=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var F=f(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:k,style:U},F),M)}}]),E})(r.Component);h.displayName="ReactSwipe",h.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},h.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=h})})(Va)),Va}var Wg;function Gv(){return Wg||(Wg=1,(function(e){(function(t,r){r(e,GP())})(Ka,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=a(r);function a(s){return s&&s.__esModule?s:{default:s}}t.default=i.default})})(Ka)),Ka}var no={},Ug;function Kv(){if(Ug)return no;Ug=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;var e=t(nv());function t(a){return a&&a.__esModule?a:{default:a}}function r(a,s,l){return s in a?Object.defineProperty(a,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[s]=l,a}var i={ROOT:function(s){return(0,e.default)(r({"carousel-root":!0},s||"",!!s))},CAROUSEL:function(s){return(0,e.default)({carousel:!0,"carousel-slider":s})},WRAPPER:function(s,l){return(0,e.default)({"thumbs-wrapper":!s,"slider-wrapper":s,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(s,l){return(0,e.default)({thumbs:!s,slider:s,animated:!l})},ITEM:function(s,l,c){return(0,e.default)({thumb:!s,slide:s,selected:l,previous:c})},ARROW_PREV:function(s){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":s})},ARROW_NEXT:function(s){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":s})},DOT:function(s){return(0,e.default)({dot:!0,selected:s})}};return no.default=i,no}var io={},oo={},Bg;function KP(){if(Bg)return oo;Bg=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,a=getComputedStyle(r);return i+=parseInt(a.marginLeft)+parseInt(a.marginRight),i};return oo.outerWidth=e,oo}var ao={},Hg;function Yc(){if(Hg)return ao;Hg=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=function(r,i,a){var s=r===0?r:r+i,l=a==="horizontal"?[s,0,0]:[0,s,0],c="translate3d",f="("+l.join(",")+")";return c+f};return ao.default=e,ao}var so={},qg;function Vv(){if(qg)return so;qg=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e=function(){return window};return so.default=e,so}var Zg;function Yv(){if(Zg)return io;Zg=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e=f(W),t=l(Kv()),r=KP(),i=l(Yc()),a=l(Gv()),s=l(Vv());function l(M){return M&&M.__esModule?M:{default:M}}function c(){if(typeof WeakMap!="function")return null;var M=new WeakMap;return c=function(){return M},M}function f(M){if(M&&M.__esModule)return M;if(M===null||v(M)!=="object"&&typeof M!="function")return{default:M};var F=c();if(F&&F.has(M))return F.get(M);var G={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in M)if(Object.prototype.hasOwnProperty.call(M,L)){var B=j?Object.getOwnPropertyDescriptor(M,L):null;B&&(B.get||B.set)?Object.defineProperty(G,L,B):G[L]=M[L]}return G.default=M,F&&F.set(M,G),G}function v(M){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(G){return typeof G}:v=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},v(M)}function m(){return m=Object.assign||function(M){for(var F=1;F<arguments.length;F++){var G=arguments[F];for(var j in G)Object.prototype.hasOwnProperty.call(G,j)&&(M[j]=G[j])}return M},m.apply(this,arguments)}function g(M,F){if(!(M instanceof F))throw new TypeError("Cannot call a class as a function")}function p(M,F){for(var G=0;G<F.length;G++){var j=F[G];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(M,j.key,j)}}function b(M,F,G){return F&&p(M.prototype,F),M}function x(M,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(F&&F.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),F&&d(M,F)}function d(M,F){return d=Object.setPrototypeOf||function(j,L){return j.__proto__=L,j},d(M,F)}function w(M){var F=E();return function(){var j=R(M),L;if(F){var B=R(this).constructor;L=Reflect.construct(j,arguments,B)}else L=j.apply(this,arguments);return h(this,L)}}function h(M,F){return F&&(v(F)==="object"||typeof F=="function")?F:S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function R(M){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},R(M)}function O(M,F,G){return F in M?Object.defineProperty(M,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):M[F]=G,M}var k=function(F){return F.hasOwnProperty("key")},U=(function(M){x(G,M);var F=w(G);function G(j){var L;return g(this,G),L=F.call(this,j),O(S(L),"itemsWrapperRef",void 0),O(S(L),"itemsListRef",void 0),O(S(L),"thumbsRef",void 0),O(S(L),"setItemsWrapperRef",function(B){L.itemsWrapperRef=B}),O(S(L),"setItemsListRef",function(B){L.itemsListRef=B}),O(S(L),"setThumbsRef",function(B,q){L.thumbsRef||(L.thumbsRef=[]),L.thumbsRef[q]=B}),O(S(L),"updateSizes",function(){if(!(!L.props.children||!L.itemsWrapperRef||!L.thumbsRef)){var B=e.Children.count(L.props.children),q=L.itemsWrapperRef.clientWidth,C=L.props.thumbWidth?L.props.thumbWidth:(0,r.outerWidth)(L.thumbsRef[0]),J=Math.floor(q/C),Y=J<B,te=Y?B-J:0;L.setState(function(de,Z){return{itemSize:C,visibleItems:J,firstItem:Y?L.getFirstItem(Z.selectedItem):0,lastPosition:te,showArrows:Y}})}}),O(S(L),"handleClickItem",function(B,q,C){if(!k(C)||C.key==="Enter"){var J=L.props.onSelectItem;typeof J=="function"&&J(B,q)}}),O(S(L),"onSwipeStart",function(){L.setState({swiping:!0})}),O(S(L),"onSwipeEnd",function(){L.setState({swiping:!1})}),O(S(L),"onSwipeMove",function(B){var q=B.x;if(!L.state.itemSize||!L.itemsWrapperRef||!L.state.visibleItems)return!1;var C=0,J=e.Children.count(L.props.children),Y=-(L.state.firstItem*100)/L.state.visibleItems,te=Math.max(J-L.state.visibleItems,0),de=-te*100/L.state.visibleItems;Y===C&&q>0&&(q=0),Y===de&&q<0&&(q=0);var Z=L.itemsWrapperRef.clientWidth,Q=Y+100/(Z/q);return L.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ae){L.itemsListRef.style[ae]=(0,i.default)(Q,"%",L.props.axis)}),!0}),O(S(L),"slideRight",function(B){L.moveTo(L.state.firstItem-(typeof B=="number"?B:1))}),O(S(L),"slideLeft",function(B){L.moveTo(L.state.firstItem+(typeof B=="number"?B:1))}),O(S(L),"moveTo",function(B){B=B<0?0:B,B=B>=L.state.lastPosition?L.state.lastPosition:B,L.setState({firstItem:B})}),L.state={selectedItem:j.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},L}return b(G,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(L){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==L.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(L){var B=L;return L>=this.state.lastPosition&&(B=this.state.lastPosition),L<this.state.firstItem+this.state.visibleItems&&(B=this.state.firstItem),L<this.state.firstItem&&(B=L),B}},{key:"renderItems",value:function(){var L=this;return this.props.children.map(function(B,q){var C=t.default.ITEM(!1,q===L.state.selectedItem),J={key:q,ref:function(te){return L.setThumbsRef(te,q)},className:C,onClick:L.handleClickItem.bind(L,q,L.props.children[q]),onKeyDown:L.handleClickItem.bind(L,q,L.props.children[q]),"aria-label":"".concat(L.props.labels.item," ").concat(q+1),style:{width:L.props.thumbWidth}};return e.default.createElement("li",m({},J,{role:"button",tabIndex:0}),B)})}},{key:"render",value:function(){var L=this;if(!this.props.children)return null;var B=e.Children.count(this.props.children)>1,q=this.state.showArrows&&this.state.firstItem>0,C=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,J={},Y=-this.state.firstItem*(this.state.itemSize||0),te=(0,i.default)(Y,"px",this.props.axis),de=this.props.transitionTime+"ms";return J={WebkitTransform:te,MozTransform:te,MsTransform:te,OTransform:te,transform:te,msTransform:te,WebkitTransitionDuration:de,MozTransitionDuration:de,MsTransitionDuration:de,OTransitionDuration:de,transitionDuration:de,msTransitionDuration:de},e.default.createElement("div",{className:t.default.CAROUSEL(!1)},e.default.createElement("div",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:t.default.ARROW_PREV(!q),onClick:function(){return L.slideRight()},"aria-label":this.props.labels.leftArrow}),B?e.default.createElement(a.default,{tagName:"ul",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:J,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(Q){return L.setItemsListRef(Q)},style:J},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!C),onClick:function(){return L.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),G})(e.Component);return io.default=U,O(U,"displayName","Thumbs"),O(U,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),io}var uo={},Gg;function VP(){if(Gg)return uo;Gg=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e=function(){return document};return uo.default=e,uo}var Ut={},Kg;function Xv(){if(Kg)return Ut;Kg=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.setPosition=Ut.getPosition=Ut.isKeyboardEvent=Ut.defaultStatusFormatter=Ut.noop=void 0;var e=W,t=r(Yc());function r(f){return f&&f.__esModule?f:{default:f}}var i=function(){};Ut.noop=i;var a=function(v,m){return"".concat(v," of ").concat(m)};Ut.defaultStatusFormatter=a;var s=function(v){return v?v.hasOwnProperty("key"):!1};Ut.isKeyboardEvent=s;var l=function(v,m){if(m.infiniteLoop&&++v,v===0)return 0;var g=e.Children.count(m.children);if(m.centerMode&&m.axis==="horizontal"){var p=-v*m.centerSlidePercentage,b=g-1;return v&&(v!==b||m.infiniteLoop)?p+=(100-m.centerSlidePercentage)/2:v===b&&(p+=100-m.centerSlidePercentage),p}return-v*100};Ut.getPosition=l;var c=function(v,m){var g={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(p){g[p]=(0,t.default)(v,"%",m)}),g};return Ut.setPosition=c,Ut}var fr={},Vg;function YP(){if(Vg)return fr;Vg=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.fadeAnimationHandler=fr.slideStopSwipingHandler=fr.slideSwipeAnimationHandler=fr.slideAnimationHandler=void 0;var e=W,t=i(Yc()),r=Xv();function i(g){return g&&g.__esModule?g:{default:g}}function a(g,p){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);p&&(x=x.filter(function(d){return Object.getOwnPropertyDescriptor(g,d).enumerable})),b.push.apply(b,x)}return b}function s(g){for(var p=1;p<arguments.length;p++){var b=arguments[p]!=null?arguments[p]:{};p%2?a(Object(b),!0).forEach(function(x){l(g,x,b[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):a(Object(b)).forEach(function(x){Object.defineProperty(g,x,Object.getOwnPropertyDescriptor(b,x))})}return g}function l(g,p,b){return p in g?Object.defineProperty(g,p,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[p]=b,g}var c=function(p,b){var x={},d=b.selectedItem,w=d,h=e.Children.count(p.children)-1,S=p.infiniteLoop&&(d<0||d>h);if(S)return w<0?p.centerMode&&p.centerSlidePercentage&&p.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(h+2)*p.centerSlidePercentage-(100-p.centerSlidePercentage)/2,p.axis):x.itemListStyle=(0,r.setPosition)(-(h+2)*100,p.axis):w>h&&(x.itemListStyle=(0,r.setPosition)(0,p.axis)),x;var E=(0,r.getPosition)(d,p),R=(0,t.default)(E,"%",p.axis),O=p.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},b.swiping||(x.itemListStyle=s(s({},x.itemListStyle),{},{WebkitTransitionDuration:O,MozTransitionDuration:O,OTransitionDuration:O,transitionDuration:O,msTransitionDuration:O})),x};fr.slideAnimationHandler=c;var f=function(p,b,x,d){var w={},h=b.axis==="horizontal",S=e.Children.count(b.children),E=0,R=(0,r.getPosition)(x.selectedItem,b),O=b.infiniteLoop?(0,r.getPosition)(S-1,b)-100:(0,r.getPosition)(S-1,b),k=h?p.x:p.y,U=k;R===E&&k>0&&(U=0),R===O&&k<0&&(U=0);var M=R+100/(x.itemSize/U),F=Math.abs(k)>b.swipeScrollTolerance;return b.infiniteLoop&&F&&(x.selectedItem===0&&M>-100?M-=S*100:x.selectedItem===S-1&&M<-S*100&&(M+=S*100)),(!b.preventMovementUntilSwipeScrollTolerance||F||x.swipeMovementStarted)&&(x.swipeMovementStarted||d({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(M,b.axis)),F&&!x.cancelClick&&d({cancelClick:!0}),w};fr.slideSwipeAnimationHandler=f;var v=function(p,b){var x=(0,r.getPosition)(b.selectedItem,p),d=(0,r.setPosition)(x,p.axis);return{itemListStyle:d}};fr.slideStopSwipingHandler=v;var m=function(p,b){var x=p.transitionTime+"ms",d="ease-in-out",w={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:d,msTransitionTimingFunction:d,MozTransitionTimingFunction:d,WebkitTransitionTimingFunction:d,OTransitionTimingFunction:d};return b.swiping||(w=s(s({},w),{},{WebkitTransitionDuration:x,MozTransitionDuration:x,OTransitionDuration:x,transitionDuration:x,msTransitionDuration:x})),{slideStyle:w,selectedStyle:s(s({},w),{},{opacity:1,position:"relative"}),prevStyle:s({},w)}};return fr.fadeAnimationHandler=m,fr}var Yg;function XP(){if(Yg)return ro;Yg=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=m(W),t=f(Gv()),r=f(Kv()),i=f(Yv()),a=f(VP()),s=f(Vv()),l=Xv(),c=YP();function f(j){return j&&j.__esModule?j:{default:j}}function v(){if(typeof WeakMap!="function")return null;var j=new WeakMap;return v=function(){return j},j}function m(j){if(j&&j.__esModule)return j;if(j===null||g(j)!=="object"&&typeof j!="function")return{default:j};var L=v();if(L&&L.has(j))return L.get(j);var B={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in j)if(Object.prototype.hasOwnProperty.call(j,C)){var J=q?Object.getOwnPropertyDescriptor(j,C):null;J&&(J.get||J.set)?Object.defineProperty(B,C,J):B[C]=j[C]}return B.default=j,L&&L.set(j,B),B}function g(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(B){return typeof B}:g=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},g(j)}function p(){return p=Object.assign||function(j){for(var L=1;L<arguments.length;L++){var B=arguments[L];for(var q in B)Object.prototype.hasOwnProperty.call(B,q)&&(j[q]=B[q])}return j},p.apply(this,arguments)}function b(j,L){var B=Object.keys(j);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(j);L&&(q=q.filter(function(C){return Object.getOwnPropertyDescriptor(j,C).enumerable})),B.push.apply(B,q)}return B}function x(j){for(var L=1;L<arguments.length;L++){var B=arguments[L]!=null?arguments[L]:{};L%2?b(Object(B),!0).forEach(function(q){F(j,q,B[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(B)):b(Object(B)).forEach(function(q){Object.defineProperty(j,q,Object.getOwnPropertyDescriptor(B,q))})}return j}function d(j,L){if(!(j instanceof L))throw new TypeError("Cannot call a class as a function")}function w(j,L){for(var B=0;B<L.length;B++){var q=L[B];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(j,q.key,q)}}function h(j,L,B){return L&&w(j.prototype,L),j}function S(j,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(L&&L.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),L&&E(j,L)}function E(j,L){return E=Object.setPrototypeOf||function(q,C){return q.__proto__=C,q},E(j,L)}function R(j){var L=U();return function(){var q=M(j),C;if(L){var J=M(this).constructor;C=Reflect.construct(q,arguments,J)}else C=q.apply(this,arguments);return O(this,C)}}function O(j,L){return L&&(g(L)==="object"||typeof L=="function")?L:k(j)}function k(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function U(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(j){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},M(j)}function F(j,L,B){return L in j?Object.defineProperty(j,L,{value:B,enumerable:!0,configurable:!0,writable:!0}):j[L]=B,j}var G=(function(j){S(B,j);var L=R(B);function B(q){var C;d(this,B),C=L.call(this,q),F(k(C),"thumbsRef",void 0),F(k(C),"carouselWrapperRef",void 0),F(k(C),"listRef",void 0),F(k(C),"itemsRef",void 0),F(k(C),"timer",void 0),F(k(C),"animationHandler",void 0),F(k(C),"setThumbsRef",function(Y){C.thumbsRef=Y}),F(k(C),"setCarouselWrapperRef",function(Y){C.carouselWrapperRef=Y}),F(k(C),"setListRef",function(Y){C.listRef=Y}),F(k(C),"setItemsRef",function(Y,te){C.itemsRef||(C.itemsRef=[]),C.itemsRef[te]=Y}),F(k(C),"autoPlay",function(){e.Children.count(C.props.children)<=1||(C.clearAutoPlay(),C.props.autoPlay&&(C.timer=setTimeout(function(){C.increment()},C.props.interval)))}),F(k(C),"clearAutoPlay",function(){C.timer&&clearTimeout(C.timer)}),F(k(C),"resetAutoPlay",function(){C.clearAutoPlay(),C.autoPlay()}),F(k(C),"stopOnHover",function(){C.setState({isMouseEntered:!0},C.clearAutoPlay)}),F(k(C),"startOnLeave",function(){C.setState({isMouseEntered:!1},C.autoPlay)}),F(k(C),"isFocusWithinTheCarousel",function(){return C.carouselWrapperRef?!!((0,a.default)().activeElement===C.carouselWrapperRef||C.carouselWrapperRef.contains((0,a.default)().activeElement)):!1}),F(k(C),"navigateWithKeyboard",function(Y){if(C.isFocusWithinTheCarousel()){var te=C.props.axis,de=te==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},Q=de?Z.ArrowRight:Z.ArrowDown,ae=de?Z.ArrowLeft:Z.ArrowUp;Q===Y.keyCode?C.increment():ae===Y.keyCode&&C.decrement()}}),F(k(C),"updateSizes",function(){if(!(!C.state.initialized||!C.itemsRef||C.itemsRef.length===0)){var Y=C.props.axis==="horizontal",te=C.itemsRef[0];if(te){var de=Y?te.clientWidth:te.clientHeight;C.setState({itemSize:de}),C.thumbsRef&&C.thumbsRef.updateSizes()}}}),F(k(C),"setMountState",function(){C.setState({hasMount:!0}),C.updateSizes()}),F(k(C),"handleClickItem",function(Y,te){if(e.Children.count(C.props.children)!==0){if(C.state.cancelClick){C.setState({cancelClick:!1});return}C.props.onClickItem(Y,te),Y!==C.state.selectedItem&&C.setState({selectedItem:Y})}}),F(k(C),"handleOnChange",function(Y,te){e.Children.count(C.props.children)<=1||C.props.onChange(Y,te)}),F(k(C),"handleClickThumb",function(Y,te){C.props.onClickThumb(Y,te),C.moveTo(Y)}),F(k(C),"onSwipeStart",function(Y){C.setState({swiping:!0}),C.props.onSwipeStart(Y)}),F(k(C),"onSwipeEnd",function(Y){C.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),C.props.onSwipeEnd(Y),C.clearAutoPlay(),C.state.autoPlay&&C.autoPlay()}),F(k(C),"onSwipeMove",function(Y,te){C.props.onSwipeMove(te);var de=C.props.swipeAnimationHandler(Y,C.props,C.state,C.setState.bind(k(C)));return C.setState(x({},de)),!!Object.keys(de).length}),F(k(C),"decrement",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem-(typeof Y=="number"?Y:1))}),F(k(C),"increment",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem+(typeof Y=="number"?Y:1))}),F(k(C),"moveTo",function(Y){if(typeof Y=="number"){var te=e.Children.count(C.props.children)-1;Y<0&&(Y=C.props.infiniteLoop?te:0),Y>te&&(Y=C.props.infiniteLoop?0:te),C.selectItem({selectedItem:Y}),C.state.autoPlay&&C.state.isMouseEntered===!1&&C.resetAutoPlay()}}),F(k(C),"onClickNext",function(){C.increment(1)}),F(k(C),"onClickPrev",function(){C.decrement(1)}),F(k(C),"onSwipeForward",function(){C.increment(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),F(k(C),"onSwipeBackwards",function(){C.decrement(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),F(k(C),"changeItem",function(Y){return function(te){(!(0,l.isKeyboardEvent)(te)||te.key==="Enter")&&C.moveTo(Y)}}),F(k(C),"selectItem",function(Y){C.setState(x({previousItem:C.state.selectedItem},Y),function(){C.setState(C.animationHandler(C.props,C.state))}),C.handleOnChange(Y.selectedItem,e.Children.toArray(C.props.children)[Y.selectedItem])}),F(k(C),"getInitialImage",function(){var Y=C.props.selectedItem,te=C.itemsRef&&C.itemsRef[Y],de=te&&te.getElementsByTagName("img")||[];return de[0]}),F(k(C),"getVariableItemHeight",function(Y){var te=C.itemsRef&&C.itemsRef[Y];if(C.state.hasMount&&te&&te.children.length){var de=te.children[0].getElementsByTagName("img")||[];if(de.length>0){var Z=de[0];if(!Z.complete){var Q=function ne(){C.forceUpdate(),Z.removeEventListener("load",ne)};Z.addEventListener("load",Q)}}var ae=de[0]||te.children[0],ue=ae.clientHeight;return ue>0?ue:null}return null});var J={initialized:!1,previousItem:q.selectedItem,selectedItem:q.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:q.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return C.animationHandler=typeof q.animationHandler=="function"&&q.animationHandler||q.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,C.state=x(x({},J),C.animationHandler(q,J)),C}return h(B,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(C,J){!C.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!C.autoFocus&&this.props.autoFocus&&this.forceFocus(),J.swiping&&!this.state.swiping&&this.setState(x({},this.props.stopSwipingHandler(this.props,this.state))),(C.selectedItem!==this.props.selectedItem||C.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),C.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var C=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var J=C.getInitialImage();J&&!J.complete?J.addEventListener("load",C.setMountState):C.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.addEventListener("mouseenter",this.stopOnHover),C.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.removeEventListener("mouseenter",this.stopOnHover),C.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,a.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var C=this.getInitialImage();C&&C.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,a.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var C;(C=this.carouselWrapperRef)===null||C===void 0||C.focus()}},{key:"renderItems",value:function(C){var J=this;return this.props.children?e.Children.map(this.props.children,function(Y,te){var de=te===J.state.selectedItem,Z=te===J.state.previousItem,Q=de&&J.state.selectedStyle||Z&&J.state.prevStyle||J.state.slideStyle||{};J.props.centerMode&&J.props.axis==="horizontal"&&(Q=x(x({},Q),{},{minWidth:J.props.centerSlidePercentage+"%"})),J.state.swiping&&J.state.swipeMovementStarted&&(Q=x(x({},Q),{},{pointerEvents:"none"}));var ae={ref:function(ne){return J.setItemsRef(ne,te)},key:"itemKey"+te+(C?"clone":""),className:r.default.ITEM(!0,te===J.state.selectedItem,te===J.state.previousItem),onClick:J.handleClickItem.bind(J,te,Y),style:Q};return e.default.createElement("li",ae,J.props.renderItem(Y,{isSelected:te===J.state.selectedItem,isPrevious:te===J.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var C=this,J=this.props,Y=J.showIndicators,te=J.labels,de=J.renderIndicator,Z=J.children;return Y?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,function(Q,ae){return de&&de(C.changeItem(ae),ae===C.state.selectedItem,ae,te.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(i.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var C=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var J=this.props.swipeable&&e.Children.count(this.props.children)>1,Y=this.props.axis==="horizontal",te=this.props.showArrows&&e.Children.count(this.props.children)>1,de=te&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,Z=te&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,Q=this.renderItems(!0),ae=Q.shift(),ue=Q.pop(),ne={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},ce={};if(Y){if(ne.onSwipeLeft=this.onSwipeForward,ne.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);ce.height=fe||"auto"}}else ne.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ne.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ne.style=x(x({},ne.style),{},{height:this.state.itemSize}),ce.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,de,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:ce},J?e.default.createElement(t.default,p({tagName:"ul",innerRef:this.setListRef},ne,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ae):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(me){return C.setListRef(me)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ae)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),B})(e.default.Component);return ro.default=G,F(G,"displayName","Carousel"),F(G,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(L,B,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_PREV(!B),onClick:L})},renderArrowNext:function(L,B,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_NEXT(!B),onClick:L})},renderIndicator:function(L,B,q,C){return e.default.createElement("li",{className:r.default.DOT(B),onClick:L,onKeyDown:L,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(C," ").concat(q+1)})},renderItem:function(L){return L},renderThumbs:function(L){var B=e.Children.map(L,function(q){var C=q;if(q.type!=="img"&&(C=e.Children.toArray(q.props.children).find(function(J){return J.type==="img"})),!!C)return C});return B.filter(function(q){return q}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):B},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),ro}var Xg={},Jg;function JP(){return Jg||(Jg=1),Xg}var Qg;function QP(){return Qg||(Qg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return i.default}});var t=a(XP()),r=JP(),i=a(Yv());function a(s){return s&&s.__esModule?s:{default:s}}})(Fl)),Fl}var eC=QP();const tC=({tip:e})=>D.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:Jv(e,!0)}),rC=({pages:e})=>D.jsx("div",{className:"min-h-[10rem] w-96",children:D.jsx(eC.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>D.jsx(tC,{tip:t},t.key))})}),nC=({body:e,isInsideCarousel:t})=>D.jsx("article",{className:We(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:D.jsx(ms,{children:e,options:{overrides:{a:{component:({children:r,...i})=>D.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,D.jsx(nt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),iC=({video:e,body:t,title:r,isInsideCarousel:i})=>D.jsxs("div",{className:We([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[D.jsx("div",{className:We([{"mr-1":!i,"mb-1":i}]),children:D.jsx("iframe",{height:i?"auto":90,width:i?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),D.jsx("article",{className:We(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:D.jsx(ms,{children:t||"",options:{overrides:{a:{component:({children:a,...s})=>D.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,D.jsx(nt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Jv=(e,t)=>{switch(e.type){case fs.TEXT:return D.jsx(nC,{body:e.body,isInsideCarousel:t});case fs.VIDEO:return D.jsx(iC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case fs.CAROUSEL:return D.jsx(rC,{pages:e.pages})}},Qv=W.createContext(void 0);function em(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const oC=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:a},s]=W.useState({tips:{},show:!0});W.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(f=>f.json()).then(f=>{const v=f.reduce((m,g)=>em(f,g.key).length>1?{...m,[g.key]:{type:"carousel",pages:em(f,g.key)}}:{...m,[g.key]:g},{});s(m=>({...m,tips:v}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{s(c=>({...c,show:!a}))};return D.jsx(Qv.Provider,{value:{tips:i,toggleTips:l,show:a,enabled:t},children:e})},ey=e=>{const t=W.useContext(Qv);if(t===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?t.tips[e]:null,toggleTips:t.toggleTips,show:t.show,enabled:t.enabled}},aC=vs(NP)`
82
82
  &[data-state='open'] > * {
83
83
  display: block !important;
84
84
  }
85
- `,Xy=({tipKey:e,side:t="right",alwaysOn:r,asButton:n=!1})=>{const{tip:o,enabled:a}=Zy(e),[l,c]=H.useState(!1),u=H.useRef(null);return H.useEffect(()=>{if(u.current){const d=new IntersectionObserver(p=>{p[0].isIntersecting||c(!1)});return d.observe(u.current),()=>{u.current&&d.unobserve(u.current)}}},[]),o&&a?C.jsxs(Y2,{open:l,onOpenChange:c,children:[C.jsx(mN,{ref:u,className:tt("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":n}),onClick:d=>d.stopPropagation(),children:C.jsx("span",{className:tt("group-hover:block",{hidden:!r}),children:C.jsx(wt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),C.jsx(Z2,{side:t,sideOffset:5,onClick:d=>d.stopPropagation(),children:C.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:Yy(o)})})]}):null};function Vd(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Li=Vd();function Jy(e){Li=e}var Ra={exec:()=>null};function Fe(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(o,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(Kt.caret,"$1"),r=r.replace(o,l),n},getRegex:()=>new RegExp(r,t)};return n}var Kt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},bN=/^(?:[ \t]*(?:\n|$))+/,yN=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,wN=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ka=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xN=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ud=/(?:[*+-]|\d{1,9}[.)])/,Qy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ew=Fe(Qy).replace(/bull/g,Ud).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),SN=Fe(Qy).replace(/bull/g,Ud).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),qd=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,_N=/^[^\n]+/,Gd=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,EN=Fe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Gd).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),kN=Fe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ud).getRegex(),bc="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Yd=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ON=Fe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Yd).replace("tag",bc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),tw=Fe(qd).replace("hr",Ka).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bc).getRegex(),AN=Fe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",tw).getRegex(),Kd={blockquote:AN,code:yN,def:EN,fences:wN,heading:xN,hr:Ka,html:ON,lheading:ew,list:kN,newline:bN,paragraph:tw,table:Ra,text:_N},tb=Fe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ka).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bc).getRegex(),TN={...Kd,lheading:SN,table:tb,paragraph:Fe(qd).replace("hr",Ka).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",tb).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bc).getRegex()},RN={...Kd,html:Fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Yd).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ra,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Fe(qd).replace("hr",Ka).replace("heading",` *#{1,6} *[^
86
- ]`).replace("lheading",ew).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},CN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,PN=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,rw=/^( {2,}|\\)\n(?!\s*$)/,IN=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,yc=/[\p{P}\p{S}]/u,Zd=/[\s\p{P}\p{S}]/u,nw=/[^\s\p{P}\p{S}]/u,NN=Fe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Zd).getRegex(),iw=/(?!~)[\p{P}\p{S}]/u,MN=/(?!~)[\s\p{P}\p{S}]/u,DN=/(?:[^\s\p{P}\p{S}]|~)/u,$N=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,ow=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,LN=Fe(ow,"u").replace(/punct/g,yc).getRegex(),zN=Fe(ow,"u").replace(/punct/g,iw).getRegex(),aw="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",jN=Fe(aw,"gu").replace(/notPunctSpace/g,nw).replace(/punctSpace/g,Zd).replace(/punct/g,yc).getRegex(),FN=Fe(aw,"gu").replace(/notPunctSpace/g,DN).replace(/punctSpace/g,MN).replace(/punct/g,iw).getRegex(),HN=Fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,nw).replace(/punctSpace/g,Zd).replace(/punct/g,yc).getRegex(),WN=Fe(/\\(punct)/,"gu").replace(/punct/g,yc).getRegex(),BN=Fe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),VN=Fe(Yd).replace("(?:-->|$)","-->").getRegex(),UN=Fe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",VN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Gl=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,qN=Fe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Gl).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),sw=Fe(/^!?\[(label)\]\[(ref)\]/).replace("label",Gl).replace("ref",Gd).getRegex(),lw=Fe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Gd).getRegex(),GN=Fe("reflink|nolink(?!\\()","g").replace("reflink",sw).replace("nolink",lw).getRegex(),rb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Xd={_backpedal:Ra,anyPunctuation:WN,autolink:BN,blockSkip:$N,br:rw,code:PN,del:Ra,emStrongLDelim:LN,emStrongRDelimAst:jN,emStrongRDelimUnd:HN,escape:CN,link:qN,nolink:lw,punctuation:NN,reflink:sw,reflinkSearch:GN,tag:UN,text:IN,url:Ra},YN={...Xd,link:Fe(/^!?\[(label)\]\((.*?)\)/).replace("label",Gl).getRegex(),reflink:Fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Gl).getRegex()},id={...Xd,emStrongRDelimAst:FN,emStrongLDelim:zN,url:Fe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",rb).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Fe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",rb).getRegex()},KN={...id,br:Fe(rw).replace("{2,}","*").getRegex(),text:Fe(id.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ol={normal:Kd,gfm:TN,pedantic:RN},fa={normal:Xd,gfm:id,breaks:KN,pedantic:YN},ZN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},nb=e=>ZN[e];function Qr(e,t){if(t){if(Kt.escapeTest.test(e))return e.replace(Kt.escapeReplace,nb)}else if(Kt.escapeTestNoEncode.test(e))return e.replace(Kt.escapeReplaceNoEncode,nb);return e}function ib(e){try{e=encodeURI(e).replace(Kt.percentDecode,"%")}catch{return null}return e}function ob(e,t){var a;let r=e.replace(Kt.findPipe,(l,c,u)=>{let d=!1,p=c;for(;--p>=0&&u[p]==="\\";)d=!d;return d?"|":" |"}),n=r.split(Kt.splitPipe),o=0;if(n[0].trim()||n.shift(),n.length>0&&!((a=n.at(-1))!=null&&a.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(Kt.slashPipe,"|");return n}function da(e,t,r){let n=e.length;if(n===0)return"";let o=0;for(;o<n&&e.charAt(n-o-1)===t;)o++;return e.slice(0,n-o)}function XN(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function ab(e,t,r,n,o){let a=t.href,l=t.title||null,c=e[1].replace(o.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:l,text:c,tokens:n.inlineTokens(c)};return n.state.inLink=!1,u}function JN(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let o=n[1];return t.split(`
87
- `).map(a=>{let l=a.match(r.other.beginningSpace);if(l===null)return a;let[c]=l;return c.length>=o.length?a.slice(o.length):a}).join(`
88
- `)}var Yl=class{constructor(t){Oe(this,"options");Oe(this,"rules");Oe(this,"lexer");this.options=t||Li}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:da(n,`
89
- `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],o=JN(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:o}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let o=da(n,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(n=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:da(r[0],`
90
- `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=da(r[0],`
85
+ `,ty=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:a,enabled:s}=ey(e),[l,c]=W.useState(!1),f=W.useRef(null);return W.useEffect(()=>{if(f.current){const v=new IntersectionObserver(m=>{m[0].isIntersecting||c(!1)});return v.observe(f.current),()=>{f.current&&v.unobserve(f.current)}}},[]),a&&s?D.jsxs(DP,{open:l,onOpenChange:c,children:[D.jsx(aC,{ref:f,className:We("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:v=>v.stopPropagation(),children:D.jsx("span",{className:We("group-hover:block",{hidden:!r}),children:D.jsx(nt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),D.jsx(jP,{side:t,sideOffset:5,onClick:v=>v.stopPropagation(),children:D.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:Jv(a)})})]}):null};var sC=Object.defineProperty,uC=(e,t,r)=>t in e?sC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bl=(e,t,r)=>(uC(e,typeof t!="symbol"?t+"":t,r),r);let lC=class{constructor(){Bl(this,"current",this.detect()),Bl(this,"handoffState","pending"),Bl(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},gi=new lC,Cr=(e,t)=>{gi.isServer?W.useEffect(e,t):W.useLayoutEffect(e,t)};function mi(e){let t=W.useRef(e);return Cr(()=>{t.current=e},[e]),t}let St=function(e){let t=mi(e);return W.useCallback((...r)=>t.current(...r),[t])};function cC(e,t,r){let[i,a]=W.useState(r),s=e!==void 0,l=W.useRef(s),c=W.useRef(!1),f=W.useRef(!1);return s&&!l.current&&!c.current?(c.current=!0,l.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!s&&l.current&&!f.current&&(f.current=!0,l.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[s?e:i,St(v=>(s||a(v),t==null?void 0:t(v)))]}function fC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Wo(){let e=[],t={addEventListener(r,i,a,s){return r.addEventListener(i,a,s),t.add(()=>r.removeEventListener(i,a,s))},requestAnimationFrame(...r){let i=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let i=setTimeout(...r);return t.add(()=>clearTimeout(i))},microTask(...r){let i={current:!0};return fC(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(r,i,a){let s=r.style.getPropertyValue(i);return Object.assign(r.style,{[i]:a}),this.add(()=>{Object.assign(r.style,{[i]:s})})},group(r){let i=Wo();return r(i),this.add(()=>i.dispose())},add(r){return e.push(r),()=>{let i=e.indexOf(r);if(i>=0)for(let a of e.splice(i,1))a()}},dispose(){for(let r of e.splice(0))r()}};return t}function Xc(){let[e]=W.useState(Wo);return W.useEffect(()=>()=>e.dispose(),[e]),e}function dC(){let e=typeof document>"u";return"useSyncExternalStore"in $?(t=>t.useSyncExternalStore)($)(()=>()=>{},()=>!1,()=>!e):!1}function Jc(){let e=dC(),[t,r]=$.useState(gi.isHandoffComplete);return t&&gi.isHandoffComplete===!1&&r(!1),$.useEffect(()=>{t!==!0&&r(!0)},[t]),$.useEffect(()=>gi.handoff(),[]),e?!1:t}var tm;let Qc=(tm=W.useId)!=null?tm:function(){let e=Jc(),[t,r]=W.useState(e?()=>gi.nextId():null);return Cr(()=>{t===null&&r(gi.nextId())},[t]),t!=null?""+t:void 0};function Ar(e,t,...r){if(e in t){let a=t[e];return typeof a=="function"?a(...r):a}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Ar),i}function rm(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function pC(e,t){let[r,i]=W.useState(()=>rm(e));return Cr(()=>{i(rm(e))},[e.type,e.as]),Cr(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let hC=Symbol();function Uo(...e){let t=W.useRef(e);W.useEffect(()=>{t.current=e},[e]);let r=St(i=>{for(let a of t.current)a!=null&&(typeof a=="function"?a(i):a.current=i)});return e.every(i=>i==null||(i==null?void 0:i[hC]))?void 0:r}function bs(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var ry=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ry||{}),pn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pn||{});function Zn({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:a,visible:s=!0,name:l,mergeRefs:c}){c=c??gC;let f=ny(t,e);if(s)return Ja(f,r,i,l,c);let v=a??0;if(v&2){let{static:m=!1,...g}=f;if(m)return Ja(g,r,i,l,c)}if(v&1){let{unmount:m=!0,...g}=f;return Ar(m?0:1,{0(){return null},1(){return Ja({...g,hidden:!0,style:{display:"none"}},r,i,l,c)}})}return Ja(f,r,i,l,c)}function Ja(e,t={},r,i,a){let{as:s=r,children:l,refName:c="ref",...f}=Hl(e,["unmount","static"]),v=e.ref!==void 0?{[c]:e.ref}:{},m=typeof l=="function"?l(t):l;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t));let g={};if(t){let p=!1,b=[];for(let[x,d]of Object.entries(t))typeof d=="boolean"&&(p=!0),d===!0&&b.push(x);p&&(g["data-headlessui-state"]=b.join(" "))}if(s===W.Fragment&&Object.keys(mc(f)).length>0){if(!W.isValidElement(m)||Array.isArray(m)&&m.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map(d=>` - ${d}`).join(`
86
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join(`
87
+ `)].join(`
88
+ `));let p=m.props,b=typeof(p==null?void 0:p.className)=="function"?(...d)=>bs(p==null?void 0:p.className(...d),f.className):bs(p==null?void 0:p.className,f.className),x=b?{className:b}:{};return W.cloneElement(m,Object.assign({},ny(m.props,mc(Hl(f,["ref"]))),g,v,{ref:a(m.ref,v.ref)},x))}return W.createElement(s,Object.assign({},Hl(f,["ref"]),s!==W.Fragment&&v,s!==W.Fragment&&g),m)}function gC(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function ny(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let a in i)a.startsWith("on")&&typeof i[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(i[a])):t[a]=i[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](a,...s){let l=r[i];for(let c of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;c(a,...s)}}});return t}function Gn(e){var t;return Object.assign(W.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function mc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Hl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let mC="div";var iy=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(iy||{});function vC(e,t){var r;let{features:i=1,...a}=e,s={ref:t,"aria-hidden":(i&2)===2?!0:(r=a["aria-hidden"])!=null?r:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Zn({ourProps:s,theirProps:a,slot:{},defaultTag:mC,name:"Hidden"})}let yC=Gn(vC),ef=W.createContext(null);ef.displayName="OpenClosedContext";var Hr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Hr||{});function oy(){return W.useContext(ef)}function bC({value:e,children:t}){return W.createElement(ef.Provider,{value:e},t)}function wC(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let i=(t==null?void 0:t.getAttribute("disabled"))==="";return i&&xC(r)?!1:i}function xC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function SC(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let a of i.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(r=i.requestSubmit)==null||r.call(i)}}var vc=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(vc||{});function tf(){let e=W.useRef(!1);return Cr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let ay=W.createContext(null);function sy(){let e=W.useContext(ay);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,sy),t}return e}function EC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=St(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),f=c.indexOf(s);return f!==-1&&c.splice(f,1),c}))),a=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(ay.Provider,{value:a},r.children)},[t])]}let _C="p";function OC(e,t){let r=Qc(),{id:i=`headlessui-description-${r}`,...a}=e,s=sy(),l=Uo(t);Cr(()=>s.register(i),[i,s.register]);let c={ref:l,...s.props,id:i};return Zn({ourProps:c,theirProps:a,slot:s.slot||{},defaultTag:_C,name:s.name||"Description"})}let AC=Gn(OC),TC=Object.assign(AC,{}),uy=W.createContext(null);function ly(){let e=W.useContext(uy);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,ly),t}return e}function RC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=St(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),f=c.indexOf(s);return f!==-1&&c.splice(f,1),c}))),a=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(uy.Provider,{value:a},r.children)},[t])]}let PC="label";function CC(e,t){let r=Qc(),{id:i=`headlessui-label-${r}`,passive:a=!1,...s}=e,l=ly(),c=Uo(t);Cr(()=>l.register(i),[i,l.register]);let f={ref:c,...l.props,id:i};return a&&("onClick"in f&&(delete f.htmlFor,delete f.onClick),"onClick"in s&&delete s.onClick),Zn({ourProps:f,theirProps:s,slot:l.slot||{},defaultTag:PC,name:l.name||"Label"})}let kC=Gn(CC),$C=Object.assign(kC,{});function IC(e=0){let[t,r]=W.useState(e),i=tf(),a=W.useCallback(f=>{i.current&&r(v=>v|f)},[t,i]),s=W.useCallback(f=>!!(t&f),[t]),l=W.useCallback(f=>{i.current&&r(v=>v&~f)},[r,i]),c=W.useCallback(f=>{i.current&&r(v=>v^f)},[r]);return{flags:t,addFlag:a,hasFlag:s,removeFlag:l,toggleFlag:c}}let rf=W.createContext(null);rf.displayName="GroupContext";let LC=W.Fragment;function MC(e){var t;let[r,i]=W.useState(null),[a,s]=RC(),[l,c]=EC(),f=W.useMemo(()=>({switch:r,setSwitch:i,labelledby:a,describedby:l}),[r,i,a,l]),v={},m=e;return W.createElement(c,{name:"Switch.Description"},W.createElement(s,{name:"Switch.Label",props:{htmlFor:(t=f.switch)==null?void 0:t.id,onClick(g){r&&(g.currentTarget.tagName==="LABEL"&&g.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},W.createElement(rf.Provider,{value:f},Zn({ourProps:v,theirProps:m,defaultTag:LC,name:"Switch.Group"}))))}let FC="button";function DC(e,t){var r;let i=Qc(),{id:a=`headlessui-switch-${i}`,checked:s,defaultChecked:l=!1,onChange:c,disabled:f=!1,name:v,value:m,form:g,...p}=e,b=W.useContext(rf),x=W.useRef(null),d=Uo(x,t,b===null?null:b.setSwitch),[w,h]=cC(s,c,l),S=St(()=>h==null?void 0:h(!w)),E=St(F=>{if(wC(F.currentTarget))return F.preventDefault();F.preventDefault(),S()}),R=St(F=>{F.key===vc.Space?(F.preventDefault(),S()):F.key===vc.Enter&&SC(F.currentTarget)}),O=St(F=>F.preventDefault()),k=W.useMemo(()=>({checked:w}),[w]),U={id:a,ref:d,role:"switch",type:pC(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":w,"aria-labelledby":b==null?void 0:b.labelledby,"aria-describedby":b==null?void 0:b.describedby,disabled:f,onClick:E,onKeyUp:R,onKeyPress:O},M=Xc();return W.useEffect(()=>{var F;let G=(F=x.current)==null?void 0:F.closest("form");G&&l!==void 0&&M.addEventListener(G,"reset",()=>{h(l)})},[x,h]),W.createElement(W.Fragment,null,v!=null&&w&&W.createElement(yC,{features:iy.Hidden,...mc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:f,form:g,checked:w,name:v,value:m})}),Zn({ourProps:U,theirProps:p,slot:k,defaultTag:FC,name:"Switch"}))}let NC=Gn(DC),jC=MC,zC=Object.assign(NC,{Group:jC,Label:$C,Description:TC});function WC(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function ql(e,...t){e&&t.length>0&&e.classList.add(...t)}function Zl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function UC(e,t){let r=Wo();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:a}=getComputedStyle(e),[s,l]=[i,a].map(f=>{let[v=0]=f.split(",").filter(Boolean).map(m=>m.includes("ms")?parseFloat(m):parseFloat(m)*1e3).sort((m,g)=>g-m);return v}),c=s+l;if(c!==0){r.group(v=>{v.setTimeout(()=>{t(),v.dispose()},c),v.addEventListener(e,"transitionrun",m=>{m.target===m.currentTarget&&v.dispose()})});let f=r.addEventListener(e,"transitionend",v=>{v.target===v.currentTarget&&(t(),f())})}else t();return r.add(()=>t()),r.dispose}function BC(e,t,r,i){let a=r?"enter":"leave",s=Wo(),l=i!==void 0?WC(i):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Ar(a,{enter:()=>t.enter,leave:()=>t.leave}),f=Ar(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),v=Ar(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Zl(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ql(e,...t.base,...c,...v),s.nextFrame(()=>{Zl(e,...t.base,...c,...v),ql(e,...t.base,...c,...f),UC(e,()=>(Zl(e,...t.base,...c),ql(e,...t.base,...t.entered),l()))}),s.dispose}function HC({immediate:e,container:t,direction:r,classes:i,onStart:a,onStop:s}){let l=tf(),c=Xc(),f=mi(r);Cr(()=>{e&&(f.current="enter")},[e]),Cr(()=>{let v=Wo();c.add(v.dispose);let m=t.current;if(m&&f.current!=="idle"&&l.current)return v.dispose(),a.current(f.current),v.add(BC(m,i.current,f.current==="enter",()=>{v.dispose(),s.current(f.current)})),v.dispose},[r])}function ln(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ns=W.createContext(null);Ns.displayName="TransitionContext";var qC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(qC||{});function ZC(){let e=W.useContext(Ns);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function GC(){let e=W.useContext(js);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let js=W.createContext(null);js.displayName="NestingContext";function zs(e){return"children"in e?zs(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function cy(e,t){let r=mi(e),i=W.useRef([]),a=tf(),s=Xc(),l=St((b,x=pn.Hidden)=>{let d=i.current.findIndex(({el:w})=>w===b);d!==-1&&(Ar(x,{[pn.Unmount](){i.current.splice(d,1)},[pn.Hidden](){i.current[d].state="hidden"}}),s.microTask(()=>{var w;!zs(i)&&a.current&&((w=r.current)==null||w.call(r))}))}),c=St(b=>{let x=i.current.find(({el:d})=>d===b);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:b,state:"visible"}),()=>l(b,pn.Unmount)}),f=W.useRef([]),v=W.useRef(Promise.resolve()),m=W.useRef({enter:[],leave:[],idle:[]}),g=St((b,x,d)=>{f.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([w])=>w!==b)),t==null||t.chains.current[x].push([b,new Promise(w=>{f.current.push(w)})]),t==null||t.chains.current[x].push([b,new Promise(w=>{Promise.all(m.current[x].map(([h,S])=>S)).then(()=>w())})]),x==="enter"?v.current=v.current.then(()=>t==null?void 0:t.wait.current).then(()=>d(x)):d(x)}),p=St((b,x,d)=>{Promise.all(m.current[x].splice(0).map(([w,h])=>h)).then(()=>{var w;(w=f.current.shift())==null||w()}).then(()=>d(x))});return W.useMemo(()=>({children:i,register:c,unregister:l,onStart:g,onStop:p,wait:v,chains:m}),[c,l,i,g,p,m,v])}function KC(){}let VC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nm(e){var t;let r={};for(let i of VC)r[i]=(t=e[i])!=null?t:KC;return r}function YC(e){let t=W.useRef(nm(e));return W.useEffect(()=>{t.current=nm(e)},[e]),t}let XC="div",fy=ry.RenderStrategy;function JC(e,t){var r,i;let{beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c,enter:f,enterFrom:v,enterTo:m,entered:g,leave:p,leaveFrom:b,leaveTo:x,...d}=e,w=W.useRef(null),h=Uo(w,t),S=(r=d.unmount)==null||r?pn.Unmount:pn.Hidden,{show:E,appear:R,initial:O}=ZC(),[k,U]=W.useState(E?"visible":"hidden"),M=GC(),{register:F,unregister:G}=M;W.useEffect(()=>F(w),[F,w]),W.useEffect(()=>{if(S===pn.Hidden&&w.current){if(E&&k!=="visible"){U("visible");return}return Ar(k,{hidden:()=>G(w),visible:()=>F(w)})}},[k,w,F,G,E,S]);let j=mi({base:ln(d.className),enter:ln(f),enterFrom:ln(v),enterTo:ln(m),entered:ln(g),leave:ln(p),leaveFrom:ln(b),leaveTo:ln(x)}),L=YC({beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c}),B=Jc();W.useEffect(()=>{if(B&&k==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,k,B]);let q=O&&!R,C=R&&E&&O,J=!B||q?"idle":E?"enter":"leave",Y=IC(0),te=St(ne=>Ar(ne,{enter:()=>{Y.addFlag(Hr.Opening),L.current.beforeEnter()},leave:()=>{Y.addFlag(Hr.Closing),L.current.beforeLeave()},idle:()=>{}})),de=St(ne=>Ar(ne,{enter:()=>{Y.removeFlag(Hr.Opening),L.current.afterEnter()},leave:()=>{Y.removeFlag(Hr.Closing),L.current.afterLeave()},idle:()=>{}})),Z=cy(()=>{U("hidden"),G(w)},M),Q=W.useRef(!1);HC({immediate:C,container:w,classes:j,direction:J,onStart:mi(ne=>{Q.current=!0,Z.onStart(w,ne,te)}),onStop:mi(ne=>{Q.current=!1,Z.onStop(w,ne,de),ne==="leave"&&!zs(Z)&&(U("hidden"),G(w))})});let ae=d,ue={ref:h};return C?ae={...ae,className:bs(d.className,...j.current.enter,...j.current.enterFrom)}:Q.current&&(ae.className=bs(d.className,(i=w.current)==null?void 0:i.className),ae.className===""&&delete ae.className),W.createElement(js.Provider,{value:Z},W.createElement(bC,{value:Ar(k,{visible:Hr.Open,hidden:Hr.Closed})|Y.flags},Zn({ourProps:ue,theirProps:ae,defaultTag:XC,features:fy,visible:k==="visible",name:"Transition.Child"})))}function QC(e,t){let{show:r,appear:i=!1,unmount:a=!0,...s}=e,l=W.useRef(null),c=Uo(l,t);Jc();let f=oy();if(r===void 0&&f!==null&&(r=(f&Hr.Open)===Hr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[v,m]=W.useState(r?"visible":"hidden"),g=cy(()=>{m("hidden")}),[p,b]=W.useState(!0),x=W.useRef([r]);Cr(()=>{p!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),b(!1))},[x,r]);let d=W.useMemo(()=>({show:r,appear:i,initial:p}),[r,i,p]);W.useEffect(()=>{if(r)m("visible");else if(!zs(g))m("hidden");else{let E=l.current;if(!E)return;let R=E.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&m("hidden")}},[r,g]);let w={unmount:a},h=St(()=>{var E;p&&b(!1),(E=e.beforeEnter)==null||E.call(e)}),S=St(()=>{var E;p&&b(!1),(E=e.beforeLeave)==null||E.call(e)});return W.createElement(js.Provider,{value:g},W.createElement(Ns.Provider,{value:d},Zn({ourProps:{...w,as:W.Fragment,children:W.createElement(dy,{ref:c,...w,...s,beforeEnter:h,beforeLeave:S})},theirProps:{},defaultTag:W.Fragment,features:fy,visible:v==="visible",name:"Transition"})))}function ek(e,t){let r=W.useContext(Ns)!==null,i=oy()!==null;return W.createElement(W.Fragment,null,!r&&i?W.createElement(yc,{ref:t,...e}):W.createElement(dy,{ref:t,...e}))}let yc=Gn(QC),dy=Gn(JC),tk=Gn(ek),ws=Object.assign(yc,{Child:tk,Root:yc});const Gl={xs:{switch:"h-2.5 w-2.5",translate:"translate-x-2.5",container:"w-6 h-3.5"},sm:{switch:"h-3.5 w-3.5",translate:"translate-x-[0.85rem]",container:"h-4.5 w-8"},md:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"},lg:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"}},py=W.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto"},a)=>{const s=l=>{e(l)};return D.jsx("div",{className:We("flex items-center",i),children:D.jsx(zC,{as:"span",ref:a,checked:t,onChange:s,onKeyDown:l=>{l.key==="Enter"&&s(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
89
+ relative inline-flex shrink-0 ${Gl[r].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:D.jsx("span",{"aria-hidden":"true",className:`${t?Gl[r].translate:"translate-x-0"}
90
+ pointer-events-none inline-block ${Gl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})});function nf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Kn=nf();function hy(e){Kn=e}var _o={exec:()=>null};function Ce(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(a,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Rt.caret,"$1"),r=r.replace(a,l),i},getRegex:()=>new RegExp(r,t)};return i}var Rt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},rk=/^(?:[ \t]*(?:\n|$))+/,nk=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ik=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Bo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ok=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,of=/(?:[*+-]|\d{1,9}[.)])/,gy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,my=Ce(gy).replace(/bull/g,of).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ak=Ce(gy).replace(/bull/g,of).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),af=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,sk=/^[^\n]+/,sf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,uk=Ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",sf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),lk=Ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,of).getRegex(),Ws="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",uf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ck=Ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",uf).replace("tag",Ws).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),vy=Ce(af).replace("hr",Bo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ws).getRegex(),fk=Ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",vy).getRegex(),lf={blockquote:fk,code:nk,def:uk,fences:ik,heading:ok,hr:Bo,html:ck,lheading:my,list:lk,newline:rk,paragraph:vy,table:_o,text:sk},im=Ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Bo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ws).getRegex(),dk={...lf,lheading:ak,table:im,paragraph:Ce(af).replace("hr",Bo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",im).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ws).getRegex()},pk={...lf,html:Ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",uf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:_o,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ce(af).replace("hr",Bo).replace("heading",` *#{1,6} *[^
91
+ ]`).replace("lheading",my).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},hk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,gk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,yy=/^( {2,}|\\)\n(?!\s*$)/,mk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Us=/[\p{P}\p{S}]/u,cf=/[\s\p{P}\p{S}]/u,by=/[^\s\p{P}\p{S}]/u,vk=Ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,cf).getRegex(),wy=/(?!~)[\p{P}\p{S}]/u,yk=/(?!~)[\s\p{P}\p{S}]/u,bk=/(?:[^\s\p{P}\p{S}]|~)/u,wk=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,xy=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,xk=Ce(xy,"u").replace(/punct/g,Us).getRegex(),Sk=Ce(xy,"u").replace(/punct/g,wy).getRegex(),Sy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ek=Ce(Sy,"gu").replace(/notPunctSpace/g,by).replace(/punctSpace/g,cf).replace(/punct/g,Us).getRegex(),_k=Ce(Sy,"gu").replace(/notPunctSpace/g,bk).replace(/punctSpace/g,yk).replace(/punct/g,wy).getRegex(),Ok=Ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,by).replace(/punctSpace/g,cf).replace(/punct/g,Us).getRegex(),Ak=Ce(/\\(punct)/,"gu").replace(/punct/g,Us).getRegex(),Tk=Ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Rk=Ce(uf).replace("(?:-->|$)","-->").getRegex(),Pk=Ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Rk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xs=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ck=Ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",xs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ey=Ce(/^!?\[(label)\]\[(ref)\]/).replace("label",xs).replace("ref",sf).getRegex(),_y=Ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",sf).getRegex(),kk=Ce("reflink|nolink(?!\\()","g").replace("reflink",Ey).replace("nolink",_y).getRegex(),om=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ff={_backpedal:_o,anyPunctuation:Ak,autolink:Tk,blockSkip:wk,br:yy,code:gk,del:_o,emStrongLDelim:xk,emStrongRDelimAst:Ek,emStrongRDelimUnd:Ok,escape:hk,link:Ck,nolink:_y,punctuation:vk,reflink:Ey,reflinkSearch:kk,tag:Pk,text:mk,url:_o},$k={...ff,link:Ce(/^!?\[(label)\]\((.*?)\)/).replace("label",xs).getRegex(),reflink:Ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xs).getRegex()},bc={...ff,emStrongRDelimAst:_k,emStrongLDelim:Sk,url:Ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",om).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ce(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",om).getRegex()},Ik={...bc,br:Ce(yy).replace("{2,}","*").getRegex(),text:Ce(bc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Qa={normal:lf,gfm:dk,pedantic:pk},lo={normal:ff,gfm:bc,breaks:Ik,pedantic:$k},Lk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},am=e=>Lk[e];function Sr(e,t){if(t){if(Rt.escapeTest.test(e))return e.replace(Rt.escapeReplace,am)}else if(Rt.escapeTestNoEncode.test(e))return e.replace(Rt.escapeReplaceNoEncode,am);return e}function sm(e){try{e=encodeURI(e).replace(Rt.percentDecode,"%")}catch{return null}return e}function um(e,t){var s;let r=e.replace(Rt.findPipe,(l,c,f)=>{let v=!1,m=c;for(;--m>=0&&f[m]==="\\";)v=!v;return v?"|":" |"}),i=r.split(Rt.splitPipe),a=0;if(i[0].trim()||i.shift(),i.length>0&&!((s=i.at(-1))!=null&&s.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;a<i.length;a++)i[a]=i[a].trim().replace(Rt.slashPipe,"|");return i}function co(e,t,r){let i=e.length;if(i===0)return"";let a=0;for(;a<i&&e.charAt(i-a-1)===t;)a++;return e.slice(0,i-a)}function Mk(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function lm(e,t,r,i,a){let s=t.href,l=t.title||null,c=e[1].replace(a.other.outputLinkReplace,"$1");i.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:l,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,f}function Fk(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let a=i[1];return t.split(`
92
+ `).map(s=>{let l=s.match(r.other.beginningSpace);if(l===null)return s;let[c]=l;return c.length>=a.length?s.slice(a.length):s}).join(`
93
+ `)}var Ss=class{constructor(t){ve(this,"options");ve(this,"rules");ve(this,"lexer");this.options=t||Kn}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:co(i,`
94
+ `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],a=Fk(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:a}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let a=co(i,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(i=a.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:co(r[0],`
95
+ `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=co(r[0],`
91
96
  `).split(`
92
- `),o="",a="",l=[];for(;n.length>0;){let c=!1,u=[],d;for(d=0;d<n.length;d++)if(this.rules.other.blockquoteStart.test(n[d]))u.push(n[d]),c=!0;else if(!c)u.push(n[d]);else break;n=n.slice(d);let p=u.join(`
93
- `),h=p.replace(this.rules.other.blockquoteSetextReplace,`
94
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
95
- ${p}`:p,a=a?`${a}
96
- ${h}`:h;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,l,!0),this.lexer.state.top=g,n.length===0)break;let y=l.at(-1);if((y==null?void 0:y.type)==="code")break;if((y==null?void 0:y.type)==="blockquote"){let S=y,v=S.raw+`
97
- `+n.join(`
98
- `),b=this.blockquote(v);l[l.length-1]=b,o=o.substring(0,o.length-S.raw.length)+b.raw,a=a.substring(0,a.length-S.text.length)+b.text;break}else if((y==null?void 0:y.type)==="list"){let S=y,v=S.raw+`
99
- `+n.join(`
100
- `),b=this.list(v);l[l.length-1]=b,o=o.substring(0,o.length-y.raw.length)+b.raw,a=a.substring(0,a.length-S.raw.length)+b.raw,n=v.substring(l.at(-1).raw.length).split(`
101
- `);continue}}return{type:"blockquote",raw:o,tokens:l,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),o=n.length>1,a={type:"list",raw:"",ordered:o,start:o?+n.slice(0,-1):"",loose:!1,items:[]};n=o?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=o?n:"[*+-]");let l=this.rules.other.listItemRegex(n),c=!1;for(;t;){let d=!1,p="",h="";if(!(r=l.exec(t))||this.rules.block.hr.test(t))break;p=r[0],t=t.substring(p.length);let g=r[2].split(`
102
- `,1)[0].replace(this.rules.other.listReplaceTabs,w=>" ".repeat(3*w.length)),y=t.split(`
103
- `,1)[0],S=!g.trim(),v=0;if(this.options.pedantic?(v=2,h=g.trimStart()):S?v=r[1].length+1:(v=r[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,h=g.slice(v),v+=r[1].length),S&&this.rules.other.blankLine.test(y)&&(p+=y+`
104
- `,t=t.substring(y.length+1),d=!0),!d){let w=this.rules.other.nextBulletRegex(v),x=this.rules.other.hrRegex(v),k=this.rules.other.fencesBeginRegex(v),E=this.rules.other.headingBeginRegex(v),R=this.rules.other.htmlBeginRegex(v);for(;t;){let F=t.split(`
105
- `,1)[0],A;if(y=F,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),A=y):A=y.replace(this.rules.other.tabCharGlobal," "),k.test(y)||E.test(y)||R.test(y)||w.test(y)||x.test(y))break;if(A.search(this.rules.other.nonSpaceChar)>=v||!y.trim())h+=`
106
- `+A.slice(v);else{if(S||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(g)||E.test(g)||x.test(g))break;h+=`
107
- `+y}!S&&!y.trim()&&(S=!0),p+=F+`
108
- `,t=t.substring(F.length+1),g=A.slice(v)}}a.loose||(c?a.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(c=!0));let b=null,m;this.options.gfm&&(b=this.rules.other.listIsTask.exec(h),b&&(m=b[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:p,task:!!b,checked:m,loose:!1,text:h,tokens:[]}),a.raw+=p}let u=a.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let d=0;d<a.items.length;d++)if(this.lexer.state.top=!1,a.items[d].tokens=this.lexer.blockTokens(a.items[d].text,[]),!a.loose){let p=a.items[d].tokens.filter(g=>g.type==="space"),h=p.length>0&&p.some(g=>this.rules.other.anyLine.test(g.raw));a.loose=h}if(a.loose)for(let d=0;d<a.items.length;d++)a.items[d].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:o,title:a}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=ob(r[1]),o=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
109
- `):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===o.length){for(let u of o)this.rules.other.tableAlignRight.test(u)?l.align.push("right"):this.rules.other.tableAlignCenter.test(u)?l.align.push("center"):this.rules.other.tableAlignLeft.test(u)?l.align.push("left"):l.align.push(null);for(let u=0;u<n.length;u++)l.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:l.align[u]});for(let u of a)l.rows.push(ob(u,l.header.length).map((d,p)=>({text:d,tokens:this.lexer.inline(d),header:!1,align:l.align[p]})));return l}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
110
- `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=da(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=XN(r[2],"()");if(l===-2)return;if(l>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let o=r[2],a="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(o);l&&(o=l[1],a=l[3])}else a=r[3]?r[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?o=o.slice(1):o=o.slice(1,-1)),ab(r,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let o=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[o.toLowerCase()];if(!a){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return ab(n,a,n[0],this.lexer,this.rules)}}emStrong(t,r,n=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!(!o||o[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!n||this.rules.inline.punctuation.exec(n))){let a=[...o[0]].length-1,l,c,u=a,d=0,p=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,r=r.slice(-1*t.length+a);(o=p.exec(r))!=null;){if(l=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!l)continue;if(c=[...l].length,o[3]||o[4]){u+=c;continue}else if((o[5]||o[6])&&a%3&&!((a+c)%3)){d+=c;continue}if(u-=c,u>0)continue;c=Math.min(c,c+u+d);let h=[...o[0]][0].length,g=t.slice(0,a+o.index+h+c);if(Math.min(a,c)%2){let S=g.slice(1,-1);return{type:"em",raw:g,text:S,tokens:this.lexer.inlineTokens(S)}}let y=g.slice(2,-2);return{type:"strong",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return o&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,o;return r[2]==="@"?(n=r[1],o="mailto:"+n):(n=r[1],o=n),{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let r;if(r=this.rules.inline.url.exec(t)){let o,a;if(r[2]==="@")o=r[0],a="mailto:"+o;else{let l;do l=r[0],r[0]=((n=this.rules.inline._backpedal.exec(r[0]))==null?void 0:n[0])??"";while(l!==r[0]);o=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},Hr=class od{constructor(t){Oe(this,"tokens");Oe(this,"options");Oe(this,"state");Oe(this,"tokenizer");Oe(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Li,this.options.tokenizer=this.options.tokenizer||new Yl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Kt,block:ol.normal,inline:fa.normal};this.options.pedantic?(r.block=ol.pedantic,r.inline=fa.pedantic):this.options.gfm&&(r.block=ol.gfm,this.options.breaks?r.inline=fa.breaks:r.inline=fa.gfm),this.tokenizer.rules=r}static get rules(){return{block:ol,inline:fa}}static lex(t,r){return new od(r).lex(t)}static lexInline(t,r){return new od(r).inlineTokens(t)}lex(t){t=t.replace(Kt.carriageReturn,`
111
- `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var o,a,l;for(this.options.pedantic&&(t=t.replace(Kt.tabCharGlobal," ").replace(Kt.spaceLine,""));t;){let c;if((a=(o=this.options.extensions)==null?void 0:o.block)!=null&&a.some(d=>(c=d.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);let d=r.at(-1);c.raw.length===1&&d!==void 0?d.raw+=`
112
- `:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let d=r.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=(d.raw.endsWith(`
97
+ `),a="",s="",l=[];for(;i.length>0;){let c=!1,f=[],v;for(v=0;v<i.length;v++)if(this.rules.other.blockquoteStart.test(i[v]))f.push(i[v]),c=!0;else if(!c)f.push(i[v]);else break;i=i.slice(v);let m=f.join(`
98
+ `),g=m.replace(this.rules.other.blockquoteSetextReplace,`
99
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
100
+ ${m}`:m,s=s?`${s}
101
+ ${g}`:g;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,l,!0),this.lexer.state.top=p,i.length===0)break;let b=l.at(-1);if((b==null?void 0:b.type)==="code")break;if((b==null?void 0:b.type)==="blockquote"){let x=b,d=x.raw+`
102
+ `+i.join(`
103
+ `),w=this.blockquote(d);l[l.length-1]=w,a=a.substring(0,a.length-x.raw.length)+w.raw,s=s.substring(0,s.length-x.text.length)+w.text;break}else if((b==null?void 0:b.type)==="list"){let x=b,d=x.raw+`
104
+ `+i.join(`
105
+ `),w=this.list(d);l[l.length-1]=w,a=a.substring(0,a.length-b.raw.length)+w.raw,s=s.substring(0,s.length-x.raw.length)+w.raw,i=d.substring(l.at(-1).raw.length).split(`
106
+ `);continue}}return{type:"blockquote",raw:a,tokens:l,text:s}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),a=i.length>1,s={type:"list",raw:"",ordered:a,start:a?+i.slice(0,-1):"",loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:"[*+-]");let l=this.rules.other.listItemRegex(i),c=!1;for(;t;){let v=!1,m="",g="";if(!(r=l.exec(t))||this.rules.block.hr.test(t))break;m=r[0],t=t.substring(m.length);let p=r[2].split(`
107
+ `,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),b=t.split(`
108
+ `,1)[0],x=!p.trim(),d=0;if(this.options.pedantic?(d=2,g=p.trimStart()):x?d=r[1].length+1:(d=r[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,g=p.slice(d),d+=r[1].length),x&&this.rules.other.blankLine.test(b)&&(m+=b+`
109
+ `,t=t.substring(b.length+1),v=!0),!v){let S=this.rules.other.nextBulletRegex(d),E=this.rules.other.hrRegex(d),R=this.rules.other.fencesBeginRegex(d),O=this.rules.other.headingBeginRegex(d),k=this.rules.other.htmlBeginRegex(d);for(;t;){let U=t.split(`
110
+ `,1)[0],M;if(b=U,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),M=b):M=b.replace(this.rules.other.tabCharGlobal," "),R.test(b)||O.test(b)||k.test(b)||S.test(b)||E.test(b))break;if(M.search(this.rules.other.nonSpaceChar)>=d||!b.trim())g+=`
111
+ `+M.slice(d);else{if(x||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(p)||O.test(p)||E.test(p))break;g+=`
112
+ `+b}!x&&!b.trim()&&(x=!0),m+=U+`
113
+ `,t=t.substring(U.length+1),p=M.slice(d)}}s.loose||(c?s.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(c=!0));let w=null,h;this.options.gfm&&(w=this.rules.other.listIsTask.exec(g),w&&(h=w[0]!=="[ ] ",g=g.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:m,task:!!w,checked:h,loose:!1,text:g,tokens:[]}),s.raw+=m}let f=s.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let v=0;v<s.items.length;v++)if(this.lexer.state.top=!1,s.items[v].tokens=this.lexer.blockTokens(s.items[v].text,[]),!s.loose){let m=s.items[v].tokens.filter(p=>p.type==="space"),g=m.length>0&&m.some(p=>this.rules.other.anyLine.test(p.raw));s.loose=g}if(s.loose)for(let v=0;v<s.items.length;v++)s.items[v].loose=!0;return s}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:a,title:s}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=um(r[1]),a=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
114
+ `):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===a.length){for(let f of a)this.rules.other.tableAlignRight.test(f)?l.align.push("right"):this.rules.other.tableAlignCenter.test(f)?l.align.push("center"):this.rules.other.tableAlignLeft.test(f)?l.align.push("left"):l.align.push(null);for(let f=0;f<i.length;f++)l.header.push({text:i[f],tokens:this.lexer.inline(i[f]),header:!0,align:l.align[f]});for(let f of s)l.rows.push(um(f,l.header.length).map((v,m)=>({text:v,tokens:this.lexer.inline(v),header:!1,align:l.align[m]})));return l}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
115
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let l=co(i.slice(0,-1),"\\");if((i.length-l.length)%2===0)return}else{let l=Mk(r[2],"()");if(l===-2)return;if(l>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let a=r[2],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(a);l&&(a=l[1],s=l[3])}else s=r[3]?r[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?a=a.slice(1):a=a.slice(1,-1)),lm(r,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let a=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=r[a.toLowerCase()];if(!s){let l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return lm(i,s,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let a=this.rules.inline.emStrongLDelim.exec(t);if(!(!a||a[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!i||this.rules.inline.punctuation.exec(i))){let s=[...a[0]].length-1,l,c,f=s,v=0,m=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,r=r.slice(-1*t.length+s);(a=m.exec(r))!=null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(c=[...l].length,a[3]||a[4]){f+=c;continue}else if((a[5]||a[6])&&s%3&&!((s+c)%3)){v+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+v);let g=[...a[0]][0].length,p=t.slice(0,s+a.index+g+c);if(Math.min(s,c)%2){let x=p.slice(1,-1);return{type:"em",raw:p,text:x,tokens:this.lexer.inlineTokens(x)}}let b=p.slice(2,-2);return{type:"strong",raw:p,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(i),s=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return a&&s&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,a;return r[2]==="@"?(i=r[1],a="mailto:"+i):(i=r[1],a=i),{type:"link",raw:r[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let a,s;if(r[2]==="@")a=r[0],s="mailto:"+a;else{let l;do l=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(l!==r[0]);a=r[0],r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},dr=class wc{constructor(t){ve(this,"tokens");ve(this,"options");ve(this,"state");ve(this,"tokenizer");ve(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Kn,this.options.tokenizer=this.options.tokenizer||new Ss,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Rt,block:Qa.normal,inline:lo.normal};this.options.pedantic?(r.block=Qa.pedantic,r.inline=lo.pedantic):this.options.gfm&&(r.block=Qa.gfm,this.options.breaks?r.inline=lo.breaks:r.inline=lo.gfm),this.tokenizer.rules=r}static get rules(){return{block:Qa,inline:lo}}static lex(t,r){return new wc(r).lex(t)}static lexInline(t,r){return new wc(r).inlineTokens(t)}lex(t){t=t.replace(Rt.carriageReturn,`
116
+ `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var a,s,l;for(this.options.pedantic&&(t=t.replace(Rt.tabCharGlobal," ").replace(Rt.spaceLine,""));t;){let c;if((s=(a=this.options.extensions)==null?void 0:a.block)!=null&&s.some(v=>(c=v.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);let v=r.at(-1);c.raw.length===1&&v!==void 0?v.raw+=`
117
+ `:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let v=r.at(-1);(v==null?void 0:v.type)==="paragraph"||(v==null?void 0:v.type)==="text"?(v.raw+=(v.raw.endsWith(`
113
118
  `)?"":`
114
- `)+c.raw,d.text+=`
115
- `+c.text,this.inlineQueue.at(-1).src=d.text):r.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);let d=r.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=(d.raw.endsWith(`
119
+ `)+c.raw,v.text+=`
120
+ `+c.text,this.inlineQueue.at(-1).src=v.text):r.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);let v=r.at(-1);(v==null?void 0:v.type)==="paragraph"||(v==null?void 0:v.type)==="text"?(v.raw+=(v.raw.endsWith(`
116
121
  `)?"":`
117
- `)+c.raw,d.text+=`
118
- `+c.raw,this.inlineQueue.at(-1).src=d.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},r.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let u=t;if((l=this.options.extensions)!=null&&l.startBlock){let d=1/0,p=t.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},p),typeof h=="number"&&h>=0&&(d=Math.min(d,h))}),d<1/0&&d>=0&&(u=t.substring(0,d+1))}if(this.state.top&&(c=this.tokenizer.paragraph(u))){let d=r.at(-1);n&&(d==null?void 0:d.type)==="paragraph"?(d.raw+=(d.raw.endsWith(`
122
+ `)+c.raw,v.text+=`
123
+ `+c.raw,this.inlineQueue.at(-1).src=v.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},r.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let f=t;if((l=this.options.extensions)!=null&&l.startBlock){let v=1/0,m=t.slice(1),g;this.options.extensions.startBlock.forEach(p=>{g=p.call({lexer:this},m),typeof g=="number"&&g>=0&&(v=Math.min(v,g))}),v<1/0&&v>=0&&(f=t.substring(0,v+1))}if(this.state.top&&(c=this.tokenizer.paragraph(f))){let v=r.at(-1);i&&(v==null?void 0:v.type)==="paragraph"?(v.raw+=(v.raw.endsWith(`
119
124
  `)?"":`
120
- `)+c.raw,d.text+=`
121
- `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):r.push(c),n=u.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let d=r.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=(d.raw.endsWith(`
125
+ `)+c.raw,v.text+=`
126
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=v.text):r.push(c),i=f.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let v=r.at(-1);(v==null?void 0:v.type)==="text"?(v.raw+=(v.raw.endsWith(`
122
127
  `)?"":`
123
- `)+c.raw,d.text+=`
124
- `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):r.push(c);continue}if(t){let d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,u,d,p,h;let n=t,o=null;if(this.tokens.links){let g=Object.keys(this.tokens.links);if(g.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)g.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,o.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((u=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:u.call({lexer:this},n))??n;let a=!1,l="";for(;t;){a||(l=""),a=!1;let g;if((p=(d=this.options.extensions)==null?void 0:d.inline)!=null&&p.some(S=>(g=S.call({lexer:this},t,r))?(t=t.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.escape(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.tag(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.link(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(g.raw.length);let S=r.at(-1);g.type==="text"&&(S==null?void 0:S.type)==="text"?(S.raw+=g.raw,S.text+=g.text):r.push(g);continue}if(g=this.tokenizer.emStrong(t,n,l)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.codespan(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.br(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.del(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.autolink(t)){t=t.substring(g.raw.length),r.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(t))){t=t.substring(g.raw.length),r.push(g);continue}let y=t;if((h=this.options.extensions)!=null&&h.startInline){let S=1/0,v=t.slice(1),b;this.options.extensions.startInline.forEach(m=>{b=m.call({lexer:this},v),typeof b=="number"&&b>=0&&(S=Math.min(S,b))}),S<1/0&&S>=0&&(y=t.substring(0,S+1))}if(g=this.tokenizer.inlineText(y)){t=t.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(l=g.raw.slice(-1)),a=!0;let S=r.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=g.raw,S.text+=g.text):r.push(g);continue}if(t){let S="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(S);break}else throw new Error(S)}}return r}},Kl=class{constructor(t){Oe(this,"options");Oe(this,"parser");this.options=t||Li}space(t){return""}code({text:t,lang:r,escaped:n}){var l;let o=(l=(r||"").match(Kt.notSpaceStart))==null?void 0:l[0],a=t.replace(Kt.endingNewline,"")+`
125
- `;return o?'<pre><code class="language-'+Qr(o)+'">'+(n?a:Qr(a,!0))+`</code></pre>
126
- `:"<pre><code>"+(n?a:Qr(a,!0))+`</code></pre>
128
+ `)+c.raw,v.text+=`
129
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=v.text):r.push(c);continue}if(t){let v="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(v);break}else throw new Error(v)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,f,v,m,g;let i=t,a=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)p.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,a.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(a=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((f=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:f.call({lexer:this},i))??i;let s=!1,l="";for(;t;){s||(l=""),s=!1;let p;if((m=(v=this.options.extensions)==null?void 0:v.inline)!=null&&m.some(x=>(p=x.call({lexer:this},t,r))?(t=t.substring(p.raw.length),r.push(p),!0):!1))continue;if(p=this.tokenizer.escape(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.tag(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.link(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(p.raw.length);let x=r.at(-1);p.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):r.push(p);continue}if(p=this.tokenizer.emStrong(t,i,l)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.codespan(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.br(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.del(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.autolink(t)){t=t.substring(p.raw.length),r.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(t))){t=t.substring(p.raw.length),r.push(p);continue}let b=t;if((g=this.options.extensions)!=null&&g.startInline){let x=1/0,d=t.slice(1),w;this.options.extensions.startInline.forEach(h=>{w=h.call({lexer:this},d),typeof w=="number"&&w>=0&&(x=Math.min(x,w))}),x<1/0&&x>=0&&(b=t.substring(0,x+1))}if(p=this.tokenizer.inlineText(b)){t=t.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(l=p.raw.slice(-1)),s=!0;let x=r.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):r.push(p);continue}if(t){let x="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return r}},Es=class{constructor(t){ve(this,"options");ve(this,"parser");this.options=t||Kn}space(t){return""}code({text:t,lang:r,escaped:i}){var l;let a=(l=(r||"").match(Rt.notSpaceStart))==null?void 0:l[0],s=t.replace(Rt.endingNewline,"")+`
130
+ `;return a?'<pre><code class="language-'+Sr(a)+'">'+(i?s:Sr(s,!0))+`</code></pre>
131
+ `:"<pre><code>"+(i?s:Sr(s,!0))+`</code></pre>
127
132
  `}blockquote({tokens:t}){return`<blockquote>
128
133
  ${this.parser.parse(t)}</blockquote>
129
134
  `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
130
135
  `}hr(t){return`<hr>
131
- `}list(t){let r=t.ordered,n=t.start,o="";for(let c=0;c<t.items.length;c++){let u=t.items[c];o+=this.listitem(u)}let a=r?"ol":"ul",l=r&&n!==1?' start="'+n+'"':"";return"<"+a+l+`>
132
- `+o+"</"+a+`>
133
- `}listitem(t){var n;let r="";if(t.task){let o=this.checkbox({checked:!!t.checked});t.loose?((n=t.tokens[0])==null?void 0:n.type)==="paragraph"?(t.tokens[0].text=o+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=o+" "+Qr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:o+" ",text:o+" ",escaped:!0}):r+=o+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
136
+ `}list(t){let r=t.ordered,i=t.start,a="";for(let c=0;c<t.items.length;c++){let f=t.items[c];a+=this.listitem(f)}let s=r?"ol":"ul",l=r&&i!==1?' start="'+i+'"':"";return"<"+s+l+`>
137
+ `+a+"</"+s+`>
138
+ `}listitem(t){var i;let r="";if(t.task){let a=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=a+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=a+" "+Sr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:a+" ",text:a+" ",escaped:!0}):r+=a+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
134
139
  `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
135
- `}table(t){let r="",n="";for(let a=0;a<t.header.length;a++)n+=this.tablecell(t.header[a]);r+=this.tablerow({text:n});let o="";for(let a=0;a<t.rows.length;a++){let l=t.rows[a];n="";for(let c=0;c<l.length;c++)n+=this.tablecell(l[c]);o+=this.tablerow({text:n})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
140
+ `}table(t){let r="",i="";for(let s=0;s<t.header.length;s++)i+=this.tablecell(t.header[s]);r+=this.tablerow({text:i});let a="";for(let s=0;s<t.rows.length;s++){let l=t.rows[s];i="";for(let c=0;c<l.length;c++)i+=this.tablecell(l[c]);a+=this.tablerow({text:i})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
136
141
  <thead>
137
142
  `+r+`</thead>
138
- `+o+`</table>
143
+ `+a+`</table>
139
144
  `}tablerow({text:t}){return`<tr>
140
145
  ${t}</tr>
141
- `}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
142
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Qr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:n}){let o=this.parser.parseInline(n),a=ib(t);if(a===null)return o;t=a;let l='<a href="'+t+'"';return r&&(l+=' title="'+Qr(r)+'"'),l+=">"+o+"</a>",l}image({href:t,title:r,text:n,tokens:o}){o&&(n=this.parser.parseInline(o,this.parser.textRenderer));let a=ib(t);if(a===null)return Qr(n);t=a;let l=`<img src="${t}" alt="${n}"`;return r&&(l+=` title="${Qr(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Qr(t.text)}},Jd=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Wr=class ad{constructor(t){Oe(this,"options");Oe(this,"renderer");Oe(this,"textRenderer");this.options=t||Li,this.options.renderer=this.options.renderer||new Kl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Jd}static parse(t,r){return new ad(r).parse(t)}static parseInline(t,r){return new ad(r).parseInline(t)}parse(t,r=!0){var o,a;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((a=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&a[c.type]){let d=c,p=this.options.extensions.renderers[d.type].call({parser:this},d);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(d.type)){n+=p||"";continue}}let u=c;switch(u.type){case"space":{n+=this.renderer.space(u);continue}case"hr":{n+=this.renderer.hr(u);continue}case"heading":{n+=this.renderer.heading(u);continue}case"code":{n+=this.renderer.code(u);continue}case"table":{n+=this.renderer.table(u);continue}case"blockquote":{n+=this.renderer.blockquote(u);continue}case"list":{n+=this.renderer.list(u);continue}case"html":{n+=this.renderer.html(u);continue}case"def":{n+=this.renderer.def(u);continue}case"paragraph":{n+=this.renderer.paragraph(u);continue}case"text":{let d=u,p=this.renderer.text(d);for(;l+1<t.length&&t[l+1].type==="text";)d=t[++l],p+=`
143
- `+this.renderer.text(d);r?n+=this.renderer.paragraph({type:"paragraph",raw:p,text:p,tokens:[{type:"text",raw:p,text:p,escaped:!0}]}):n+=p;continue}default:{let d='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return n}parseInline(t,r=this.renderer){var o,a;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((a=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&a[c.type]){let d=this.options.extensions.renderers[c.type].call({parser:this},c);if(d!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){n+=d||"";continue}}let u=c;switch(u.type){case"escape":{n+=r.text(u);break}case"html":{n+=r.html(u);break}case"link":{n+=r.link(u);break}case"image":{n+=r.image(u);break}case"strong":{n+=r.strong(u);break}case"em":{n+=r.em(u);break}case"codespan":{n+=r.codespan(u);break}case"br":{n+=r.br(u);break}case"del":{n+=r.del(u);break}case"text":{n+=r.text(u);break}default:{let d='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return n}},El,ya=(El=class{constructor(t){Oe(this,"options");Oe(this,"block");this.options=t||Li}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Hr.lex:Hr.lexInline}provideParser(){return this.block?Wr.parse:Wr.parseInline}},Oe(El,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Oe(El,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),El),cw=class{constructor(...t){Oe(this,"defaults",Vd());Oe(this,"options",this.setOptions);Oe(this,"parse",this.parseMarkdown(!0));Oe(this,"parseInline",this.parseMarkdown(!1));Oe(this,"Parser",Wr);Oe(this,"Renderer",Kl);Oe(this,"TextRenderer",Jd);Oe(this,"Lexer",Hr);Oe(this,"Tokenizer",Yl);Oe(this,"Hooks",ya);this.use(...t)}walkTokens(t,r){var o,a;let n=[];for(let l of t)switch(n=n.concat(r.call(this,l)),l.type){case"table":{let c=l;for(let u of c.header)n=n.concat(this.walkTokens(u.tokens,r));for(let u of c.rows)for(let d of u)n=n.concat(this.walkTokens(d.tokens,r));break}case"list":{let c=l;n=n.concat(this.walkTokens(c.items,r));break}default:{let c=l;(a=(o=this.defaults.extensions)==null?void 0:o.childTokens)!=null&&a[c.type]?this.defaults.extensions.childTokens[c.type].forEach(u=>{let d=c[u].flat(1/0);n=n.concat(this.walkTokens(d,r))}):c.tokens&&(n=n.concat(this.walkTokens(c.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let o={...n};if(o.async=this.defaults.async||o.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let l=r.renderers[a.name];l?r.renderers[a.name]=function(...c){let u=a.renderer.apply(this,c);return u===!1&&(u=l.apply(this,c)),u}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[a.level];l?l.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),o.extensions=r),n.renderer){let a=this.defaults.renderer||new Kl(this.defaults);for(let l in n.renderer){if(!(l in a))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,u=n.renderer[c],d=a[c];a[c]=(...p)=>{let h=u.apply(a,p);return h===!1&&(h=d.apply(a,p)),h||""}}o.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new Yl(this.defaults);for(let l in n.tokenizer){if(!(l in a))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,u=n.tokenizer[c],d=a[c];a[c]=(...p)=>{let h=u.apply(a,p);return h===!1&&(h=d.apply(a,p)),h}}o.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new ya;for(let l in n.hooks){if(!(l in a))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,u=n.hooks[c],d=a[c];ya.passThroughHooks.has(l)?a[c]=p=>{if(this.defaults.async&&ya.passThroughHooksRespectAsync.has(l))return(async()=>{let g=await u.call(a,p);return d.call(a,g)})();let h=u.call(a,p);return d.call(a,h)}:a[c]=(...p)=>{if(this.defaults.async)return(async()=>{let g=await u.apply(a,p);return g===!1&&(g=await d.apply(a,p)),g})();let h=u.apply(a,p);return h===!1&&(h=d.apply(a,p)),h}}o.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,l=n.walkTokens;o.walkTokens=function(c){let u=[];return u.push(l.call(this,c)),a&&(u=u.concat(a.call(this,c))),u}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Hr.lex(t,r??this.defaults)}parser(t,r){return Wr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,n)=>{let o={...n},a={...this.defaults,...o},l=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&o.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let c=a.hooks?await a.hooks.preprocess(r):r,u=await(a.hooks?await a.hooks.provideLexer():t?Hr.lex:Hr.lexInline)(c,a),d=a.hooks?await a.hooks.processAllTokens(u):u;a.walkTokens&&await Promise.all(this.walkTokens(d,a.walkTokens));let p=await(a.hooks?await a.hooks.provideParser():t?Wr.parse:Wr.parseInline)(d,a);return a.hooks?await a.hooks.postprocess(p):p})().catch(l);try{a.hooks&&(r=a.hooks.preprocess(r));let c=(a.hooks?a.hooks.provideLexer():t?Hr.lex:Hr.lexInline)(r,a);a.hooks&&(c=a.hooks.processAllTokens(c)),a.walkTokens&&this.walkTokens(c,a.walkTokens);let u=(a.hooks?a.hooks.provideParser():t?Wr.parse:Wr.parseInline)(c,a);return a.hooks&&(u=a.hooks.postprocess(u)),u}catch(c){return l(c)}}}onError(t,r){return n=>{if(n.message+=`
144
- Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+Qr(n.message+"",!0)+"</pre>";return r?Promise.resolve(o):o}if(r)return Promise.reject(n);throw n}}},Mi=new cw;function Qe(e,t){return Mi.parse(e,t)}Qe.options=Qe.setOptions=function(e){return Mi.setOptions(e),Qe.defaults=Mi.defaults,Jy(Qe.defaults),Qe};Qe.getDefaults=Vd;Qe.defaults=Li;Qe.use=function(...e){return Mi.use(...e),Qe.defaults=Mi.defaults,Jy(Qe.defaults),Qe};Qe.walkTokens=function(e,t){return Mi.walkTokens(e,t)};Qe.parseInline=Mi.parseInline;Qe.Parser=Wr;Qe.parser=Wr.parse;Qe.Renderer=Kl;Qe.TextRenderer=Jd;Qe.Lexer=Hr;Qe.lexer=Hr.lex;Qe.Tokenizer=Yl;Qe.Hooks=ya;Qe.parse=Qe;Qe.options;Qe.setOptions;Qe.use;Qe.walkTokens;Qe.parseInline;Wr.parse;Hr.lex;const QN={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},uw=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,eM=RegExp(uw.source),sb=(e="")=>eM.test(e)?e.replace(uw,t=>QN[t]||"'"):e,lb=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var tM=class{constructor(e){Oe(this,"renderer");this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const n=r.depth;return this.renderer.heading(this.parseInline(r.tokens),n)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const n=r;return n.tokens?this.parseInline(n.tokens):r.text}case"blockquote":{const n=r,o=this.parse(n.tokens);return this.renderer.blockquote(o)}case"list":{const n=r;this.renderer.elIdList.push(0);const o=n.items.map(a=>{const l=[];return a.task&&l.push(this.renderer.checkbox(a.checked??!1)),l.push(this.parse(a.tokens)),this.renderer.listItem(l)});return this.renderer.elIdList.pop(),this.renderer.list(o,r.ordered,r.ordered?r.start:void 0)}case"code":return this.renderer.code(r.text,r.lang);case"html":return this.renderer.html(r.text);case"table":{const n=r;this.renderer.elIdList.push(0);const o=n.header.map((d,p)=>this.renderer.tableCell(this.parseInline(d.tokens),{header:!0,align:r.align[p]}));this.renderer.elIdList.pop();const a=this.renderer.tableRow(o),l=this.renderer.tableHeader(a);this.renderer.elIdList.push(0);const c=n.rows.map(d=>{this.renderer.elIdList.push(0);const p=d.map((h,g)=>this.renderer.tableCell(this.parseInline(h.tokens),{header:!1,align:r.align[g]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(p)});this.renderer.elIdList.pop();const u=this.renderer.tableBody(c);return this.renderer.table([l,u])}case"hr":return this.renderer.hr();default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}parseInline(e=[]){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"text":return this.renderer.text(sb(r.text));case"strong":return this.renderer.strong(this.parseInline(r.tokens));case"em":return this.renderer.em(this.parseInline(r.tokens));case"del":return this.renderer.del(this.parseInline(r.tokens));case"codespan":return this.renderer.codespan(sb(r.text));case"link":return this.renderer.link(r.href,this.parseInline(r.tokens));case"image":return this.renderer.image(r.href,r.text,r.title);case"html":return this.renderer.html(r.text);case"br":return this.renderer.br();case"escape":return this.renderer.text(r.text);default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}},rM=tM,Kn,nt,bt,sd,z0,nM=(z0=class{constructor(e={}){Ht(this,nt);Oe(this,"elIdList",[]);Ht(this,Kn);const{renderer:t}=e;gt(this,Kn,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,n])=>{const o=r,a=n;!this[o]||o==="elementId"||o==="elIdList"||typeof a!="function"||Object.defineProperty(this,o,{value(...l){return We(this,nt,sd).call(this),a.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return We(this,nt,bt).call(this,`h${t}`,e)}paragraph(e){return We(this,nt,bt).call(this,"p",e)}link(e,t){const r=lb(e,de(this,Kn).baseURL),n=de(this,Kn).openLinksInNewTab?"_blank":null;return We(this,nt,bt).call(this,"a",t,{href:r,target:n})}image(e,t,r=null){const n=lb(e,de(this,Kn).baseURL);return We(this,nt,bt).call(this,"img",null,{src:n,alt:t,title:r})}codespan(e,t=null){const r=t?`${de(this,Kn).langPrefix}${t}`:null;return We(this,nt,bt).call(this,"code",e,{className:r})}code(e,t){return We(this,nt,bt).call(this,"pre",this.codespan(e,t))}blockquote(e){return We(this,nt,bt).call(this,"blockquote",e)}list(e,t,r){return We(this,nt,bt).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return We(this,nt,bt).call(this,"li",e)}checkbox(e){return We(this,nt,bt).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return We(this,nt,bt).call(this,"table",e)}tableHeader(e){return We(this,nt,bt).call(this,"thead",e)}tableBody(e){return We(this,nt,bt).call(this,"tbody",e)}tableRow(e){return We(this,nt,bt).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return We(this,nt,bt).call(this,r,e,{align:t.align})}strong(e){return We(this,nt,bt).call(this,"strong",e)}em(e){return We(this,nt,bt).call(this,"em",e)}del(e){return We(this,nt,bt).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return We(this,nt,bt).call(this,"hr")}br(){return We(this,nt,bt).call(this,"br")}},Kn=new WeakMap,nt=new WeakSet,bt=function(e,t=null,r={}){const n={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return We(this,nt,sd).call(this),H.createElement(e,{...r,...n},t)},sd=function(){this.elIdList[this.elIdList.length-1]+=1},z0),iM=nM;const oM=e=>{if(e.value&&typeof e.value!="string")throw new TypeError(`[marked-react]: Expected value to be of type string but got ${typeof e.value}`);if(e.children&&typeof e.children!="string")throw new TypeError(`[marked-react]: Expected children to be of type string but got ${typeof e.children}`)},aM={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},sM=new cw,lM=e=>{oM(e);const t={...aM,...e},r=t.instance??sM,n={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},o=t.value??t.children??"",a=t.isInline?r.Lexer.lexInline(o,n):r.lexer(o,n),l={renderer:new iM({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new rM(l),u=t.isInline?c.parseInline(a):c.parse(a);return H.createElement(H.Fragment,null,u)};var cM=lM,uM=cM;const fM=({children:e,label:t,placement:r="top",className:n,isDisabled:o,container:a})=>{const[l,c]=H.useState(null),u=H.useRef(null),[d,p]=H.useState(null),[h,g]=H.useState(!1),{styles:y,attributes:S}=Md(l,d,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),v=H.Children.map(e,b=>H.isValidElement(b)?H.cloneElement(b,{ref:c,onMouseEnter:()=>g(!0),onMouseLeave:()=>{u.current=setTimeout(()=>g(!1),50)}}):b);return o?C.jsx(C.Fragment,{children:v}):C.jsxs(C.Fragment,{children:[v,h&&t&&ti.createPortal(C.jsx("div",{ref:p,style:y.popper,...S.popper,className:tt("z-10 select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",n),onMouseEnter:()=>{u.current&&clearTimeout(u.current),g(!0)},onMouseLeave:()=>g(!1),children:typeof t=="string"?C.jsx(uM,{openLinksInNewTab:!0,children:t}):t}),a||document.body)]})},fw=({referenceElement:e,label:t})=>{const[r,n]=H.useState(null),{styles:o,attributes:a}=Md(e,r,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{rootBoundary:"viewport"}}]});return C.jsx("div",{className:"z-[1000] rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",ref:n,style:o.popper,...a.popper,children:t})},dM=Kf.keyframes`
146
+ `}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
147
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Sr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let a=this.parser.parseInline(i),s=sm(t);if(s===null)return a;t=s;let l='<a href="'+t+'"';return r&&(l+=' title="'+Sr(r)+'"'),l+=">"+a+"</a>",l}image({href:t,title:r,text:i,tokens:a}){a&&(i=this.parser.parseInline(a,this.parser.textRenderer));let s=sm(t);if(s===null)return Sr(i);t=s;let l=`<img src="${t}" alt="${i}"`;return r&&(l+=` title="${Sr(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Sr(t.text)}},df=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},pr=class xc{constructor(t){ve(this,"options");ve(this,"renderer");ve(this,"textRenderer");this.options=t||Kn,this.options.renderer=this.options.renderer||new Es,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new df}static parse(t,r){return new xc(r).parse(t)}static parseInline(t,r){return new xc(r).parseInline(t)}parse(t,r=!0){var a,s;let i="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&s[c.type]){let v=c,m=this.options.extensions.renderers[v.type].call({parser:this},v);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(v.type)){i+=m||"";continue}}let f=c;switch(f.type){case"space":{i+=this.renderer.space(f);continue}case"hr":{i+=this.renderer.hr(f);continue}case"heading":{i+=this.renderer.heading(f);continue}case"code":{i+=this.renderer.code(f);continue}case"table":{i+=this.renderer.table(f);continue}case"blockquote":{i+=this.renderer.blockquote(f);continue}case"list":{i+=this.renderer.list(f);continue}case"html":{i+=this.renderer.html(f);continue}case"def":{i+=this.renderer.def(f);continue}case"paragraph":{i+=this.renderer.paragraph(f);continue}case"text":{let v=f,m=this.renderer.text(v);for(;l+1<t.length&&t[l+1].type==="text";)v=t[++l],m+=`
148
+ `+this.renderer.text(v);r?i+=this.renderer.paragraph({type:"paragraph",raw:m,text:m,tokens:[{type:"text",raw:m,text:m,escaped:!0}]}):i+=m;continue}default:{let v='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(v),"";throw new Error(v)}}}return i}parseInline(t,r=this.renderer){var a,s;let i="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&s[c.type]){let v=this.options.extensions.renderers[c.type].call({parser:this},c);if(v!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){i+=v||"";continue}}let f=c;switch(f.type){case"escape":{i+=r.text(f);break}case"html":{i+=r.html(f);break}case"link":{i+=r.link(f);break}case"image":{i+=r.image(f);break}case"strong":{i+=r.strong(f);break}case"em":{i+=r.em(f);break}case"codespan":{i+=r.codespan(f);break}case"br":{i+=r.br(f);break}case"del":{i+=r.del(f);break}case"text":{i+=r.text(f);break}default:{let v='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(v),"";throw new Error(v)}}}return i}},is,ho=(is=class{constructor(t){ve(this,"options");ve(this,"block");this.options=t||Kn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?dr.lex:dr.lexInline}provideParser(){return this.block?pr.parse:pr.parseInline}},ve(is,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ve(is,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),is),Oy=class{constructor(...t){ve(this,"defaults",nf());ve(this,"options",this.setOptions);ve(this,"parse",this.parseMarkdown(!0));ve(this,"parseInline",this.parseMarkdown(!1));ve(this,"Parser",pr);ve(this,"Renderer",Es);ve(this,"TextRenderer",df);ve(this,"Lexer",dr);ve(this,"Tokenizer",Ss);ve(this,"Hooks",ho);this.use(...t)}walkTokens(t,r){var a,s;let i=[];for(let l of t)switch(i=i.concat(r.call(this,l)),l.type){case"table":{let c=l;for(let f of c.header)i=i.concat(this.walkTokens(f.tokens,r));for(let f of c.rows)for(let v of f)i=i.concat(this.walkTokens(v.tokens,r));break}case"list":{let c=l;i=i.concat(this.walkTokens(c.items,r));break}default:{let c=l;(s=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&s[c.type]?this.defaults.extensions.childTokens[c.type].forEach(f=>{let v=c[f].flat(1/0);i=i.concat(this.walkTokens(v,r))}):c.tokens&&(i=i.concat(this.walkTokens(c.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let a={...i};if(a.async=this.defaults.async||a.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let l=r.renderers[s.name];l?r.renderers[s.name]=function(...c){let f=s.renderer.apply(this,c);return f===!1&&(f=l.apply(this,c)),f}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[s.level];l?l.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),a.extensions=r),i.renderer){let s=this.defaults.renderer||new Es(this.defaults);for(let l in i.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,f=i.renderer[c],v=s[c];s[c]=(...m)=>{let g=f.apply(s,m);return g===!1&&(g=v.apply(s,m)),g||""}}a.renderer=s}if(i.tokenizer){let s=this.defaults.tokenizer||new Ss(this.defaults);for(let l in i.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,f=i.tokenizer[c],v=s[c];s[c]=(...m)=>{let g=f.apply(s,m);return g===!1&&(g=v.apply(s,m)),g}}a.tokenizer=s}if(i.hooks){let s=this.defaults.hooks||new ho;for(let l in i.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,f=i.hooks[c],v=s[c];ho.passThroughHooks.has(l)?s[c]=m=>{if(this.defaults.async&&ho.passThroughHooksRespectAsync.has(l))return(async()=>{let p=await f.call(s,m);return v.call(s,p)})();let g=f.call(s,m);return v.call(s,g)}:s[c]=(...m)=>{if(this.defaults.async)return(async()=>{let p=await f.apply(s,m);return p===!1&&(p=await v.apply(s,m)),p})();let g=f.apply(s,m);return g===!1&&(g=v.apply(s,m)),g}}a.hooks=s}if(i.walkTokens){let s=this.defaults.walkTokens,l=i.walkTokens;a.walkTokens=function(c){let f=[];return f.push(l.call(this,c)),s&&(f=f.concat(s.call(this,c))),f}}this.defaults={...this.defaults,...a}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return dr.lex(t,r??this.defaults)}parser(t,r){return pr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let a={...i},s={...this.defaults,...a},l=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&a.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let c=s.hooks?await s.hooks.preprocess(r):r,f=await(s.hooks?await s.hooks.provideLexer():t?dr.lex:dr.lexInline)(c,s),v=s.hooks?await s.hooks.processAllTokens(f):f;s.walkTokens&&await Promise.all(this.walkTokens(v,s.walkTokens));let m=await(s.hooks?await s.hooks.provideParser():t?pr.parse:pr.parseInline)(v,s);return s.hooks?await s.hooks.postprocess(m):m})().catch(l);try{s.hooks&&(r=s.hooks.preprocess(r));let c=(s.hooks?s.hooks.provideLexer():t?dr.lex:dr.lexInline)(r,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let f=(s.hooks?s.hooks.provideParser():t?pr.parse:pr.parseInline)(c,s);return s.hooks&&(f=s.hooks.postprocess(f)),f}catch(c){return l(c)}}}onError(t,r){return i=>{if(i.message+=`
149
+ Please report this to https://github.com/markedjs/marked.`,t){let a="<p>An error occurred:</p><pre>"+Sr(i.message+"",!0)+"</pre>";return r?Promise.resolve(a):a}if(r)return Promise.reject(i);throw i}}},Bn=new Oy;function De(e,t){return Bn.parse(e,t)}De.options=De.setOptions=function(e){return Bn.setOptions(e),De.defaults=Bn.defaults,hy(De.defaults),De};De.getDefaults=nf;De.defaults=Kn;De.use=function(...e){return Bn.use(...e),De.defaults=Bn.defaults,hy(De.defaults),De};De.walkTokens=function(e,t){return Bn.walkTokens(e,t)};De.parseInline=Bn.parseInline;De.Parser=pr;De.parser=pr.parse;De.Renderer=Es;De.TextRenderer=df;De.Lexer=dr;De.lexer=dr.lex;De.Tokenizer=Ss;De.Hooks=ho;De.parse=De;De.options;De.setOptions;De.use;De.walkTokens;De.parseInline;pr.parse;dr.lex;const Dk={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ay=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,Nk=RegExp(Ay.source),cm=(e="")=>Nk.test(e)?e.replace(Ay,t=>Dk[t]||"'"):e,fm=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var jk=class{constructor(e){ve(this,"renderer");this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const i=r.depth;return this.renderer.heading(this.parseInline(r.tokens),i)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const i=r;return i.tokens?this.parseInline(i.tokens):r.text}case"blockquote":{const i=r,a=this.parse(i.tokens);return this.renderer.blockquote(a)}case"list":{const i=r;this.renderer.elIdList.push(0);const a=i.items.map(s=>{const l=[];return s.task&&l.push(this.renderer.checkbox(s.checked??!1)),l.push(this.parse(s.tokens)),this.renderer.listItem(l)});return this.renderer.elIdList.pop(),this.renderer.list(a,r.ordered,r.ordered?r.start:void 0)}case"code":return this.renderer.code(r.text,r.lang);case"html":return this.renderer.html(r.text);case"table":{const i=r;this.renderer.elIdList.push(0);const a=i.header.map((v,m)=>this.renderer.tableCell(this.parseInline(v.tokens),{header:!0,align:r.align[m]}));this.renderer.elIdList.pop();const s=this.renderer.tableRow(a),l=this.renderer.tableHeader(s);this.renderer.elIdList.push(0);const c=i.rows.map(v=>{this.renderer.elIdList.push(0);const m=v.map((g,p)=>this.renderer.tableCell(this.parseInline(g.tokens),{header:!1,align:r.align[p]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(m)});this.renderer.elIdList.pop();const f=this.renderer.tableBody(c);return this.renderer.table([l,f])}case"hr":return this.renderer.hr();default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}parseInline(e=[]){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"text":return this.renderer.text(cm(r.text));case"strong":return this.renderer.strong(this.parseInline(r.tokens));case"em":return this.renderer.em(this.parseInline(r.tokens));case"del":return this.renderer.del(this.parseInline(r.tokens));case"codespan":return this.renderer.codespan(cm(r.text));case"link":return this.renderer.link(r.href,this.parseInline(r.tokens));case"image":return this.renderer.image(r.href,r.text,r.title);case"html":return this.renderer.html(r.text);case"br":return this.renderer.br();case"escape":return this.renderer.text(r.text);default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}},zk=jk,cn,ze,rt,Sc,Wm,Wk=(Wm=class{constructor(e={}){xt(this,ze);ve(this,"elIdList",[]);xt(this,cn);const{renderer:t}=e;Qe(this,cn,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,i])=>{const a=r,s=i;!this[a]||a==="elementId"||a==="elIdList"||typeof s!="function"||Object.defineProperty(this,a,{value(...l){return $e(this,ze,Sc).call(this),s.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return $e(this,ze,rt).call(this,`h${t}`,e)}paragraph(e){return $e(this,ze,rt).call(this,"p",e)}link(e,t){const r=fm(e,re(this,cn).baseURL),i=re(this,cn).openLinksInNewTab?"_blank":null;return $e(this,ze,rt).call(this,"a",t,{href:r,target:i})}image(e,t,r=null){const i=fm(e,re(this,cn).baseURL);return $e(this,ze,rt).call(this,"img",null,{src:i,alt:t,title:r})}codespan(e,t=null){const r=t?`${re(this,cn).langPrefix}${t}`:null;return $e(this,ze,rt).call(this,"code",e,{className:r})}code(e,t){return $e(this,ze,rt).call(this,"pre",this.codespan(e,t))}blockquote(e){return $e(this,ze,rt).call(this,"blockquote",e)}list(e,t,r){return $e(this,ze,rt).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return $e(this,ze,rt).call(this,"li",e)}checkbox(e){return $e(this,ze,rt).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return $e(this,ze,rt).call(this,"table",e)}tableHeader(e){return $e(this,ze,rt).call(this,"thead",e)}tableBody(e){return $e(this,ze,rt).call(this,"tbody",e)}tableRow(e){return $e(this,ze,rt).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return $e(this,ze,rt).call(this,r,e,{align:t.align})}strong(e){return $e(this,ze,rt).call(this,"strong",e)}em(e){return $e(this,ze,rt).call(this,"em",e)}del(e){return $e(this,ze,rt).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return $e(this,ze,rt).call(this,"hr")}br(){return $e(this,ze,rt).call(this,"br")}},cn=new WeakMap,ze=new WeakSet,rt=function(e,t=null,r={}){const i={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return $e(this,ze,Sc).call(this),W.createElement(e,{...r,...i},t)},Sc=function(){this.elIdList[this.elIdList.length-1]+=1},Wm),Uk=Wk;const Bk=e=>{if(e.value&&typeof e.value!="string")throw new TypeError(`[marked-react]: Expected value to be of type string but got ${typeof e.value}`);if(e.children&&typeof e.children!="string")throw new TypeError(`[marked-react]: Expected children to be of type string but got ${typeof e.children}`)},Hk={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},qk=new Oy,Zk=e=>{Bk(e);const t={...Hk,...e},r=t.instance??qk,i={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},a=t.value??t.children??"",s=t.isInline?r.Lexer.lexInline(a,i):r.lexer(a,i),l={renderer:new Uk({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new zk(l),f=t.isInline?c.parseInline(s):c.parse(s);return W.createElement(W.Fragment,null,f)};var Gk=Zk,Kk=Gk;const Vk=({children:e,label:t,placement:r="top",className:i,isDisabled:a,container:s})=>{const[l,c]=W.useState(null),f=W.useRef(null),[v,m]=W.useState(null),[g,p]=W.useState(!1),{styles:b,attributes:x}=ev(l,v,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),d=W.Children.map(e,w=>W.isValidElement(w)?W.cloneElement(w,{ref:c,onMouseEnter:()=>p(!0),onMouseLeave:()=>{f.current=setTimeout(()=>p(!1),50)}}):w);return a?D.jsx(D.Fragment,{children:d}):D.jsxs(D.Fragment,{children:[d,g&&t&&Do.createPortal(D.jsx("div",{ref:m,style:b.popper,...x.popper,className:We("z-10 select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",i),onMouseEnter:()=>{f.current&&clearTimeout(f.current),p(!0)},onMouseLeave:()=>p(!1),children:D.jsx(Kk,{openLinksInNewTab:!0,children:t})}),s||document.body)]})},Yk=sc.keyframes`
145
150
  to {
146
151
  fill: url(#d);
147
152
  stroke-dashoffset: 0;
148
153
  }
149
- `,dw=Ul.svg`
154
+ `,Ty=vs.svg`
150
155
  & .e {
151
156
  fill: url(#d);
152
157
  }
@@ -157,7 +162,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error
157
162
  fill: transparent;
158
163
  stroke-dasharray: 700;
159
164
  stroke-dashoffset: 700;
160
- animation: ${dM} 1.5s ease-in-out infinite alternate-reverse;
165
+ animation: ${Yk} 1.5s ease-in-out infinite alternate-reverse;
161
166
  }
162
167
 
163
168
  & #circle {
@@ -167,88 +172,37 @@ Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error
167
172
  stroke-dasharray: 700;
168
173
  stroke-dashoffset: 700;
169
174
  }
170
- `,pM=({message:e,version:t})=>C.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:C.jsxs("div",{className:"flex flex-col text-center",children:[C.jsx("div",{className:"relative mr-4 self-center",children:C.jsx("div",{className:"flex items-center justify-center rounded",children:C.jsxs(dw,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[C.jsx("defs",{children:C.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[C.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:C.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),C.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:C.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),C.jsx("g",{id:"a"}),C.jsx("g",{id:"b",children:C.jsx("g",{id:"c",children:C.jsxs("g",{children:[C.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),C.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),C.jsxs("div",{children:[C.jsx("span",{className:"text-xs text-grey-200",children:t}),C.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var hM=Object.defineProperty,gM=(e,t,r)=>t in e?hM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yf=(e,t,r)=>(gM(e,typeof t!="symbol"?t+"":t,r),r);let vM=class{constructor(){yf(this,"current",this.detect()),yf(this,"handoffState","pending"),yf(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Il=new vM,Da=(e,t)=>{Il.isServer?H.useEffect(e,t):H.useLayoutEffect(e,t)};function ho(e){let t=H.useRef(e);return Da(()=>{t.current=e},[e]),t}let An=function(e){let t=ho(e);return H.useCallback((...r)=>t.current(...r),[t])};function mM(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Za(){let e=[],t={addEventListener(r,n,o,a){return r.addEventListener(n,o,a),t.add(()=>r.removeEventListener(n,o,a))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return mM(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let a=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:a})})},group(r){let n=Za();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let o of e.splice(n,1))o()}},dispose(){for(let r of e.splice(0))r()}};return t}function pw(){let[e]=H.useState(Za);return H.useEffect(()=>()=>e.dispose(),[e]),e}function bM(){let e=typeof document>"u";return"useSyncExternalStore"in z?(t=>t.useSyncExternalStore)(z)(()=>()=>{},()=>!1,()=>!e):!1}function hw(){let e=bM(),[t,r]=z.useState(Il.isHandoffComplete);return t&&Il.isHandoffComplete===!1&&r(!1),z.useEffect(()=>{t!==!0&&r(!0)},[t]),z.useEffect(()=>Il.handoff(),[]),e?!1:t}function on(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,on),n}let yM=Symbol();function gw(...e){let t=H.useRef(e);H.useEffect(()=>{t.current=e},[e]);let r=An(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[yM]))?void 0:r}function Zl(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var vw=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(vw||{}),Jn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Jn||{});function mw({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:a=!0,name:l,mergeRefs:c}){c=c??wM;let u=bw(t,e);if(a)return al(u,r,n,l,c);let d=o??0;if(d&2){let{static:p=!1,...h}=u;if(p)return al(h,r,n,l,c)}if(d&1){let{unmount:p=!0,...h}=u;return on(p?0:1,{0(){return null},1(){return al({...h,hidden:!0,style:{display:"none"}},r,n,l,c)}})}return al(u,r,n,l,c)}function al(e,t={},r,n,o){let{as:a=r,children:l,refName:c="ref",...u}=wf(e,["unmount","static"]),d=e.ref!==void 0?{[c]:e.ref}:{},p=typeof l=="function"?l(t):l;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let h={};if(t){let g=!1,y=[];for(let[S,v]of Object.entries(t))typeof v=="boolean"&&(g=!0),v===!0&&y.push(S);g&&(h["data-headlessui-state"]=y.join(" "))}if(a===H.Fragment&&Object.keys(cb(u)).length>0){if(!H.isValidElement(p)||Array.isArray(p)&&p.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(v=>` - ${v}`).join(`
171
- `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(v=>` - ${v}`).join(`
172
- `)].join(`
173
- `));let g=p.props,y=typeof(g==null?void 0:g.className)=="function"?(...v)=>Zl(g==null?void 0:g.className(...v),u.className):Zl(g==null?void 0:g.className,u.className),S=y?{className:y}:{};return H.cloneElement(p,Object.assign({},bw(p.props,cb(wf(u,["ref"]))),h,d,{ref:o(p.ref,d.ref)},S))}return H.createElement(a,Object.assign({},wf(u,["ref"]),a!==H.Fragment&&d,a!==H.Fragment&&h),p)}function wM(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function bw(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](o,...a){let l=r[n];for(let c of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;c(o,...a)}}});return t}function Qd(e){var t;return Object.assign(H.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function cb(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function wf(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let ep=H.createContext(null);ep.displayName="OpenClosedContext";var kn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(kn||{});function yw(){return H.useContext(ep)}function xM({value:e,children:t}){return H.createElement(ep.Provider,{value:e},t)}function tp(){let e=H.useRef(!1);return Da(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function SM(e=0){let[t,r]=H.useState(e),n=tp(),o=H.useCallback(u=>{n.current&&r(d=>d|u)},[t,n]),a=H.useCallback(u=>!!(t&u),[t]),l=H.useCallback(u=>{n.current&&r(d=>d&~u)},[r,n]),c=H.useCallback(u=>{n.current&&r(d=>d^u)},[r]);return{flags:t,addFlag:o,hasFlag:a,removeFlag:l,toggleFlag:c}}function _M(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function xf(e,...t){e&&t.length>0&&e.classList.add(...t)}function Sf(e,...t){e&&t.length>0&&e.classList.remove(...t)}function EM(e,t){let r=Za();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[a,l]=[n,o].map(u=>{let[d=0]=u.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,h)=>h-p);return d}),c=a+l;if(c!==0){r.group(d=>{d.setTimeout(()=>{t(),d.dispose()},c),d.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&d.dispose()})});let u=r.addEventListener(e,"transitionend",d=>{d.target===d.currentTarget&&(t(),u())})}else t();return r.add(()=>t()),r.dispose}function kM(e,t,r,n){let o=r?"enter":"leave",a=Za(),l=n!==void 0?_M(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=on(o,{enter:()=>t.enter,leave:()=>t.leave}),u=on(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),d=on(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Sf(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),xf(e,...t.base,...c,...d),a.nextFrame(()=>{Sf(e,...t.base,...c,...d),xf(e,...t.base,...c,...u),EM(e,()=>(Sf(e,...t.base,...c),xf(e,...t.base,...t.entered),l()))}),a.dispose}function OM({immediate:e,container:t,direction:r,classes:n,onStart:o,onStop:a}){let l=tp(),c=pw(),u=ho(r);Da(()=>{e&&(u.current="enter")},[e]),Da(()=>{let d=Za();c.add(d.dispose);let p=t.current;if(p&&u.current!=="idle"&&l.current)return d.dispose(),o.current(u.current),d.add(kM(p,n.current,u.current==="enter",()=>{d.dispose(),a.current(u.current)})),d.dispose},[r])}function Vn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let wc=H.createContext(null);wc.displayName="TransitionContext";var AM=(e=>(e.Visible="visible",e.Hidden="hidden",e))(AM||{});function TM(){let e=H.useContext(wc);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function RM(){let e=H.useContext(xc);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let xc=H.createContext(null);xc.displayName="NestingContext";function Sc(e){return"children"in e?Sc(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function ww(e,t){let r=ho(e),n=H.useRef([]),o=tp(),a=pw(),l=An((y,S=Jn.Hidden)=>{let v=n.current.findIndex(({el:b})=>b===y);v!==-1&&(on(S,{[Jn.Unmount](){n.current.splice(v,1)},[Jn.Hidden](){n.current[v].state="hidden"}}),a.microTask(()=>{var b;!Sc(n)&&o.current&&((b=r.current)==null||b.call(r))}))}),c=An(y=>{let S=n.current.find(({el:v})=>v===y);return S?S.state!=="visible"&&(S.state="visible"):n.current.push({el:y,state:"visible"}),()=>l(y,Jn.Unmount)}),u=H.useRef([]),d=H.useRef(Promise.resolve()),p=H.useRef({enter:[],leave:[],idle:[]}),h=An((y,S,v)=>{u.current.splice(0),t&&(t.chains.current[S]=t.chains.current[S].filter(([b])=>b!==y)),t==null||t.chains.current[S].push([y,new Promise(b=>{u.current.push(b)})]),t==null||t.chains.current[S].push([y,new Promise(b=>{Promise.all(p.current[S].map(([m,w])=>w)).then(()=>b())})]),S==="enter"?d.current=d.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(S)):v(S)}),g=An((y,S,v)=>{Promise.all(p.current[S].splice(0).map(([b,m])=>m)).then(()=>{var b;(b=u.current.shift())==null||b()}).then(()=>v(S))});return H.useMemo(()=>({children:n,register:c,unregister:l,onStart:h,onStop:g,wait:d,chains:p}),[c,l,n,h,g,p,d])}function CM(){}let PM=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ub(e){var t;let r={};for(let n of PM)r[n]=(t=e[n])!=null?t:CM;return r}function IM(e){let t=H.useRef(ub(e));return H.useEffect(()=>{t.current=ub(e)},[e]),t}let NM="div",xw=vw.RenderStrategy;function MM(e,t){var r,n;let{beforeEnter:o,afterEnter:a,beforeLeave:l,afterLeave:c,enter:u,enterFrom:d,enterTo:p,entered:h,leave:g,leaveFrom:y,leaveTo:S,...v}=e,b=H.useRef(null),m=gw(b,t),w=(r=v.unmount)==null||r?Jn.Unmount:Jn.Hidden,{show:x,appear:k,initial:E}=TM(),[R,F]=H.useState(x?"visible":"hidden"),A=RM(),{register:N,unregister:V}=A;H.useEffect(()=>N(b),[N,b]),H.useEffect(()=>{if(w===Jn.Hidden&&b.current){if(x&&R!=="visible"){F("visible");return}return on(R,{hidden:()=>V(b),visible:()=>N(b)})}},[R,b,N,V,x,w]);let $=ho({base:Vn(v.className),enter:Vn(u),enterFrom:Vn(d),enterTo:Vn(p),entered:Vn(h),leave:Vn(g),leaveFrom:Vn(y),leaveTo:Vn(S)}),M=IM({beforeEnter:o,afterEnter:a,beforeLeave:l,afterLeave:c}),B=hw();H.useEffect(()=>{if(B&&R==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,R,B]);let j=E&&!k,I=k&&x&&E,Y=!B||j?"idle":x?"enter":"leave",X=SM(0),K=An(J=>on(J,{enter:()=>{X.addFlag(kn.Opening),M.current.beforeEnter()},leave:()=>{X.addFlag(kn.Closing),M.current.beforeLeave()},idle:()=>{}})),me=An(J=>on(J,{enter:()=>{X.removeFlag(kn.Opening),M.current.afterEnter()},leave:()=>{X.removeFlag(kn.Closing),M.current.afterLeave()},idle:()=>{}})),L=ww(()=>{F("hidden"),V(b)},A),U=H.useRef(!1);OM({immediate:I,container:b,classes:$,direction:Y,onStart:ho(J=>{U.current=!0,L.onStart(b,J,K)}),onStop:ho(J=>{U.current=!1,L.onStop(b,J,me),J==="leave"&&!Sc(L)&&(F("hidden"),V(b))})});let te=v,ee={ref:m};return I?te={...te,className:Zl(v.className,...$.current.enter,...$.current.enterFrom)}:U.current&&(te.className=Zl(v.className,(n=b.current)==null?void 0:n.className),te.className===""&&delete te.className),H.createElement(xc.Provider,{value:L},H.createElement(xM,{value:on(R,{visible:kn.Open,hidden:kn.Closed})|X.flags},mw({ourProps:ee,theirProps:te,defaultTag:NM,features:xw,visible:R==="visible",name:"Transition.Child"})))}function DM(e,t){let{show:r,appear:n=!1,unmount:o=!0,...a}=e,l=H.useRef(null),c=gw(l,t);hw();let u=yw();if(r===void 0&&u!==null&&(r=(u&kn.Open)===kn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,p]=H.useState(r?"visible":"hidden"),h=ww(()=>{p("hidden")}),[g,y]=H.useState(!0),S=H.useRef([r]);Da(()=>{g!==!1&&S.current[S.current.length-1]!==r&&(S.current.push(r),y(!1))},[S,r]);let v=H.useMemo(()=>({show:r,appear:n,initial:g}),[r,n,g]);H.useEffect(()=>{if(r)p("visible");else if(!Sc(h))p("hidden");else{let x=l.current;if(!x)return;let k=x.getBoundingClientRect();k.x===0&&k.y===0&&k.width===0&&k.height===0&&p("hidden")}},[r,h]);let b={unmount:o},m=An(()=>{var x;g&&y(!1),(x=e.beforeEnter)==null||x.call(e)}),w=An(()=>{var x;g&&y(!1),(x=e.beforeLeave)==null||x.call(e)});return H.createElement(xc.Provider,{value:h},H.createElement(wc.Provider,{value:v},mw({ourProps:{...b,as:H.Fragment,children:H.createElement(Sw,{ref:c,...b,...a,beforeEnter:m,beforeLeave:w})},theirProps:{},defaultTag:H.Fragment,features:xw,visible:d==="visible",name:"Transition"})))}function $M(e,t){let r=H.useContext(wc)!==null,n=yw()!==null;return H.createElement(H.Fragment,null,!r&&n?H.createElement(ld,{ref:t,...e}):H.createElement(Sw,{ref:t,...e}))}let ld=Qd(DM),Sw=Qd(MM),LM=Qd($M),Xl=Object.assign(ld,{Child:LM,Root:ld});var wa={exports:{}};/**
175
+ `,Xk=({message:e,version:t})=>D.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:D.jsxs("div",{className:"flex flex-col text-center",children:[D.jsx("div",{className:"relative mr-4 self-center",children:D.jsx("div",{className:"flex items-center justify-center rounded",children:D.jsxs(Ty,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[D.jsx("defs",{children:D.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[D.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:D.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),D.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:D.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),D.jsx("g",{id:"a"}),D.jsx("g",{id:"b",children:D.jsx("g",{id:"c",children:D.jsxs("g",{children:[D.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),D.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),D.jsxs("div",{children:[D.jsx("span",{className:"text-xs text-grey-200",children:t}),D.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var go={exports:{}};/**
174
176
  * @license
175
177
  * Lodash <https://lodash.com/>
176
178
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
177
179
  * Released under MIT license <https://lodash.com/license>
178
180
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
179
181
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
180
- */var zM=wa.exports,fb;function jM(){return fb||(fb=1,(function(e,t){(function(){var r,n="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,g=2,y=4,S=1,v=2,b=1,m=2,w=4,x=8,k=16,E=32,R=64,F=128,A=256,N=512,V=30,$="...",M=800,B=16,j=1,I=2,Y=3,X=1/0,K=9007199254740991,me=17976931348623157e292,L=NaN,U=4294967295,te=U-1,ee=U>>>1,J=[["ary",F],["bind",b],["bindKey",m],["curry",x],["curryRight",k],["flip",N],["partial",E],["partialRight",R],["rearg",A]],ae="[object Arguments]",se="[object Array]",ne="[object AsyncFunction]",ce="[object Boolean]",he="[object Date]",pe="[object DOMException]",Se="[object Error]",Z="[object Function]",Pe="[object GeneratorFunction]",ge="[object Map]",Et="[object Number]",vr="[object Null]",Ct="[object Object]",zi="[object Promise]",ji="[object Proxy]",zt="[object RegExp]",kt="[object Set]",qr="[object String]",Nr="[object Symbol]",ai="[object Undefined]",Mr="[object WeakMap]",Fi="[object WeakSet]",Dr="[object ArrayBuffer]",Re="[object DataView]",ze="[object Float32Array]",Vt="[object Float64Array]",un="[object Int8Array]",Pn="[object Int16Array]",In="[object Int32Array]",si="[object Uint8Array]",li="[object Uint8ClampedArray]",fn="[object Uint16Array]",ci="[object Uint32Array]",X1=/\b__p \+= '';/g,J1=/\b(__p \+=) '' \+/g,Q1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Np=/&(?:amp|lt|gt|quot|#39);/g,Mp=/[&<>"']/g,eS=RegExp(Np.source),tS=RegExp(Mp.source),rS=/<%-([\s\S]+?)%>/g,nS=/<%([\s\S]+?)%>/g,Dp=/<%=([\s\S]+?)%>/g,iS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oS=/^\w*$/,aS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nc=/[\\^$.*+?()[\]{}|]/g,sS=RegExp(Nc.source),Mc=/^\s+/,lS=/\s/,cS=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,uS=/\{\n\/\* \[wrapped with (.+)\] \*/,fS=/,? & /,dS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pS=/[()=,{}\[\]\/\s]/,hS=/\\(\\)?/g,gS=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$p=/\w*$/,vS=/^[-+]0x[0-9a-f]+$/i,mS=/^0b[01]+$/i,bS=/^\[object .+?Constructor\]$/,yS=/^0o[0-7]+$/i,wS=/^(?:0|[1-9]\d*)$/,xS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rs=/($^)/,SS=/['\n\r\u2028\u2029\\]/g,ns="\\ud800-\\udfff",_S="\\u0300-\\u036f",ES="\\ufe20-\\ufe2f",kS="\\u20d0-\\u20ff",Lp=_S+ES+kS,zp="\\u2700-\\u27bf",jp="a-z\\xdf-\\xf6\\xf8-\\xff",OS="\\xac\\xb1\\xd7\\xf7",AS="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",TS="\\u2000-\\u206f",RS=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Fp="A-Z\\xc0-\\xd6\\xd8-\\xde",Hp="\\ufe0e\\ufe0f",Wp=OS+AS+TS+RS,Dc="['’]",CS="["+ns+"]",Bp="["+Wp+"]",is="["+Lp+"]",Vp="\\d+",PS="["+zp+"]",Up="["+jp+"]",qp="[^"+ns+Wp+Vp+zp+jp+Fp+"]",$c="\\ud83c[\\udffb-\\udfff]",IS="(?:"+is+"|"+$c+")",Gp="[^"+ns+"]",Lc="(?:\\ud83c[\\udde6-\\uddff]){2}",zc="[\\ud800-\\udbff][\\udc00-\\udfff]",Hi="["+Fp+"]",Yp="\\u200d",Kp="(?:"+Up+"|"+qp+")",NS="(?:"+Hi+"|"+qp+")",Zp="(?:"+Dc+"(?:d|ll|m|re|s|t|ve))?",Xp="(?:"+Dc+"(?:D|LL|M|RE|S|T|VE))?",Jp=IS+"?",Qp="["+Hp+"]?",MS="(?:"+Yp+"(?:"+[Gp,Lc,zc].join("|")+")"+Qp+Jp+")*",DS="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$S="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",eh=Qp+Jp+MS,LS="(?:"+[PS,Lc,zc].join("|")+")"+eh,zS="(?:"+[Gp+is+"?",is,Lc,zc,CS].join("|")+")",jS=RegExp(Dc,"g"),FS=RegExp(is,"g"),jc=RegExp($c+"(?="+$c+")|"+zS+eh,"g"),HS=RegExp([Hi+"?"+Up+"+"+Zp+"(?="+[Bp,Hi,"$"].join("|")+")",NS+"+"+Xp+"(?="+[Bp,Hi+Kp,"$"].join("|")+")",Hi+"?"+Kp+"+"+Zp,Hi+"+"+Xp,$S,DS,Vp,LS].join("|"),"g"),WS=RegExp("["+Yp+ns+Lp+Hp+"]"),BS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,VS=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],US=-1,it={};it[ze]=it[Vt]=it[un]=it[Pn]=it[In]=it[si]=it[li]=it[fn]=it[ci]=!0,it[ae]=it[se]=it[Dr]=it[ce]=it[Re]=it[he]=it[Se]=it[Z]=it[ge]=it[Et]=it[Ct]=it[zt]=it[kt]=it[qr]=it[Mr]=!1;var rt={};rt[ae]=rt[se]=rt[Dr]=rt[Re]=rt[ce]=rt[he]=rt[ze]=rt[Vt]=rt[un]=rt[Pn]=rt[In]=rt[ge]=rt[Et]=rt[Ct]=rt[zt]=rt[kt]=rt[qr]=rt[Nr]=rt[si]=rt[li]=rt[fn]=rt[ci]=!0,rt[Se]=rt[Z]=rt[Mr]=!1;var qS={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},GS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},YS={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},KS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ZS=parseFloat,XS=parseInt,th=typeof Us=="object"&&Us&&Us.Object===Object&&Us,JS=typeof self=="object"&&self&&self.Object===Object&&self,Nt=th||JS||Function("return this")(),Fc=t&&!t.nodeType&&t,ui=Fc&&!0&&e&&!e.nodeType&&e,rh=ui&&ui.exports===Fc,Hc=rh&&th.process,mr=(function(){try{var q=ui&&ui.require&&ui.require("util").types;return q||Hc&&Hc.binding&&Hc.binding("util")}catch{}})(),nh=mr&&mr.isArrayBuffer,ih=mr&&mr.isDate,oh=mr&&mr.isMap,ah=mr&&mr.isRegExp,sh=mr&&mr.isSet,lh=mr&&mr.isTypedArray;function ir(q,re,Q){switch(Q.length){case 0:return q.call(re);case 1:return q.call(re,Q[0]);case 2:return q.call(re,Q[0],Q[1]);case 3:return q.call(re,Q[0],Q[1],Q[2])}return q.apply(re,Q)}function QS(q,re,Q,be){for(var Ae=-1,je=q==null?0:q.length;++Ae<je;){var Ot=q[Ae];re(be,Ot,Q(Ot),q)}return be}function br(q,re){for(var Q=-1,be=q==null?0:q.length;++Q<be&&re(q[Q],Q,q)!==!1;);return q}function e_(q,re){for(var Q=q==null?0:q.length;Q--&&re(q[Q],Q,q)!==!1;);return q}function ch(q,re){for(var Q=-1,be=q==null?0:q.length;++Q<be;)if(!re(q[Q],Q,q))return!1;return!0}function Nn(q,re){for(var Q=-1,be=q==null?0:q.length,Ae=0,je=[];++Q<be;){var Ot=q[Q];re(Ot,Q,q)&&(je[Ae++]=Ot)}return je}function os(q,re){var Q=q==null?0:q.length;return!!Q&&Wi(q,re,0)>-1}function Wc(q,re,Q){for(var be=-1,Ae=q==null?0:q.length;++be<Ae;)if(Q(re,q[be]))return!0;return!1}function st(q,re){for(var Q=-1,be=q==null?0:q.length,Ae=Array(be);++Q<be;)Ae[Q]=re(q[Q],Q,q);return Ae}function Mn(q,re){for(var Q=-1,be=re.length,Ae=q.length;++Q<be;)q[Ae+Q]=re[Q];return q}function Bc(q,re,Q,be){var Ae=-1,je=q==null?0:q.length;for(be&&je&&(Q=q[++Ae]);++Ae<je;)Q=re(Q,q[Ae],Ae,q);return Q}function t_(q,re,Q,be){var Ae=q==null?0:q.length;for(be&&Ae&&(Q=q[--Ae]);Ae--;)Q=re(Q,q[Ae],Ae,q);return Q}function Vc(q,re){for(var Q=-1,be=q==null?0:q.length;++Q<be;)if(re(q[Q],Q,q))return!0;return!1}var r_=Uc("length");function n_(q){return q.split("")}function i_(q){return q.match(dS)||[]}function uh(q,re,Q){var be;return Q(q,function(Ae,je,Ot){if(re(Ae,je,Ot))return be=je,!1}),be}function as(q,re,Q,be){for(var Ae=q.length,je=Q+(be?1:-1);be?je--:++je<Ae;)if(re(q[je],je,q))return je;return-1}function Wi(q,re,Q){return re===re?v_(q,re,Q):as(q,fh,Q)}function o_(q,re,Q,be){for(var Ae=Q-1,je=q.length;++Ae<je;)if(be(q[Ae],re))return Ae;return-1}function fh(q){return q!==q}function dh(q,re){var Q=q==null?0:q.length;return Q?Gc(q,re)/Q:L}function Uc(q){return function(re){return re==null?r:re[q]}}function qc(q){return function(re){return q==null?r:q[re]}}function ph(q,re,Q,be,Ae){return Ae(q,function(je,Ot,et){Q=be?(be=!1,je):re(Q,je,Ot,et)}),Q}function a_(q,re){var Q=q.length;for(q.sort(re);Q--;)q[Q]=q[Q].value;return q}function Gc(q,re){for(var Q,be=-1,Ae=q.length;++be<Ae;){var je=re(q[be]);je!==r&&(Q=Q===r?je:Q+je)}return Q}function Yc(q,re){for(var Q=-1,be=Array(q);++Q<q;)be[Q]=re(Q);return be}function s_(q,re){return st(re,function(Q){return[Q,q[Q]]})}function hh(q){return q&&q.slice(0,bh(q)+1).replace(Mc,"")}function or(q){return function(re){return q(re)}}function Kc(q,re){return st(re,function(Q){return q[Q]})}function Ro(q,re){return q.has(re)}function gh(q,re){for(var Q=-1,be=q.length;++Q<be&&Wi(re,q[Q],0)>-1;);return Q}function vh(q,re){for(var Q=q.length;Q--&&Wi(re,q[Q],0)>-1;);return Q}function l_(q,re){for(var Q=q.length,be=0;Q--;)q[Q]===re&&++be;return be}var c_=qc(qS),u_=qc(GS);function f_(q){return"\\"+KS[q]}function d_(q,re){return q==null?r:q[re]}function Bi(q){return WS.test(q)}function p_(q){return BS.test(q)}function h_(q){for(var re,Q=[];!(re=q.next()).done;)Q.push(re.value);return Q}function Zc(q){var re=-1,Q=Array(q.size);return q.forEach(function(be,Ae){Q[++re]=[Ae,be]}),Q}function mh(q,re){return function(Q){return q(re(Q))}}function Dn(q,re){for(var Q=-1,be=q.length,Ae=0,je=[];++Q<be;){var Ot=q[Q];(Ot===re||Ot===p)&&(q[Q]=p,je[Ae++]=Q)}return je}function ss(q){var re=-1,Q=Array(q.size);return q.forEach(function(be){Q[++re]=be}),Q}function g_(q){var re=-1,Q=Array(q.size);return q.forEach(function(be){Q[++re]=[be,be]}),Q}function v_(q,re,Q){for(var be=Q-1,Ae=q.length;++be<Ae;)if(q[be]===re)return be;return-1}function m_(q,re,Q){for(var be=Q+1;be--;)if(q[be]===re)return be;return be}function Vi(q){return Bi(q)?y_(q):r_(q)}function $r(q){return Bi(q)?w_(q):n_(q)}function bh(q){for(var re=q.length;re--&&lS.test(q.charAt(re)););return re}var b_=qc(YS);function y_(q){for(var re=jc.lastIndex=0;jc.test(q);)++re;return re}function w_(q){return q.match(jc)||[]}function x_(q){return q.match(HS)||[]}var S_=(function q(re){re=re==null?Nt:Ui.defaults(Nt.Object(),re,Ui.pick(Nt,VS));var Q=re.Array,be=re.Date,Ae=re.Error,je=re.Function,Ot=re.Math,et=re.Object,Xc=re.RegExp,__=re.String,yr=re.TypeError,ls=Q.prototype,E_=je.prototype,qi=et.prototype,cs=re["__core-js_shared__"],us=E_.toString,Ke=qi.hasOwnProperty,k_=0,yh=(function(){var i=/[^.]+$/.exec(cs&&cs.keys&&cs.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),fs=qi.toString,O_=us.call(et),A_=Nt._,T_=Xc("^"+us.call(Ke).replace(Nc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ds=rh?re.Buffer:r,$n=re.Symbol,ps=re.Uint8Array,wh=ds?ds.allocUnsafe:r,hs=mh(et.getPrototypeOf,et),xh=et.create,Sh=qi.propertyIsEnumerable,gs=ls.splice,_h=$n?$n.isConcatSpreadable:r,Co=$n?$n.iterator:r,fi=$n?$n.toStringTag:r,vs=(function(){try{var i=vi(et,"defineProperty");return i({},"",{}),i}catch{}})(),R_=re.clearTimeout!==Nt.clearTimeout&&re.clearTimeout,C_=be&&be.now!==Nt.Date.now&&be.now,P_=re.setTimeout!==Nt.setTimeout&&re.setTimeout,ms=Ot.ceil,bs=Ot.floor,Jc=et.getOwnPropertySymbols,I_=ds?ds.isBuffer:r,Eh=re.isFinite,N_=ls.join,M_=mh(et.keys,et),At=Ot.max,jt=Ot.min,D_=be.now,$_=re.parseInt,kh=Ot.random,L_=ls.reverse,Qc=vi(re,"DataView"),Po=vi(re,"Map"),eu=vi(re,"Promise"),Gi=vi(re,"Set"),Io=vi(re,"WeakMap"),No=vi(et,"create"),ys=Io&&new Io,Yi={},z_=mi(Qc),j_=mi(Po),F_=mi(eu),H_=mi(Gi),W_=mi(Io),ws=$n?$n.prototype:r,Mo=ws?ws.valueOf:r,Oh=ws?ws.toString:r;function T(i){if(ht(i)&&!Te(i)&&!(i instanceof $e)){if(i instanceof wr)return i;if(Ke.call(i,"__wrapped__"))return Ag(i)}return new wr(i)}var Ki=(function(){function i(){}return function(s){if(!ut(s))return{};if(xh)return xh(s);i.prototype=s;var f=new i;return i.prototype=r,f}})();function xs(){}function wr(i,s){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=r}T.templateSettings={escape:rS,evaluate:nS,interpolate:Dp,variable:"",imports:{_:T}},T.prototype=xs.prototype,T.prototype.constructor=T,wr.prototype=Ki(xs.prototype),wr.prototype.constructor=wr;function $e(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function B_(){var i=new $e(this.__wrapped__);return i.__actions__=Xt(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Xt(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Xt(this.__views__),i}function V_(){if(this.__filtered__){var i=new $e(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function U_(){var i=this.__wrapped__.value(),s=this.__dir__,f=Te(i),_=s<0,O=f?i.length:0,P=nk(0,O,this.__views__),D=P.start,W=P.end,G=W-D,ie=_?W:D-1,oe=this.__iteratees__,le=oe.length,ve=0,xe=jt(G,this.__takeCount__);if(!f||!_&&O==G&&xe==G)return Zh(i,this.__actions__);var Ee=[];e:for(;G--&&ve<xe;){ie+=s;for(var Ie=-1,ke=i[ie];++Ie<le;){var De=oe[Ie],Le=De.iteratee,lr=De.type,Gt=Le(ke);if(lr==I)ke=Gt;else if(!Gt){if(lr==j)continue e;break e}}Ee[ve++]=ke}return Ee}$e.prototype=Ki(xs.prototype),$e.prototype.constructor=$e;function di(i){var s=-1,f=i==null?0:i.length;for(this.clear();++s<f;){var _=i[s];this.set(_[0],_[1])}}function q_(){this.__data__=No?No(null):{},this.size=0}function G_(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}function Y_(i){var s=this.__data__;if(No){var f=s[i];return f===u?r:f}return Ke.call(s,i)?s[i]:r}function K_(i){var s=this.__data__;return No?s[i]!==r:Ke.call(s,i)}function Z_(i,s){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=No&&s===r?u:s,this}di.prototype.clear=q_,di.prototype.delete=G_,di.prototype.get=Y_,di.prototype.has=K_,di.prototype.set=Z_;function dn(i){var s=-1,f=i==null?0:i.length;for(this.clear();++s<f;){var _=i[s];this.set(_[0],_[1])}}function X_(){this.__data__=[],this.size=0}function J_(i){var s=this.__data__,f=Ss(s,i);if(f<0)return!1;var _=s.length-1;return f==_?s.pop():gs.call(s,f,1),--this.size,!0}function Q_(i){var s=this.__data__,f=Ss(s,i);return f<0?r:s[f][1]}function eE(i){return Ss(this.__data__,i)>-1}function tE(i,s){var f=this.__data__,_=Ss(f,i);return _<0?(++this.size,f.push([i,s])):f[_][1]=s,this}dn.prototype.clear=X_,dn.prototype.delete=J_,dn.prototype.get=Q_,dn.prototype.has=eE,dn.prototype.set=tE;function pn(i){var s=-1,f=i==null?0:i.length;for(this.clear();++s<f;){var _=i[s];this.set(_[0],_[1])}}function rE(){this.size=0,this.__data__={hash:new di,map:new(Po||dn),string:new di}}function nE(i){var s=Ms(this,i).delete(i);return this.size-=s?1:0,s}function iE(i){return Ms(this,i).get(i)}function oE(i){return Ms(this,i).has(i)}function aE(i,s){var f=Ms(this,i),_=f.size;return f.set(i,s),this.size+=f.size==_?0:1,this}pn.prototype.clear=rE,pn.prototype.delete=nE,pn.prototype.get=iE,pn.prototype.has=oE,pn.prototype.set=aE;function pi(i){var s=-1,f=i==null?0:i.length;for(this.__data__=new pn;++s<f;)this.add(i[s])}function sE(i){return this.__data__.set(i,u),this}function lE(i){return this.__data__.has(i)}pi.prototype.add=pi.prototype.push=sE,pi.prototype.has=lE;function Lr(i){var s=this.__data__=new dn(i);this.size=s.size}function cE(){this.__data__=new dn,this.size=0}function uE(i){var s=this.__data__,f=s.delete(i);return this.size=s.size,f}function fE(i){return this.__data__.get(i)}function dE(i){return this.__data__.has(i)}function pE(i,s){var f=this.__data__;if(f instanceof dn){var _=f.__data__;if(!Po||_.length<o-1)return _.push([i,s]),this.size=++f.size,this;f=this.__data__=new pn(_)}return f.set(i,s),this.size=f.size,this}Lr.prototype.clear=cE,Lr.prototype.delete=uE,Lr.prototype.get=fE,Lr.prototype.has=dE,Lr.prototype.set=pE;function Ah(i,s){var f=Te(i),_=!f&&bi(i),O=!f&&!_&&Hn(i),P=!f&&!_&&!O&&Qi(i),D=f||_||O||P,W=D?Yc(i.length,__):[],G=W.length;for(var ie in i)(s||Ke.call(i,ie))&&!(D&&(ie=="length"||O&&(ie=="offset"||ie=="parent")||P&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||mn(ie,G)))&&W.push(ie);return W}function Th(i){var s=i.length;return s?i[fu(0,s-1)]:r}function hE(i,s){return Ds(Xt(i),hi(s,0,i.length))}function gE(i){return Ds(Xt(i))}function tu(i,s,f){(f!==r&&!zr(i[s],f)||f===r&&!(s in i))&&hn(i,s,f)}function Do(i,s,f){var _=i[s];(!(Ke.call(i,s)&&zr(_,f))||f===r&&!(s in i))&&hn(i,s,f)}function Ss(i,s){for(var f=i.length;f--;)if(zr(i[f][0],s))return f;return-1}function vE(i,s,f,_){return Ln(i,function(O,P,D){s(_,O,f(O),D)}),_}function Rh(i,s){return i&&Yr(s,Pt(s),i)}function mE(i,s){return i&&Yr(s,Qt(s),i)}function hn(i,s,f){s=="__proto__"&&vs?vs(i,s,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[s]=f}function ru(i,s){for(var f=-1,_=s.length,O=Q(_),P=i==null;++f<_;)O[f]=P?r:$u(i,s[f]);return O}function hi(i,s,f){return i===i&&(f!==r&&(i=i<=f?i:f),s!==r&&(i=i>=s?i:s)),i}function xr(i,s,f,_,O,P){var D,W=s&h,G=s&g,ie=s&y;if(f&&(D=O?f(i,_,O,P):f(i)),D!==r)return D;if(!ut(i))return i;var oe=Te(i);if(oe){if(D=ok(i),!W)return Xt(i,D)}else{var le=Ft(i),ve=le==Z||le==Pe;if(Hn(i))return Qh(i,W);if(le==Ct||le==ae||ve&&!O){if(D=G||ve?{}:bg(i),!W)return G?YE(i,mE(D,i)):GE(i,Rh(D,i))}else{if(!rt[le])return O?i:{};D=ak(i,le,W)}}P||(P=new Lr);var xe=P.get(i);if(xe)return xe;P.set(i,D),Gg(i)?i.forEach(function(ke){D.add(xr(ke,s,f,ke,i,P))}):Ug(i)&&i.forEach(function(ke,De){D.set(De,xr(ke,s,f,De,i,P))});var Ee=ie?G?Su:xu:G?Qt:Pt,Ie=oe?r:Ee(i);return br(Ie||i,function(ke,De){Ie&&(De=ke,ke=i[De]),Do(D,De,xr(ke,s,f,De,i,P))}),D}function bE(i){var s=Pt(i);return function(f){return Ch(f,i,s)}}function Ch(i,s,f){var _=f.length;if(i==null)return!_;for(i=et(i);_--;){var O=f[_],P=s[O],D=i[O];if(D===r&&!(O in i)||!P(D))return!1}return!0}function Ph(i,s,f){if(typeof i!="function")throw new yr(l);return Wo(function(){i.apply(r,f)},s)}function $o(i,s,f,_){var O=-1,P=os,D=!0,W=i.length,G=[],ie=s.length;if(!W)return G;f&&(s=st(s,or(f))),_?(P=Wc,D=!1):s.length>=o&&(P=Ro,D=!1,s=new pi(s));e:for(;++O<W;){var oe=i[O],le=f==null?oe:f(oe);if(oe=_||oe!==0?oe:0,D&&le===le){for(var ve=ie;ve--;)if(s[ve]===le)continue e;G.push(oe)}else P(s,le,_)||G.push(oe)}return G}var Ln=ig(Gr),Ih=ig(iu,!0);function yE(i,s){var f=!0;return Ln(i,function(_,O,P){return f=!!s(_,O,P),f}),f}function _s(i,s,f){for(var _=-1,O=i.length;++_<O;){var P=i[_],D=s(P);if(D!=null&&(W===r?D===D&&!sr(D):f(D,W)))var W=D,G=P}return G}function wE(i,s,f,_){var O=i.length;for(f=Ce(f),f<0&&(f=-f>O?0:O+f),_=_===r||_>O?O:Ce(_),_<0&&(_+=O),_=f>_?0:Kg(_);f<_;)i[f++]=s;return i}function Nh(i,s){var f=[];return Ln(i,function(_,O,P){s(_,O,P)&&f.push(_)}),f}function Mt(i,s,f,_,O){var P=-1,D=i.length;for(f||(f=lk),O||(O=[]);++P<D;){var W=i[P];s>0&&f(W)?s>1?Mt(W,s-1,f,_,O):Mn(O,W):_||(O[O.length]=W)}return O}var nu=og(),Mh=og(!0);function Gr(i,s){return i&&nu(i,s,Pt)}function iu(i,s){return i&&Mh(i,s,Pt)}function Es(i,s){return Nn(s,function(f){return bn(i[f])})}function gi(i,s){s=jn(s,i);for(var f=0,_=s.length;i!=null&&f<_;)i=i[Kr(s[f++])];return f&&f==_?i:r}function Dh(i,s,f){var _=s(i);return Te(i)?_:Mn(_,f(i))}function Ut(i){return i==null?i===r?ai:vr:fi&&fi in et(i)?rk(i):gk(i)}function ou(i,s){return i>s}function xE(i,s){return i!=null&&Ke.call(i,s)}function SE(i,s){return i!=null&&s in et(i)}function _E(i,s,f){return i>=jt(s,f)&&i<At(s,f)}function au(i,s,f){for(var _=f?Wc:os,O=i[0].length,P=i.length,D=P,W=Q(P),G=1/0,ie=[];D--;){var oe=i[D];D&&s&&(oe=st(oe,or(s))),G=jt(oe.length,G),W[D]=!f&&(s||O>=120&&oe.length>=120)?new pi(D&&oe):r}oe=i[0];var le=-1,ve=W[0];e:for(;++le<O&&ie.length<G;){var xe=oe[le],Ee=s?s(xe):xe;if(xe=f||xe!==0?xe:0,!(ve?Ro(ve,Ee):_(ie,Ee,f))){for(D=P;--D;){var Ie=W[D];if(!(Ie?Ro(Ie,Ee):_(i[D],Ee,f)))continue e}ve&&ve.push(Ee),ie.push(xe)}}return ie}function EE(i,s,f,_){return Gr(i,function(O,P,D){s(_,f(O),P,D)}),_}function Lo(i,s,f){s=jn(s,i),i=Sg(i,s);var _=i==null?i:i[Kr(_r(s))];return _==null?r:ir(_,i,f)}function $h(i){return ht(i)&&Ut(i)==ae}function kE(i){return ht(i)&&Ut(i)==Dr}function OE(i){return ht(i)&&Ut(i)==he}function zo(i,s,f,_,O){return i===s?!0:i==null||s==null||!ht(i)&&!ht(s)?i!==i&&s!==s:AE(i,s,f,_,zo,O)}function AE(i,s,f,_,O,P){var D=Te(i),W=Te(s),G=D?se:Ft(i),ie=W?se:Ft(s);G=G==ae?Ct:G,ie=ie==ae?Ct:ie;var oe=G==Ct,le=ie==Ct,ve=G==ie;if(ve&&Hn(i)){if(!Hn(s))return!1;D=!0,oe=!1}if(ve&&!oe)return P||(P=new Lr),D||Qi(i)?gg(i,s,f,_,O,P):ek(i,s,G,f,_,O,P);if(!(f&S)){var xe=oe&&Ke.call(i,"__wrapped__"),Ee=le&&Ke.call(s,"__wrapped__");if(xe||Ee){var Ie=xe?i.value():i,ke=Ee?s.value():s;return P||(P=new Lr),O(Ie,ke,f,_,P)}}return ve?(P||(P=new Lr),tk(i,s,f,_,O,P)):!1}function TE(i){return ht(i)&&Ft(i)==ge}function su(i,s,f,_){var O=f.length,P=O,D=!_;if(i==null)return!P;for(i=et(i);O--;){var W=f[O];if(D&&W[2]?W[1]!==i[W[0]]:!(W[0]in i))return!1}for(;++O<P;){W=f[O];var G=W[0],ie=i[G],oe=W[1];if(D&&W[2]){if(ie===r&&!(G in i))return!1}else{var le=new Lr;if(_)var ve=_(ie,oe,G,i,s,le);if(!(ve===r?zo(oe,ie,S|v,_,le):ve))return!1}}return!0}function Lh(i){if(!ut(i)||uk(i))return!1;var s=bn(i)?T_:bS;return s.test(mi(i))}function RE(i){return ht(i)&&Ut(i)==zt}function CE(i){return ht(i)&&Ft(i)==kt}function PE(i){return ht(i)&&Hs(i.length)&&!!it[Ut(i)]}function zh(i){return typeof i=="function"?i:i==null?er:typeof i=="object"?Te(i)?Hh(i[0],i[1]):Fh(i):av(i)}function lu(i){if(!Ho(i))return M_(i);var s=[];for(var f in et(i))Ke.call(i,f)&&f!="constructor"&&s.push(f);return s}function IE(i){if(!ut(i))return hk(i);var s=Ho(i),f=[];for(var _ in i)_=="constructor"&&(s||!Ke.call(i,_))||f.push(_);return f}function cu(i,s){return i<s}function jh(i,s){var f=-1,_=Jt(i)?Q(i.length):[];return Ln(i,function(O,P,D){_[++f]=s(O,P,D)}),_}function Fh(i){var s=Eu(i);return s.length==1&&s[0][2]?wg(s[0][0],s[0][1]):function(f){return f===i||su(f,i,s)}}function Hh(i,s){return Ou(i)&&yg(s)?wg(Kr(i),s):function(f){var _=$u(f,i);return _===r&&_===s?Lu(f,i):zo(s,_,S|v)}}function ks(i,s,f,_,O){i!==s&&nu(s,function(P,D){if(O||(O=new Lr),ut(P))NE(i,s,D,f,ks,_,O);else{var W=_?_(Tu(i,D),P,D+"",i,s,O):r;W===r&&(W=P),tu(i,D,W)}},Qt)}function NE(i,s,f,_,O,P,D){var W=Tu(i,f),G=Tu(s,f),ie=D.get(G);if(ie){tu(i,f,ie);return}var oe=P?P(W,G,f+"",i,s,D):r,le=oe===r;if(le){var ve=Te(G),xe=!ve&&Hn(G),Ee=!ve&&!xe&&Qi(G);oe=G,ve||xe||Ee?Te(W)?oe=W:vt(W)?oe=Xt(W):xe?(le=!1,oe=Qh(G,!0)):Ee?(le=!1,oe=eg(G,!0)):oe=[]:Bo(G)||bi(G)?(oe=W,bi(W)?oe=Zg(W):(!ut(W)||bn(W))&&(oe=bg(G))):le=!1}le&&(D.set(G,oe),O(oe,G,_,P,D),D.delete(G)),tu(i,f,oe)}function Wh(i,s){var f=i.length;if(f)return s+=s<0?f:0,mn(s,f)?i[s]:r}function Bh(i,s,f){s.length?s=st(s,function(P){return Te(P)?function(D){return gi(D,P.length===1?P[0]:P)}:P}):s=[er];var _=-1;s=st(s,or(_e()));var O=jh(i,function(P,D,W){var G=st(s,function(ie){return ie(P)});return{criteria:G,index:++_,value:P}});return a_(O,function(P,D){return qE(P,D,f)})}function ME(i,s){return Vh(i,s,function(f,_){return Lu(i,_)})}function Vh(i,s,f){for(var _=-1,O=s.length,P={};++_<O;){var D=s[_],W=gi(i,D);f(W,D)&&jo(P,jn(D,i),W)}return P}function DE(i){return function(s){return gi(s,i)}}function uu(i,s,f,_){var O=_?o_:Wi,P=-1,D=s.length,W=i;for(i===s&&(s=Xt(s)),f&&(W=st(i,or(f)));++P<D;)for(var G=0,ie=s[P],oe=f?f(ie):ie;(G=O(W,oe,G,_))>-1;)W!==i&&gs.call(W,G,1),gs.call(i,G,1);return i}function Uh(i,s){for(var f=i?s.length:0,_=f-1;f--;){var O=s[f];if(f==_||O!==P){var P=O;mn(O)?gs.call(i,O,1):hu(i,O)}}return i}function fu(i,s){return i+bs(kh()*(s-i+1))}function $E(i,s,f,_){for(var O=-1,P=At(ms((s-i)/(f||1)),0),D=Q(P);P--;)D[_?P:++O]=i,i+=f;return D}function du(i,s){var f="";if(!i||s<1||s>K)return f;do s%2&&(f+=i),s=bs(s/2),s&&(i+=i);while(s);return f}function Ne(i,s){return Ru(xg(i,s,er),i+"")}function LE(i){return Th(eo(i))}function zE(i,s){var f=eo(i);return Ds(f,hi(s,0,f.length))}function jo(i,s,f,_){if(!ut(i))return i;s=jn(s,i);for(var O=-1,P=s.length,D=P-1,W=i;W!=null&&++O<P;){var G=Kr(s[O]),ie=f;if(G==="__proto__"||G==="constructor"||G==="prototype")return i;if(O!=D){var oe=W[G];ie=_?_(oe,G,W):r,ie===r&&(ie=ut(oe)?oe:mn(s[O+1])?[]:{})}Do(W,G,ie),W=W[G]}return i}var qh=ys?function(i,s){return ys.set(i,s),i}:er,jE=vs?function(i,s){return vs(i,"toString",{configurable:!0,enumerable:!1,value:ju(s),writable:!0})}:er;function FE(i){return Ds(eo(i))}function Sr(i,s,f){var _=-1,O=i.length;s<0&&(s=-s>O?0:O+s),f=f>O?O:f,f<0&&(f+=O),O=s>f?0:f-s>>>0,s>>>=0;for(var P=Q(O);++_<O;)P[_]=i[_+s];return P}function HE(i,s){var f;return Ln(i,function(_,O,P){return f=s(_,O,P),!f}),!!f}function Os(i,s,f){var _=0,O=i==null?_:i.length;if(typeof s=="number"&&s===s&&O<=ee){for(;_<O;){var P=_+O>>>1,D=i[P];D!==null&&!sr(D)&&(f?D<=s:D<s)?_=P+1:O=P}return O}return pu(i,s,er,f)}function pu(i,s,f,_){var O=0,P=i==null?0:i.length;if(P===0)return 0;s=f(s);for(var D=s!==s,W=s===null,G=sr(s),ie=s===r;O<P;){var oe=bs((O+P)/2),le=f(i[oe]),ve=le!==r,xe=le===null,Ee=le===le,Ie=sr(le);if(D)var ke=_||Ee;else ie?ke=Ee&&(_||ve):W?ke=Ee&&ve&&(_||!xe):G?ke=Ee&&ve&&!xe&&(_||!Ie):xe||Ie?ke=!1:ke=_?le<=s:le<s;ke?O=oe+1:P=oe}return jt(P,te)}function Gh(i,s){for(var f=-1,_=i.length,O=0,P=[];++f<_;){var D=i[f],W=s?s(D):D;if(!f||!zr(W,G)){var G=W;P[O++]=D===0?0:D}}return P}function Yh(i){return typeof i=="number"?i:sr(i)?L:+i}function ar(i){if(typeof i=="string")return i;if(Te(i))return st(i,ar)+"";if(sr(i))return Oh?Oh.call(i):"";var s=i+"";return s=="0"&&1/i==-X?"-0":s}function zn(i,s,f){var _=-1,O=os,P=i.length,D=!0,W=[],G=W;if(f)D=!1,O=Wc;else if(P>=o){var ie=s?null:JE(i);if(ie)return ss(ie);D=!1,O=Ro,G=new pi}else G=s?[]:W;e:for(;++_<P;){var oe=i[_],le=s?s(oe):oe;if(oe=f||oe!==0?oe:0,D&&le===le){for(var ve=G.length;ve--;)if(G[ve]===le)continue e;s&&G.push(le),W.push(oe)}else O(G,le,f)||(G!==W&&G.push(le),W.push(oe))}return W}function hu(i,s){return s=jn(s,i),i=Sg(i,s),i==null||delete i[Kr(_r(s))]}function Kh(i,s,f,_){return jo(i,s,f(gi(i,s)),_)}function As(i,s,f,_){for(var O=i.length,P=_?O:-1;(_?P--:++P<O)&&s(i[P],P,i););return f?Sr(i,_?0:P,_?P+1:O):Sr(i,_?P+1:0,_?O:P)}function Zh(i,s){var f=i;return f instanceof $e&&(f=f.value()),Bc(s,function(_,O){return O.func.apply(O.thisArg,Mn([_],O.args))},f)}function gu(i,s,f){var _=i.length;if(_<2)return _?zn(i[0]):[];for(var O=-1,P=Q(_);++O<_;)for(var D=i[O],W=-1;++W<_;)W!=O&&(P[O]=$o(P[O]||D,i[W],s,f));return zn(Mt(P,1),s,f)}function Xh(i,s,f){for(var _=-1,O=i.length,P=s.length,D={};++_<O;){var W=_<P?s[_]:r;f(D,i[_],W)}return D}function vu(i){return vt(i)?i:[]}function mu(i){return typeof i=="function"?i:er}function jn(i,s){return Te(i)?i:Ou(i,s)?[i]:Og(He(i))}var WE=Ne;function Fn(i,s,f){var _=i.length;return f=f===r?_:f,!s&&f>=_?i:Sr(i,s,f)}var Jh=R_||function(i){return Nt.clearTimeout(i)};function Qh(i,s){if(s)return i.slice();var f=i.length,_=wh?wh(f):new i.constructor(f);return i.copy(_),_}function bu(i){var s=new i.constructor(i.byteLength);return new ps(s).set(new ps(i)),s}function BE(i,s){var f=s?bu(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function VE(i){var s=new i.constructor(i.source,$p.exec(i));return s.lastIndex=i.lastIndex,s}function UE(i){return Mo?et(Mo.call(i)):{}}function eg(i,s){var f=s?bu(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function tg(i,s){if(i!==s){var f=i!==r,_=i===null,O=i===i,P=sr(i),D=s!==r,W=s===null,G=s===s,ie=sr(s);if(!W&&!ie&&!P&&i>s||P&&D&&G&&!W&&!ie||_&&D&&G||!f&&G||!O)return 1;if(!_&&!P&&!ie&&i<s||ie&&f&&O&&!_&&!P||W&&f&&O||!D&&O||!G)return-1}return 0}function qE(i,s,f){for(var _=-1,O=i.criteria,P=s.criteria,D=O.length,W=f.length;++_<D;){var G=tg(O[_],P[_]);if(G){if(_>=W)return G;var ie=f[_];return G*(ie=="desc"?-1:1)}}return i.index-s.index}function rg(i,s,f,_){for(var O=-1,P=i.length,D=f.length,W=-1,G=s.length,ie=At(P-D,0),oe=Q(G+ie),le=!_;++W<G;)oe[W]=s[W];for(;++O<D;)(le||O<P)&&(oe[f[O]]=i[O]);for(;ie--;)oe[W++]=i[O++];return oe}function ng(i,s,f,_){for(var O=-1,P=i.length,D=-1,W=f.length,G=-1,ie=s.length,oe=At(P-W,0),le=Q(oe+ie),ve=!_;++O<oe;)le[O]=i[O];for(var xe=O;++G<ie;)le[xe+G]=s[G];for(;++D<W;)(ve||O<P)&&(le[xe+f[D]]=i[O++]);return le}function Xt(i,s){var f=-1,_=i.length;for(s||(s=Q(_));++f<_;)s[f]=i[f];return s}function Yr(i,s,f,_){var O=!f;f||(f={});for(var P=-1,D=s.length;++P<D;){var W=s[P],G=_?_(f[W],i[W],W,f,i):r;G===r&&(G=i[W]),O?hn(f,W,G):Do(f,W,G)}return f}function GE(i,s){return Yr(i,ku(i),s)}function YE(i,s){return Yr(i,vg(i),s)}function Ts(i,s){return function(f,_){var O=Te(f)?QS:vE,P=s?s():{};return O(f,i,_e(_,2),P)}}function Zi(i){return Ne(function(s,f){var _=-1,O=f.length,P=O>1?f[O-1]:r,D=O>2?f[2]:r;for(P=i.length>3&&typeof P=="function"?(O--,P):r,D&&qt(f[0],f[1],D)&&(P=O<3?r:P,O=1),s=et(s);++_<O;){var W=f[_];W&&i(s,W,_,P)}return s})}function ig(i,s){return function(f,_){if(f==null)return f;if(!Jt(f))return i(f,_);for(var O=f.length,P=s?O:-1,D=et(f);(s?P--:++P<O)&&_(D[P],P,D)!==!1;);return f}}function og(i){return function(s,f,_){for(var O=-1,P=et(s),D=_(s),W=D.length;W--;){var G=D[i?W:++O];if(f(P[G],G,P)===!1)break}return s}}function KE(i,s,f){var _=s&b,O=Fo(i);function P(){var D=this&&this!==Nt&&this instanceof P?O:i;return D.apply(_?f:this,arguments)}return P}function ag(i){return function(s){s=He(s);var f=Bi(s)?$r(s):r,_=f?f[0]:s.charAt(0),O=f?Fn(f,1).join(""):s.slice(1);return _[i]()+O}}function Xi(i){return function(s){return Bc(iv(nv(s).replace(jS,"")),i,"")}}function Fo(i){return function(){var s=arguments;switch(s.length){case 0:return new i;case 1:return new i(s[0]);case 2:return new i(s[0],s[1]);case 3:return new i(s[0],s[1],s[2]);case 4:return new i(s[0],s[1],s[2],s[3]);case 5:return new i(s[0],s[1],s[2],s[3],s[4]);case 6:return new i(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new i(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var f=Ki(i.prototype),_=i.apply(f,s);return ut(_)?_:f}}function ZE(i,s,f){var _=Fo(i);function O(){for(var P=arguments.length,D=Q(P),W=P,G=Ji(O);W--;)D[W]=arguments[W];var ie=P<3&&D[0]!==G&&D[P-1]!==G?[]:Dn(D,G);if(P-=ie.length,P<f)return fg(i,s,Rs,O.placeholder,r,D,ie,r,r,f-P);var oe=this&&this!==Nt&&this instanceof O?_:i;return ir(oe,this,D)}return O}function sg(i){return function(s,f,_){var O=et(s);if(!Jt(s)){var P=_e(f,3);s=Pt(s),f=function(W){return P(O[W],W,O)}}var D=i(s,f,_);return D>-1?O[P?s[D]:D]:r}}function lg(i){return vn(function(s){var f=s.length,_=f,O=wr.prototype.thru;for(i&&s.reverse();_--;){var P=s[_];if(typeof P!="function")throw new yr(l);if(O&&!D&&Ns(P)=="wrapper")var D=new wr([],!0)}for(_=D?_:f;++_<f;){P=s[_];var W=Ns(P),G=W=="wrapper"?_u(P):r;G&&Au(G[0])&&G[1]==(F|x|E|A)&&!G[4].length&&G[9]==1?D=D[Ns(G[0])].apply(D,G[3]):D=P.length==1&&Au(P)?D[W]():D.thru(P)}return function(){var ie=arguments,oe=ie[0];if(D&&ie.length==1&&Te(oe))return D.plant(oe).value();for(var le=0,ve=f?s[le].apply(this,ie):oe;++le<f;)ve=s[le].call(this,ve);return ve}})}function Rs(i,s,f,_,O,P,D,W,G,ie){var oe=s&F,le=s&b,ve=s&m,xe=s&(x|k),Ee=s&N,Ie=ve?r:Fo(i);function ke(){for(var De=arguments.length,Le=Q(De),lr=De;lr--;)Le[lr]=arguments[lr];if(xe)var Gt=Ji(ke),cr=l_(Le,Gt);if(_&&(Le=rg(Le,_,O,xe)),P&&(Le=ng(Le,P,D,xe)),De-=cr,xe&&De<ie){var mt=Dn(Le,Gt);return fg(i,s,Rs,ke.placeholder,f,Le,mt,W,G,ie-De)}var jr=le?f:this,wn=ve?jr[i]:i;return De=Le.length,W?Le=vk(Le,W):Ee&&De>1&&Le.reverse(),oe&&G<De&&(Le.length=G),this&&this!==Nt&&this instanceof ke&&(wn=Ie||Fo(wn)),wn.apply(jr,Le)}return ke}function cg(i,s){return function(f,_){return EE(f,i,s(_),{})}}function Cs(i,s){return function(f,_){var O;if(f===r&&_===r)return s;if(f!==r&&(O=f),_!==r){if(O===r)return _;typeof f=="string"||typeof _=="string"?(f=ar(f),_=ar(_)):(f=Yh(f),_=Yh(_)),O=i(f,_)}return O}}function yu(i){return vn(function(s){return s=st(s,or(_e())),Ne(function(f){var _=this;return i(s,function(O){return ir(O,_,f)})})})}function Ps(i,s){s=s===r?" ":ar(s);var f=s.length;if(f<2)return f?du(s,i):s;var _=du(s,ms(i/Vi(s)));return Bi(s)?Fn($r(_),0,i).join(""):_.slice(0,i)}function XE(i,s,f,_){var O=s&b,P=Fo(i);function D(){for(var W=-1,G=arguments.length,ie=-1,oe=_.length,le=Q(oe+G),ve=this&&this!==Nt&&this instanceof D?P:i;++ie<oe;)le[ie]=_[ie];for(;G--;)le[ie++]=arguments[++W];return ir(ve,O?f:this,le)}return D}function ug(i){return function(s,f,_){return _&&typeof _!="number"&&qt(s,f,_)&&(f=_=r),s=yn(s),f===r?(f=s,s=0):f=yn(f),_=_===r?s<f?1:-1:yn(_),$E(s,f,_,i)}}function Is(i){return function(s,f){return typeof s=="string"&&typeof f=="string"||(s=Er(s),f=Er(f)),i(s,f)}}function fg(i,s,f,_,O,P,D,W,G,ie){var oe=s&x,le=oe?D:r,ve=oe?r:D,xe=oe?P:r,Ee=oe?r:P;s|=oe?E:R,s&=~(oe?R:E),s&w||(s&=-4);var Ie=[i,s,O,xe,le,Ee,ve,W,G,ie],ke=f.apply(r,Ie);return Au(i)&&_g(ke,Ie),ke.placeholder=_,Eg(ke,i,s)}function wu(i){var s=Ot[i];return function(f,_){if(f=Er(f),_=_==null?0:jt(Ce(_),292),_&&Eh(f)){var O=(He(f)+"e").split("e"),P=s(O[0]+"e"+(+O[1]+_));return O=(He(P)+"e").split("e"),+(O[0]+"e"+(+O[1]-_))}return s(f)}}var JE=Gi&&1/ss(new Gi([,-0]))[1]==X?function(i){return new Gi(i)}:Wu;function dg(i){return function(s){var f=Ft(s);return f==ge?Zc(s):f==kt?g_(s):s_(s,i(s))}}function gn(i,s,f,_,O,P,D,W){var G=s&m;if(!G&&typeof i!="function")throw new yr(l);var ie=_?_.length:0;if(ie||(s&=-97,_=O=r),D=D===r?D:At(Ce(D),0),W=W===r?W:Ce(W),ie-=O?O.length:0,s&R){var oe=_,le=O;_=O=r}var ve=G?r:_u(i),xe=[i,s,f,_,O,oe,le,P,D,W];if(ve&&pk(xe,ve),i=xe[0],s=xe[1],f=xe[2],_=xe[3],O=xe[4],W=xe[9]=xe[9]===r?G?0:i.length:At(xe[9]-ie,0),!W&&s&(x|k)&&(s&=-25),!s||s==b)var Ee=KE(i,s,f);else s==x||s==k?Ee=ZE(i,s,W):(s==E||s==(b|E))&&!O.length?Ee=XE(i,s,f,_):Ee=Rs.apply(r,xe);var Ie=ve?qh:_g;return Eg(Ie(Ee,xe),i,s)}function pg(i,s,f,_){return i===r||zr(i,qi[f])&&!Ke.call(_,f)?s:i}function hg(i,s,f,_,O,P){return ut(i)&&ut(s)&&(P.set(s,i),ks(i,s,r,hg,P),P.delete(s)),i}function QE(i){return Bo(i)?r:i}function gg(i,s,f,_,O,P){var D=f&S,W=i.length,G=s.length;if(W!=G&&!(D&&G>W))return!1;var ie=P.get(i),oe=P.get(s);if(ie&&oe)return ie==s&&oe==i;var le=-1,ve=!0,xe=f&v?new pi:r;for(P.set(i,s),P.set(s,i);++le<W;){var Ee=i[le],Ie=s[le];if(_)var ke=D?_(Ie,Ee,le,s,i,P):_(Ee,Ie,le,i,s,P);if(ke!==r){if(ke)continue;ve=!1;break}if(xe){if(!Vc(s,function(De,Le){if(!Ro(xe,Le)&&(Ee===De||O(Ee,De,f,_,P)))return xe.push(Le)})){ve=!1;break}}else if(!(Ee===Ie||O(Ee,Ie,f,_,P))){ve=!1;break}}return P.delete(i),P.delete(s),ve}function ek(i,s,f,_,O,P,D){switch(f){case Re:if(i.byteLength!=s.byteLength||i.byteOffset!=s.byteOffset)return!1;i=i.buffer,s=s.buffer;case Dr:return!(i.byteLength!=s.byteLength||!P(new ps(i),new ps(s)));case ce:case he:case Et:return zr(+i,+s);case Se:return i.name==s.name&&i.message==s.message;case zt:case qr:return i==s+"";case ge:var W=Zc;case kt:var G=_&S;if(W||(W=ss),i.size!=s.size&&!G)return!1;var ie=D.get(i);if(ie)return ie==s;_|=v,D.set(i,s);var oe=gg(W(i),W(s),_,O,P,D);return D.delete(i),oe;case Nr:if(Mo)return Mo.call(i)==Mo.call(s)}return!1}function tk(i,s,f,_,O,P){var D=f&S,W=xu(i),G=W.length,ie=xu(s),oe=ie.length;if(G!=oe&&!D)return!1;for(var le=G;le--;){var ve=W[le];if(!(D?ve in s:Ke.call(s,ve)))return!1}var xe=P.get(i),Ee=P.get(s);if(xe&&Ee)return xe==s&&Ee==i;var Ie=!0;P.set(i,s),P.set(s,i);for(var ke=D;++le<G;){ve=W[le];var De=i[ve],Le=s[ve];if(_)var lr=D?_(Le,De,ve,s,i,P):_(De,Le,ve,i,s,P);if(!(lr===r?De===Le||O(De,Le,f,_,P):lr)){Ie=!1;break}ke||(ke=ve=="constructor")}if(Ie&&!ke){var Gt=i.constructor,cr=s.constructor;Gt!=cr&&"constructor"in i&&"constructor"in s&&!(typeof Gt=="function"&&Gt instanceof Gt&&typeof cr=="function"&&cr instanceof cr)&&(Ie=!1)}return P.delete(i),P.delete(s),Ie}function vn(i){return Ru(xg(i,r,Cg),i+"")}function xu(i){return Dh(i,Pt,ku)}function Su(i){return Dh(i,Qt,vg)}var _u=ys?function(i){return ys.get(i)}:Wu;function Ns(i){for(var s=i.name+"",f=Yi[s],_=Ke.call(Yi,s)?f.length:0;_--;){var O=f[_],P=O.func;if(P==null||P==i)return O.name}return s}function Ji(i){var s=Ke.call(T,"placeholder")?T:i;return s.placeholder}function _e(){var i=T.iteratee||Fu;return i=i===Fu?zh:i,arguments.length?i(arguments[0],arguments[1]):i}function Ms(i,s){var f=i.__data__;return ck(s)?f[typeof s=="string"?"string":"hash"]:f.map}function Eu(i){for(var s=Pt(i),f=s.length;f--;){var _=s[f],O=i[_];s[f]=[_,O,yg(O)]}return s}function vi(i,s){var f=d_(i,s);return Lh(f)?f:r}function rk(i){var s=Ke.call(i,fi),f=i[fi];try{i[fi]=r;var _=!0}catch{}var O=fs.call(i);return _&&(s?i[fi]=f:delete i[fi]),O}var ku=Jc?function(i){return i==null?[]:(i=et(i),Nn(Jc(i),function(s){return Sh.call(i,s)}))}:Bu,vg=Jc?function(i){for(var s=[];i;)Mn(s,ku(i)),i=hs(i);return s}:Bu,Ft=Ut;(Qc&&Ft(new Qc(new ArrayBuffer(1)))!=Re||Po&&Ft(new Po)!=ge||eu&&Ft(eu.resolve())!=zi||Gi&&Ft(new Gi)!=kt||Io&&Ft(new Io)!=Mr)&&(Ft=function(i){var s=Ut(i),f=s==Ct?i.constructor:r,_=f?mi(f):"";if(_)switch(_){case z_:return Re;case j_:return ge;case F_:return zi;case H_:return kt;case W_:return Mr}return s});function nk(i,s,f){for(var _=-1,O=f.length;++_<O;){var P=f[_],D=P.size;switch(P.type){case"drop":i+=D;break;case"dropRight":s-=D;break;case"take":s=jt(s,i+D);break;case"takeRight":i=At(i,s-D);break}}return{start:i,end:s}}function ik(i){var s=i.match(uS);return s?s[1].split(fS):[]}function mg(i,s,f){s=jn(s,i);for(var _=-1,O=s.length,P=!1;++_<O;){var D=Kr(s[_]);if(!(P=i!=null&&f(i,D)))break;i=i[D]}return P||++_!=O?P:(O=i==null?0:i.length,!!O&&Hs(O)&&mn(D,O)&&(Te(i)||bi(i)))}function ok(i){var s=i.length,f=new i.constructor(s);return s&&typeof i[0]=="string"&&Ke.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function bg(i){return typeof i.constructor=="function"&&!Ho(i)?Ki(hs(i)):{}}function ak(i,s,f){var _=i.constructor;switch(s){case Dr:return bu(i);case ce:case he:return new _(+i);case Re:return BE(i,f);case ze:case Vt:case un:case Pn:case In:case si:case li:case fn:case ci:return eg(i,f);case ge:return new _;case Et:case qr:return new _(i);case zt:return VE(i);case kt:return new _;case Nr:return UE(i)}}function sk(i,s){var f=s.length;if(!f)return i;var _=f-1;return s[_]=(f>1?"& ":"")+s[_],s=s.join(f>2?", ":" "),i.replace(cS,`{
181
- /* [wrapped with `+s+`] */
182
- `)}function lk(i){return Te(i)||bi(i)||!!(_h&&i&&i[_h])}function mn(i,s){var f=typeof i;return s=s??K,!!s&&(f=="number"||f!="symbol"&&wS.test(i))&&i>-1&&i%1==0&&i<s}function qt(i,s,f){if(!ut(f))return!1;var _=typeof s;return(_=="number"?Jt(f)&&mn(s,f.length):_=="string"&&s in f)?zr(f[s],i):!1}function Ou(i,s){if(Te(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||sr(i)?!0:oS.test(i)||!iS.test(i)||s!=null&&i in et(s)}function ck(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}function Au(i){var s=Ns(i),f=T[s];if(typeof f!="function"||!(s in $e.prototype))return!1;if(i===f)return!0;var _=_u(f);return!!_&&i===_[0]}function uk(i){return!!yh&&yh in i}var fk=cs?bn:Vu;function Ho(i){var s=i&&i.constructor,f=typeof s=="function"&&s.prototype||qi;return i===f}function yg(i){return i===i&&!ut(i)}function wg(i,s){return function(f){return f==null?!1:f[i]===s&&(s!==r||i in et(f))}}function dk(i){var s=js(i,function(_){return f.size===d&&f.clear(),_}),f=s.cache;return s}function pk(i,s){var f=i[1],_=s[1],O=f|_,P=O<(b|m|F),D=_==F&&f==x||_==F&&f==A&&i[7].length<=s[8]||_==(F|A)&&s[7].length<=s[8]&&f==x;if(!(P||D))return i;_&b&&(i[2]=s[2],O|=f&b?0:w);var W=s[3];if(W){var G=i[3];i[3]=G?rg(G,W,s[4]):W,i[4]=G?Dn(i[3],p):s[4]}return W=s[5],W&&(G=i[5],i[5]=G?ng(G,W,s[6]):W,i[6]=G?Dn(i[5],p):s[6]),W=s[7],W&&(i[7]=W),_&F&&(i[8]=i[8]==null?s[8]:jt(i[8],s[8])),i[9]==null&&(i[9]=s[9]),i[0]=s[0],i[1]=O,i}function hk(i){var s=[];if(i!=null)for(var f in et(i))s.push(f);return s}function gk(i){return fs.call(i)}function xg(i,s,f){return s=At(s===r?i.length-1:s,0),function(){for(var _=arguments,O=-1,P=At(_.length-s,0),D=Q(P);++O<P;)D[O]=_[s+O];O=-1;for(var W=Q(s+1);++O<s;)W[O]=_[O];return W[s]=f(D),ir(i,this,W)}}function Sg(i,s){return s.length<2?i:gi(i,Sr(s,0,-1))}function vk(i,s){for(var f=i.length,_=jt(s.length,f),O=Xt(i);_--;){var P=s[_];i[_]=mn(P,f)?O[P]:r}return i}function Tu(i,s){if(!(s==="constructor"&&typeof i[s]=="function")&&s!="__proto__")return i[s]}var _g=kg(qh),Wo=P_||function(i,s){return Nt.setTimeout(i,s)},Ru=kg(jE);function Eg(i,s,f){var _=s+"";return Ru(i,sk(_,mk(ik(_),f)))}function kg(i){var s=0,f=0;return function(){var _=D_(),O=B-(_-f);if(f=_,O>0){if(++s>=M)return arguments[0]}else s=0;return i.apply(r,arguments)}}function Ds(i,s){var f=-1,_=i.length,O=_-1;for(s=s===r?_:s;++f<s;){var P=fu(f,O),D=i[P];i[P]=i[f],i[f]=D}return i.length=s,i}var Og=dk(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(aS,function(f,_,O,P){s.push(O?P.replace(hS,"$1"):_||f)}),s});function Kr(i){if(typeof i=="string"||sr(i))return i;var s=i+"";return s=="0"&&1/i==-X?"-0":s}function mi(i){if(i!=null){try{return us.call(i)}catch{}try{return i+""}catch{}}return""}function mk(i,s){return br(J,function(f){var _="_."+f[0];s&f[1]&&!os(i,_)&&i.push(_)}),i.sort()}function Ag(i){if(i instanceof $e)return i.clone();var s=new wr(i.__wrapped__,i.__chain__);return s.__actions__=Xt(i.__actions__),s.__index__=i.__index__,s.__values__=i.__values__,s}function bk(i,s,f){(f?qt(i,s,f):s===r)?s=1:s=At(Ce(s),0);var _=i==null?0:i.length;if(!_||s<1)return[];for(var O=0,P=0,D=Q(ms(_/s));O<_;)D[P++]=Sr(i,O,O+=s);return D}function yk(i){for(var s=-1,f=i==null?0:i.length,_=0,O=[];++s<f;){var P=i[s];P&&(O[_++]=P)}return O}function wk(){var i=arguments.length;if(!i)return[];for(var s=Q(i-1),f=arguments[0],_=i;_--;)s[_-1]=arguments[_];return Mn(Te(f)?Xt(f):[f],Mt(s,1))}var xk=Ne(function(i,s){return vt(i)?$o(i,Mt(s,1,vt,!0)):[]}),Sk=Ne(function(i,s){var f=_r(s);return vt(f)&&(f=r),vt(i)?$o(i,Mt(s,1,vt,!0),_e(f,2)):[]}),_k=Ne(function(i,s){var f=_r(s);return vt(f)&&(f=r),vt(i)?$o(i,Mt(s,1,vt,!0),r,f):[]});function Ek(i,s,f){var _=i==null?0:i.length;return _?(s=f||s===r?1:Ce(s),Sr(i,s<0?0:s,_)):[]}function kk(i,s,f){var _=i==null?0:i.length;return _?(s=f||s===r?1:Ce(s),s=_-s,Sr(i,0,s<0?0:s)):[]}function Ok(i,s){return i&&i.length?As(i,_e(s,3),!0,!0):[]}function Ak(i,s){return i&&i.length?As(i,_e(s,3),!0):[]}function Tk(i,s,f,_){var O=i==null?0:i.length;return O?(f&&typeof f!="number"&&qt(i,s,f)&&(f=0,_=O),wE(i,s,f,_)):[]}function Tg(i,s,f){var _=i==null?0:i.length;if(!_)return-1;var O=f==null?0:Ce(f);return O<0&&(O=At(_+O,0)),as(i,_e(s,3),O)}function Rg(i,s,f){var _=i==null?0:i.length;if(!_)return-1;var O=_-1;return f!==r&&(O=Ce(f),O=f<0?At(_+O,0):jt(O,_-1)),as(i,_e(s,3),O,!0)}function Cg(i){var s=i==null?0:i.length;return s?Mt(i,1):[]}function Rk(i){var s=i==null?0:i.length;return s?Mt(i,X):[]}function Ck(i,s){var f=i==null?0:i.length;return f?(s=s===r?1:Ce(s),Mt(i,s)):[]}function Pk(i){for(var s=-1,f=i==null?0:i.length,_={};++s<f;){var O=i[s];_[O[0]]=O[1]}return _}function Pg(i){return i&&i.length?i[0]:r}function Ik(i,s,f){var _=i==null?0:i.length;if(!_)return-1;var O=f==null?0:Ce(f);return O<0&&(O=At(_+O,0)),Wi(i,s,O)}function Nk(i){var s=i==null?0:i.length;return s?Sr(i,0,-1):[]}var Mk=Ne(function(i){var s=st(i,vu);return s.length&&s[0]===i[0]?au(s):[]}),Dk=Ne(function(i){var s=_r(i),f=st(i,vu);return s===_r(f)?s=r:f.pop(),f.length&&f[0]===i[0]?au(f,_e(s,2)):[]}),$k=Ne(function(i){var s=_r(i),f=st(i,vu);return s=typeof s=="function"?s:r,s&&f.pop(),f.length&&f[0]===i[0]?au(f,r,s):[]});function Lk(i,s){return i==null?"":N_.call(i,s)}function _r(i){var s=i==null?0:i.length;return s?i[s-1]:r}function zk(i,s,f){var _=i==null?0:i.length;if(!_)return-1;var O=_;return f!==r&&(O=Ce(f),O=O<0?At(_+O,0):jt(O,_-1)),s===s?m_(i,s,O):as(i,fh,O,!0)}function jk(i,s){return i&&i.length?Wh(i,Ce(s)):r}var Fk=Ne(Ig);function Ig(i,s){return i&&i.length&&s&&s.length?uu(i,s):i}function Hk(i,s,f){return i&&i.length&&s&&s.length?uu(i,s,_e(f,2)):i}function Wk(i,s,f){return i&&i.length&&s&&s.length?uu(i,s,r,f):i}var Bk=vn(function(i,s){var f=i==null?0:i.length,_=ru(i,s);return Uh(i,st(s,function(O){return mn(O,f)?+O:O}).sort(tg)),_});function Vk(i,s){var f=[];if(!(i&&i.length))return f;var _=-1,O=[],P=i.length;for(s=_e(s,3);++_<P;){var D=i[_];s(D,_,i)&&(f.push(D),O.push(_))}return Uh(i,O),f}function Cu(i){return i==null?i:L_.call(i)}function Uk(i,s,f){var _=i==null?0:i.length;return _?(f&&typeof f!="number"&&qt(i,s,f)?(s=0,f=_):(s=s==null?0:Ce(s),f=f===r?_:Ce(f)),Sr(i,s,f)):[]}function qk(i,s){return Os(i,s)}function Gk(i,s,f){return pu(i,s,_e(f,2))}function Yk(i,s){var f=i==null?0:i.length;if(f){var _=Os(i,s);if(_<f&&zr(i[_],s))return _}return-1}function Kk(i,s){return Os(i,s,!0)}function Zk(i,s,f){return pu(i,s,_e(f,2),!0)}function Xk(i,s){var f=i==null?0:i.length;if(f){var _=Os(i,s,!0)-1;if(zr(i[_],s))return _}return-1}function Jk(i){return i&&i.length?Gh(i):[]}function Qk(i,s){return i&&i.length?Gh(i,_e(s,2)):[]}function eO(i){var s=i==null?0:i.length;return s?Sr(i,1,s):[]}function tO(i,s,f){return i&&i.length?(s=f||s===r?1:Ce(s),Sr(i,0,s<0?0:s)):[]}function rO(i,s,f){var _=i==null?0:i.length;return _?(s=f||s===r?1:Ce(s),s=_-s,Sr(i,s<0?0:s,_)):[]}function nO(i,s){return i&&i.length?As(i,_e(s,3),!1,!0):[]}function iO(i,s){return i&&i.length?As(i,_e(s,3)):[]}var oO=Ne(function(i){return zn(Mt(i,1,vt,!0))}),aO=Ne(function(i){var s=_r(i);return vt(s)&&(s=r),zn(Mt(i,1,vt,!0),_e(s,2))}),sO=Ne(function(i){var s=_r(i);return s=typeof s=="function"?s:r,zn(Mt(i,1,vt,!0),r,s)});function lO(i){return i&&i.length?zn(i):[]}function cO(i,s){return i&&i.length?zn(i,_e(s,2)):[]}function uO(i,s){return s=typeof s=="function"?s:r,i&&i.length?zn(i,r,s):[]}function Pu(i){if(!(i&&i.length))return[];var s=0;return i=Nn(i,function(f){if(vt(f))return s=At(f.length,s),!0}),Yc(s,function(f){return st(i,Uc(f))})}function Ng(i,s){if(!(i&&i.length))return[];var f=Pu(i);return s==null?f:st(f,function(_){return ir(s,r,_)})}var fO=Ne(function(i,s){return vt(i)?$o(i,s):[]}),dO=Ne(function(i){return gu(Nn(i,vt))}),pO=Ne(function(i){var s=_r(i);return vt(s)&&(s=r),gu(Nn(i,vt),_e(s,2))}),hO=Ne(function(i){var s=_r(i);return s=typeof s=="function"?s:r,gu(Nn(i,vt),r,s)}),gO=Ne(Pu);function vO(i,s){return Xh(i||[],s||[],Do)}function mO(i,s){return Xh(i||[],s||[],jo)}var bO=Ne(function(i){var s=i.length,f=s>1?i[s-1]:r;return f=typeof f=="function"?(i.pop(),f):r,Ng(i,f)});function Mg(i){var s=T(i);return s.__chain__=!0,s}function yO(i,s){return s(i),i}function $s(i,s){return s(i)}var wO=vn(function(i){var s=i.length,f=s?i[0]:0,_=this.__wrapped__,O=function(P){return ru(P,i)};return s>1||this.__actions__.length||!(_ instanceof $e)||!mn(f)?this.thru(O):(_=_.slice(f,+f+(s?1:0)),_.__actions__.push({func:$s,args:[O],thisArg:r}),new wr(_,this.__chain__).thru(function(P){return s&&!P.length&&P.push(r),P}))});function xO(){return Mg(this)}function SO(){return new wr(this.value(),this.__chain__)}function _O(){this.__values__===r&&(this.__values__=Yg(this.value()));var i=this.__index__>=this.__values__.length,s=i?r:this.__values__[this.__index__++];return{done:i,value:s}}function EO(){return this}function kO(i){for(var s,f=this;f instanceof xs;){var _=Ag(f);_.__index__=0,_.__values__=r,s?O.__wrapped__=_:s=_;var O=_;f=f.__wrapped__}return O.__wrapped__=i,s}function OO(){var i=this.__wrapped__;if(i instanceof $e){var s=i;return this.__actions__.length&&(s=new $e(this)),s=s.reverse(),s.__actions__.push({func:$s,args:[Cu],thisArg:r}),new wr(s,this.__chain__)}return this.thru(Cu)}function AO(){return Zh(this.__wrapped__,this.__actions__)}var TO=Ts(function(i,s,f){Ke.call(i,f)?++i[f]:hn(i,f,1)});function RO(i,s,f){var _=Te(i)?ch:yE;return f&&qt(i,s,f)&&(s=r),_(i,_e(s,3))}function CO(i,s){var f=Te(i)?Nn:Nh;return f(i,_e(s,3))}var PO=sg(Tg),IO=sg(Rg);function NO(i,s){return Mt(Ls(i,s),1)}function MO(i,s){return Mt(Ls(i,s),X)}function DO(i,s,f){return f=f===r?1:Ce(f),Mt(Ls(i,s),f)}function Dg(i,s){var f=Te(i)?br:Ln;return f(i,_e(s,3))}function $g(i,s){var f=Te(i)?e_:Ih;return f(i,_e(s,3))}var $O=Ts(function(i,s,f){Ke.call(i,f)?i[f].push(s):hn(i,f,[s])});function LO(i,s,f,_){i=Jt(i)?i:eo(i),f=f&&!_?Ce(f):0;var O=i.length;return f<0&&(f=At(O+f,0)),Ws(i)?f<=O&&i.indexOf(s,f)>-1:!!O&&Wi(i,s,f)>-1}var zO=Ne(function(i,s,f){var _=-1,O=typeof s=="function",P=Jt(i)?Q(i.length):[];return Ln(i,function(D){P[++_]=O?ir(s,D,f):Lo(D,s,f)}),P}),jO=Ts(function(i,s,f){hn(i,f,s)});function Ls(i,s){var f=Te(i)?st:jh;return f(i,_e(s,3))}function FO(i,s,f,_){return i==null?[]:(Te(s)||(s=s==null?[]:[s]),f=_?r:f,Te(f)||(f=f==null?[]:[f]),Bh(i,s,f))}var HO=Ts(function(i,s,f){i[f?0:1].push(s)},function(){return[[],[]]});function WO(i,s,f){var _=Te(i)?Bc:ph,O=arguments.length<3;return _(i,_e(s,4),f,O,Ln)}function BO(i,s,f){var _=Te(i)?t_:ph,O=arguments.length<3;return _(i,_e(s,4),f,O,Ih)}function VO(i,s){var f=Te(i)?Nn:Nh;return f(i,Fs(_e(s,3)))}function UO(i){var s=Te(i)?Th:LE;return s(i)}function qO(i,s,f){(f?qt(i,s,f):s===r)?s=1:s=Ce(s);var _=Te(i)?hE:zE;return _(i,s)}function GO(i){var s=Te(i)?gE:FE;return s(i)}function YO(i){if(i==null)return 0;if(Jt(i))return Ws(i)?Vi(i):i.length;var s=Ft(i);return s==ge||s==kt?i.size:lu(i).length}function KO(i,s,f){var _=Te(i)?Vc:HE;return f&&qt(i,s,f)&&(s=r),_(i,_e(s,3))}var ZO=Ne(function(i,s){if(i==null)return[];var f=s.length;return f>1&&qt(i,s[0],s[1])?s=[]:f>2&&qt(s[0],s[1],s[2])&&(s=[s[0]]),Bh(i,Mt(s,1),[])}),zs=C_||function(){return Nt.Date.now()};function XO(i,s){if(typeof s!="function")throw new yr(l);return i=Ce(i),function(){if(--i<1)return s.apply(this,arguments)}}function Lg(i,s,f){return s=f?r:s,s=i&&s==null?i.length:s,gn(i,F,r,r,r,r,s)}function zg(i,s){var f;if(typeof s!="function")throw new yr(l);return i=Ce(i),function(){return--i>0&&(f=s.apply(this,arguments)),i<=1&&(s=r),f}}var Iu=Ne(function(i,s,f){var _=b;if(f.length){var O=Dn(f,Ji(Iu));_|=E}return gn(i,_,s,f,O)}),jg=Ne(function(i,s,f){var _=b|m;if(f.length){var O=Dn(f,Ji(jg));_|=E}return gn(s,_,i,f,O)});function Fg(i,s,f){s=f?r:s;var _=gn(i,x,r,r,r,r,r,s);return _.placeholder=Fg.placeholder,_}function Hg(i,s,f){s=f?r:s;var _=gn(i,k,r,r,r,r,r,s);return _.placeholder=Hg.placeholder,_}function Wg(i,s,f){var _,O,P,D,W,G,ie=0,oe=!1,le=!1,ve=!0;if(typeof i!="function")throw new yr(l);s=Er(s)||0,ut(f)&&(oe=!!f.leading,le="maxWait"in f,P=le?At(Er(f.maxWait)||0,s):P,ve="trailing"in f?!!f.trailing:ve);function xe(mt){var jr=_,wn=O;return _=O=r,ie=mt,D=i.apply(wn,jr),D}function Ee(mt){return ie=mt,W=Wo(De,s),oe?xe(mt):D}function Ie(mt){var jr=mt-G,wn=mt-ie,sv=s-jr;return le?jt(sv,P-wn):sv}function ke(mt){var jr=mt-G,wn=mt-ie;return G===r||jr>=s||jr<0||le&&wn>=P}function De(){var mt=zs();if(ke(mt))return Le(mt);W=Wo(De,Ie(mt))}function Le(mt){return W=r,ve&&_?xe(mt):(_=O=r,D)}function lr(){W!==r&&Jh(W),ie=0,_=G=O=W=r}function Gt(){return W===r?D:Le(zs())}function cr(){var mt=zs(),jr=ke(mt);if(_=arguments,O=this,G=mt,jr){if(W===r)return Ee(G);if(le)return Jh(W),W=Wo(De,s),xe(G)}return W===r&&(W=Wo(De,s)),D}return cr.cancel=lr,cr.flush=Gt,cr}var JO=Ne(function(i,s){return Ph(i,1,s)}),QO=Ne(function(i,s,f){return Ph(i,Er(s)||0,f)});function eA(i){return gn(i,N)}function js(i,s){if(typeof i!="function"||s!=null&&typeof s!="function")throw new yr(l);var f=function(){var _=arguments,O=s?s.apply(this,_):_[0],P=f.cache;if(P.has(O))return P.get(O);var D=i.apply(this,_);return f.cache=P.set(O,D)||P,D};return f.cache=new(js.Cache||pn),f}js.Cache=pn;function Fs(i){if(typeof i!="function")throw new yr(l);return function(){var s=arguments;switch(s.length){case 0:return!i.call(this);case 1:return!i.call(this,s[0]);case 2:return!i.call(this,s[0],s[1]);case 3:return!i.call(this,s[0],s[1],s[2])}return!i.apply(this,s)}}function tA(i){return zg(2,i)}var rA=WE(function(i,s){s=s.length==1&&Te(s[0])?st(s[0],or(_e())):st(Mt(s,1),or(_e()));var f=s.length;return Ne(function(_){for(var O=-1,P=jt(_.length,f);++O<P;)_[O]=s[O].call(this,_[O]);return ir(i,this,_)})}),Nu=Ne(function(i,s){var f=Dn(s,Ji(Nu));return gn(i,E,r,s,f)}),Bg=Ne(function(i,s){var f=Dn(s,Ji(Bg));return gn(i,R,r,s,f)}),nA=vn(function(i,s){return gn(i,A,r,r,r,s)});function iA(i,s){if(typeof i!="function")throw new yr(l);return s=s===r?s:Ce(s),Ne(i,s)}function oA(i,s){if(typeof i!="function")throw new yr(l);return s=s==null?0:At(Ce(s),0),Ne(function(f){var _=f[s],O=Fn(f,0,s);return _&&Mn(O,_),ir(i,this,O)})}function aA(i,s,f){var _=!0,O=!0;if(typeof i!="function")throw new yr(l);return ut(f)&&(_="leading"in f?!!f.leading:_,O="trailing"in f?!!f.trailing:O),Wg(i,s,{leading:_,maxWait:s,trailing:O})}function sA(i){return Lg(i,1)}function lA(i,s){return Nu(mu(s),i)}function cA(){if(!arguments.length)return[];var i=arguments[0];return Te(i)?i:[i]}function uA(i){return xr(i,y)}function fA(i,s){return s=typeof s=="function"?s:r,xr(i,y,s)}function dA(i){return xr(i,h|y)}function pA(i,s){return s=typeof s=="function"?s:r,xr(i,h|y,s)}function hA(i,s){return s==null||Ch(i,s,Pt(s))}function zr(i,s){return i===s||i!==i&&s!==s}var gA=Is(ou),vA=Is(function(i,s){return i>=s}),bi=$h((function(){return arguments})())?$h:function(i){return ht(i)&&Ke.call(i,"callee")&&!Sh.call(i,"callee")},Te=Q.isArray,mA=nh?or(nh):kE;function Jt(i){return i!=null&&Hs(i.length)&&!bn(i)}function vt(i){return ht(i)&&Jt(i)}function bA(i){return i===!0||i===!1||ht(i)&&Ut(i)==ce}var Hn=I_||Vu,yA=ih?or(ih):OE;function wA(i){return ht(i)&&i.nodeType===1&&!Bo(i)}function xA(i){if(i==null)return!0;if(Jt(i)&&(Te(i)||typeof i=="string"||typeof i.splice=="function"||Hn(i)||Qi(i)||bi(i)))return!i.length;var s=Ft(i);if(s==ge||s==kt)return!i.size;if(Ho(i))return!lu(i).length;for(var f in i)if(Ke.call(i,f))return!1;return!0}function SA(i,s){return zo(i,s)}function _A(i,s,f){f=typeof f=="function"?f:r;var _=f?f(i,s):r;return _===r?zo(i,s,r,f):!!_}function Mu(i){if(!ht(i))return!1;var s=Ut(i);return s==Se||s==pe||typeof i.message=="string"&&typeof i.name=="string"&&!Bo(i)}function EA(i){return typeof i=="number"&&Eh(i)}function bn(i){if(!ut(i))return!1;var s=Ut(i);return s==Z||s==Pe||s==ne||s==ji}function Vg(i){return typeof i=="number"&&i==Ce(i)}function Hs(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=K}function ut(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}function ht(i){return i!=null&&typeof i=="object"}var Ug=oh?or(oh):TE;function kA(i,s){return i===s||su(i,s,Eu(s))}function OA(i,s,f){return f=typeof f=="function"?f:r,su(i,s,Eu(s),f)}function AA(i){return qg(i)&&i!=+i}function TA(i){if(fk(i))throw new Ae(a);return Lh(i)}function RA(i){return i===null}function CA(i){return i==null}function qg(i){return typeof i=="number"||ht(i)&&Ut(i)==Et}function Bo(i){if(!ht(i)||Ut(i)!=Ct)return!1;var s=hs(i);if(s===null)return!0;var f=Ke.call(s,"constructor")&&s.constructor;return typeof f=="function"&&f instanceof f&&us.call(f)==O_}var Du=ah?or(ah):RE;function PA(i){return Vg(i)&&i>=-K&&i<=K}var Gg=sh?or(sh):CE;function Ws(i){return typeof i=="string"||!Te(i)&&ht(i)&&Ut(i)==qr}function sr(i){return typeof i=="symbol"||ht(i)&&Ut(i)==Nr}var Qi=lh?or(lh):PE;function IA(i){return i===r}function NA(i){return ht(i)&&Ft(i)==Mr}function MA(i){return ht(i)&&Ut(i)==Fi}var DA=Is(cu),$A=Is(function(i,s){return i<=s});function Yg(i){if(!i)return[];if(Jt(i))return Ws(i)?$r(i):Xt(i);if(Co&&i[Co])return h_(i[Co]());var s=Ft(i),f=s==ge?Zc:s==kt?ss:eo;return f(i)}function yn(i){if(!i)return i===0?i:0;if(i=Er(i),i===X||i===-X){var s=i<0?-1:1;return s*me}return i===i?i:0}function Ce(i){var s=yn(i),f=s%1;return s===s?f?s-f:s:0}function Kg(i){return i?hi(Ce(i),0,U):0}function Er(i){if(typeof i=="number")return i;if(sr(i))return L;if(ut(i)){var s=typeof i.valueOf=="function"?i.valueOf():i;i=ut(s)?s+"":s}if(typeof i!="string")return i===0?i:+i;i=hh(i);var f=mS.test(i);return f||yS.test(i)?XS(i.slice(2),f?2:8):vS.test(i)?L:+i}function Zg(i){return Yr(i,Qt(i))}function LA(i){return i?hi(Ce(i),-K,K):i===0?i:0}function He(i){return i==null?"":ar(i)}var zA=Zi(function(i,s){if(Ho(s)||Jt(s)){Yr(s,Pt(s),i);return}for(var f in s)Ke.call(s,f)&&Do(i,f,s[f])}),Xg=Zi(function(i,s){Yr(s,Qt(s),i)}),Bs=Zi(function(i,s,f,_){Yr(s,Qt(s),i,_)}),jA=Zi(function(i,s,f,_){Yr(s,Pt(s),i,_)}),FA=vn(ru);function HA(i,s){var f=Ki(i);return s==null?f:Rh(f,s)}var WA=Ne(function(i,s){i=et(i);var f=-1,_=s.length,O=_>2?s[2]:r;for(O&&qt(s[0],s[1],O)&&(_=1);++f<_;)for(var P=s[f],D=Qt(P),W=-1,G=D.length;++W<G;){var ie=D[W],oe=i[ie];(oe===r||zr(oe,qi[ie])&&!Ke.call(i,ie))&&(i[ie]=P[ie])}return i}),BA=Ne(function(i){return i.push(r,hg),ir(Jg,r,i)});function VA(i,s){return uh(i,_e(s,3),Gr)}function UA(i,s){return uh(i,_e(s,3),iu)}function qA(i,s){return i==null?i:nu(i,_e(s,3),Qt)}function GA(i,s){return i==null?i:Mh(i,_e(s,3),Qt)}function YA(i,s){return i&&Gr(i,_e(s,3))}function KA(i,s){return i&&iu(i,_e(s,3))}function ZA(i){return i==null?[]:Es(i,Pt(i))}function XA(i){return i==null?[]:Es(i,Qt(i))}function $u(i,s,f){var _=i==null?r:gi(i,s);return _===r?f:_}function JA(i,s){return i!=null&&mg(i,s,xE)}function Lu(i,s){return i!=null&&mg(i,s,SE)}var QA=cg(function(i,s,f){s!=null&&typeof s.toString!="function"&&(s=fs.call(s)),i[s]=f},ju(er)),eT=cg(function(i,s,f){s!=null&&typeof s.toString!="function"&&(s=fs.call(s)),Ke.call(i,s)?i[s].push(f):i[s]=[f]},_e),tT=Ne(Lo);function Pt(i){return Jt(i)?Ah(i):lu(i)}function Qt(i){return Jt(i)?Ah(i,!0):IE(i)}function rT(i,s){var f={};return s=_e(s,3),Gr(i,function(_,O,P){hn(f,s(_,O,P),_)}),f}function nT(i,s){var f={};return s=_e(s,3),Gr(i,function(_,O,P){hn(f,O,s(_,O,P))}),f}var iT=Zi(function(i,s,f){ks(i,s,f)}),Jg=Zi(function(i,s,f,_){ks(i,s,f,_)}),oT=vn(function(i,s){var f={};if(i==null)return f;var _=!1;s=st(s,function(P){return P=jn(P,i),_||(_=P.length>1),P}),Yr(i,Su(i),f),_&&(f=xr(f,h|g|y,QE));for(var O=s.length;O--;)hu(f,s[O]);return f});function aT(i,s){return Qg(i,Fs(_e(s)))}var sT=vn(function(i,s){return i==null?{}:ME(i,s)});function Qg(i,s){if(i==null)return{};var f=st(Su(i),function(_){return[_]});return s=_e(s),Vh(i,f,function(_,O){return s(_,O[0])})}function lT(i,s,f){s=jn(s,i);var _=-1,O=s.length;for(O||(O=1,i=r);++_<O;){var P=i==null?r:i[Kr(s[_])];P===r&&(_=O,P=f),i=bn(P)?P.call(i):P}return i}function cT(i,s,f){return i==null?i:jo(i,s,f)}function uT(i,s,f,_){return _=typeof _=="function"?_:r,i==null?i:jo(i,s,f,_)}var ev=dg(Pt),tv=dg(Qt);function fT(i,s,f){var _=Te(i),O=_||Hn(i)||Qi(i);if(s=_e(s,4),f==null){var P=i&&i.constructor;O?f=_?new P:[]:ut(i)?f=bn(P)?Ki(hs(i)):{}:f={}}return(O?br:Gr)(i,function(D,W,G){return s(f,D,W,G)}),f}function dT(i,s){return i==null?!0:hu(i,s)}function pT(i,s,f){return i==null?i:Kh(i,s,mu(f))}function hT(i,s,f,_){return _=typeof _=="function"?_:r,i==null?i:Kh(i,s,mu(f),_)}function eo(i){return i==null?[]:Kc(i,Pt(i))}function gT(i){return i==null?[]:Kc(i,Qt(i))}function vT(i,s,f){return f===r&&(f=s,s=r),f!==r&&(f=Er(f),f=f===f?f:0),s!==r&&(s=Er(s),s=s===s?s:0),hi(Er(i),s,f)}function mT(i,s,f){return s=yn(s),f===r?(f=s,s=0):f=yn(f),i=Er(i),_E(i,s,f)}function bT(i,s,f){if(f&&typeof f!="boolean"&&qt(i,s,f)&&(s=f=r),f===r&&(typeof s=="boolean"?(f=s,s=r):typeof i=="boolean"&&(f=i,i=r)),i===r&&s===r?(i=0,s=1):(i=yn(i),s===r?(s=i,i=0):s=yn(s)),i>s){var _=i;i=s,s=_}if(f||i%1||s%1){var O=kh();return jt(i+O*(s-i+ZS("1e-"+((O+"").length-1))),s)}return fu(i,s)}var yT=Xi(function(i,s,f){return s=s.toLowerCase(),i+(f?rv(s):s)});function rv(i){return zu(He(i).toLowerCase())}function nv(i){return i=He(i),i&&i.replace(xS,c_).replace(FS,"")}function wT(i,s,f){i=He(i),s=ar(s);var _=i.length;f=f===r?_:hi(Ce(f),0,_);var O=f;return f-=s.length,f>=0&&i.slice(f,O)==s}function xT(i){return i=He(i),i&&tS.test(i)?i.replace(Mp,u_):i}function ST(i){return i=He(i),i&&sS.test(i)?i.replace(Nc,"\\$&"):i}var _T=Xi(function(i,s,f){return i+(f?"-":"")+s.toLowerCase()}),ET=Xi(function(i,s,f){return i+(f?" ":"")+s.toLowerCase()}),kT=ag("toLowerCase");function OT(i,s,f){i=He(i),s=Ce(s);var _=s?Vi(i):0;if(!s||_>=s)return i;var O=(s-_)/2;return Ps(bs(O),f)+i+Ps(ms(O),f)}function AT(i,s,f){i=He(i),s=Ce(s);var _=s?Vi(i):0;return s&&_<s?i+Ps(s-_,f):i}function TT(i,s,f){i=He(i),s=Ce(s);var _=s?Vi(i):0;return s&&_<s?Ps(s-_,f)+i:i}function RT(i,s,f){return f||s==null?s=0:s&&(s=+s),$_(He(i).replace(Mc,""),s||0)}function CT(i,s,f){return(f?qt(i,s,f):s===r)?s=1:s=Ce(s),du(He(i),s)}function PT(){var i=arguments,s=He(i[0]);return i.length<3?s:s.replace(i[1],i[2])}var IT=Xi(function(i,s,f){return i+(f?"_":"")+s.toLowerCase()});function NT(i,s,f){return f&&typeof f!="number"&&qt(i,s,f)&&(s=f=r),f=f===r?U:f>>>0,f?(i=He(i),i&&(typeof s=="string"||s!=null&&!Du(s))&&(s=ar(s),!s&&Bi(i))?Fn($r(i),0,f):i.split(s,f)):[]}var MT=Xi(function(i,s,f){return i+(f?" ":"")+zu(s)});function DT(i,s,f){return i=He(i),f=f==null?0:hi(Ce(f),0,i.length),s=ar(s),i.slice(f,f+s.length)==s}function $T(i,s,f){var _=T.templateSettings;f&&qt(i,s,f)&&(s=r),i=He(i),s=Bs({},s,_,pg);var O=Bs({},s.imports,_.imports,pg),P=Pt(O),D=Kc(O,P),W,G,ie=0,oe=s.interpolate||rs,le="__p += '",ve=Xc((s.escape||rs).source+"|"+oe.source+"|"+(oe===Dp?gS:rs).source+"|"+(s.evaluate||rs).source+"|$","g"),xe="//# sourceURL="+(Ke.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++US+"]")+`
183
- `;i.replace(ve,function(ke,De,Le,lr,Gt,cr){return Le||(Le=lr),le+=i.slice(ie,cr).replace(SS,f_),De&&(W=!0,le+=`' +
184
- __e(`+De+`) +
185
- '`),Gt&&(G=!0,le+=`';
186
- `+Gt+`;
187
- __p += '`),Le&&(le+=`' +
188
- ((__t = (`+Le+`)) == null ? '' : __t) +
189
- '`),ie=cr+ke.length,ke}),le+=`';
190
- `;var Ee=Ke.call(s,"variable")&&s.variable;if(!Ee)le=`with (obj) {
191
- `+le+`
182
+ */var Jk=go.exports,dm;function Qk(){return dm||(dm=1,(function(e,t){(function(){var r,i="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",v=500,m="__lodash_placeholder__",g=1,p=2,b=4,x=1,d=2,w=1,h=2,S=4,E=8,R=16,O=32,k=64,U=128,M=256,F=512,G=30,j="...",L=800,B=16,q=1,C=2,J=3,Y=1/0,te=9007199254740991,de=17976931348623157e292,Z=NaN,Q=4294967295,ae=Q-1,ue=Q>>>1,ne=[["ary",U],["bind",w],["bindKey",h],["curry",E],["curryRight",R],["flip",F],["partial",O],["partialRight",k],["rearg",M]],ce="[object Arguments]",fe="[object Array]",ye="[object AsyncFunction]",me="[object Boolean]",Ee="[object Date]",Ae="[object DOMException]",Ze="[object Error]",ie="[object Function]",vt="[object GeneratorFunction]",lt="[object Map]",mr="[object Number]",Zo="[object Null]",Gt="[object Object]",Go="[object Promise]",Ks="[object Proxy]",Mt="[object RegExp]",yt="[object Set]",Kr="[object String]",wn="[object Symbol]",Ai="[object Undefined]",Vr="[object WeakMap]",Ko="[object WeakSet]",Yr="[object ArrayBuffer]",$r="[object DataView]",Vs="[object Float32Array]",Ys="[object Float64Array]",Xs="[object Int8Array]",Js="[object Int16Array]",Qs="[object Int32Array]",eu="[object Uint8Array]",tu="[object Uint8ClampedArray]",ru="[object Uint16Array]",nu="[object Uint32Array]",j0=/\b__p \+= '';/g,z0=/\b(__p \+=) '' \+/g,W0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,If=/&(?:amp|lt|gt|quot|#39);/g,Lf=/[&<>"']/g,U0=RegExp(If.source),B0=RegExp(Lf.source),H0=/<%-([\s\S]+?)%>/g,q0=/<%([\s\S]+?)%>/g,Mf=/<%=([\s\S]+?)%>/g,Z0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G0=/^\w*$/,K0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iu=/[\\^$.*+?()[\]{}|]/g,V0=RegExp(iu.source),ou=/^\s+/,Y0=/\s/,X0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J0=/\{\n\/\* \[wrapped with (.+)\] \*/,Q0=/,? & /,eb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tb=/[()=,{}\[\]\/\s]/,rb=/\\(\\)?/g,nb=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ff=/\w*$/,ib=/^[-+]0x[0-9a-f]+$/i,ob=/^0b[01]+$/i,ab=/^\[object .+?Constructor\]$/,sb=/^0o[0-7]+$/i,ub=/^(?:0|[1-9]\d*)$/,lb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vo=/($^)/,cb=/['\n\r\u2028\u2029\\]/g,Yo="\\ud800-\\udfff",fb="\\u0300-\\u036f",db="\\ufe20-\\ufe2f",pb="\\u20d0-\\u20ff",Df=fb+db+pb,Nf="\\u2700-\\u27bf",jf="a-z\\xdf-\\xf6\\xf8-\\xff",hb="\\xac\\xb1\\xd7\\xf7",gb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mb="\\u2000-\\u206f",vb=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zf="A-Z\\xc0-\\xd6\\xd8-\\xde",Wf="\\ufe0e\\ufe0f",Uf=hb+gb+mb+vb,au="['’]",yb="["+Yo+"]",Bf="["+Uf+"]",Xo="["+Df+"]",Hf="\\d+",bb="["+Nf+"]",qf="["+jf+"]",Zf="[^"+Yo+Uf+Hf+Nf+jf+zf+"]",su="\\ud83c[\\udffb-\\udfff]",wb="(?:"+Xo+"|"+su+")",Gf="[^"+Yo+"]",uu="(?:\\ud83c[\\udde6-\\uddff]){2}",lu="[\\ud800-\\udbff][\\udc00-\\udfff]",Vn="["+zf+"]",Kf="\\u200d",Vf="(?:"+qf+"|"+Zf+")",xb="(?:"+Vn+"|"+Zf+")",Yf="(?:"+au+"(?:d|ll|m|re|s|t|ve))?",Xf="(?:"+au+"(?:D|LL|M|RE|S|T|VE))?",Jf=wb+"?",Qf="["+Wf+"]?",Sb="(?:"+Kf+"(?:"+[Gf,uu,lu].join("|")+")"+Qf+Jf+")*",Eb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_b="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ed=Qf+Jf+Sb,Ob="(?:"+[bb,uu,lu].join("|")+")"+ed,Ab="(?:"+[Gf+Xo+"?",Xo,uu,lu,yb].join("|")+")",Tb=RegExp(au,"g"),Rb=RegExp(Xo,"g"),cu=RegExp(su+"(?="+su+")|"+Ab+ed,"g"),Pb=RegExp([Vn+"?"+qf+"+"+Yf+"(?="+[Bf,Vn,"$"].join("|")+")",xb+"+"+Xf+"(?="+[Bf,Vn+Vf,"$"].join("|")+")",Vn+"?"+Vf+"+"+Yf,Vn+"+"+Xf,_b,Eb,Hf,Ob].join("|"),"g"),Cb=RegExp("["+Kf+Yo+Df+Wf+"]"),kb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$b=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ib=-1,Ue={};Ue[Vs]=Ue[Ys]=Ue[Xs]=Ue[Js]=Ue[Qs]=Ue[eu]=Ue[tu]=Ue[ru]=Ue[nu]=!0,Ue[ce]=Ue[fe]=Ue[Yr]=Ue[me]=Ue[$r]=Ue[Ee]=Ue[Ze]=Ue[ie]=Ue[lt]=Ue[mr]=Ue[Gt]=Ue[Mt]=Ue[yt]=Ue[Kr]=Ue[Vr]=!1;var je={};je[ce]=je[fe]=je[Yr]=je[$r]=je[me]=je[Ee]=je[Vs]=je[Ys]=je[Xs]=je[Js]=je[Qs]=je[lt]=je[mr]=je[Gt]=je[Mt]=je[yt]=je[Kr]=je[wn]=je[eu]=je[tu]=je[ru]=je[nu]=!0,je[Ze]=je[ie]=je[Vr]=!1;var Lb={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Mb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Fb={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Db={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Nb=parseFloat,jb=parseInt,td=typeof Na=="object"&&Na&&Na.Object===Object&&Na,zb=typeof self=="object"&&self&&self.Object===Object&&self,dt=td||zb||Function("return this")(),fu=t&&!t.nodeType&&t,xn=fu&&!0&&e&&!e.nodeType&&e,rd=xn&&xn.exports===fu,du=rd&&td.process,Kt=(function(){try{var N=xn&&xn.require&&xn.require("util").types;return N||du&&du.binding&&du.binding("util")}catch{}})(),nd=Kt&&Kt.isArrayBuffer,id=Kt&&Kt.isDate,od=Kt&&Kt.isMap,ad=Kt&&Kt.isRegExp,sd=Kt&&Kt.isSet,ud=Kt&&Kt.isTypedArray;function Ft(N,K,H){switch(H.length){case 0:return N.call(K);case 1:return N.call(K,H[0]);case 2:return N.call(K,H[0],H[1]);case 3:return N.call(K,H[0],H[1],H[2])}return N.apply(K,H)}function Wb(N,K,H,se){for(var be=-1,Pe=N==null?0:N.length;++be<Pe;){var at=N[be];K(se,at,H(at),N)}return se}function Vt(N,K){for(var H=-1,se=N==null?0:N.length;++H<se&&K(N[H],H,N)!==!1;);return N}function Ub(N,K){for(var H=N==null?0:N.length;H--&&K(N[H],H,N)!==!1;);return N}function ld(N,K){for(var H=-1,se=N==null?0:N.length;++H<se;)if(!K(N[H],H,N))return!1;return!0}function Xr(N,K){for(var H=-1,se=N==null?0:N.length,be=0,Pe=[];++H<se;){var at=N[H];K(at,H,N)&&(Pe[be++]=at)}return Pe}function Jo(N,K){var H=N==null?0:N.length;return!!H&&Yn(N,K,0)>-1}function pu(N,K,H){for(var se=-1,be=N==null?0:N.length;++se<be;)if(H(K,N[se]))return!0;return!1}function Be(N,K){for(var H=-1,se=N==null?0:N.length,be=Array(se);++H<se;)be[H]=K(N[H],H,N);return be}function Jr(N,K){for(var H=-1,se=K.length,be=N.length;++H<se;)N[be+H]=K[H];return N}function hu(N,K,H,se){var be=-1,Pe=N==null?0:N.length;for(se&&Pe&&(H=N[++be]);++be<Pe;)H=K(H,N[be],be,N);return H}function Bb(N,K,H,se){var be=N==null?0:N.length;for(se&&be&&(H=N[--be]);be--;)H=K(H,N[be],be,N);return H}function gu(N,K){for(var H=-1,se=N==null?0:N.length;++H<se;)if(K(N[H],H,N))return!0;return!1}var Hb=mu("length");function qb(N){return N.split("")}function Zb(N){return N.match(eb)||[]}function cd(N,K,H){var se;return H(N,function(be,Pe,at){if(K(be,Pe,at))return se=Pe,!1}),se}function Qo(N,K,H,se){for(var be=N.length,Pe=H+(se?1:-1);se?Pe--:++Pe<be;)if(K(N[Pe],Pe,N))return Pe;return-1}function Yn(N,K,H){return K===K?iw(N,K,H):Qo(N,fd,H)}function Gb(N,K,H,se){for(var be=H-1,Pe=N.length;++be<Pe;)if(se(N[be],K))return be;return-1}function fd(N){return N!==N}function dd(N,K){var H=N==null?0:N.length;return H?yu(N,K)/H:Z}function mu(N){return function(K){return K==null?r:K[N]}}function vu(N){return function(K){return N==null?r:N[K]}}function pd(N,K,H,se,be){return be(N,function(Pe,at,Ne){H=se?(se=!1,Pe):K(H,Pe,at,Ne)}),H}function Kb(N,K){var H=N.length;for(N.sort(K);H--;)N[H]=N[H].value;return N}function yu(N,K){for(var H,se=-1,be=N.length;++se<be;){var Pe=K(N[se]);Pe!==r&&(H=H===r?Pe:H+Pe)}return H}function bu(N,K){for(var H=-1,se=Array(N);++H<N;)se[H]=K(H);return se}function Vb(N,K){return Be(K,function(H){return[H,N[H]]})}function hd(N){return N&&N.slice(0,yd(N)+1).replace(ou,"")}function Dt(N){return function(K){return N(K)}}function wu(N,K){return Be(K,function(H){return N[H]})}function Ti(N,K){return N.has(K)}function gd(N,K){for(var H=-1,se=N.length;++H<se&&Yn(K,N[H],0)>-1;);return H}function md(N,K){for(var H=N.length;H--&&Yn(K,N[H],0)>-1;);return H}function Yb(N,K){for(var H=N.length,se=0;H--;)N[H]===K&&++se;return se}var Xb=vu(Lb),Jb=vu(Mb);function Qb(N){return"\\"+Db[N]}function ew(N,K){return N==null?r:N[K]}function Xn(N){return Cb.test(N)}function tw(N){return kb.test(N)}function rw(N){for(var K,H=[];!(K=N.next()).done;)H.push(K.value);return H}function xu(N){var K=-1,H=Array(N.size);return N.forEach(function(se,be){H[++K]=[be,se]}),H}function vd(N,K){return function(H){return N(K(H))}}function Qr(N,K){for(var H=-1,se=N.length,be=0,Pe=[];++H<se;){var at=N[H];(at===K||at===m)&&(N[H]=m,Pe[be++]=H)}return Pe}function ea(N){var K=-1,H=Array(N.size);return N.forEach(function(se){H[++K]=se}),H}function nw(N){var K=-1,H=Array(N.size);return N.forEach(function(se){H[++K]=[se,se]}),H}function iw(N,K,H){for(var se=H-1,be=N.length;++se<be;)if(N[se]===K)return se;return-1}function ow(N,K,H){for(var se=H+1;se--;)if(N[se]===K)return se;return se}function Jn(N){return Xn(N)?sw(N):Hb(N)}function sr(N){return Xn(N)?uw(N):qb(N)}function yd(N){for(var K=N.length;K--&&Y0.test(N.charAt(K)););return K}var aw=vu(Fb);function sw(N){for(var K=cu.lastIndex=0;cu.test(N);)++K;return K}function uw(N){return N.match(cu)||[]}function lw(N){return N.match(Pb)||[]}var cw=(function N(K){K=K==null?dt:Qn.defaults(dt.Object(),K,Qn.pick(dt,$b));var H=K.Array,se=K.Date,be=K.Error,Pe=K.Function,at=K.Math,Ne=K.Object,Su=K.RegExp,fw=K.String,Yt=K.TypeError,ta=H.prototype,dw=Pe.prototype,ei=Ne.prototype,ra=K["__core-js_shared__"],na=dw.toString,Fe=ei.hasOwnProperty,pw=0,bd=(function(){var n=/[^.]+$/.exec(ra&&ra.keys&&ra.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),ia=ei.toString,hw=na.call(Ne),gw=dt._,mw=Su("^"+na.call(Fe).replace(iu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oa=rd?K.Buffer:r,en=K.Symbol,aa=K.Uint8Array,wd=oa?oa.allocUnsafe:r,sa=vd(Ne.getPrototypeOf,Ne),xd=Ne.create,Sd=ei.propertyIsEnumerable,ua=ta.splice,Ed=en?en.isConcatSpreadable:r,Ri=en?en.iterator:r,Sn=en?en.toStringTag:r,la=(function(){try{var n=Tn(Ne,"defineProperty");return n({},"",{}),n}catch{}})(),vw=K.clearTimeout!==dt.clearTimeout&&K.clearTimeout,yw=se&&se.now!==dt.Date.now&&se.now,bw=K.setTimeout!==dt.setTimeout&&K.setTimeout,ca=at.ceil,fa=at.floor,Eu=Ne.getOwnPropertySymbols,ww=oa?oa.isBuffer:r,_d=K.isFinite,xw=ta.join,Sw=vd(Ne.keys,Ne),st=at.max,bt=at.min,Ew=se.now,_w=K.parseInt,Od=at.random,Ow=ta.reverse,_u=Tn(K,"DataView"),Pi=Tn(K,"Map"),Ou=Tn(K,"Promise"),ti=Tn(K,"Set"),Ci=Tn(K,"WeakMap"),ki=Tn(Ne,"create"),da=Ci&&new Ci,ri={},Aw=Rn(_u),Tw=Rn(Pi),Rw=Rn(Ou),Pw=Rn(ti),Cw=Rn(Ci),pa=en?en.prototype:r,$i=pa?pa.valueOf:r,Ad=pa?pa.toString:r;function A(n){if(Je(n)&&!we(n)&&!(n instanceof Te)){if(n instanceof Xt)return n;if(Fe.call(n,"__wrapped__"))return Tp(n)}return new Xt(n)}var ni=(function(){function n(){}return function(o){if(!Ge(o))return{};if(xd)return xd(o);n.prototype=o;var u=new n;return n.prototype=r,u}})();function ha(){}function Xt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}A.templateSettings={escape:H0,evaluate:q0,interpolate:Mf,variable:"",imports:{_:A}},A.prototype=ha.prototype,A.prototype.constructor=A,Xt.prototype=ni(ha.prototype),Xt.prototype.constructor=Xt;function Te(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function kw(){var n=new Te(this.__wrapped__);return n.__actions__=Pt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Pt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Pt(this.__views__),n}function $w(){if(this.__filtered__){var n=new Te(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Iw(){var n=this.__wrapped__.value(),o=this.__dir__,u=we(n),y=o<0,_=u?n.length:0,T=q1(0,_,this.__views__),P=T.start,I=T.end,z=I-P,V=y?I:P-1,X=this.__iteratees__,ee=X.length,oe=0,le=bt(z,this.__takeCount__);if(!u||!y&&_==z&&le==z)return Yd(n,this.__actions__);var he=[];e:for(;z--&&oe<le;){V+=o;for(var Se=-1,ge=n[V];++Se<ee;){var Oe=X[Se],Re=Oe.iteratee,zt=Oe.type,At=Re(ge);if(zt==C)ge=At;else if(!At){if(zt==q)continue e;break e}}he[oe++]=ge}return he}Te.prototype=ni(ha.prototype),Te.prototype.constructor=Te;function En(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function Lw(){this.__data__=ki?ki(null):{},this.size=0}function Mw(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function Fw(n){var o=this.__data__;if(ki){var u=o[n];return u===f?r:u}return Fe.call(o,n)?o[n]:r}function Dw(n){var o=this.__data__;return ki?o[n]!==r:Fe.call(o,n)}function Nw(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=ki&&o===r?f:o,this}En.prototype.clear=Lw,En.prototype.delete=Mw,En.prototype.get=Fw,En.prototype.has=Dw,En.prototype.set=Nw;function Ir(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function jw(){this.__data__=[],this.size=0}function zw(n){var o=this.__data__,u=ga(o,n);if(u<0)return!1;var y=o.length-1;return u==y?o.pop():ua.call(o,u,1),--this.size,!0}function Ww(n){var o=this.__data__,u=ga(o,n);return u<0?r:o[u][1]}function Uw(n){return ga(this.__data__,n)>-1}function Bw(n,o){var u=this.__data__,y=ga(u,n);return y<0?(++this.size,u.push([n,o])):u[y][1]=o,this}Ir.prototype.clear=jw,Ir.prototype.delete=zw,Ir.prototype.get=Ww,Ir.prototype.has=Uw,Ir.prototype.set=Bw;function Lr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function Hw(){this.size=0,this.__data__={hash:new En,map:new(Pi||Ir),string:new En}}function qw(n){var o=Ta(this,n).delete(n);return this.size-=o?1:0,o}function Zw(n){return Ta(this,n).get(n)}function Gw(n){return Ta(this,n).has(n)}function Kw(n,o){var u=Ta(this,n),y=u.size;return u.set(n,o),this.size+=u.size==y?0:1,this}Lr.prototype.clear=Hw,Lr.prototype.delete=qw,Lr.prototype.get=Zw,Lr.prototype.has=Gw,Lr.prototype.set=Kw;function _n(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Lr;++o<u;)this.add(n[o])}function Vw(n){return this.__data__.set(n,f),this}function Yw(n){return this.__data__.has(n)}_n.prototype.add=_n.prototype.push=Vw,_n.prototype.has=Yw;function ur(n){var o=this.__data__=new Ir(n);this.size=o.size}function Xw(){this.__data__=new Ir,this.size=0}function Jw(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function Qw(n){return this.__data__.get(n)}function e1(n){return this.__data__.has(n)}function t1(n,o){var u=this.__data__;if(u instanceof Ir){var y=u.__data__;if(!Pi||y.length<a-1)return y.push([n,o]),this.size=++u.size,this;u=this.__data__=new Lr(y)}return u.set(n,o),this.size=u.size,this}ur.prototype.clear=Xw,ur.prototype.delete=Jw,ur.prototype.get=Qw,ur.prototype.has=e1,ur.prototype.set=t1;function Td(n,o){var u=we(n),y=!u&&Pn(n),_=!u&&!y&&an(n),T=!u&&!y&&!_&&si(n),P=u||y||_||T,I=P?bu(n.length,fw):[],z=I.length;for(var V in n)(o||Fe.call(n,V))&&!(P&&(V=="length"||_&&(V=="offset"||V=="parent")||T&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Nr(V,z)))&&I.push(V);return I}function Rd(n){var o=n.length;return o?n[Fu(0,o-1)]:r}function r1(n,o){return Ra(Pt(n),On(o,0,n.length))}function n1(n){return Ra(Pt(n))}function Au(n,o,u){(u!==r&&!lr(n[o],u)||u===r&&!(o in n))&&Mr(n,o,u)}function Ii(n,o,u){var y=n[o];(!(Fe.call(n,o)&&lr(y,u))||u===r&&!(o in n))&&Mr(n,o,u)}function ga(n,o){for(var u=n.length;u--;)if(lr(n[u][0],o))return u;return-1}function i1(n,o,u,y){return tn(n,function(_,T,P){o(y,_,u(_),P)}),y}function Pd(n,o){return n&&yr(o,ct(o),n)}function o1(n,o){return n&&yr(o,kt(o),n)}function Mr(n,o,u){o=="__proto__"&&la?la(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function Tu(n,o){for(var u=-1,y=o.length,_=H(y),T=n==null;++u<y;)_[u]=T?r:sl(n,o[u]);return _}function On(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function Jt(n,o,u,y,_,T){var P,I=o&g,z=o&p,V=o&b;if(u&&(P=_?u(n,y,_,T):u(n)),P!==r)return P;if(!Ge(n))return n;var X=we(n);if(X){if(P=G1(n),!I)return Pt(n,P)}else{var ee=wt(n),oe=ee==ie||ee==vt;if(an(n))return Qd(n,I);if(ee==Gt||ee==ce||oe&&!_){if(P=z||oe?{}:yp(n),!I)return z?F1(n,o1(P,n)):M1(n,Pd(P,n))}else{if(!je[ee])return _?n:{};P=K1(n,ee,I)}}T||(T=new ur);var le=T.get(n);if(le)return le;T.set(n,P),Gp(n)?n.forEach(function(ge){P.add(Jt(ge,o,u,ge,n,T))}):qp(n)&&n.forEach(function(ge,Oe){P.set(Oe,Jt(ge,o,u,Oe,n,T))});var he=V?z?Gu:Zu:z?kt:ct,Se=X?r:he(n);return Vt(Se||n,function(ge,Oe){Se&&(Oe=ge,ge=n[Oe]),Ii(P,Oe,Jt(ge,o,u,Oe,n,T))}),P}function a1(n){var o=ct(n);return function(u){return Cd(u,n,o)}}function Cd(n,o,u){var y=u.length;if(n==null)return!y;for(n=Ne(n);y--;){var _=u[y],T=o[_],P=n[_];if(P===r&&!(_ in n)||!T(P))return!1}return!0}function kd(n,o,u){if(typeof n!="function")throw new Yt(l);return zi(function(){n.apply(r,u)},o)}function Li(n,o,u,y){var _=-1,T=Jo,P=!0,I=n.length,z=[],V=o.length;if(!I)return z;u&&(o=Be(o,Dt(u))),y?(T=pu,P=!1):o.length>=a&&(T=Ti,P=!1,o=new _n(o));e:for(;++_<I;){var X=n[_],ee=u==null?X:u(X);if(X=y||X!==0?X:0,P&&ee===ee){for(var oe=V;oe--;)if(o[oe]===ee)continue e;z.push(X)}else T(o,ee,y)||z.push(X)}return z}var tn=ip(vr),$d=ip(Pu,!0);function s1(n,o){var u=!0;return tn(n,function(y,_,T){return u=!!o(y,_,T),u}),u}function ma(n,o,u){for(var y=-1,_=n.length;++y<_;){var T=n[y],P=o(T);if(P!=null&&(I===r?P===P&&!jt(P):u(P,I)))var I=P,z=T}return z}function u1(n,o,u,y){var _=n.length;for(u=xe(u),u<0&&(u=-u>_?0:_+u),y=y===r||y>_?_:xe(y),y<0&&(y+=_),y=u>y?0:Vp(y);u<y;)n[u++]=o;return n}function Id(n,o){var u=[];return tn(n,function(y,_,T){o(y,_,T)&&u.push(y)}),u}function pt(n,o,u,y,_){var T=-1,P=n.length;for(u||(u=Y1),_||(_=[]);++T<P;){var I=n[T];o>0&&u(I)?o>1?pt(I,o-1,u,y,_):Jr(_,I):y||(_[_.length]=I)}return _}var Ru=op(),Ld=op(!0);function vr(n,o){return n&&Ru(n,o,ct)}function Pu(n,o){return n&&Ld(n,o,ct)}function va(n,o){return Xr(o,function(u){return jr(n[u])})}function An(n,o){o=nn(o,n);for(var u=0,y=o.length;n!=null&&u<y;)n=n[br(o[u++])];return u&&u==y?n:r}function Md(n,o,u){var y=o(n);return we(n)?y:Jr(y,u(n))}function _t(n){return n==null?n===r?Ai:Zo:Sn&&Sn in Ne(n)?H1(n):nx(n)}function Cu(n,o){return n>o}function l1(n,o){return n!=null&&Fe.call(n,o)}function c1(n,o){return n!=null&&o in Ne(n)}function f1(n,o,u){return n>=bt(o,u)&&n<st(o,u)}function ku(n,o,u){for(var y=u?pu:Jo,_=n[0].length,T=n.length,P=T,I=H(T),z=1/0,V=[];P--;){var X=n[P];P&&o&&(X=Be(X,Dt(o))),z=bt(X.length,z),I[P]=!u&&(o||_>=120&&X.length>=120)?new _n(P&&X):r}X=n[0];var ee=-1,oe=I[0];e:for(;++ee<_&&V.length<z;){var le=X[ee],he=o?o(le):le;if(le=u||le!==0?le:0,!(oe?Ti(oe,he):y(V,he,u))){for(P=T;--P;){var Se=I[P];if(!(Se?Ti(Se,he):y(n[P],he,u)))continue e}oe&&oe.push(he),V.push(le)}}return V}function d1(n,o,u,y){return vr(n,function(_,T,P){o(y,u(_),T,P)}),y}function Mi(n,o,u){o=nn(o,n),n=Sp(n,o);var y=n==null?n:n[br(er(o))];return y==null?r:Ft(y,n,u)}function Fd(n){return Je(n)&&_t(n)==ce}function p1(n){return Je(n)&&_t(n)==Yr}function h1(n){return Je(n)&&_t(n)==Ee}function Fi(n,o,u,y,_){return n===o?!0:n==null||o==null||!Je(n)&&!Je(o)?n!==n&&o!==o:g1(n,o,u,y,Fi,_)}function g1(n,o,u,y,_,T){var P=we(n),I=we(o),z=P?fe:wt(n),V=I?fe:wt(o);z=z==ce?Gt:z,V=V==ce?Gt:V;var X=z==Gt,ee=V==Gt,oe=z==V;if(oe&&an(n)){if(!an(o))return!1;P=!0,X=!1}if(oe&&!X)return T||(T=new ur),P||si(n)?gp(n,o,u,y,_,T):U1(n,o,z,u,y,_,T);if(!(u&x)){var le=X&&Fe.call(n,"__wrapped__"),he=ee&&Fe.call(o,"__wrapped__");if(le||he){var Se=le?n.value():n,ge=he?o.value():o;return T||(T=new ur),_(Se,ge,u,y,T)}}return oe?(T||(T=new ur),B1(n,o,u,y,_,T)):!1}function m1(n){return Je(n)&&wt(n)==lt}function $u(n,o,u,y){var _=u.length,T=_,P=!y;if(n==null)return!T;for(n=Ne(n);_--;){var I=u[_];if(P&&I[2]?I[1]!==n[I[0]]:!(I[0]in n))return!1}for(;++_<T;){I=u[_];var z=I[0],V=n[z],X=I[1];if(P&&I[2]){if(V===r&&!(z in n))return!1}else{var ee=new ur;if(y)var oe=y(V,X,z,n,o,ee);if(!(oe===r?Fi(X,V,x|d,y,ee):oe))return!1}}return!0}function Dd(n){if(!Ge(n)||J1(n))return!1;var o=jr(n)?mw:ab;return o.test(Rn(n))}function v1(n){return Je(n)&&_t(n)==Mt}function y1(n){return Je(n)&&wt(n)==yt}function b1(n){return Je(n)&&La(n.length)&&!!Ue[_t(n)]}function Nd(n){return typeof n=="function"?n:n==null?$t:typeof n=="object"?we(n)?Wd(n[0],n[1]):zd(n):ah(n)}function Iu(n){if(!ji(n))return Sw(n);var o=[];for(var u in Ne(n))Fe.call(n,u)&&u!="constructor"&&o.push(u);return o}function w1(n){if(!Ge(n))return rx(n);var o=ji(n),u=[];for(var y in n)y=="constructor"&&(o||!Fe.call(n,y))||u.push(y);return u}function Lu(n,o){return n<o}function jd(n,o){var u=-1,y=Ct(n)?H(n.length):[];return tn(n,function(_,T,P){y[++u]=o(_,T,P)}),y}function zd(n){var o=Vu(n);return o.length==1&&o[0][2]?wp(o[0][0],o[0][1]):function(u){return u===n||$u(u,n,o)}}function Wd(n,o){return Xu(n)&&bp(o)?wp(br(n),o):function(u){var y=sl(u,n);return y===r&&y===o?ul(u,n):Fi(o,y,x|d)}}function ya(n,o,u,y,_){n!==o&&Ru(o,function(T,P){if(_||(_=new ur),Ge(T))x1(n,o,P,u,ya,y,_);else{var I=y?y(Qu(n,P),T,P+"",n,o,_):r;I===r&&(I=T),Au(n,P,I)}},kt)}function x1(n,o,u,y,_,T,P){var I=Qu(n,u),z=Qu(o,u),V=P.get(z);if(V){Au(n,u,V);return}var X=T?T(I,z,u+"",n,o,P):r,ee=X===r;if(ee){var oe=we(z),le=!oe&&an(z),he=!oe&&!le&&si(z);X=z,oe||le||he?we(I)?X=I:et(I)?X=Pt(I):le?(ee=!1,X=Qd(z,!0)):he?(ee=!1,X=ep(z,!0)):X=[]:Wi(z)||Pn(z)?(X=I,Pn(I)?X=Yp(I):(!Ge(I)||jr(I))&&(X=yp(z))):ee=!1}ee&&(P.set(z,X),_(X,z,y,T,P),P.delete(z)),Au(n,u,X)}function Ud(n,o){var u=n.length;if(u)return o+=o<0?u:0,Nr(o,u)?n[o]:r}function Bd(n,o,u){o.length?o=Be(o,function(T){return we(T)?function(P){return An(P,T.length===1?T[0]:T)}:T}):o=[$t];var y=-1;o=Be(o,Dt(pe()));var _=jd(n,function(T,P,I){var z=Be(o,function(V){return V(T)});return{criteria:z,index:++y,value:T}});return Kb(_,function(T,P){return L1(T,P,u)})}function S1(n,o){return Hd(n,o,function(u,y){return ul(n,y)})}function Hd(n,o,u){for(var y=-1,_=o.length,T={};++y<_;){var P=o[y],I=An(n,P);u(I,P)&&Di(T,nn(P,n),I)}return T}function E1(n){return function(o){return An(o,n)}}function Mu(n,o,u,y){var _=y?Gb:Yn,T=-1,P=o.length,I=n;for(n===o&&(o=Pt(o)),u&&(I=Be(n,Dt(u)));++T<P;)for(var z=0,V=o[T],X=u?u(V):V;(z=_(I,X,z,y))>-1;)I!==n&&ua.call(I,z,1),ua.call(n,z,1);return n}function qd(n,o){for(var u=n?o.length:0,y=u-1;u--;){var _=o[u];if(u==y||_!==T){var T=_;Nr(_)?ua.call(n,_,1):ju(n,_)}}return n}function Fu(n,o){return n+fa(Od()*(o-n+1))}function _1(n,o,u,y){for(var _=-1,T=st(ca((o-n)/(u||1)),0),P=H(T);T--;)P[y?T:++_]=n,n+=u;return P}function Du(n,o){var u="";if(!n||o<1||o>te)return u;do o%2&&(u+=n),o=fa(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return el(xp(n,o,$t),n+"")}function O1(n){return Rd(ui(n))}function A1(n,o){var u=ui(n);return Ra(u,On(o,0,u.length))}function Di(n,o,u,y){if(!Ge(n))return n;o=nn(o,n);for(var _=-1,T=o.length,P=T-1,I=n;I!=null&&++_<T;){var z=br(o[_]),V=u;if(z==="__proto__"||z==="constructor"||z==="prototype")return n;if(_!=P){var X=I[z];V=y?y(X,z,I):r,V===r&&(V=Ge(X)?X:Nr(o[_+1])?[]:{})}Ii(I,z,V),I=I[z]}return n}var Zd=da?function(n,o){return da.set(n,o),n}:$t,T1=la?function(n,o){return la(n,"toString",{configurable:!0,enumerable:!1,value:cl(o),writable:!0})}:$t;function R1(n){return Ra(ui(n))}function Qt(n,o,u){var y=-1,_=n.length;o<0&&(o=-o>_?0:_+o),u=u>_?_:u,u<0&&(u+=_),_=o>u?0:u-o>>>0,o>>>=0;for(var T=H(_);++y<_;)T[y]=n[y+o];return T}function P1(n,o){var u;return tn(n,function(y,_,T){return u=o(y,_,T),!u}),!!u}function ba(n,o,u){var y=0,_=n==null?y:n.length;if(typeof o=="number"&&o===o&&_<=ue){for(;y<_;){var T=y+_>>>1,P=n[T];P!==null&&!jt(P)&&(u?P<=o:P<o)?y=T+1:_=T}return _}return Nu(n,o,$t,u)}function Nu(n,o,u,y){var _=0,T=n==null?0:n.length;if(T===0)return 0;o=u(o);for(var P=o!==o,I=o===null,z=jt(o),V=o===r;_<T;){var X=fa((_+T)/2),ee=u(n[X]),oe=ee!==r,le=ee===null,he=ee===ee,Se=jt(ee);if(P)var ge=y||he;else V?ge=he&&(y||oe):I?ge=he&&oe&&(y||!le):z?ge=he&&oe&&!le&&(y||!Se):le||Se?ge=!1:ge=y?ee<=o:ee<o;ge?_=X+1:T=X}return bt(T,ae)}function Gd(n,o){for(var u=-1,y=n.length,_=0,T=[];++u<y;){var P=n[u],I=o?o(P):P;if(!u||!lr(I,z)){var z=I;T[_++]=P===0?0:P}}return T}function Kd(n){return typeof n=="number"?n:jt(n)?Z:+n}function Nt(n){if(typeof n=="string")return n;if(we(n))return Be(n,Nt)+"";if(jt(n))return Ad?Ad.call(n):"";var o=n+"";return o=="0"&&1/n==-Y?"-0":o}function rn(n,o,u){var y=-1,_=Jo,T=n.length,P=!0,I=[],z=I;if(u)P=!1,_=pu;else if(T>=a){var V=o?null:z1(n);if(V)return ea(V);P=!1,_=Ti,z=new _n}else z=o?[]:I;e:for(;++y<T;){var X=n[y],ee=o?o(X):X;if(X=u||X!==0?X:0,P&&ee===ee){for(var oe=z.length;oe--;)if(z[oe]===ee)continue e;o&&z.push(ee),I.push(X)}else _(z,ee,u)||(z!==I&&z.push(ee),I.push(X))}return I}function ju(n,o){return o=nn(o,n),n=Sp(n,o),n==null||delete n[br(er(o))]}function Vd(n,o,u,y){return Di(n,o,u(An(n,o)),y)}function wa(n,o,u,y){for(var _=n.length,T=y?_:-1;(y?T--:++T<_)&&o(n[T],T,n););return u?Qt(n,y?0:T,y?T+1:_):Qt(n,y?T+1:0,y?_:T)}function Yd(n,o){var u=n;return u instanceof Te&&(u=u.value()),hu(o,function(y,_){return _.func.apply(_.thisArg,Jr([y],_.args))},u)}function zu(n,o,u){var y=n.length;if(y<2)return y?rn(n[0]):[];for(var _=-1,T=H(y);++_<y;)for(var P=n[_],I=-1;++I<y;)I!=_&&(T[_]=Li(T[_]||P,n[I],o,u));return rn(pt(T,1),o,u)}function Xd(n,o,u){for(var y=-1,_=n.length,T=o.length,P={};++y<_;){var I=y<T?o[y]:r;u(P,n[y],I)}return P}function Wu(n){return et(n)?n:[]}function Uu(n){return typeof n=="function"?n:$t}function nn(n,o){return we(n)?n:Xu(n,o)?[n]:Ap(ke(n))}var C1=_e;function on(n,o,u){var y=n.length;return u=u===r?y:u,!o&&u>=y?n:Qt(n,o,u)}var Jd=vw||function(n){return dt.clearTimeout(n)};function Qd(n,o){if(o)return n.slice();var u=n.length,y=wd?wd(u):new n.constructor(u);return n.copy(y),y}function Bu(n){var o=new n.constructor(n.byteLength);return new aa(o).set(new aa(n)),o}function k1(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function $1(n){var o=new n.constructor(n.source,Ff.exec(n));return o.lastIndex=n.lastIndex,o}function I1(n){return $i?Ne($i.call(n)):{}}function ep(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function tp(n,o){if(n!==o){var u=n!==r,y=n===null,_=n===n,T=jt(n),P=o!==r,I=o===null,z=o===o,V=jt(o);if(!I&&!V&&!T&&n>o||T&&P&&z&&!I&&!V||y&&P&&z||!u&&z||!_)return 1;if(!y&&!T&&!V&&n<o||V&&u&&_&&!y&&!T||I&&u&&_||!P&&_||!z)return-1}return 0}function L1(n,o,u){for(var y=-1,_=n.criteria,T=o.criteria,P=_.length,I=u.length;++y<P;){var z=tp(_[y],T[y]);if(z){if(y>=I)return z;var V=u[y];return z*(V=="desc"?-1:1)}}return n.index-o.index}function rp(n,o,u,y){for(var _=-1,T=n.length,P=u.length,I=-1,z=o.length,V=st(T-P,0),X=H(z+V),ee=!y;++I<z;)X[I]=o[I];for(;++_<P;)(ee||_<T)&&(X[u[_]]=n[_]);for(;V--;)X[I++]=n[_++];return X}function np(n,o,u,y){for(var _=-1,T=n.length,P=-1,I=u.length,z=-1,V=o.length,X=st(T-I,0),ee=H(X+V),oe=!y;++_<X;)ee[_]=n[_];for(var le=_;++z<V;)ee[le+z]=o[z];for(;++P<I;)(oe||_<T)&&(ee[le+u[P]]=n[_++]);return ee}function Pt(n,o){var u=-1,y=n.length;for(o||(o=H(y));++u<y;)o[u]=n[u];return o}function yr(n,o,u,y){var _=!u;u||(u={});for(var T=-1,P=o.length;++T<P;){var I=o[T],z=y?y(u[I],n[I],I,u,n):r;z===r&&(z=n[I]),_?Mr(u,I,z):Ii(u,I,z)}return u}function M1(n,o){return yr(n,Yu(n),o)}function F1(n,o){return yr(n,mp(n),o)}function xa(n,o){return function(u,y){var _=we(u)?Wb:i1,T=o?o():{};return _(u,n,pe(y,2),T)}}function ii(n){return _e(function(o,u){var y=-1,_=u.length,T=_>1?u[_-1]:r,P=_>2?u[2]:r;for(T=n.length>3&&typeof T=="function"?(_--,T):r,P&&Ot(u[0],u[1],P)&&(T=_<3?r:T,_=1),o=Ne(o);++y<_;){var I=u[y];I&&n(o,I,y,T)}return o})}function ip(n,o){return function(u,y){if(u==null)return u;if(!Ct(u))return n(u,y);for(var _=u.length,T=o?_:-1,P=Ne(u);(o?T--:++T<_)&&y(P[T],T,P)!==!1;);return u}}function op(n){return function(o,u,y){for(var _=-1,T=Ne(o),P=y(o),I=P.length;I--;){var z=P[n?I:++_];if(u(T[z],z,T)===!1)break}return o}}function D1(n,o,u){var y=o&w,_=Ni(n);function T(){var P=this&&this!==dt&&this instanceof T?_:n;return P.apply(y?u:this,arguments)}return T}function ap(n){return function(o){o=ke(o);var u=Xn(o)?sr(o):r,y=u?u[0]:o.charAt(0),_=u?on(u,1).join(""):o.slice(1);return y[n]()+_}}function oi(n){return function(o){return hu(ih(nh(o).replace(Tb,"")),n,"")}}function Ni(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=ni(n.prototype),y=n.apply(u,o);return Ge(y)?y:u}}function N1(n,o,u){var y=Ni(n);function _(){for(var T=arguments.length,P=H(T),I=T,z=ai(_);I--;)P[I]=arguments[I];var V=T<3&&P[0]!==z&&P[T-1]!==z?[]:Qr(P,z);if(T-=V.length,T<u)return fp(n,o,Sa,_.placeholder,r,P,V,r,r,u-T);var X=this&&this!==dt&&this instanceof _?y:n;return Ft(X,this,P)}return _}function sp(n){return function(o,u,y){var _=Ne(o);if(!Ct(o)){var T=pe(u,3);o=ct(o),u=function(I){return T(_[I],I,_)}}var P=n(o,u,y);return P>-1?_[T?o[P]:P]:r}}function up(n){return Dr(function(o){var u=o.length,y=u,_=Xt.prototype.thru;for(n&&o.reverse();y--;){var T=o[y];if(typeof T!="function")throw new Yt(l);if(_&&!P&&Aa(T)=="wrapper")var P=new Xt([],!0)}for(y=P?y:u;++y<u;){T=o[y];var I=Aa(T),z=I=="wrapper"?Ku(T):r;z&&Ju(z[0])&&z[1]==(U|E|O|M)&&!z[4].length&&z[9]==1?P=P[Aa(z[0])].apply(P,z[3]):P=T.length==1&&Ju(T)?P[I]():P.thru(T)}return function(){var V=arguments,X=V[0];if(P&&V.length==1&&we(X))return P.plant(X).value();for(var ee=0,oe=u?o[ee].apply(this,V):X;++ee<u;)oe=o[ee].call(this,oe);return oe}})}function Sa(n,o,u,y,_,T,P,I,z,V){var X=o&U,ee=o&w,oe=o&h,le=o&(E|R),he=o&F,Se=oe?r:Ni(n);function ge(){for(var Oe=arguments.length,Re=H(Oe),zt=Oe;zt--;)Re[zt]=arguments[zt];if(le)var At=ai(ge),Wt=Yb(Re,At);if(y&&(Re=rp(Re,y,_,le)),T&&(Re=np(Re,T,P,le)),Oe-=Wt,le&&Oe<V){var tt=Qr(Re,At);return fp(n,o,Sa,ge.placeholder,u,Re,tt,I,z,V-Oe)}var cr=ee?u:this,Wr=oe?cr[n]:n;return Oe=Re.length,I?Re=ix(Re,I):he&&Oe>1&&Re.reverse(),X&&z<Oe&&(Re.length=z),this&&this!==dt&&this instanceof ge&&(Wr=Se||Ni(Wr)),Wr.apply(cr,Re)}return ge}function lp(n,o){return function(u,y){return d1(u,n,o(y),{})}}function Ea(n,o){return function(u,y){var _;if(u===r&&y===r)return o;if(u!==r&&(_=u),y!==r){if(_===r)return y;typeof u=="string"||typeof y=="string"?(u=Nt(u),y=Nt(y)):(u=Kd(u),y=Kd(y)),_=n(u,y)}return _}}function Hu(n){return Dr(function(o){return o=Be(o,Dt(pe())),_e(function(u){var y=this;return n(o,function(_){return Ft(_,y,u)})})})}function _a(n,o){o=o===r?" ":Nt(o);var u=o.length;if(u<2)return u?Du(o,n):o;var y=Du(o,ca(n/Jn(o)));return Xn(o)?on(sr(y),0,n).join(""):y.slice(0,n)}function j1(n,o,u,y){var _=o&w,T=Ni(n);function P(){for(var I=-1,z=arguments.length,V=-1,X=y.length,ee=H(X+z),oe=this&&this!==dt&&this instanceof P?T:n;++V<X;)ee[V]=y[V];for(;z--;)ee[V++]=arguments[++I];return Ft(oe,_?u:this,ee)}return P}function cp(n){return function(o,u,y){return y&&typeof y!="number"&&Ot(o,u,y)&&(u=y=r),o=zr(o),u===r?(u=o,o=0):u=zr(u),y=y===r?o<u?1:-1:zr(y),_1(o,u,y,n)}}function Oa(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=tr(o),u=tr(u)),n(o,u)}}function fp(n,o,u,y,_,T,P,I,z,V){var X=o&E,ee=X?P:r,oe=X?r:P,le=X?T:r,he=X?r:T;o|=X?O:k,o&=~(X?k:O),o&S||(o&=-4);var Se=[n,o,_,le,ee,he,oe,I,z,V],ge=u.apply(r,Se);return Ju(n)&&Ep(ge,Se),ge.placeholder=y,_p(ge,n,o)}function qu(n){var o=at[n];return function(u,y){if(u=tr(u),y=y==null?0:bt(xe(y),292),y&&_d(u)){var _=(ke(u)+"e").split("e"),T=o(_[0]+"e"+(+_[1]+y));return _=(ke(T)+"e").split("e"),+(_[0]+"e"+(+_[1]-y))}return o(u)}}var z1=ti&&1/ea(new ti([,-0]))[1]==Y?function(n){return new ti(n)}:pl;function dp(n){return function(o){var u=wt(o);return u==lt?xu(o):u==yt?nw(o):Vb(o,n(o))}}function Fr(n,o,u,y,_,T,P,I){var z=o&h;if(!z&&typeof n!="function")throw new Yt(l);var V=y?y.length:0;if(V||(o&=-97,y=_=r),P=P===r?P:st(xe(P),0),I=I===r?I:xe(I),V-=_?_.length:0,o&k){var X=y,ee=_;y=_=r}var oe=z?r:Ku(n),le=[n,o,u,y,_,X,ee,T,P,I];if(oe&&tx(le,oe),n=le[0],o=le[1],u=le[2],y=le[3],_=le[4],I=le[9]=le[9]===r?z?0:n.length:st(le[9]-V,0),!I&&o&(E|R)&&(o&=-25),!o||o==w)var he=D1(n,o,u);else o==E||o==R?he=N1(n,o,I):(o==O||o==(w|O))&&!_.length?he=j1(n,o,u,y):he=Sa.apply(r,le);var Se=oe?Zd:Ep;return _p(Se(he,le),n,o)}function pp(n,o,u,y){return n===r||lr(n,ei[u])&&!Fe.call(y,u)?o:n}function hp(n,o,u,y,_,T){return Ge(n)&&Ge(o)&&(T.set(o,n),ya(n,o,r,hp,T),T.delete(o)),n}function W1(n){return Wi(n)?r:n}function gp(n,o,u,y,_,T){var P=u&x,I=n.length,z=o.length;if(I!=z&&!(P&&z>I))return!1;var V=T.get(n),X=T.get(o);if(V&&X)return V==o&&X==n;var ee=-1,oe=!0,le=u&d?new _n:r;for(T.set(n,o),T.set(o,n);++ee<I;){var he=n[ee],Se=o[ee];if(y)var ge=P?y(Se,he,ee,o,n,T):y(he,Se,ee,n,o,T);if(ge!==r){if(ge)continue;oe=!1;break}if(le){if(!gu(o,function(Oe,Re){if(!Ti(le,Re)&&(he===Oe||_(he,Oe,u,y,T)))return le.push(Re)})){oe=!1;break}}else if(!(he===Se||_(he,Se,u,y,T))){oe=!1;break}}return T.delete(n),T.delete(o),oe}function U1(n,o,u,y,_,T,P){switch(u){case $r:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case Yr:return!(n.byteLength!=o.byteLength||!T(new aa(n),new aa(o)));case me:case Ee:case mr:return lr(+n,+o);case Ze:return n.name==o.name&&n.message==o.message;case Mt:case Kr:return n==o+"";case lt:var I=xu;case yt:var z=y&x;if(I||(I=ea),n.size!=o.size&&!z)return!1;var V=P.get(n);if(V)return V==o;y|=d,P.set(n,o);var X=gp(I(n),I(o),y,_,T,P);return P.delete(n),X;case wn:if($i)return $i.call(n)==$i.call(o)}return!1}function B1(n,o,u,y,_,T){var P=u&x,I=Zu(n),z=I.length,V=Zu(o),X=V.length;if(z!=X&&!P)return!1;for(var ee=z;ee--;){var oe=I[ee];if(!(P?oe in o:Fe.call(o,oe)))return!1}var le=T.get(n),he=T.get(o);if(le&&he)return le==o&&he==n;var Se=!0;T.set(n,o),T.set(o,n);for(var ge=P;++ee<z;){oe=I[ee];var Oe=n[oe],Re=o[oe];if(y)var zt=P?y(Re,Oe,oe,o,n,T):y(Oe,Re,oe,n,o,T);if(!(zt===r?Oe===Re||_(Oe,Re,u,y,T):zt)){Se=!1;break}ge||(ge=oe=="constructor")}if(Se&&!ge){var At=n.constructor,Wt=o.constructor;At!=Wt&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof Wt=="function"&&Wt instanceof Wt)&&(Se=!1)}return T.delete(n),T.delete(o),Se}function Dr(n){return el(xp(n,r,Cp),n+"")}function Zu(n){return Md(n,ct,Yu)}function Gu(n){return Md(n,kt,mp)}var Ku=da?function(n){return da.get(n)}:pl;function Aa(n){for(var o=n.name+"",u=ri[o],y=Fe.call(ri,o)?u.length:0;y--;){var _=u[y],T=_.func;if(T==null||T==n)return _.name}return o}function ai(n){var o=Fe.call(A,"placeholder")?A:n;return o.placeholder}function pe(){var n=A.iteratee||fl;return n=n===fl?Nd:n,arguments.length?n(arguments[0],arguments[1]):n}function Ta(n,o){var u=n.__data__;return X1(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Vu(n){for(var o=ct(n),u=o.length;u--;){var y=o[u],_=n[y];o[u]=[y,_,bp(_)]}return o}function Tn(n,o){var u=ew(n,o);return Dd(u)?u:r}function H1(n){var o=Fe.call(n,Sn),u=n[Sn];try{n[Sn]=r;var y=!0}catch{}var _=ia.call(n);return y&&(o?n[Sn]=u:delete n[Sn]),_}var Yu=Eu?function(n){return n==null?[]:(n=Ne(n),Xr(Eu(n),function(o){return Sd.call(n,o)}))}:hl,mp=Eu?function(n){for(var o=[];n;)Jr(o,Yu(n)),n=sa(n);return o}:hl,wt=_t;(_u&&wt(new _u(new ArrayBuffer(1)))!=$r||Pi&&wt(new Pi)!=lt||Ou&&wt(Ou.resolve())!=Go||ti&&wt(new ti)!=yt||Ci&&wt(new Ci)!=Vr)&&(wt=function(n){var o=_t(n),u=o==Gt?n.constructor:r,y=u?Rn(u):"";if(y)switch(y){case Aw:return $r;case Tw:return lt;case Rw:return Go;case Pw:return yt;case Cw:return Vr}return o});function q1(n,o,u){for(var y=-1,_=u.length;++y<_;){var T=u[y],P=T.size;switch(T.type){case"drop":n+=P;break;case"dropRight":o-=P;break;case"take":o=bt(o,n+P);break;case"takeRight":n=st(n,o-P);break}}return{start:n,end:o}}function Z1(n){var o=n.match(J0);return o?o[1].split(Q0):[]}function vp(n,o,u){o=nn(o,n);for(var y=-1,_=o.length,T=!1;++y<_;){var P=br(o[y]);if(!(T=n!=null&&u(n,P)))break;n=n[P]}return T||++y!=_?T:(_=n==null?0:n.length,!!_&&La(_)&&Nr(P,_)&&(we(n)||Pn(n)))}function G1(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Fe.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function yp(n){return typeof n.constructor=="function"&&!ji(n)?ni(sa(n)):{}}function K1(n,o,u){var y=n.constructor;switch(o){case Yr:return Bu(n);case me:case Ee:return new y(+n);case $r:return k1(n,u);case Vs:case Ys:case Xs:case Js:case Qs:case eu:case tu:case ru:case nu:return ep(n,u);case lt:return new y;case mr:case Kr:return new y(n);case Mt:return $1(n);case yt:return new y;case wn:return I1(n)}}function V1(n,o){var u=o.length;if(!u)return n;var y=u-1;return o[y]=(u>1?"& ":"")+o[y],o=o.join(u>2?", ":" "),n.replace(X0,`{
183
+ /* [wrapped with `+o+`] */
184
+ `)}function Y1(n){return we(n)||Pn(n)||!!(Ed&&n&&n[Ed])}function Nr(n,o){var u=typeof n;return o=o??te,!!o&&(u=="number"||u!="symbol"&&ub.test(n))&&n>-1&&n%1==0&&n<o}function Ot(n,o,u){if(!Ge(u))return!1;var y=typeof o;return(y=="number"?Ct(u)&&Nr(o,u.length):y=="string"&&o in u)?lr(u[o],n):!1}function Xu(n,o){if(we(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||jt(n)?!0:G0.test(n)||!Z0.test(n)||o!=null&&n in Ne(o)}function X1(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Ju(n){var o=Aa(n),u=A[o];if(typeof u!="function"||!(o in Te.prototype))return!1;if(n===u)return!0;var y=Ku(u);return!!y&&n===y[0]}function J1(n){return!!bd&&bd in n}var Q1=ra?jr:gl;function ji(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ei;return n===u}function bp(n){return n===n&&!Ge(n)}function wp(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in Ne(u))}}function ex(n){var o=$a(n,function(y){return u.size===v&&u.clear(),y}),u=o.cache;return o}function tx(n,o){var u=n[1],y=o[1],_=u|y,T=_<(w|h|U),P=y==U&&u==E||y==U&&u==M&&n[7].length<=o[8]||y==(U|M)&&o[7].length<=o[8]&&u==E;if(!(T||P))return n;y&w&&(n[2]=o[2],_|=u&w?0:S);var I=o[3];if(I){var z=n[3];n[3]=z?rp(z,I,o[4]):I,n[4]=z?Qr(n[3],m):o[4]}return I=o[5],I&&(z=n[5],n[5]=z?np(z,I,o[6]):I,n[6]=z?Qr(n[5],m):o[6]),I=o[7],I&&(n[7]=I),y&U&&(n[8]=n[8]==null?o[8]:bt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=_,n}function rx(n){var o=[];if(n!=null)for(var u in Ne(n))o.push(u);return o}function nx(n){return ia.call(n)}function xp(n,o,u){return o=st(o===r?n.length-1:o,0),function(){for(var y=arguments,_=-1,T=st(y.length-o,0),P=H(T);++_<T;)P[_]=y[o+_];_=-1;for(var I=H(o+1);++_<o;)I[_]=y[_];return I[o]=u(P),Ft(n,this,I)}}function Sp(n,o){return o.length<2?n:An(n,Qt(o,0,-1))}function ix(n,o){for(var u=n.length,y=bt(o.length,u),_=Pt(n);y--;){var T=o[y];n[y]=Nr(T,u)?_[T]:r}return n}function Qu(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Ep=Op(Zd),zi=bw||function(n,o){return dt.setTimeout(n,o)},el=Op(T1);function _p(n,o,u){var y=o+"";return el(n,V1(y,ox(Z1(y),u)))}function Op(n){var o=0,u=0;return function(){var y=Ew(),_=B-(y-u);if(u=y,_>0){if(++o>=L)return arguments[0]}else o=0;return n.apply(r,arguments)}}function Ra(n,o){var u=-1,y=n.length,_=y-1;for(o=o===r?y:o;++u<o;){var T=Fu(u,_),P=n[T];n[T]=n[u],n[u]=P}return n.length=o,n}var Ap=ex(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(K0,function(u,y,_,T){o.push(_?T.replace(rb,"$1"):y||u)}),o});function br(n){if(typeof n=="string"||jt(n))return n;var o=n+"";return o=="0"&&1/n==-Y?"-0":o}function Rn(n){if(n!=null){try{return na.call(n)}catch{}try{return n+""}catch{}}return""}function ox(n,o){return Vt(ne,function(u){var y="_."+u[0];o&u[1]&&!Jo(n,y)&&n.push(y)}),n.sort()}function Tp(n){if(n instanceof Te)return n.clone();var o=new Xt(n.__wrapped__,n.__chain__);return o.__actions__=Pt(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function ax(n,o,u){(u?Ot(n,o,u):o===r)?o=1:o=st(xe(o),0);var y=n==null?0:n.length;if(!y||o<1)return[];for(var _=0,T=0,P=H(ca(y/o));_<y;)P[T++]=Qt(n,_,_+=o);return P}function sx(n){for(var o=-1,u=n==null?0:n.length,y=0,_=[];++o<u;){var T=n[o];T&&(_[y++]=T)}return _}function ux(){var n=arguments.length;if(!n)return[];for(var o=H(n-1),u=arguments[0],y=n;y--;)o[y-1]=arguments[y];return Jr(we(u)?Pt(u):[u],pt(o,1))}var lx=_e(function(n,o){return et(n)?Li(n,pt(o,1,et,!0)):[]}),cx=_e(function(n,o){var u=er(o);return et(u)&&(u=r),et(n)?Li(n,pt(o,1,et,!0),pe(u,2)):[]}),fx=_e(function(n,o){var u=er(o);return et(u)&&(u=r),et(n)?Li(n,pt(o,1,et,!0),r,u):[]});function dx(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),Qt(n,o<0?0:o,y)):[]}function px(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),o=y-o,Qt(n,0,o<0?0:o)):[]}function hx(n,o){return n&&n.length?wa(n,pe(o,3),!0,!0):[]}function gx(n,o){return n&&n.length?wa(n,pe(o,3),!0):[]}function mx(n,o,u,y){var _=n==null?0:n.length;return _?(u&&typeof u!="number"&&Ot(n,o,u)&&(u=0,y=_),u1(n,o,u,y)):[]}function Rp(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=u==null?0:xe(u);return _<0&&(_=st(y+_,0)),Qo(n,pe(o,3),_)}function Pp(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=y-1;return u!==r&&(_=xe(u),_=u<0?st(y+_,0):bt(_,y-1)),Qo(n,pe(o,3),_,!0)}function Cp(n){var o=n==null?0:n.length;return o?pt(n,1):[]}function vx(n){var o=n==null?0:n.length;return o?pt(n,Y):[]}function yx(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:xe(o),pt(n,o)):[]}function bx(n){for(var o=-1,u=n==null?0:n.length,y={};++o<u;){var _=n[o];y[_[0]]=_[1]}return y}function kp(n){return n&&n.length?n[0]:r}function wx(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=u==null?0:xe(u);return _<0&&(_=st(y+_,0)),Yn(n,o,_)}function xx(n){var o=n==null?0:n.length;return o?Qt(n,0,-1):[]}var Sx=_e(function(n){var o=Be(n,Wu);return o.length&&o[0]===n[0]?ku(o):[]}),Ex=_e(function(n){var o=er(n),u=Be(n,Wu);return o===er(u)?o=r:u.pop(),u.length&&u[0]===n[0]?ku(u,pe(o,2)):[]}),_x=_e(function(n){var o=er(n),u=Be(n,Wu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?ku(u,r,o):[]});function Ox(n,o){return n==null?"":xw.call(n,o)}function er(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Ax(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=y;return u!==r&&(_=xe(u),_=_<0?st(y+_,0):bt(_,y-1)),o===o?ow(n,o,_):Qo(n,fd,_,!0)}function Tx(n,o){return n&&n.length?Ud(n,xe(o)):r}var Rx=_e($p);function $p(n,o){return n&&n.length&&o&&o.length?Mu(n,o):n}function Px(n,o,u){return n&&n.length&&o&&o.length?Mu(n,o,pe(u,2)):n}function Cx(n,o,u){return n&&n.length&&o&&o.length?Mu(n,o,r,u):n}var kx=Dr(function(n,o){var u=n==null?0:n.length,y=Tu(n,o);return qd(n,Be(o,function(_){return Nr(_,u)?+_:_}).sort(tp)),y});function $x(n,o){var u=[];if(!(n&&n.length))return u;var y=-1,_=[],T=n.length;for(o=pe(o,3);++y<T;){var P=n[y];o(P,y,n)&&(u.push(P),_.push(y))}return qd(n,_),u}function tl(n){return n==null?n:Ow.call(n)}function Ix(n,o,u){var y=n==null?0:n.length;return y?(u&&typeof u!="number"&&Ot(n,o,u)?(o=0,u=y):(o=o==null?0:xe(o),u=u===r?y:xe(u)),Qt(n,o,u)):[]}function Lx(n,o){return ba(n,o)}function Mx(n,o,u){return Nu(n,o,pe(u,2))}function Fx(n,o){var u=n==null?0:n.length;if(u){var y=ba(n,o);if(y<u&&lr(n[y],o))return y}return-1}function Dx(n,o){return ba(n,o,!0)}function Nx(n,o,u){return Nu(n,o,pe(u,2),!0)}function jx(n,o){var u=n==null?0:n.length;if(u){var y=ba(n,o,!0)-1;if(lr(n[y],o))return y}return-1}function zx(n){return n&&n.length?Gd(n):[]}function Wx(n,o){return n&&n.length?Gd(n,pe(o,2)):[]}function Ux(n){var o=n==null?0:n.length;return o?Qt(n,1,o):[]}function Bx(n,o,u){return n&&n.length?(o=u||o===r?1:xe(o),Qt(n,0,o<0?0:o)):[]}function Hx(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),o=y-o,Qt(n,o<0?0:o,y)):[]}function qx(n,o){return n&&n.length?wa(n,pe(o,3),!1,!0):[]}function Zx(n,o){return n&&n.length?wa(n,pe(o,3)):[]}var Gx=_e(function(n){return rn(pt(n,1,et,!0))}),Kx=_e(function(n){var o=er(n);return et(o)&&(o=r),rn(pt(n,1,et,!0),pe(o,2))}),Vx=_e(function(n){var o=er(n);return o=typeof o=="function"?o:r,rn(pt(n,1,et,!0),r,o)});function Yx(n){return n&&n.length?rn(n):[]}function Xx(n,o){return n&&n.length?rn(n,pe(o,2)):[]}function Jx(n,o){return o=typeof o=="function"?o:r,n&&n.length?rn(n,r,o):[]}function rl(n){if(!(n&&n.length))return[];var o=0;return n=Xr(n,function(u){if(et(u))return o=st(u.length,o),!0}),bu(o,function(u){return Be(n,mu(u))})}function Ip(n,o){if(!(n&&n.length))return[];var u=rl(n);return o==null?u:Be(u,function(y){return Ft(o,r,y)})}var Qx=_e(function(n,o){return et(n)?Li(n,o):[]}),eS=_e(function(n){return zu(Xr(n,et))}),tS=_e(function(n){var o=er(n);return et(o)&&(o=r),zu(Xr(n,et),pe(o,2))}),rS=_e(function(n){var o=er(n);return o=typeof o=="function"?o:r,zu(Xr(n,et),r,o)}),nS=_e(rl);function iS(n,o){return Xd(n||[],o||[],Ii)}function oS(n,o){return Xd(n||[],o||[],Di)}var aS=_e(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,Ip(n,u)});function Lp(n){var o=A(n);return o.__chain__=!0,o}function sS(n,o){return o(n),n}function Pa(n,o){return o(n)}var uS=Dr(function(n){var o=n.length,u=o?n[0]:0,y=this.__wrapped__,_=function(T){return Tu(T,n)};return o>1||this.__actions__.length||!(y instanceof Te)||!Nr(u)?this.thru(_):(y=y.slice(u,+u+(o?1:0)),y.__actions__.push({func:Pa,args:[_],thisArg:r}),new Xt(y,this.__chain__).thru(function(T){return o&&!T.length&&T.push(r),T}))});function lS(){return Lp(this)}function cS(){return new Xt(this.value(),this.__chain__)}function fS(){this.__values__===r&&(this.__values__=Kp(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function dS(){return this}function pS(n){for(var o,u=this;u instanceof ha;){var y=Tp(u);y.__index__=0,y.__values__=r,o?_.__wrapped__=y:o=y;var _=y;u=u.__wrapped__}return _.__wrapped__=n,o}function hS(){var n=this.__wrapped__;if(n instanceof Te){var o=n;return this.__actions__.length&&(o=new Te(this)),o=o.reverse(),o.__actions__.push({func:Pa,args:[tl],thisArg:r}),new Xt(o,this.__chain__)}return this.thru(tl)}function gS(){return Yd(this.__wrapped__,this.__actions__)}var mS=xa(function(n,o,u){Fe.call(n,u)?++n[u]:Mr(n,u,1)});function vS(n,o,u){var y=we(n)?ld:s1;return u&&Ot(n,o,u)&&(o=r),y(n,pe(o,3))}function yS(n,o){var u=we(n)?Xr:Id;return u(n,pe(o,3))}var bS=sp(Rp),wS=sp(Pp);function xS(n,o){return pt(Ca(n,o),1)}function SS(n,o){return pt(Ca(n,o),Y)}function ES(n,o,u){return u=u===r?1:xe(u),pt(Ca(n,o),u)}function Mp(n,o){var u=we(n)?Vt:tn;return u(n,pe(o,3))}function Fp(n,o){var u=we(n)?Ub:$d;return u(n,pe(o,3))}var _S=xa(function(n,o,u){Fe.call(n,u)?n[u].push(o):Mr(n,u,[o])});function OS(n,o,u,y){n=Ct(n)?n:ui(n),u=u&&!y?xe(u):0;var _=n.length;return u<0&&(u=st(_+u,0)),Ma(n)?u<=_&&n.indexOf(o,u)>-1:!!_&&Yn(n,o,u)>-1}var AS=_e(function(n,o,u){var y=-1,_=typeof o=="function",T=Ct(n)?H(n.length):[];return tn(n,function(P){T[++y]=_?Ft(o,P,u):Mi(P,o,u)}),T}),TS=xa(function(n,o,u){Mr(n,u,o)});function Ca(n,o){var u=we(n)?Be:jd;return u(n,pe(o,3))}function RS(n,o,u,y){return n==null?[]:(we(o)||(o=o==null?[]:[o]),u=y?r:u,we(u)||(u=u==null?[]:[u]),Bd(n,o,u))}var PS=xa(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function CS(n,o,u){var y=we(n)?hu:pd,_=arguments.length<3;return y(n,pe(o,4),u,_,tn)}function kS(n,o,u){var y=we(n)?Bb:pd,_=arguments.length<3;return y(n,pe(o,4),u,_,$d)}function $S(n,o){var u=we(n)?Xr:Id;return u(n,Ia(pe(o,3)))}function IS(n){var o=we(n)?Rd:O1;return o(n)}function LS(n,o,u){(u?Ot(n,o,u):o===r)?o=1:o=xe(o);var y=we(n)?r1:A1;return y(n,o)}function MS(n){var o=we(n)?n1:R1;return o(n)}function FS(n){if(n==null)return 0;if(Ct(n))return Ma(n)?Jn(n):n.length;var o=wt(n);return o==lt||o==yt?n.size:Iu(n).length}function DS(n,o,u){var y=we(n)?gu:P1;return u&&Ot(n,o,u)&&(o=r),y(n,pe(o,3))}var NS=_e(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Ot(n,o[0],o[1])?o=[]:u>2&&Ot(o[0],o[1],o[2])&&(o=[o[0]]),Bd(n,pt(o,1),[])}),ka=yw||function(){return dt.Date.now()};function jS(n,o){if(typeof o!="function")throw new Yt(l);return n=xe(n),function(){if(--n<1)return o.apply(this,arguments)}}function Dp(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,Fr(n,U,r,r,r,r,o)}function Np(n,o){var u;if(typeof o!="function")throw new Yt(l);return n=xe(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var nl=_e(function(n,o,u){var y=w;if(u.length){var _=Qr(u,ai(nl));y|=O}return Fr(n,y,o,u,_)}),jp=_e(function(n,o,u){var y=w|h;if(u.length){var _=Qr(u,ai(jp));y|=O}return Fr(o,y,n,u,_)});function zp(n,o,u){o=u?r:o;var y=Fr(n,E,r,r,r,r,r,o);return y.placeholder=zp.placeholder,y}function Wp(n,o,u){o=u?r:o;var y=Fr(n,R,r,r,r,r,r,o);return y.placeholder=Wp.placeholder,y}function Up(n,o,u){var y,_,T,P,I,z,V=0,X=!1,ee=!1,oe=!0;if(typeof n!="function")throw new Yt(l);o=tr(o)||0,Ge(u)&&(X=!!u.leading,ee="maxWait"in u,T=ee?st(tr(u.maxWait)||0,o):T,oe="trailing"in u?!!u.trailing:oe);function le(tt){var cr=y,Wr=_;return y=_=r,V=tt,P=n.apply(Wr,cr),P}function he(tt){return V=tt,I=zi(Oe,o),X?le(tt):P}function Se(tt){var cr=tt-z,Wr=tt-V,sh=o-cr;return ee?bt(sh,T-Wr):sh}function ge(tt){var cr=tt-z,Wr=tt-V;return z===r||cr>=o||cr<0||ee&&Wr>=T}function Oe(){var tt=ka();if(ge(tt))return Re(tt);I=zi(Oe,Se(tt))}function Re(tt){return I=r,oe&&y?le(tt):(y=_=r,P)}function zt(){I!==r&&Jd(I),V=0,y=z=_=I=r}function At(){return I===r?P:Re(ka())}function Wt(){var tt=ka(),cr=ge(tt);if(y=arguments,_=this,z=tt,cr){if(I===r)return he(z);if(ee)return Jd(I),I=zi(Oe,o),le(z)}return I===r&&(I=zi(Oe,o)),P}return Wt.cancel=zt,Wt.flush=At,Wt}var zS=_e(function(n,o){return kd(n,1,o)}),WS=_e(function(n,o,u){return kd(n,tr(o)||0,u)});function US(n){return Fr(n,F)}function $a(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Yt(l);var u=function(){var y=arguments,_=o?o.apply(this,y):y[0],T=u.cache;if(T.has(_))return T.get(_);var P=n.apply(this,y);return u.cache=T.set(_,P)||T,P};return u.cache=new($a.Cache||Lr),u}$a.Cache=Lr;function Ia(n){if(typeof n!="function")throw new Yt(l);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function BS(n){return Np(2,n)}var HS=C1(function(n,o){o=o.length==1&&we(o[0])?Be(o[0],Dt(pe())):Be(pt(o,1),Dt(pe()));var u=o.length;return _e(function(y){for(var _=-1,T=bt(y.length,u);++_<T;)y[_]=o[_].call(this,y[_]);return Ft(n,this,y)})}),il=_e(function(n,o){var u=Qr(o,ai(il));return Fr(n,O,r,o,u)}),Bp=_e(function(n,o){var u=Qr(o,ai(Bp));return Fr(n,k,r,o,u)}),qS=Dr(function(n,o){return Fr(n,M,r,r,r,o)});function ZS(n,o){if(typeof n!="function")throw new Yt(l);return o=o===r?o:xe(o),_e(n,o)}function GS(n,o){if(typeof n!="function")throw new Yt(l);return o=o==null?0:st(xe(o),0),_e(function(u){var y=u[o],_=on(u,0,o);return y&&Jr(_,y),Ft(n,this,_)})}function KS(n,o,u){var y=!0,_=!0;if(typeof n!="function")throw new Yt(l);return Ge(u)&&(y="leading"in u?!!u.leading:y,_="trailing"in u?!!u.trailing:_),Up(n,o,{leading:y,maxWait:o,trailing:_})}function VS(n){return Dp(n,1)}function YS(n,o){return il(Uu(o),n)}function XS(){if(!arguments.length)return[];var n=arguments[0];return we(n)?n:[n]}function JS(n){return Jt(n,b)}function QS(n,o){return o=typeof o=="function"?o:r,Jt(n,b,o)}function eE(n){return Jt(n,g|b)}function tE(n,o){return o=typeof o=="function"?o:r,Jt(n,g|b,o)}function rE(n,o){return o==null||Cd(n,o,ct(o))}function lr(n,o){return n===o||n!==n&&o!==o}var nE=Oa(Cu),iE=Oa(function(n,o){return n>=o}),Pn=Fd((function(){return arguments})())?Fd:function(n){return Je(n)&&Fe.call(n,"callee")&&!Sd.call(n,"callee")},we=H.isArray,oE=nd?Dt(nd):p1;function Ct(n){return n!=null&&La(n.length)&&!jr(n)}function et(n){return Je(n)&&Ct(n)}function aE(n){return n===!0||n===!1||Je(n)&&_t(n)==me}var an=ww||gl,sE=id?Dt(id):h1;function uE(n){return Je(n)&&n.nodeType===1&&!Wi(n)}function lE(n){if(n==null)return!0;if(Ct(n)&&(we(n)||typeof n=="string"||typeof n.splice=="function"||an(n)||si(n)||Pn(n)))return!n.length;var o=wt(n);if(o==lt||o==yt)return!n.size;if(ji(n))return!Iu(n).length;for(var u in n)if(Fe.call(n,u))return!1;return!0}function cE(n,o){return Fi(n,o)}function fE(n,o,u){u=typeof u=="function"?u:r;var y=u?u(n,o):r;return y===r?Fi(n,o,r,u):!!y}function ol(n){if(!Je(n))return!1;var o=_t(n);return o==Ze||o==Ae||typeof n.message=="string"&&typeof n.name=="string"&&!Wi(n)}function dE(n){return typeof n=="number"&&_d(n)}function jr(n){if(!Ge(n))return!1;var o=_t(n);return o==ie||o==vt||o==ye||o==Ks}function Hp(n){return typeof n=="number"&&n==xe(n)}function La(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=te}function Ge(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function Je(n){return n!=null&&typeof n=="object"}var qp=od?Dt(od):m1;function pE(n,o){return n===o||$u(n,o,Vu(o))}function hE(n,o,u){return u=typeof u=="function"?u:r,$u(n,o,Vu(o),u)}function gE(n){return Zp(n)&&n!=+n}function mE(n){if(Q1(n))throw new be(s);return Dd(n)}function vE(n){return n===null}function yE(n){return n==null}function Zp(n){return typeof n=="number"||Je(n)&&_t(n)==mr}function Wi(n){if(!Je(n)||_t(n)!=Gt)return!1;var o=sa(n);if(o===null)return!0;var u=Fe.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&na.call(u)==hw}var al=ad?Dt(ad):v1;function bE(n){return Hp(n)&&n>=-te&&n<=te}var Gp=sd?Dt(sd):y1;function Ma(n){return typeof n=="string"||!we(n)&&Je(n)&&_t(n)==Kr}function jt(n){return typeof n=="symbol"||Je(n)&&_t(n)==wn}var si=ud?Dt(ud):b1;function wE(n){return n===r}function xE(n){return Je(n)&&wt(n)==Vr}function SE(n){return Je(n)&&_t(n)==Ko}var EE=Oa(Lu),_E=Oa(function(n,o){return n<=o});function Kp(n){if(!n)return[];if(Ct(n))return Ma(n)?sr(n):Pt(n);if(Ri&&n[Ri])return rw(n[Ri]());var o=wt(n),u=o==lt?xu:o==yt?ea:ui;return u(n)}function zr(n){if(!n)return n===0?n:0;if(n=tr(n),n===Y||n===-Y){var o=n<0?-1:1;return o*de}return n===n?n:0}function xe(n){var o=zr(n),u=o%1;return o===o?u?o-u:o:0}function Vp(n){return n?On(xe(n),0,Q):0}function tr(n){if(typeof n=="number")return n;if(jt(n))return Z;if(Ge(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ge(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=hd(n);var u=ob.test(n);return u||sb.test(n)?jb(n.slice(2),u?2:8):ib.test(n)?Z:+n}function Yp(n){return yr(n,kt(n))}function OE(n){return n?On(xe(n),-te,te):n===0?n:0}function ke(n){return n==null?"":Nt(n)}var AE=ii(function(n,o){if(ji(o)||Ct(o)){yr(o,ct(o),n);return}for(var u in o)Fe.call(o,u)&&Ii(n,u,o[u])}),Xp=ii(function(n,o){yr(o,kt(o),n)}),Fa=ii(function(n,o,u,y){yr(o,kt(o),n,y)}),TE=ii(function(n,o,u,y){yr(o,ct(o),n,y)}),RE=Dr(Tu);function PE(n,o){var u=ni(n);return o==null?u:Pd(u,o)}var CE=_e(function(n,o){n=Ne(n);var u=-1,y=o.length,_=y>2?o[2]:r;for(_&&Ot(o[0],o[1],_)&&(y=1);++u<y;)for(var T=o[u],P=kt(T),I=-1,z=P.length;++I<z;){var V=P[I],X=n[V];(X===r||lr(X,ei[V])&&!Fe.call(n,V))&&(n[V]=T[V])}return n}),kE=_e(function(n){return n.push(r,hp),Ft(Jp,r,n)});function $E(n,o){return cd(n,pe(o,3),vr)}function IE(n,o){return cd(n,pe(o,3),Pu)}function LE(n,o){return n==null?n:Ru(n,pe(o,3),kt)}function ME(n,o){return n==null?n:Ld(n,pe(o,3),kt)}function FE(n,o){return n&&vr(n,pe(o,3))}function DE(n,o){return n&&Pu(n,pe(o,3))}function NE(n){return n==null?[]:va(n,ct(n))}function jE(n){return n==null?[]:va(n,kt(n))}function sl(n,o,u){var y=n==null?r:An(n,o);return y===r?u:y}function zE(n,o){return n!=null&&vp(n,o,l1)}function ul(n,o){return n!=null&&vp(n,o,c1)}var WE=lp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=ia.call(o)),n[o]=u},cl($t)),UE=lp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=ia.call(o)),Fe.call(n,o)?n[o].push(u):n[o]=[u]},pe),BE=_e(Mi);function ct(n){return Ct(n)?Td(n):Iu(n)}function kt(n){return Ct(n)?Td(n,!0):w1(n)}function HE(n,o){var u={};return o=pe(o,3),vr(n,function(y,_,T){Mr(u,o(y,_,T),y)}),u}function qE(n,o){var u={};return o=pe(o,3),vr(n,function(y,_,T){Mr(u,_,o(y,_,T))}),u}var ZE=ii(function(n,o,u){ya(n,o,u)}),Jp=ii(function(n,o,u,y){ya(n,o,u,y)}),GE=Dr(function(n,o){var u={};if(n==null)return u;var y=!1;o=Be(o,function(T){return T=nn(T,n),y||(y=T.length>1),T}),yr(n,Gu(n),u),y&&(u=Jt(u,g|p|b,W1));for(var _=o.length;_--;)ju(u,o[_]);return u});function KE(n,o){return Qp(n,Ia(pe(o)))}var VE=Dr(function(n,o){return n==null?{}:S1(n,o)});function Qp(n,o){if(n==null)return{};var u=Be(Gu(n),function(y){return[y]});return o=pe(o),Hd(n,u,function(y,_){return o(y,_[0])})}function YE(n,o,u){o=nn(o,n);var y=-1,_=o.length;for(_||(_=1,n=r);++y<_;){var T=n==null?r:n[br(o[y])];T===r&&(y=_,T=u),n=jr(T)?T.call(n):T}return n}function XE(n,o,u){return n==null?n:Di(n,o,u)}function JE(n,o,u,y){return y=typeof y=="function"?y:r,n==null?n:Di(n,o,u,y)}var eh=dp(ct),th=dp(kt);function QE(n,o,u){var y=we(n),_=y||an(n)||si(n);if(o=pe(o,4),u==null){var T=n&&n.constructor;_?u=y?new T:[]:Ge(n)?u=jr(T)?ni(sa(n)):{}:u={}}return(_?Vt:vr)(n,function(P,I,z){return o(u,P,I,z)}),u}function e_(n,o){return n==null?!0:ju(n,o)}function t_(n,o,u){return n==null?n:Vd(n,o,Uu(u))}function r_(n,o,u,y){return y=typeof y=="function"?y:r,n==null?n:Vd(n,o,Uu(u),y)}function ui(n){return n==null?[]:wu(n,ct(n))}function n_(n){return n==null?[]:wu(n,kt(n))}function i_(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=tr(u),u=u===u?u:0),o!==r&&(o=tr(o),o=o===o?o:0),On(tr(n),o,u)}function o_(n,o,u){return o=zr(o),u===r?(u=o,o=0):u=zr(u),n=tr(n),f1(n,o,u)}function a_(n,o,u){if(u&&typeof u!="boolean"&&Ot(n,o,u)&&(o=u=r),u===r&&(typeof o=="boolean"?(u=o,o=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&o===r?(n=0,o=1):(n=zr(n),o===r?(o=n,n=0):o=zr(o)),n>o){var y=n;n=o,o=y}if(u||n%1||o%1){var _=Od();return bt(n+_*(o-n+Nb("1e-"+((_+"").length-1))),o)}return Fu(n,o)}var s_=oi(function(n,o,u){return o=o.toLowerCase(),n+(u?rh(o):o)});function rh(n){return ll(ke(n).toLowerCase())}function nh(n){return n=ke(n),n&&n.replace(lb,Xb).replace(Rb,"")}function u_(n,o,u){n=ke(n),o=Nt(o);var y=n.length;u=u===r?y:On(xe(u),0,y);var _=u;return u-=o.length,u>=0&&n.slice(u,_)==o}function l_(n){return n=ke(n),n&&B0.test(n)?n.replace(Lf,Jb):n}function c_(n){return n=ke(n),n&&V0.test(n)?n.replace(iu,"\\$&"):n}var f_=oi(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),d_=oi(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),p_=ap("toLowerCase");function h_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;if(!o||y>=o)return n;var _=(o-y)/2;return _a(fa(_),u)+n+_a(ca(_),u)}function g_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;return o&&y<o?n+_a(o-y,u):n}function m_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;return o&&y<o?_a(o-y,u)+n:n}function v_(n,o,u){return u||o==null?o=0:o&&(o=+o),_w(ke(n).replace(ou,""),o||0)}function y_(n,o,u){return(u?Ot(n,o,u):o===r)?o=1:o=xe(o),Du(ke(n),o)}function b_(){var n=arguments,o=ke(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var w_=oi(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function x_(n,o,u){return u&&typeof u!="number"&&Ot(n,o,u)&&(o=u=r),u=u===r?Q:u>>>0,u?(n=ke(n),n&&(typeof o=="string"||o!=null&&!al(o))&&(o=Nt(o),!o&&Xn(n))?on(sr(n),0,u):n.split(o,u)):[]}var S_=oi(function(n,o,u){return n+(u?" ":"")+ll(o)});function E_(n,o,u){return n=ke(n),u=u==null?0:On(xe(u),0,n.length),o=Nt(o),n.slice(u,u+o.length)==o}function __(n,o,u){var y=A.templateSettings;u&&Ot(n,o,u)&&(o=r),n=ke(n),o=Fa({},o,y,pp);var _=Fa({},o.imports,y.imports,pp),T=ct(_),P=wu(_,T),I,z,V=0,X=o.interpolate||Vo,ee="__p += '",oe=Su((o.escape||Vo).source+"|"+X.source+"|"+(X===Mf?nb:Vo).source+"|"+(o.evaluate||Vo).source+"|$","g"),le="//# sourceURL="+(Fe.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ib+"]")+`
185
+ `;n.replace(oe,function(ge,Oe,Re,zt,At,Wt){return Re||(Re=zt),ee+=n.slice(V,Wt).replace(cb,Qb),Oe&&(I=!0,ee+=`' +
186
+ __e(`+Oe+`) +
187
+ '`),At&&(z=!0,ee+=`';
188
+ `+At+`;
189
+ __p += '`),Re&&(ee+=`' +
190
+ ((__t = (`+Re+`)) == null ? '' : __t) +
191
+ '`),V=Wt+ge.length,ge}),ee+=`';
192
+ `;var he=Fe.call(o,"variable")&&o.variable;if(!he)ee=`with (obj) {
193
+ `+ee+`
192
194
  }
193
- `;else if(pS.test(Ee))throw new Ae(c);le=(G?le.replace(X1,""):le).replace(J1,"$1").replace(Q1,"$1;"),le="function("+(Ee||"obj")+`) {
194
- `+(Ee?"":`obj || (obj = {});
195
- `)+"var __t, __p = ''"+(W?", __e = _.escape":"")+(G?`, __j = Array.prototype.join;
195
+ `;else if(tb.test(he))throw new be(c);ee=(z?ee.replace(j0,""):ee).replace(z0,"$1").replace(W0,"$1;"),ee="function("+(he||"obj")+`) {
196
+ `+(he?"":`obj || (obj = {});
197
+ `)+"var __t, __p = ''"+(I?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
196
198
  function print() { __p += __j.call(arguments, '') }
197
199
  `:`;
198
- `)+le+`return __p
199
- }`;var Ie=ov(function(){return je(P,xe+"return "+le).apply(r,D)});if(Ie.source=le,Mu(Ie))throw Ie;return Ie}function LT(i){return He(i).toLowerCase()}function zT(i){return He(i).toUpperCase()}function jT(i,s,f){if(i=He(i),i&&(f||s===r))return hh(i);if(!i||!(s=ar(s)))return i;var _=$r(i),O=$r(s),P=gh(_,O),D=vh(_,O)+1;return Fn(_,P,D).join("")}function FT(i,s,f){if(i=He(i),i&&(f||s===r))return i.slice(0,bh(i)+1);if(!i||!(s=ar(s)))return i;var _=$r(i),O=vh(_,$r(s))+1;return Fn(_,0,O).join("")}function HT(i,s,f){if(i=He(i),i&&(f||s===r))return i.replace(Mc,"");if(!i||!(s=ar(s)))return i;var _=$r(i),O=gh(_,$r(s));return Fn(_,O).join("")}function WT(i,s){var f=V,_=$;if(ut(s)){var O="separator"in s?s.separator:O;f="length"in s?Ce(s.length):f,_="omission"in s?ar(s.omission):_}i=He(i);var P=i.length;if(Bi(i)){var D=$r(i);P=D.length}if(f>=P)return i;var W=f-Vi(_);if(W<1)return _;var G=D?Fn(D,0,W).join(""):i.slice(0,W);if(O===r)return G+_;if(D&&(W+=G.length-W),Du(O)){if(i.slice(W).search(O)){var ie,oe=G;for(O.global||(O=Xc(O.source,He($p.exec(O))+"g")),O.lastIndex=0;ie=O.exec(oe);)var le=ie.index;G=G.slice(0,le===r?W:le)}}else if(i.indexOf(ar(O),W)!=W){var ve=G.lastIndexOf(O);ve>-1&&(G=G.slice(0,ve))}return G+_}function BT(i){return i=He(i),i&&eS.test(i)?i.replace(Np,b_):i}var VT=Xi(function(i,s,f){return i+(f?" ":"")+s.toUpperCase()}),zu=ag("toUpperCase");function iv(i,s,f){return i=He(i),s=f?r:s,s===r?p_(i)?x_(i):i_(i):i.match(s)||[]}var ov=Ne(function(i,s){try{return ir(i,r,s)}catch(f){return Mu(f)?f:new Ae(f)}}),UT=vn(function(i,s){return br(s,function(f){f=Kr(f),hn(i,f,Iu(i[f],i))}),i});function qT(i){var s=i==null?0:i.length,f=_e();return i=s?st(i,function(_){if(typeof _[1]!="function")throw new yr(l);return[f(_[0]),_[1]]}):[],Ne(function(_){for(var O=-1;++O<s;){var P=i[O];if(ir(P[0],this,_))return ir(P[1],this,_)}})}function GT(i){return bE(xr(i,h))}function ju(i){return function(){return i}}function YT(i,s){return i==null||i!==i?s:i}var KT=lg(),ZT=lg(!0);function er(i){return i}function Fu(i){return zh(typeof i=="function"?i:xr(i,h))}function XT(i){return Fh(xr(i,h))}function JT(i,s){return Hh(i,xr(s,h))}var QT=Ne(function(i,s){return function(f){return Lo(f,i,s)}}),eR=Ne(function(i,s){return function(f){return Lo(i,f,s)}});function Hu(i,s,f){var _=Pt(s),O=Es(s,_);f==null&&!(ut(s)&&(O.length||!_.length))&&(f=s,s=i,i=this,O=Es(s,Pt(s)));var P=!(ut(f)&&"chain"in f)||!!f.chain,D=bn(i);return br(O,function(W){var G=s[W];i[W]=G,D&&(i.prototype[W]=function(){var ie=this.__chain__;if(P||ie){var oe=i(this.__wrapped__),le=oe.__actions__=Xt(this.__actions__);return le.push({func:G,args:arguments,thisArg:i}),oe.__chain__=ie,oe}return G.apply(i,Mn([this.value()],arguments))})}),i}function tR(){return Nt._===this&&(Nt._=A_),this}function Wu(){}function rR(i){return i=Ce(i),Ne(function(s){return Wh(s,i)})}var nR=yu(st),iR=yu(ch),oR=yu(Vc);function av(i){return Ou(i)?Uc(Kr(i)):DE(i)}function aR(i){return function(s){return i==null?r:gi(i,s)}}var sR=ug(),lR=ug(!0);function Bu(){return[]}function Vu(){return!1}function cR(){return{}}function uR(){return""}function fR(){return!0}function dR(i,s){if(i=Ce(i),i<1||i>K)return[];var f=U,_=jt(i,U);s=_e(s),i-=U;for(var O=Yc(_,s);++f<i;)s(f);return O}function pR(i){return Te(i)?st(i,Kr):sr(i)?[i]:Xt(Og(He(i)))}function hR(i){var s=++k_;return He(i)+s}var gR=Cs(function(i,s){return i+s},0),vR=wu("ceil"),mR=Cs(function(i,s){return i/s},1),bR=wu("floor");function yR(i){return i&&i.length?_s(i,er,ou):r}function wR(i,s){return i&&i.length?_s(i,_e(s,2),ou):r}function xR(i){return dh(i,er)}function SR(i,s){return dh(i,_e(s,2))}function _R(i){return i&&i.length?_s(i,er,cu):r}function ER(i,s){return i&&i.length?_s(i,_e(s,2),cu):r}var kR=Cs(function(i,s){return i*s},1),OR=wu("round"),AR=Cs(function(i,s){return i-s},0);function TR(i){return i&&i.length?Gc(i,er):0}function RR(i,s){return i&&i.length?Gc(i,_e(s,2)):0}return T.after=XO,T.ary=Lg,T.assign=zA,T.assignIn=Xg,T.assignInWith=Bs,T.assignWith=jA,T.at=FA,T.before=zg,T.bind=Iu,T.bindAll=UT,T.bindKey=jg,T.castArray=cA,T.chain=Mg,T.chunk=bk,T.compact=yk,T.concat=wk,T.cond=qT,T.conforms=GT,T.constant=ju,T.countBy=TO,T.create=HA,T.curry=Fg,T.curryRight=Hg,T.debounce=Wg,T.defaults=WA,T.defaultsDeep=BA,T.defer=JO,T.delay=QO,T.difference=xk,T.differenceBy=Sk,T.differenceWith=_k,T.drop=Ek,T.dropRight=kk,T.dropRightWhile=Ok,T.dropWhile=Ak,T.fill=Tk,T.filter=CO,T.flatMap=NO,T.flatMapDeep=MO,T.flatMapDepth=DO,T.flatten=Cg,T.flattenDeep=Rk,T.flattenDepth=Ck,T.flip=eA,T.flow=KT,T.flowRight=ZT,T.fromPairs=Pk,T.functions=ZA,T.functionsIn=XA,T.groupBy=$O,T.initial=Nk,T.intersection=Mk,T.intersectionBy=Dk,T.intersectionWith=$k,T.invert=QA,T.invertBy=eT,T.invokeMap=zO,T.iteratee=Fu,T.keyBy=jO,T.keys=Pt,T.keysIn=Qt,T.map=Ls,T.mapKeys=rT,T.mapValues=nT,T.matches=XT,T.matchesProperty=JT,T.memoize=js,T.merge=iT,T.mergeWith=Jg,T.method=QT,T.methodOf=eR,T.mixin=Hu,T.negate=Fs,T.nthArg=rR,T.omit=oT,T.omitBy=aT,T.once=tA,T.orderBy=FO,T.over=nR,T.overArgs=rA,T.overEvery=iR,T.overSome=oR,T.partial=Nu,T.partialRight=Bg,T.partition=HO,T.pick=sT,T.pickBy=Qg,T.property=av,T.propertyOf=aR,T.pull=Fk,T.pullAll=Ig,T.pullAllBy=Hk,T.pullAllWith=Wk,T.pullAt=Bk,T.range=sR,T.rangeRight=lR,T.rearg=nA,T.reject=VO,T.remove=Vk,T.rest=iA,T.reverse=Cu,T.sampleSize=qO,T.set=cT,T.setWith=uT,T.shuffle=GO,T.slice=Uk,T.sortBy=ZO,T.sortedUniq=Jk,T.sortedUniqBy=Qk,T.split=NT,T.spread=oA,T.tail=eO,T.take=tO,T.takeRight=rO,T.takeRightWhile=nO,T.takeWhile=iO,T.tap=yO,T.throttle=aA,T.thru=$s,T.toArray=Yg,T.toPairs=ev,T.toPairsIn=tv,T.toPath=pR,T.toPlainObject=Zg,T.transform=fT,T.unary=sA,T.union=oO,T.unionBy=aO,T.unionWith=sO,T.uniq=lO,T.uniqBy=cO,T.uniqWith=uO,T.unset=dT,T.unzip=Pu,T.unzipWith=Ng,T.update=pT,T.updateWith=hT,T.values=eo,T.valuesIn=gT,T.without=fO,T.words=iv,T.wrap=lA,T.xor=dO,T.xorBy=pO,T.xorWith=hO,T.zip=gO,T.zipObject=vO,T.zipObjectDeep=mO,T.zipWith=bO,T.entries=ev,T.entriesIn=tv,T.extend=Xg,T.extendWith=Bs,Hu(T,T),T.add=gR,T.attempt=ov,T.camelCase=yT,T.capitalize=rv,T.ceil=vR,T.clamp=vT,T.clone=uA,T.cloneDeep=dA,T.cloneDeepWith=pA,T.cloneWith=fA,T.conformsTo=hA,T.deburr=nv,T.defaultTo=YT,T.divide=mR,T.endsWith=wT,T.eq=zr,T.escape=xT,T.escapeRegExp=ST,T.every=RO,T.find=PO,T.findIndex=Tg,T.findKey=VA,T.findLast=IO,T.findLastIndex=Rg,T.findLastKey=UA,T.floor=bR,T.forEach=Dg,T.forEachRight=$g,T.forIn=qA,T.forInRight=GA,T.forOwn=YA,T.forOwnRight=KA,T.get=$u,T.gt=gA,T.gte=vA,T.has=JA,T.hasIn=Lu,T.head=Pg,T.identity=er,T.includes=LO,T.indexOf=Ik,T.inRange=mT,T.invoke=tT,T.isArguments=bi,T.isArray=Te,T.isArrayBuffer=mA,T.isArrayLike=Jt,T.isArrayLikeObject=vt,T.isBoolean=bA,T.isBuffer=Hn,T.isDate=yA,T.isElement=wA,T.isEmpty=xA,T.isEqual=SA,T.isEqualWith=_A,T.isError=Mu,T.isFinite=EA,T.isFunction=bn,T.isInteger=Vg,T.isLength=Hs,T.isMap=Ug,T.isMatch=kA,T.isMatchWith=OA,T.isNaN=AA,T.isNative=TA,T.isNil=CA,T.isNull=RA,T.isNumber=qg,T.isObject=ut,T.isObjectLike=ht,T.isPlainObject=Bo,T.isRegExp=Du,T.isSafeInteger=PA,T.isSet=Gg,T.isString=Ws,T.isSymbol=sr,T.isTypedArray=Qi,T.isUndefined=IA,T.isWeakMap=NA,T.isWeakSet=MA,T.join=Lk,T.kebabCase=_T,T.last=_r,T.lastIndexOf=zk,T.lowerCase=ET,T.lowerFirst=kT,T.lt=DA,T.lte=$A,T.max=yR,T.maxBy=wR,T.mean=xR,T.meanBy=SR,T.min=_R,T.minBy=ER,T.stubArray=Bu,T.stubFalse=Vu,T.stubObject=cR,T.stubString=uR,T.stubTrue=fR,T.multiply=kR,T.nth=jk,T.noConflict=tR,T.noop=Wu,T.now=zs,T.pad=OT,T.padEnd=AT,T.padStart=TT,T.parseInt=RT,T.random=bT,T.reduce=WO,T.reduceRight=BO,T.repeat=CT,T.replace=PT,T.result=lT,T.round=OR,T.runInContext=q,T.sample=UO,T.size=YO,T.snakeCase=IT,T.some=KO,T.sortedIndex=qk,T.sortedIndexBy=Gk,T.sortedIndexOf=Yk,T.sortedLastIndex=Kk,T.sortedLastIndexBy=Zk,T.sortedLastIndexOf=Xk,T.startCase=MT,T.startsWith=DT,T.subtract=AR,T.sum=TR,T.sumBy=RR,T.template=$T,T.times=dR,T.toFinite=yn,T.toInteger=Ce,T.toLength=Kg,T.toLower=LT,T.toNumber=Er,T.toSafeInteger=LA,T.toString=He,T.toUpper=zT,T.trim=jT,T.trimEnd=FT,T.trimStart=HT,T.truncate=WT,T.unescape=BT,T.uniqueId=hR,T.upperCase=VT,T.upperFirst=zu,T.each=Dg,T.eachRight=$g,T.first=Pg,Hu(T,(function(){var i={};return Gr(T,function(s,f){Ke.call(T.prototype,f)||(i[f]=s)}),i})(),{chain:!1}),T.VERSION=n,br(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){T[i].placeholder=T}),br(["drop","take"],function(i,s){$e.prototype[i]=function(f){f=f===r?1:At(Ce(f),0);var _=this.__filtered__&&!s?new $e(this):this.clone();return _.__filtered__?_.__takeCount__=jt(f,_.__takeCount__):_.__views__.push({size:jt(f,U),type:i+(_.__dir__<0?"Right":"")}),_},$e.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),br(["filter","map","takeWhile"],function(i,s){var f=s+1,_=f==j||f==Y;$e.prototype[i]=function(O){var P=this.clone();return P.__iteratees__.push({iteratee:_e(O,3),type:f}),P.__filtered__=P.__filtered__||_,P}}),br(["head","last"],function(i,s){var f="take"+(s?"Right":"");$e.prototype[i]=function(){return this[f](1).value()[0]}}),br(["initial","tail"],function(i,s){var f="drop"+(s?"":"Right");$e.prototype[i]=function(){return this.__filtered__?new $e(this):this[f](1)}}),$e.prototype.compact=function(){return this.filter(er)},$e.prototype.find=function(i){return this.filter(i).head()},$e.prototype.findLast=function(i){return this.reverse().find(i)},$e.prototype.invokeMap=Ne(function(i,s){return typeof i=="function"?new $e(this):this.map(function(f){return Lo(f,i,s)})}),$e.prototype.reject=function(i){return this.filter(Fs(_e(i)))},$e.prototype.slice=function(i,s){i=Ce(i);var f=this;return f.__filtered__&&(i>0||s<0)?new $e(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),s!==r&&(s=Ce(s),f=s<0?f.dropRight(-s):f.take(s-i)),f)},$e.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},$e.prototype.toArray=function(){return this.take(U)},Gr($e.prototype,function(i,s){var f=/^(?:filter|find|map|reject)|While$/.test(s),_=/^(?:head|last)$/.test(s),O=T[_?"take"+(s=="last"?"Right":""):s],P=_||/^find/.test(s);O&&(T.prototype[s]=function(){var D=this.__wrapped__,W=_?[1]:arguments,G=D instanceof $e,ie=W[0],oe=G||Te(D),le=function(De){var Le=O.apply(T,Mn([De],W));return _&&ve?Le[0]:Le};oe&&f&&typeof ie=="function"&&ie.length!=1&&(G=oe=!1);var ve=this.__chain__,xe=!!this.__actions__.length,Ee=P&&!ve,Ie=G&&!xe;if(!P&&oe){D=Ie?D:new $e(this);var ke=i.apply(D,W);return ke.__actions__.push({func:$s,args:[le],thisArg:r}),new wr(ke,ve)}return Ee&&Ie?i.apply(this,W):(ke=this.thru(le),Ee?_?ke.value()[0]:ke.value():ke)})}),br(["pop","push","shift","sort","splice","unshift"],function(i){var s=ls[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",_=/^(?:pop|shift)$/.test(i);T.prototype[i]=function(){var O=arguments;if(_&&!this.__chain__){var P=this.value();return s.apply(Te(P)?P:[],O)}return this[f](function(D){return s.apply(Te(D)?D:[],O)})}}),Gr($e.prototype,function(i,s){var f=T[s];if(f){var _=f.name+"";Ke.call(Yi,_)||(Yi[_]=[]),Yi[_].push({name:s,func:f})}}),Yi[Rs(r,m).name]=[{name:"wrapper",func:r}],$e.prototype.clone=B_,$e.prototype.reverse=V_,$e.prototype.value=U_,T.prototype.at=wO,T.prototype.chain=xO,T.prototype.commit=SO,T.prototype.next=_O,T.prototype.plant=kO,T.prototype.reverse=OO,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=AO,T.prototype.first=T.prototype.head,Co&&(T.prototype[Co]=EO),T}),Ui=S_();ui?((ui.exports=Ui)._=Ui,Fc._=Ui):Nt._=Ui}).call(zM)})(wa,wa.exports)),wa.exports}var Je=jM();const cd={FdSave:wt.FdSave,FdWarningDanger:wt.FdWarningDanger,FdInfoCircle:wt.FdInfoCircle,FdInfoBold:wt.FdInfoBold};var rp=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(rp||{}),Ci=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Ci||{}),co=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(co||{});const _w={[Ci.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Ci.DANGER]:{icon:"red-500",button:"primary-dark"},[Ci.WARNING]:{icon:"yellow-400",button:"primary-dark"}},_f=({color:e=Ci.PRIMARY,variant:t="solid",children:r,autoFocus:n,...o})=>{const a=_w[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${a}`:`text-white bg-${a} border border-${a} hover:border-white hover:bg-primary-hover hover:text-white`;return C.jsx("button",{autoFocus:n,className:tt("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...o,children:r})},FM=({name:e,color:t=Ci.PRIMARY,className:r="w-8 h-8"})=>{const n=cd[e]||cd.FdInfoCircle,o=`text-${_w[t].icon}`;return C.jsx(n,{className:tt(r,o)})};(function(){try{const e=document.createElement("style");e.setAttribute("data-vite-dev-id","ui-components.css"),e.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-warning-600:var(--ws-warning-600);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--color-negative-600:var(--ws-negative-600);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-grey-200);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-bg:var(--ws-select-bg);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.my-1:not(#\\#){margin-block:calc(var(--spacing)*1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-auto:not(#\\#){width:auto}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.content-center:not(#\\#){align-content:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-none:not(#\\#){border-top-left-radius:0;border-top-right-radius:0}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-400:not(#\\#){border-color:var(--color-negative-400)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-500:not(#\\#){border-color:var(--color-positive-500)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-500:not(#\\#){border-color:var(--color-warning-500)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-bg:not(#\\#){background-color:var(--color-select-bg)}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.italic:not(#\\#){font-style:italic}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-black:hover:not(#\\#){border-color:var(--color-black)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-600:hover:not(#\\#){background-color:var(--color-negative-600)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-600:hover:not(#\\#){background-color:var(--color-positive-600)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-600:hover:not(#\\#){background-color:var(--color-warning-600)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-gray-50:hover:not(#\\#){color:var(--color-gray-50)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-negative-hover:hover:not(#\\#){color:var(--color-negative-hover)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-hover:hover:not(#\\#){color:var(--color-positive-hover)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:text-warning-hover:hover:not(#\\#){color:var(--color-warning-hover)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--theia-button-hoverBackground,var(--ws-palette-primary-200)));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--vscode-inputValidation-errorBackground,var(--ws-palette-negative-200));--ws-negative-dark:var(--vscode-inputValidation-errorBackground,var(--ws-palette-negative-600));--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-panel-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editor-group-header-background,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editor-group-header-background,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--theia-input-background,var(--ws-palette-input-bg)));--ws-input-border:var(--vscode-input-border,var(--theia-input-border,var(--ws-palette-input-border)));--ws-input-text:var(--vscode-input-foreground,var(--theia-input-foreground,var(--ws-palette-input-text)));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder)));--ws-input-focus-border:var(--vscode-focusBorder,var(--theia-focusBorder,var(--ws-palette-primary-500)));--ws-select-bg:var(--vscode-dropdown-background,var(--theia-dropdown-background,var(--ws-input-bg)));--ws-select-border:var(--vscode-dropdown-border,var(--theia-dropdown-border,var(--ws-input-border)));--ws-select-text:var(--vscode-dropdown-foreground,var(--theia-dropdown-foreground,var(--ws-input-text)));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--theia-dropdown-listBackground,var(--ws-palette-grey-900)));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700)));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500)));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-0:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-900)));--ws-panel-1:var(--vscode-sideBar-background,var(--theia-sideBar-background,var(--ws-palette-grey-700)));--ws-panel-2:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-900)));--ws-panel-3:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editor-group-header-background,var(--ws-palette-grey-900)));--ws-panel-4:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-300)));--ws-panel-5:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-950)));--ws-panel-border-subtle:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-100)));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300)));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900));--ws-tab-border:var(--vscode-tab-border,var(--ws-palette-grey-950));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--ws-bg-foreground));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--ws-palette-grey-200));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--ws-palette-grey-700));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--ws-palette-grey-800));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--ws-bg-foreground));--ws-panel-bg:var(--vscode-panel-background,var(--ws-bg-default));--ws-panel-border:var(--vscode-panel-border,var(--ws-palette-grey-950));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--ws-palette-primary-500));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--ws-bg-foreground));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--ws-palette-grey-100))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
200
- `,document.head.appendChild(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const HM=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),WM=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),_c=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),BM=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),VM=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),UM=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},qM=(e,t)=>({classGroupId:e,validator:t}),Ew=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Jl="-",db=[],GM="arbitrary..",YM=e=>{const t=ZM(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return KM(o);const a=o.split(Jl),l=a[0]===""&&a.length>1?1:0;return kw(a,l,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=n[o],c=r[o];return l?c?UM(c,l):l:c||db}return r[o]||db}}},kw=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const u=kw(e,t+1,o);if(u)return u}const a=r.validators;if(a===null)return;const l=t===0?e.join(Jl):e.slice(t).join(Jl),c=a.length;for(let u=0;u<c;u++){const d=a[u];if(d.validator(l))return d.classGroupId}},KM=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?GM+n:void 0})(),ZM=e=>{const{theme:t,classGroups:r}=e;return XM(r,t)},XM=(e,t)=>{const r=Ew();for(const n in e){const o=e[n];np(o,r,n,t)}return r},np=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const l=e[a];JM(l,t,r,n)}},JM=(e,t,r,n)=>{if(typeof e=="string"){QM(e,t,r);return}if(typeof e=="function"){eD(e,t,r,n);return}tD(e,t,r,n)},QM=(e,t,r)=>{const n=e===""?t:Ow(t,e);n.classGroupId=r},eD=(e,t,r,n)=>{if(rD(e)){np(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(qM(r,e))},tD=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let l=0;l<a;l++){const[c,u]=o[l];np(u,Ow(t,c),r,n)}},Ow=(e,t)=>{let r=e;const n=t.split(Jl),o=n.length;for(let a=0;a<o;a++){const l=n[a];let c=r.nextPart.get(l);c||(c=Ew(),r.nextPart.set(l,c)),r=c}return r},rD=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,nD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(a,l)=>{r[a]=l,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let l=r[a];if(l!==void 0)return l;if((l=n[a])!==void 0)return o(a,l),l},set(a,l){a in r?r[a]=l:o(a,l)}}},ud="!",pb=":",iD=[],hb=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),oD=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let l=0,c=0,u=0,d;const p=o.length;for(let v=0;v<p;v++){const b=o[v];if(l===0&&c===0){if(b===pb){a.push(o.slice(u,v)),u=v+1;continue}if(b==="/"){d=v;continue}}b==="["?l++:b==="]"?l--:b==="("?c++:b===")"&&c--}const h=a.length===0?o:o.slice(u);let g=h,y=!1;h.endsWith(ud)?(g=h.slice(0,-1),y=!0):h.startsWith(ud)&&(g=h.slice(1),y=!0);const S=d&&d>u?d-u:void 0;return hb(a,y,g,S)};if(t){const o=t+pb,a=n;n=l=>l.startsWith(o)?a(l.slice(o.length)):hb(iD,!1,l,void 0,!0)}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},aD=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let a=0;a<r.length;a++){const l=r[a],c=l[0]==="[",u=t.has(l);c||u?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(l)):o.push(l)}return o.length>0&&(o.sort(),n.push(...o)),n}},sD=e=>({cache:nD(e.cacheSize),parseClassName:oD(e),sortModifiers:aD(e),...YM(e)}),lD=/\s+/,cD=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,l=[],c=e.trim().split(lD);let u="";for(let d=c.length-1;d>=0;d-=1){const p=c[d],{isExternal:h,modifiers:g,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:v}=r(p);if(h){u=p+(u.length>0?" "+u:u);continue}let b=!!v,m=n(b?S.substring(0,v):S);if(!m){if(!b){u=p+(u.length>0?" "+u:u);continue}if(m=n(S),!m){u=p+(u.length>0?" "+u:u);continue}b=!1}const w=g.length===0?"":g.length===1?g[0]:a(g).join(":"),x=y?w+ud:w,k=x+m;if(l.indexOf(k)>-1)continue;l.push(k);const E=o(m,b);for(let R=0;R<E.length;++R){const F=E[R];l.push(x+F)}u=p+(u.length>0?" "+u:u)}return u},uD=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=Aw(r))&&(o&&(o+=" "),o+=n);return o},Aw=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Aw(e[n]))&&(r&&(r+=" "),r+=t);return r},gb=(e,...t)=>{let r,n,o,a;const l=u=>{const d=t.reduce((p,h)=>h(p),e());return r=sD(d),n=r.cache.get,o=r.cache.set,a=c,c(u)},c=u=>{const d=n(u);if(d)return d;const p=cD(u,r);return o(u,p),p};return a=l,(...u)=>a(uD(...u))},fD=[],Tt=e=>{const t=r=>r[e]||fD;return t.isThemeGetter=!0,t},Tw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,dD=/^\d+\/\d+$/,pD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oo=e=>dD.test(e),Me=e=>!!e&&!Number.isNaN(Number(e)),Un=e=>!!e&&Number.isInteger(Number(e)),Ef=e=>e.endsWith("%")&&Me(e.slice(0,-1)),Sn=e=>pD.test(e),bD=()=>!0,yD=e=>hD.test(e)&&!gD.test(e),Cw=()=>!1,wD=e=>vD.test(e),xD=e=>mD.test(e),SD=e=>!ye(e)&&!we(e),_D=e=>_o(e,Nw,Cw),ye=e=>Tw.test(e),xi=e=>_o(e,Mw,yD),kf=e=>_o(e,TD,Me),vb=e=>_o(e,Pw,Cw),ED=e=>_o(e,Iw,xD),sl=e=>_o(e,Dw,wD),we=e=>Rw.test(e),pa=e=>Eo(e,Mw),kD=e=>Eo(e,RD),mb=e=>Eo(e,Pw),OD=e=>Eo(e,Nw),AD=e=>Eo(e,Iw),ll=e=>Eo(e,Dw,!0),_o=(e,t,r)=>{const n=Tw.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Eo=(e,t,r=!1)=>{const n=Rw.exec(e);return n?n[1]?t(n[1]):r:!1},Pw=e=>e==="position"||e==="percentage",Iw=e=>e==="image"||e==="url",Nw=e=>e==="length"||e==="size"||e==="bg-size",Mw=e=>e==="length",TD=e=>e==="number",RD=e=>e==="family-name",Dw=e=>e==="shadow",bb=()=>{const e=Tt("color"),t=Tt("font"),r=Tt("text"),n=Tt("font-weight"),o=Tt("tracking"),a=Tt("leading"),l=Tt("breakpoint"),c=Tt("container"),u=Tt("spacing"),d=Tt("radius"),p=Tt("shadow"),h=Tt("inset-shadow"),g=Tt("text-shadow"),y=Tt("drop-shadow"),S=Tt("blur"),v=Tt("perspective"),b=Tt("aspect"),m=Tt("ease"),w=Tt("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...k(),we,ye],R=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],A=()=>[we,ye,u],N=()=>[oo,"full","auto",...A()],V=()=>[Un,"none","subgrid",we,ye],$=()=>["auto",{span:["full",Un,we,ye]},Un,we,ye],M=()=>[Un,"auto",we,ye],B=()=>["auto","min","max","fr",we,ye],j=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...A()],X=()=>[oo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],K=()=>[e,we,ye],me=()=>[...k(),mb,vb,{position:[we,ye]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",OD,_D,{size:[we,ye]}],te=()=>[Ef,pa,xi],ee=()=>["","none","full",d,we,ye],J=()=>["",Me,pa,xi],ae=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[Me,Ef,mb,vb],ce=()=>["","none",S,we,ye],he=()=>["none",Me,we,ye],pe=()=>["none",Me,we,ye],Se=()=>[Me,we,ye],Z=()=>[oo,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Sn],breakpoint:[Sn],color:[bD],container:[Sn],"drop-shadow":[Sn],ease:["in","out","in-out"],font:[SD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Sn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Sn],shadow:[Sn],spacing:["px",Me],text:[Sn],"text-shadow":[Sn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oo,ye,we,b]}],container:["container"],columns:[{columns:[Me,ye,we,c]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Un,"auto",we,ye]}],basis:[{basis:[oo,"full","auto",c,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,oo,"auto","initial","none",ye]}],grow:[{grow:["",Me,we,ye]}],shrink:[{shrink:["",Me,we,ye]}],order:[{order:[Un,"first","last","none",we,ye]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...j(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...j()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":j()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[c,"screen",...X()]}],"min-w":[{"min-w":[c,"screen","none",...X()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,pa,xi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,we,kf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ef,ye]}],"font-family":[{font:[kD,ye,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,we,ye]}],"line-clamp":[{"line-clamp":[Me,"none",we,kf]}],leading:[{leading:[a,...A()]}],"list-image":[{"list-image":["none",we,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",we,xi]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[Me,"auto",we,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Un,we,ye],radial:["",we,ye],conic:[Un,we,ye]},AD,ED]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,we,ye]}],"outline-w":[{outline:["",Me,pa,xi]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",p,ll,sl]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",h,ll,sl]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[Me,xi]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",g,ll,sl]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[Me,we,ye]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[we,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,ye]}],filter:[{filter:["","none",we,ye]}],blur:[{blur:ce()}],brightness:[{brightness:[Me,we,ye]}],contrast:[{contrast:[Me,we,ye]}],"drop-shadow":[{"drop-shadow":["","none",y,ll,sl]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",Me,we,ye]}],"hue-rotate":[{"hue-rotate":[Me,we,ye]}],invert:[{invert:["",Me,we,ye]}],saturate:[{saturate:[Me,we,ye]}],sepia:[{sepia:["",Me,we,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",we,ye]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[Me,we,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Me,we,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,we,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,we,ye]}],"backdrop-invert":[{"backdrop-invert":["",Me,we,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Me,we,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Me,we,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,we,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",we,ye]}],ease:[{ease:["linear","initial",m,we,ye]}],delay:[{delay:[Me,we,ye]}],animate:[{animate:["none",w,we,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,we,ye]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:Se()}],"skew-x":[{"skew-x":Se()}],"skew-y":[{"skew-y":Se()}],transform:[{transform:[we,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,ye]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[Me,pa,xi,kf]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},CD=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:a={}})=>(xa(e,"cacheSize",t),xa(e,"prefix",r),xa(e,"experimentalParseClassName",n),cl(e.theme,a.theme),cl(e.classGroups,a.classGroups),cl(e.conflictingClassGroups,a.conflictingClassGroups),cl(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),xa(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),ul(e.theme,o.theme),ul(e.classGroups,o.classGroups),ul(e.conflictingClassGroups,o.conflictingClassGroups),ul(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),$w(e,o,"orderSensitiveModifiers"),e),xa=(e,t,r)=>{r!==void 0&&(e[t]=r)},cl=(e,t)=>{if(t)for(const r in t)xa(e,r,t[r])},ul=(e,t)=>{if(t)for(const r in t)$w(e,t,r)},$w=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},PD=(e,...t)=>typeof e=="function"?gb(bb,e,...t):gb(()=>CD(bb(),e),...t);function Lw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yb={exports:{}};/*!
201
- Copyright (c) 2018 Jed Watson.
202
- Licensed under the MIT License (MIT), see
203
- http://jedwatson.github.io/classnames
204
- */var wb;function ID(){return wb||(wb=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(a=o(a,n(c)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var c in a)t.call(a,c)&&a[c]&&(l=o(l,c));return l}function o(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(yb)),yb.exports}var ND=ID();const ko=Lw(ND),MD=PD({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-s","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],"text-color":["text-body","text-muted","text-inactive-text","text-button-text","text-positive-text","text-negative-text","text-negative","text-warning-text","text-input-text","text-select-text","text-input-message-text","text-placeholder"]}}});function fe(...e){return MD(ko(e))}const Xa={sm:{checkbox:"size-4",hoverSquare:"size-2.5",text:"text-xs",spacing:"gap-1",icon:"size-3.25"},md:{checkbox:"size-5",hoverSquare:"size-3.5",text:"text-sm",spacing:"gap-1.5",icon:"size-4"},lg:{checkbox:"size-6",hoverSquare:"size-4",text:"text-base",spacing:"gap-2",icon:"size-5"}},Ar={primary:{checked:"bg-primary border-primary",unchecked:"border border-body bg-transparent",checkedHover:"hover:bg-primary-hover hover:border-primary-hover",hoverSquare:"bg-primary-hover",focus:"focus:ring-primary",label:"text-body"},positive:{checked:"bg-positive border-positive",unchecked:"border border-positive bg-transparent",checkedHover:"hover:bg-positive-hover hover:border-positive-hover",hoverSquare:"bg-positive-hover",focus:"focus:ring-positive",label:"text-positive"},warning:{checked:"bg-warning border-warning",unchecked:"border border-warning bg-transparent",checkedHover:"hover:bg-warning-hover hover:border-warning-hover",hoverSquare:"bg-warning-hover",focus:"focus:ring-warning",label:"text-warning"},negative:{checked:"bg-negative border-negative",unchecked:"border border-negative bg-transparent",checkedHover:"hover:bg-negative-hover hover:border-negative-hover",hoverSquare:"bg-negative-hover",focus:"focus:ring-negative",label:"text-negative"}},DD=`
205
- appearance-none border rounded transition-all duration-200
206
- focus:ring-2 focus:ring-offset-2 focus:outline-hidden
207
- relative
208
- `,$D=(e,t,r)=>{const{isChecked:n,isIndeterminate:o,isDisabled:a,isInvalid:l}=r,c=n||o;return fe(DD,Xa[e].checkbox,{"cursor-pointer":!a},l?{[Ar.negative.checked]:c,[Ar.negative.unchecked]:!c,[Ar.negative.checkedHover]:!a&&c,[Ar.negative.focus]:!a,"border-input-disable":a}:{[Ar[t].checked]:c&&!a,[Ar[t].unchecked]:!c&&!a,[Ar[t].checkedHover]:!a&&c,[Ar[t].focus]:!a,"border-input-disable":a,"bg-input-disable text-inactive-text":a&&c})},LD=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return fe(Xa[e].text,o?{[Ar.negative.label]:o}:{"text-input-disable":n,[Ar[t].label]:!n,"cursor-pointer":!n})},zD=e=>fe("inline-flex items-center ws-group",Xa[e].spacing),jD=(e,t,r)=>fe("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",Xa[e].hoverSquare,{[Ar.negative.hoverSquare]:r,[Ar[t].hoverSquare]:!r}),FD=e=>`${Xa[e].icon}`,HD=e=>C.jsx("svg",{className:`absolute inset-0 ${e.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e,children:C.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),WD=H.forwardRef(({label:e,isDisabled:t=!1,isInvalid:r=!1,isRequired:n=!1,size:o="md",color:a="primary",onChange:l,onFocus:c,onBlur:u,value:d,defaultValue:p,name:h,id:g,...y},S)=>{const[v,b]=H.useState(p),m=d===!0||v===!0,w=d===null,x=m||w,k={isChecked:m,isIndeterminate:w,isDisabled:t,isInvalid:r},E=$D(o,a,k),R=LD(o,a,k),F=zD(o),A=jD(o,a,r),N=FD(o);return C.jsxs("label",{"data-qui":"Checkbox",className:F,children:[C.jsxs("div",{className:E,children:[C.jsx("input",{ref:S,type:"checkbox",className:"sr-only",checked:m,disabled:t,required:n,onChange:V=>{d===void 0&&b(V.target.checked),l==null||l(V)},onFocus:c,onBlur:u,name:h,id:g,...y}),x&&C.jsx("div",{className:"center-absolute",children:w?C.jsx(HD,{className:N}):C.jsx(HM,{className:N})}),!x&&!t&&C.jsx("div",{className:A})]}),e&&C.jsxs("span",{className:R,children:[e,n&&C.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});WD.displayName="Checkbox";const Ja={sm:{container:"gap-2",radio:"size-3",label:"text-xs",dot:"size-2",hoverDot:"size-1.5"},md:{container:"gap-2.5",radio:"size-4",label:"text-sm",dot:"size-2.5",hoverDot:"size-2"},lg:{container:"gap-3",radio:"size-6",label:"text-base",dot:"size-4",hoverDot:"size-3"}},$a={primary:{radio:"border-body-light group-hover:border-body",radioInvalid:"border-negative",dot:"bg-primary group-hover:bg-primary-hover",hoverDot:"bg-primary-hover",label:"text-body"},positive:{radio:"border-positive group-hover:border-positive-text",radioInvalid:"border-negative",dot:"bg-positive group-hover:bg-positive-hover",hoverDot:"bg-positive-bg",label:"text-positive-text"},warning:{radio:"border-warning group-hover:border-warning-text",radioInvalid:"border-negative",dot:"bg-warning group-hover:bg-warning-hover",hoverDot:"bg-warning-bg",label:"text-warning-text"},negative:{radio:"border-negative group-hover:border-negative-text",radioInvalid:"border-negative",dot:"bg-negative group-hover:bg-negative-hover",hoverDot:"bg-negative-bg",label:"text-negative"}},BD=`
209
- relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
210
- focus:outline-hidden focus:ring-2 focus:ring-offset-0
211
- cursor-pointer peer
212
- `,VD=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return ko(BD,Ja[e].radio,o?$a[t].radioInvalid:{[$a[t].radio]:!n,"cursor-not-allowed opacity-60":n})},UD=(e,t,r)=>{const{checked:n,isDisabled:o,isInvalid:a}=r;return ko("center-absolute rounded-full transition-all duration-200 ease-in-out",Ja[e].dot,a?"bg-negative":{[$a[t].dot]:!o,"border-neutral":o,"opacity-0 scale-0":!n,"opacity-100 scale-100":n&&!o})},qD=(e,t,r)=>ko("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",Ja[e].hoverDot,{[$a[t].hoverDot]:!r,"bg-negative-bg":r}),GD=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return ko("cursor-pointer select-none transition-colors duration-200",Ja[e].label,o?{"text-negative":o}:{[$a[t].label]:!n,"text-muted":n})},YD=(e,t)=>ko("inline-flex items-center group",Ja[e].container,t),KD=H.createContext(null),ZD=()=>{const e=H.useContext(KD);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},XD=H.forwardRef(({value:e,label:t,size:r,color:n,isDisabled:o,isInvalid:a,isRequired:l,className:c,...u},d)=>{const p=ZD(),h=r??p.size,g=n??p.color,y=o??p.isDisabled,S=a??p.isInvalid,v=l??p.isRequired,b=p.value===e,m={checked:b,isDisabled:y,isInvalid:S},w=VD(h,g,m),x=UD(h,g,m),k=qD(h,g,S),E=GD(h,g,m),R=YD(h,c),F=()=>{y||p.onChange(e)};return C.jsxs("label",{"data-qui":"RadioItem",className:R,children:[C.jsxs("div",{className:"relative",children:[C.jsx("input",{ref:d,type:"radio",value:e,checked:b,disabled:y,required:v,"aria-invalid":S,"aria-label":t?void 0:u["aria-label"],name:p.name,onChange:F,className:"sr-only",...u}),C.jsxs("div",{className:w,children:[C.jsx("div",{className:x}),!b&&!y&&C.jsx("div",{className:k})]})]}),t&&C.jsxs("span",{className:E,children:[t,v&&C.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});XD.displayName="RadioItem";const zw={sm:{container:"h-4.5 p-1 rounded",text:"text-xxs"},md:{container:"h-6 p-1 rounded",text:"text-s"},lg:{container:"h-7 p-1 rounded",text:"text-sm"},xl:{container:"h-7.5 p-1 rounded",text:"text-lg"}},JD={primary:{bg:{solid:"bg-primary",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-primary",ghost:"text-primary"},border:{solid:"border-primary",outline:"border-primary",ghost:"border-transparent"},hover:{solid:"hover:bg-primary-hover hover:border-primary-hover",outline:"hover:border-black hover:text-primary-hover",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-white",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-white",outline:"border-white",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas hover:text-canvas",ghost:"hover:bg-primary-hover hover:text-body"}},positive:{bg:{solid:"bg-positive",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-positive-text",ghost:"text-positive-text"},border:{solid:"border-positive",outline:"border-positive",ghost:"border-transparent"},hover:{solid:"hover:bg-positive-hover hover:border-positive-hover",outline:"hover:border-positive-hover hover:text-positive-hover",ghost:"hover:bg-positive-hover hover:text-body"}},warning:{bg:{solid:"bg-warning",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-warning-text",ghost:"text-warning-text"},border:{solid:"border-warning",outline:"border-warning",ghost:"border-transparent"},hover:{solid:"hover:bg-warning-hover hover:border-warning-hover",outline:"hover:border-warning-hover hover:text-warning-hover",ghost:"hover:bg-warning-hover hover:text-body"}},negative:{bg:{solid:"bg-negative",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-negative",ghost:"text-negative"},border:{solid:"border-negative",outline:"border-negative",ghost:"border-transparent"},hover:{solid:"hover:bg-negative-hover hover:border-negative-hover",outline:"hover:border-negative-hover hover:text-negative-hover",ghost:"hover:bg-negative-hover hover:text-body"}}},QD=(e,t,r,n)=>{const o=zw[e],a=JD[r],l=fe("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!n},o.container);return n?fe(l,"text-inactive-text",{"border-panel":t!=="ghost"&&t==="solid","border-panel-subtle":t==="outline","bg-panel":t==="solid","bg-transparent ":t==="outline"||t==="ghost","border-transparent":t==="ghost"}):fe(l,a.bg[t],a.text[t],a.hover[t],a.border[t])},e5=e=>fe("flex items-center justify-center gap-1",zw[e].text),t5=H.forwardRef(({size:e="md",variant:t="solid",color:r="primary",className:n,children:o,disabled:a,...l},c)=>C.jsx("button",{"data-qui":"Button",ref:c,type:"button",className:fe(QD(e,t,r,a),e5(e),n),disabled:a,...l,children:o}));t5.displayName="Button";const jw=H.createContext(null),Qa=()=>{const e=H.useContext(jw);if(!e)throw new Error("Input components must be used within Input.Root");return e},Oo={sm:{group:"h-5 min-h-fit",input:"text-2.25",message:"text-2.25 p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},Vr={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},r5=()=>fe("flex flex-col"),n5=({size:e,color:t,isDisabled:r,isReadOnly:n,hasMessage:o,hasArea:a})=>fe("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",Vr[t].text,o?Vr[t].borderMessage:!n&&Vr[t].border,Oo[e].group,{"ring-1":o,"opacity-60":r,"items-center":!a}),i5=({size:e,color:t})=>fe("bg-transparent ring-0 w-full","focus:outline-hidden",[Oo[e].input],Vr[t].placeholder),xb=({size:e,color:t})=>fe("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Oo[e].input,Vr[t].placeholder),o5=({size:e,color:t,isDisabled:r,isAction:n})=>fe("transition-colors duration-200 rounded max-h-full h-fit",Oo[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?Vr[t].action:Vr[t].icon,{"cursor-pointer p-0.5":n&&!r,[Vr[t].actionHover]:n&&!r,"pointer-events-none":!n}),a5=({size:e,color:t,isDisabled:r})=>fe("flex items-start gap-x-2 ring-1 ring-t-0 only:rounded first:rounded-t last:rounded-b",r?"text-muted":Vr[t].messageText,Vr[t].borderMessage,Vr[t].messageBackground,Oo[e].message,{"opacity-60":r}),s5=({size:e})=>fe(Oo[e].icon);function Ql(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var l5=typeof global=="object"&&global&&global.Object===Object&&global,c5=typeof self=="object"&&self&&self.Object===Object&&self,Fw=l5||c5||Function("return this")(),Of=function(){return Fw.Date.now()},u5=/\s/;function f5(e){for(var t=e.length;t--&&u5.test(e.charAt(t)););return t}var d5=/^\s+/;function p5(e){return e&&e.slice(0,f5(e)+1).replace(d5,"")}var ec=Fw.Symbol,Hw=Object.prototype,h5=Hw.hasOwnProperty,g5=Hw.toString,ha=ec?ec.toStringTag:void 0;function v5(e){var t=h5.call(e,ha),r=e[ha];try{e[ha]=void 0;var n=!0}catch{}var o=g5.call(e);return n&&(t?e[ha]=r:delete e[ha]),o}var m5=Object.prototype,b5=m5.toString;function y5(e){return b5.call(e)}var w5="[object Null]",x5="[object Undefined]",Sb=ec?ec.toStringTag:void 0;function S5(e){return e==null?e===void 0?x5:w5:Sb&&Sb in Object(e)?v5(e):y5(e)}function _5(e){return e!=null&&typeof e=="object"}var E5="[object Symbol]";function k5(e){return typeof e=="symbol"||_5(e)&&S5(e)==E5}var _b=NaN,O5=/^[-+]0x[0-9a-f]+$/i,A5=/^0b[01]+$/i,T5=/^0o[0-7]+$/i,R5=parseInt;function Eb(e){if(typeof e=="number")return e;if(k5(e))return _b;if(Ql(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ql(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=p5(e);var r=A5.test(e);return r||T5.test(e)?R5(e.slice(2),r?2:8):O5.test(e)?_b:+e}var C5="Expected a function",P5=Math.max,I5=Math.min;function Nl(e,t,r){var n,o,a,l,c,u,d=0,p=!1,h=!1,g=!0;if(typeof e!="function")throw new TypeError(C5);t=Eb(t)||0,Ql(r)&&(p=!!r.leading,h="maxWait"in r,a=h?P5(Eb(r.maxWait)||0,t):a,g="trailing"in r?!!r.trailing:g);function y(R){var F=n,A=o;return n=o=void 0,d=R,l=e.apply(A,F),l}function S(R){return d=R,c=setTimeout(m,t),p?y(R):l}function v(R){var F=R-u,A=R-d,N=t-F;return h?I5(N,a-A):N}function b(R){var F=R-u,A=R-d;return u===void 0||F>=t||F<0||h&&A>=a}function m(){var R=Of();if(b(R))return w(R);c=setTimeout(m,v(R))}function w(R){return c=void 0,g&&n?y(R):(n=o=void 0,l)}function x(){c!==void 0&&clearTimeout(c),d=0,n=u=o=c=void 0}function k(){return c===void 0?l:w(Of())}function E(){var R=Of(),F=b(R);if(n=arguments,o=this,u=R,F){if(c===void 0)return S(u);if(h)return clearTimeout(c),c=setTimeout(m,t),y(u)}return c===void 0&&(c=setTimeout(m,t)),l}return E.cancel=x,E.flush=k,E}var N5="Expected a function";function M5(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(N5);return Ql(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Nl(e,t,{leading:n,maxWait:t,trailing:o})}var uo=function(){return uo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},uo.apply(this,arguments)};function Ww(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Bw(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Vw=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,o){var a=o.name.match(/data-simplebar-(.+)/);if(a){var l=a[1].replace(/\W+(.)/g,function(c,u){return u.toUpperCase()});switch(o.value){case"true":n[l]=!0;break;case"false":n[l]=!1;break;case void 0:n[l]=!0;break;default:n[l]=o.value}}return n},t);return r};function Uw(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function qw(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function Gw(e){return".".concat(e.split(" ").join("."))}var ip=!!(typeof window<"u"&&window.document&&window.document.createElement),D5=Object.freeze({__proto__:null,addClasses:Uw,canUseDOM:ip,classNamesToQuery:Gw,getElementDocument:Bw,getElementWindow:Ww,getOptions:Vw,removeClasses:qw}),lo=null,kb=null;ip&&window.addEventListener("resize",function(){kb!==window.devicePixelRatio&&(kb=window.devicePixelRatio,lo=null)});function Ob(){if(lo===null){if(typeof document>"u")return lo=0,lo;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var r=t.getBoundingClientRect().right;e.removeChild(t),lo=r}return lo}var qn=Ww,Af=Bw,$5=Vw,Gn=Uw,Yn=qw,tr=Gw,ga=(function(){function e(t,r){r===void 0&&(r={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var o=qn(n.el);n.scrollXTicking||(o.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(o.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,Gn(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){Yn(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(Gn(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){Yn(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(o){n.mouseX=o.clientX,n.mouseY=o.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(o){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var a,l;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(a=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(l=n.isWithinBounds(n.axis.y.track.rect)),(a||l)&&(o.stopPropagation(),o.type==="pointerdown"&&o.pointerType!=="touch"&&(a&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(o,"x"):n.onTrackClick(o,"x")),l&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(o,"y"):n.onTrackClick(o,"y"))))}},this.drag=function(o){var a,l,c,u,d,p,h,g,y,S,v;if(!(!n.draggedAxis||!n.contentWrapperEl)){var b,m=n.axis[n.draggedAxis].track,w=(l=(a=m.rect)===null||a===void 0?void 0:a[n.axis[n.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,x=n.axis[n.draggedAxis].scrollbar,k=(u=(c=n.contentWrapperEl)===null||c===void 0?void 0:c[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,E=parseInt((p=(d=n.elStyles)===null||d===void 0?void 0:d[n.axis[n.draggedAxis].sizeAttr])!==null&&p!==void 0?p:"0px",10);o.preventDefault(),o.stopPropagation(),n.draggedAxis==="y"?b=o.pageY:b=o.pageX;var R=b-((g=(h=m.rect)===null||h===void 0?void 0:h[n.axis[n.draggedAxis].offsetAttr])!==null&&g!==void 0?g:0)-n.axis[n.draggedAxis].dragOffset;R=n.draggedAxis==="x"&&n.isRtl?((S=(y=m.rect)===null||y===void 0?void 0:y[n.axis[n.draggedAxis].sizeAttr])!==null&&S!==void 0?S:0)-x.size-R:R;var F=R/(w-x.size),A=F*(k-E);n.draggedAxis==="x"&&n.isRtl&&(A=!((v=e.getRtlHelpers())===null||v===void 0)&&v.isScrollingToNegative?-A:A),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=A}},this.onEndDrag=function(o){n.isDragging=!1;var a=Af(n.el),l=qn(n.el);o.preventDefault(),o.stopPropagation(),Yn(n.el,n.classNames.dragging),n.onStopScrolling(),a.removeEventListener("mousemove",n.drag,!0),a.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=l.setTimeout(function(){a.removeEventListener("click",n.preventClick,!0),a.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(o){o.preventDefault(),o.stopPropagation()},this.el=t,this.options=uo(uo({},e.defaultOptions),r),this.classNames=uo(uo({},e.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=M5(this._onMouseMove,64),this.onWindowResize=Nl(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Nl(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Nl(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;var o=e.getOffset(r),a=e.getOffset(n);r.scrollLeft=-999;var l=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:o.left!==a.left,isScrollingToNegative:a.left!==l.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ob()}catch{return Ob()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=Af(t),o=qn(t);return{top:r.top+(o.pageYOffset||n.documentElement.scrollTop),left:r.left+(o.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){ip&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,r;this.wrapperEl=this.el.querySelector(tr(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(tr(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(tr(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(tr(this.classNames.offset)),this.maskEl=this.el.querySelector(tr(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,tr(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(tr(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(tr(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(tr(this.classNames.track)).concat(tr(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(tr(this.classNames.track)).concat(tr(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(tr(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(tr(this.classNames.scrollbar)))||null,this.options.autoHide||(Gn(this.axis.x.scrollbar.el,this.classNames.visible),Gn(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=qn(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var o=!1,a=n.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){o&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){o=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=qn(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1||r>0,a=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=o?"".concat(r||d,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var p=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&d>r,this.axis.y.isOverflowing=u>p,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var h=this.axis.x.isOverflowing?this.scrollbarWidth:0,g=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>a-g,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>p-h,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var r,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var o=this.contentEl[this.axis[t].scrollSizeAttr],a=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,l=a/o,c;return c=Math.max(~~(l*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var r,n,o;t===void 0&&(t="y");var a=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var l=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];d=t==="x"&&this.isRtl&&!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero?-d:d,t==="x"&&this.isRtl&&(d=!((o=e.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?d:-d);var p=d/(l-u),h=~~((c-a.size)*p);h=t==="x"&&this.isRtl?-h+(c-a.size):h,a.el.style.transform=t==="x"?"translate3d(".concat(h,"px, 0, 0)"):"translate3d(0, ".concat(h,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Gn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Yn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),Gn(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?Gn(r.scrollbar.el,this.classNames.hover):Yn(r.scrollbar.el,this.classNames.hover)):(Yn(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Yn(this.axis[t].track.el,this.classNames.hover),Yn(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,r){var n;r===void 0&&(r="y"),this.isDragging=!0;var o=Af(this.el),a=qn(this.el),l=this.axis[r].scrollbar,c=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=c-(((n=l.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,Gn(this.el,this.classNames.dragging),o.addEventListener("mousemove",this.drag,!0),o.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(o.addEventListener("click",this.preventClick,!0),o.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,o,a,l,c;r===void 0&&(r="y");var u=this.axis[r];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=qn(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var p=this.axis[r].scrollbar,h=(a=(o=p.rect)===null||o===void 0?void 0:o[this.axis[r].offsetAttr])!==null&&a!==void 0?a:0,g=parseInt((c=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[r].sizeAttr])!==null&&c!==void 0?c:"0px",10),y=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],S=r==="y"?this.mouseY-h:this.mouseX-h,v=S<0?-1:1,b=v===-1?y-g:y+g,m=40,w=function(){n.contentWrapperEl&&(v===-1?y>b&&(y-=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=y,d.requestAnimationFrame(w)):y<b&&(y+=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=y,d.requestAnimationFrame(w)))};w()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=qn(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,r){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(o){return n.call(o,r)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=$5,e.helpers=D5,e})(),fr=function(){return fr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fr.apply(this,arguments)};function L5(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var op=z.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,o=n===void 0?{}:n,a=L5(e,["children","scrollableNodeProps"]),l=z.useRef(),c=z.useRef(),u=z.useRef(),d={},p={};Object.keys(a).forEach(function(y){Object.prototype.hasOwnProperty.call(ga.defaultOptions,y)?d[y]=a[y]:p[y]=a[y]});var h=fr(fr({},ga.defaultOptions.classNames),d.classNames),g=fr(fr({},o),{className:"".concat(h.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:d.tabIndex||ga.defaultOptions.tabIndex,role:"region","aria-label":d.ariaLabel||ga.defaultOptions.ariaLabel});return z.useEffect(function(){var y;return c.current=g.ref?g.ref.current:c.current,l.current&&(y=new ga(l.current,fr(fr(fr({},d),c.current&&{scrollableNode:c.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(y):t&&(t.current=y)),function(){y==null||y.unMount(),y=null,typeof t=="function"&&t(null)}},[]),z.createElement("div",fr({"data-simplebar":"init",ref:l},p),z.createElement("div",{className:h.wrapper},z.createElement("div",{className:h.heightAutoObserverWrapperEl},z.createElement("div",{className:h.heightAutoObserverEl})),z.createElement("div",{className:h.mask},z.createElement("div",{className:h.offset},typeof r=="function"?r({scrollableNodeRef:c,scrollableNodeProps:fr(fr({},g),{ref:c}),contentNodeRef:u,contentNodeProps:{className:h.contentEl,ref:u}}):z.createElement("div",fr({},g),z.createElement("div",{className:h.contentEl},r)))),z.createElement("div",{className:h.placeholder})),z.createElement("div",{className:"".concat(h.track," ").concat(h.horizontal)},z.createElement("div",{className:h.scrollbar})),z.createElement("div",{className:"".concat(h.track," ").concat(h.vertical)},z.createElement("div",{className:h.scrollbar})))});op.displayName="SimpleBar";const z5=H.forwardRef(({size:e="md",color:t="primary",isInvalid:r=!1,isDisabled:n=!1,isReadOnly:o=!1,className:a,children:l,...c},u)=>{const[d,p]=H.useState(!1),[h,g]=H.useState(!1),y={size:e,color:t,isInvalid:r,isDisabled:n,isReadOnly:o,hasMessage:d,setHasMessage:p,hasArea:h,setHasArea:g};return C.jsx(jw.Provider,{value:y,children:C.jsx("div",{ref:u,"data-qui":"Input",className:fe(r5(),a),...c,children:l})})}),j5=H.forwardRef(({className:e,children:t,...r},n)=>{const{size:o,color:a,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:d}=Qa();return C.jsx("div",{ref:n,"data-qui":"InputGroup",className:fe(n5({size:o,color:a,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:d}),e),...r,children:t})}),F5=H.forwardRef(({className:e,...t},r)=>{const{size:n,color:o,isInvalid:a,isDisabled:l,isReadOnly:c}=Qa(),{isDisabled:u,isReadOnly:d,...p}=t;return C.jsx("input",{ref:r,disabled:l||u,readOnly:d||c||!1,"aria-invalid":a,className:fe(i5({size:n,color:o}),e),...p})}),H5=H.forwardRef(({className:e,autoHeight:t,...r},n)=>{const{size:o,color:a,isInvalid:l,isDisabled:c,setHasArea:u}=Qa(),d=H.useRef(null),p=n||d,h=H.useRef(null);H.useEffect(()=>(u(!0),()=>{u(!1)}),[u]);const g=H.useCallback(()=>{if(d.current){const w=d.current;w.style.height="auto",w.style.height=`${w.scrollHeight}px`}},[]),y=w=>{var x;g(),(x=r.onInput)==null||x.call(r,w)};H.useEffect(()=>{g()},[g,r.value]);const S=w=>{w.preventDefault();const x=h.current;if(!x)return;const k=w.clientY,E=x.offsetHeight,R=A=>{const N=E+(A.clientY-k);N>30&&(x.style.height=N+"px")},F=()=>{document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",F)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",F)},{isDisabled:v,isReadOnly:b,...m}=r;return C.jsxs("div",{ref:h,className:"w-full relative",style:t?void 0:{height:"120px"},children:[t?C.jsx("textarea",{ref:p,rows:1,className:fe(xb({size:o,color:a}),e),disabled:c||v,onInput:y,readOnly:b||!1,"aria-invalid":l,style:{overflow:"hidden"},...m}):C.jsx(op,{style:{height:"100%"},children:C.jsx("textarea",{ref:p,rows:1,className:fe(xb({size:o,color:a}),e),disabled:c||v,onInput:y,readOnly:b||!1,"aria-invalid":l,style:{height:"auto",overflow:"hidden",width:"100%"},...m})}),!t&&C.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:S,children:C.jsx(VM,{})})]})}),W5=H.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:o,...a},l)=>{const{size:c,color:u,isDisabled:d}=Qa(),p=r||d,h=o5({size:c,color:u,isDisabled:p,isAction:e});return C.jsx("div",{ref:l,"data-qui":"InputIcon",className:fe(h,t),style:n,role:e||a.onClick?"button":void 0,tabIndex:(e||a.onClick)&&!p?0:void 0,"aria-disabled":p,...a,children:o})}),B5=H.forwardRef(({icon:e,className:t,children:r,...n},o)=>{const{size:a,color:l,setHasMessage:c,isDisabled:u}=Qa();return H.useEffect(()=>(c(!0),()=>{c(!1)}),[c]),C.jsxs("div",{ref:o,"data-qui":"InputMessage",role:"alert",className:fe(a5({size:a,color:l,isDisabled:u}),t),...n,children:[e!==void 0&&C.jsx("div",{className:fe(s5({size:a}),t),children:e}),C.jsx("p",{children:r})]})});z5.displayName="InputRoot";j5.displayName="InputGroup";F5.displayName="InputField";H5.displayName="InputArea";W5.displayName="InputIcon";B5.displayName="InputMessage";const La={primary:{container:"bg-primary-light",text:"text-primary-dark",icon:"text-primary-dark",button:"hover:bg-primary-hover hover:text-body"},positive:{container:"bg-positive-light",text:"text-positive-dark",icon:"text-positive-dark",button:"hover:bg-positive hover:text-body"},negative:{container:"bg-negative-light",text:"text-negative-dark",icon:"text-negative-dark",button:"hover:bg-negative hover:text-body"},warning:{container:"bg-warning-light",text:"text-warning-dark",icon:"text-warning-dark",button:"hover:bg-warning hover:text-body"}},V5=({color:e})=>fe("h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",La[e].container,La[e].icon),U5=({color:e})=>fe("text-xs font-medium leading-3",La[e].text),q5=({color:e})=>fe("p-0.5 rounded cursor-pointer",La[e].button,La[e].icon),G5=({label:e,color:t="primary",position:r="up",showCloseButton:n=!1,icon:o,children:a,delay:l=2e3,trigger:c="hover"})=>{const[u,d]=H.useState(!1),[p,h]=H.useState(!1),[g,y]=H.useState({position:r,transform:""}),S=H.useRef(null),v=H.useRef(null),b=H.useRef(null),m=H.useCallback(()=>{if(!S.current||!v.current)return;const A=S.current.getBoundingClientRect(),N=v.current.getBoundingClientRect(),V=window.innerWidth,$=window.innerHeight,M=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,V),B=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,$),j=4;let I=r,Y={position:I,transform:""};const X={up:{fits:A.top-N.height-j>=0,styles:{bottom:`calc(100% + ${j}px)`,left:"50%",transform:"translateX(-50%)"}},"up-start":{fits:A.top-N.height-j>=0&&A.left+N.width<=V,styles:{bottom:`calc(100% + ${j}px)`,left:"0",transform:"translateX(0)"}},"up-end":{fits:A.top-N.height-j>=0&&A.right-N.width>=0,styles:{bottom:`calc(100% + ${j}px)`,right:"0",transform:"translateX(0)"}},down:{fits:A.bottom+N.height+j<=$&&A.bottom+N.height+j<=B,styles:{top:`calc(100% + ${j}px)`,left:"50%",transform:"translateX(-50%)"}},"down-start":{fits:A.bottom+N.height+j<=$&&A.bottom+N.height+j<=B&&A.left+N.width<=V,styles:{top:`calc(100% + ${j}px)`,left:"0",transform:"translateX(0)"}},"down-end":{fits:A.bottom+N.height+j<=$&&A.bottom+N.height+j<=B&&A.right-N.width>=0,styles:{top:`calc(100% + ${j}px)`,right:"0",transform:"translateX(0)"}},left:{fits:A.left-N.width-j>=0,styles:{right:`calc(100% + ${j}px)`,top:"50%",transform:"translateY(-50%)"}},"left-start":{fits:A.left-N.width-j>=0&&A.top+N.height<=$,styles:{right:`calc(100% + ${j}px)`,top:"0",transform:"translateY(0)"}},"left-end":{fits:A.left-N.width-j>=0&&A.bottom-N.height>=0,styles:{right:`calc(100% + ${j}px)`,bottom:"0",transform:"translateY(0)"}},right:{fits:A.right+N.width+j<=V&&A.right+N.width+j<=M,styles:{left:`calc(100% + ${j}px)`,top:"50%",transform:"translateY(-50%)"}},"right-start":{fits:A.right+N.width+j<=V&&A.right+N.width+j<=M&&A.top+N.height<=$,styles:{left:`calc(100% + ${j}px)`,top:"0",transform:"translateY(0)"}},"right-end":{fits:A.right+N.width+j<=V&&A.right+N.width+j<=M&&A.bottom-N.height>=0,styles:{left:`calc(100% + ${j}px)`,bottom:"0",transform:"translateY(0)"}}},K=A.left+A.width/2-N.width/2,me=A.left+A.width/2+N.width/2;if((r==="up"||r==="down")&&(K<0||me>V)&&(X[r].fits=!1),X[r].fits)Y={position:r,...X[r].styles};else{const L=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(U=>X[U].fits);if(L)I=L,Y={position:I,...X[L].styles};else{const U={up:A.top,"up-start":A.top,"up-end":A.top,down:Math.min($-A.bottom,B-A.bottom),"down-start":Math.min($-A.bottom,B-A.bottom),"down-end":Math.min($-A.bottom,B-A.bottom),left:A.left,"left-start":A.left,"left-end":A.left,right:Math.min(V-A.right,M-A.right),"right-start":Math.min(V-A.right,M-A.right),"right-end":Math.min(V-A.right,M-A.right)},te=Object.entries(U).reduce((ee,[J,ae])=>ae>ee.space?{position:J,space:ae}:ee,{position:"up",space:0}).position;I=te,Y={position:I,...X[te].styles}}}y(Y)},[r]),w=()=>{c==="click"&&(d(!0),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{p||d(!1)},l))},x=A=>{A.stopPropagation(),d(!1),b.current&&clearTimeout(b.current)},k=()=>{h(!0),b.current&&clearTimeout(b.current)},E=()=>{h(!1),u&&(b.current=setTimeout(()=>{d(!1)},l))},R=()=>{c==="hover"&&d(!0)},F=()=>{c==="hover"&&d(!1)};return H.useEffect(()=>{if(u&&v.current){const A=requestAnimationFrame(()=>{m()});return()=>cancelAnimationFrame(A)}},[u,e,m]),H.useEffect(()=>{const A=()=>{u&&m()},N=()=>{u&&m()};return window.addEventListener("resize",A),window.addEventListener("scroll",N,!0),()=>{window.removeEventListener("resize",A),window.removeEventListener("scroll",N,!0),b.current&&clearTimeout(b.current)}},[u,m]),C.jsxs("div",{"data-qui":"Tooltip",ref:S,onClick:w,onMouseEnter:R,onMouseLeave:F,className:"relative h-full flex items-center",children:[a,u&&C.jsxs("div",{ref:v,role:"tooltip",className:V5({color:t}),style:{position:"absolute",left:g.left,right:g.right,top:g.top,bottom:g.bottom,transform:g.transform,zIndex:1e3},onMouseEnter:k,onMouseLeave:E,children:[o&&C.jsx("span",{children:o}),C.jsx("p",{className:U5({color:t}),children:e}),n&&C.jsx("div",{onClick:x,className:q5({color:t}),role:"button",children:C.jsx(_c,{})})]})]})};var Ab;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Ab||(Ab={}));const Y5=Object.freeze({x:0,y:0});var fo;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(fo||(fo={}));var Tb;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Tb||(Tb={}));var Tr;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Tr||(Tr={}));Tr.Space,Tr.Enter,Tr.Esc,Tr.Space,Tr.Enter,Tr.Tab;var Rb;(function(e){e[e.RightClick=2]="RightClick"})(Rb||(Rb={}));var Cb;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Cb||(Cb={}));var Pb;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Pb||(Pb={}));fo.Backward+"",fo.Forward+"",fo.Backward+"",fo.Forward+"";var fd;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(fd||(fd={}));var dd;(function(e){e.Optimized="optimized"})(dd||(dd={}));fd.WhileDragging,dd.Optimized;({...Y5});var Ib;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ib||(Ib={}));Tr.Down,Tr.Right,Tr.Up,Tr.Left;const Yw={sm:{padding:"px-4 py-0.5",text:"text-xxs",icon:"w-3 h-3",gap:"gap-0.5",badge:"min-w-3.5 h-3.5 text-2"},md:{padding:"px-6 py-1",text:"text-s",icon:"w-4 h-4",gap:"gap-1",badge:"min-w-4.5 h-4.5 text-xxs"},lg:{padding:"px-8 py-1.5",text:"text-base",icon:"w-5 h-5",gap:"gap-1.5",badge:"min-w-5 h-5 text-xs"}},K5={primary:{active:{bg:"bg-primary",text:"text-tab-active-fg",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-tab-active-fg"}},positive:{active:{bg:"bg-positive-500",text:"text-gray-50",border:"border-positive-500"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-600",text:"hover:text-gray-50"}},negative:{active:{bg:"bg-negative-400",text:"text-gray-50",border:"border-negative-400"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-600",text:"hover:text-gray-50"}},warning:{active:{bg:"bg-warning-500",text:"text-gray-50",border:"border-warning-500"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-600",text:"hover:text-gray-50"}}},Z5=(e,t,r,n)=>{const o=K5[e],a=Yw[t],l="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return n?fe(l,a.padding,a.text,a.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):r?fe(l,a.padding,a.text,a.gap,o.active.bg,o.active.text,"shadow-xs"):fe(l,a.padding,a.text,a.gap,o.inactive.bg,o.inactive.text,o.hover.bg,o.hover.text)},X5=(e,t)=>fe("flex items-center justify-center",Yw[e].icon,{"opacity-50":t}),J5=()=>fe("whitespace-nowrap"),Kw=(e,t)=>{const r=fe("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?fe(r,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?fe(r,"border border-transparent bg-tab-inactive-bg text-inactive-text"):fe(r,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},Q5=H.createContext(void 0),e$=H.forwardRef(({value:e,label:t,icon:r,disabled:n,children:o,className:a,onClick:l,active:c,content:u,...d},p)=>{const h=H.useContext(Q5);if(!h)return null;const{activeTab:g,onTabChange:y,variant:S,color:v,size:b,showIcons:m,disabled:w}=h,x=c!==void 0?c:g===e,k=n||w,E=R=>{k||(y(e),l==null||l(R))};return S==="file"?C.jsx("div",{"data-qui":"FileTabItem",className:fe(Kw(x,!1),"cursor-pointer",a),onClick:R=>!k&&E(R),children:o||C.jsx(C.Fragment,{children:C.jsxs("span",{className:"flex items-center gap-2",children:[r,C.jsx("span",{children:t})]})})}):C.jsxs("button",{ref:p,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":x,"aria-disabled":k,className:fe(Z5(v,b,x,k||!1),a),onClick:E,disabled:k,...d,children:[m&&r&&C.jsx("span",{className:X5(b,k||!1),children:r}),C.jsx("span",{className:J5(),children:o||t})]})});e$.displayName="TabItem";const t$=H.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:r,...n},o)=>C.jsx("div",{"data-qui":"TabNavContainer",className:Kw(e,t),ref:o,...n,children:r}));t$.displayName="TabNavContainer";var St=function(){return St=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},St.apply(this,arguments)},Nb={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Mb={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},fl={width:"20px",height:"20px",position:"absolute",zIndex:1},r$={top:St(St({},Nb),{top:"-5px"}),right:St(St({},Mb),{left:void 0,right:"-5px"}),bottom:St(St({},Nb),{top:void 0,bottom:"-5px"}),left:St(St({},Mb),{left:"-5px"}),topRight:St(St({},fl),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:St(St({},fl),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:St(St({},fl),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:St(St({},fl),{left:"-10px",top:"-10px",cursor:"nw-resize"})},n$=H.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,o=e.replaceStyles,a=e.className,l=H.useCallback(function(d){t(d,r)},[t,r]),c=H.useCallback(function(d){t(d,r)},[t,r]),u=H.useMemo(function(){return St(St({position:"absolute",userSelect:"none"},r$[r]),o??{})},[o,r]);return C.jsx("div",{className:a||void 0,style:u,onMouseDown:l,onTouchStart:c,children:n})}),i$=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),en=function(){return en=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},en.apply(this,arguments)},o$={width:"auto",height:"auto"},dl=function(e,t,r){return Math.max(Math.min(e,r),t)},Db=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},ao=function(e,t){return new RegExp(e,"i").test(t)},pl=function(e){return!!(e.touches&&e.touches.length)},a$=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},$b=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(a,l,c){return Math.abs(l-e)<Math.abs(t[a]-e)?c:a},0),o=Math.abs(t[n]-e);return r===0||o<r?t[n]:e},Tf=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},hl=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var o=Number(e.replace("%",""))/100;return t*o}if(e.endsWith("vw")){var o=Number(e.replace("vw",""))/100;return r*o}if(e.endsWith("vh")){var o=Number(e.replace("vh",""))/100;return n*o}}return e},s$=function(e,t,r,n,o,a,l){return n=hl(n,e.width,t,r),o=hl(o,e.height,t,r),a=hl(a,e.width,t,r),l=hl(l,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof l>"u"?void 0:Number(l)}},l$=function(e){return Array.isArray(e)?e:[e,e]},c$=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Lb="__resizable_base__",u$=(function(e){i$(t,e);function t(r){var n,o,a,l,c=e.call(this,r)||this;return c.ratio=1,c.resizable=null,c.parentLeft=0,c.parentTop=0,c.resizableLeft=0,c.resizableRight=0,c.resizableTop=0,c.resizableBottom=0,c.targetLeft=0,c.targetTop=0,c.delta={width:0,height:0},c.appendBase=function(){if(!c.resizable||!c.window)return null;var u=c.parentNode;if(!u)return null;var d=c.window.document.createElement("div");return d.style.width="100%",d.style.height="100%",d.style.position="absolute",d.style.transform="scale(0, 0)",d.style.left="0",d.style.flex="0 0 100%",d.classList?d.classList.add(Lb):d.className+=Lb,u.appendChild(d),d},c.removeBase=function(u){var d=c.parentNode;d&&d.removeChild(u)},c.state={isResizing:!1,width:(o=(n=c.propsSize)===null||n===void 0?void 0:n.width)!==null&&o!==void 0?o:"auto",height:(l=(a=c.propsSize)===null||a===void 0?void 0:a.height)!==null&&l!==void 0?l:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},c.onResizeStart=c.onResizeStart.bind(c),c.onMouseMove=c.onMouseMove.bind(c),c.onMouseUp=c.onMouseUp.bind(c),c}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||o$},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,a=this.resizable.offsetHeight,l=this.resizable.style.position;l!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=l}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,o=function(c){var u;if(typeof r.state[c]>"u"||r.state[c]==="auto")return"auto";if(r.propsSize&&r.propsSize[c]&&!((u=r.propsSize[c])===null||u===void 0)&&u.toString().endsWith("%")){if(r.state[c].toString().endsWith("%"))return r.state[c].toString();var d=r.getParentSize(),p=Number(r.state[c].toString().replace("px","")),h=p/d[c]*100;return"".concat(h,"%")}return Tf(r.state[c])},a=n&&typeof n.width<"u"&&!this.state.isResizing?Tf(n.width):o("width"),l=n&&typeof n.height<"u"&&!this.state.isResizing?Tf(n.height):o("height");return{width:a,height:l}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var a={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=o),this.removeBase(r),a},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var o=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof o>"u"||o==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var o=this.props.boundsByDirection,a=this.state.direction,l=o&&ao("left",a),c=o&&ao("top",a),u,d;if(this.props.bounds==="parent"){var p=this.parentNode;p&&(u=l?this.resizableRight-this.parentLeft:p.offsetWidth+(this.parentLeft-this.resizableLeft),d=c?this.resizableBottom-this.parentTop:p.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=l?this.resizableRight:this.window.innerWidth-this.resizableLeft,d=c?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=l?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),d=c?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(r=r&&r<u?r:u),d&&Number.isFinite(d)&&(n=n&&n<d?n:d),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var o=this.props.scale||1,a=l$(this.props.resizeRatio||1),l=a[0],c=a[1],u=this.state,d=u.direction,p=u.original,h=this.props,g=h.lockAspectRatio,y=h.lockAspectRatioExtraHeight,S=h.lockAspectRatioExtraWidth,v=p.width,b=p.height,m=y||0,w=S||0;return ao("right",d)&&(v=p.width+(r-p.x)*l/o,g&&(b=(v-w)/this.ratio+m)),ao("left",d)&&(v=p.width-(r-p.x)*l/o,g&&(b=(v-w)/this.ratio+m)),ao("bottom",d)&&(b=p.height+(n-p.y)*c/o,g&&(v=(b-m)*this.ratio+w)),ao("top",d)&&(b=p.height-(n-p.y)*c/o,g&&(v=(b-m)*this.ratio+w)),{newWidth:v,newHeight:b}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,o,a){var l=this.props,c=l.lockAspectRatio,u=l.lockAspectRatioExtraHeight,d=l.lockAspectRatioExtraWidth,p=typeof a.width>"u"?10:a.width,h=typeof o.width>"u"||o.width<0?r:o.width,g=typeof a.height>"u"?10:a.height,y=typeof o.height>"u"||o.height<0?n:o.height,S=u||0,v=d||0;if(c){var b=(g-S)*this.ratio+v,m=(y-S)*this.ratio+v,w=(p-v)/this.ratio+S,x=(h-v)/this.ratio+S,k=Math.max(p,b),E=Math.min(h,m),R=Math.max(g,w),F=Math.min(y,x);r=dl(r,k,E),n=dl(n,R,F)}else r=dl(r,p,h),n=dl(n,g,y);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var o=n.getBoundingClientRect();this.parentLeft=o.left*r,this.parentTop=o.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var a=this.props.bounds.getBoundingClientRect();this.targetLeft=a.left*r,this.targetTop=a.top*r}if(this.resizable){var l=this.resizable.getBoundingClientRect(),c=l.left,u=l.top,d=l.right,p=l.bottom;this.resizableLeft=c*r,this.resizableRight=d*r,this.resizableTop=u*r,this.resizableBottom=p*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var o=0,a=0;if(r.nativeEvent&&a$(r.nativeEvent)?(o=r.nativeEvent.clientX,a=r.nativeEvent.clientY):r.nativeEvent&&pl(r.nativeEvent)&&(o=r.nativeEvent.touches[0].clientX,a=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var l=this.props.onResizeStart(r,n,this.resizable);if(l===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var c,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var d=this.parentNode;if(d){var p=this.window.getComputedStyle(d).flexDirection;this.flexDir=p.startsWith("row")?"row":"column",c=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var h={original:{x:o,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:en(en({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:c};this.setState(h)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&pl(r))try{r.preventDefault(),r.stopPropagation()}catch{}var o=this.props,a=o.maxWidth,l=o.maxHeight,c=o.minWidth,u=o.minHeight,d=pl(r)?r.touches[0].clientX:r.clientX,p=pl(r)?r.touches[0].clientY:r.clientY,h=this.state,g=h.direction,y=h.original,S=h.width,v=h.height,b=this.getParentSize(),m=s$(b,this.window.innerWidth,this.window.innerHeight,a,l,c,u);a=m.maxWidth,l=m.maxHeight,c=m.minWidth,u=m.minHeight;var w=this.calculateNewSizeFromDirection(d,p),x=w.newHeight,k=w.newWidth,E=this.calculateNewMaxFromBoundary(a,l);this.props.snap&&this.props.snap.x&&(k=$b(k,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(x=$b(x,this.props.snap.y,this.props.snapGap));var R=this.calculateNewSizeFromAspectRatio(k,x,{width:E.maxWidth,height:E.maxHeight},{width:c,height:u});if(k=R.newWidth,x=R.newHeight,this.props.grid){var F=Db(k,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),A=Db(x,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),N=this.props.snapGap||0,V=N===0||Math.abs(F-k)<=N?F:k,$=N===0||Math.abs(A-x)<=N?A:x;k=V,x=$}var M={width:k-y.width,height:x-y.height};if(this.delta=M,S&&typeof S=="string"){if(S.endsWith("%")){var B=k/b.width*100;k="".concat(B,"%")}else if(S.endsWith("vw")){var j=k/this.window.innerWidth*100;k="".concat(j,"vw")}else if(S.endsWith("vh")){var I=k/this.window.innerHeight*100;k="".concat(I,"vh")}}if(v&&typeof v=="string"){if(v.endsWith("%")){var B=x/b.height*100;x="".concat(B,"%")}else if(v.endsWith("vw")){var j=x/this.window.innerWidth*100;x="".concat(j,"vw")}else if(v.endsWith("vh")){var I=x/this.window.innerHeight*100;x="".concat(I,"vh")}}var Y={width:this.createSizeForCssProperty(k,"width"),height:this.createSizeForCssProperty(x,"height")};this.flexDir==="row"?Y.flexBasis=Y.width:this.flexDir==="column"&&(Y.flexBasis=Y.height);var X=this.state.width!==Y.width,K=this.state.height!==Y.height,me=this.state.flexBasis!==Y.flexBasis,L=X||K||me;L&&ti.flushSync(function(){n.setState(Y)}),this.props.onResize&&L&&this.props.onResize(r,g,this.resizable,M)}},t.prototype.onMouseUp=function(r){var n,o,a=this.state,l=a.isResizing,c=a.direction;a.original,!(!l||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(r,c,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(o=this.props.size.height)!==null&&o!==void 0?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:en(en({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,o;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(o=r.height)!==null&&o!==void 0?o:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,o=n.enable,a=n.handleStyles,l=n.handleClasses,c=n.handleWrapperStyle,u=n.handleWrapperClass,d=n.handleComponent;if(!o)return null;var p=Object.keys(o).map(function(h){return o[h]!==!1?C.jsx(n$,{direction:h,onResizeStart:r.onResizeStart,replaceStyles:a&&a[h],className:l&&l[h],children:d&&d[h]?d[h]:null},h):null});return C.jsx("div",{className:u,style:c,children:p})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(l,c){return c$.indexOf(c)!==-1||(l[c]=r.props[c]),l},{}),o=en(en(en({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return C.jsxs(a,en({style:o,className:this.props.className},n,{ref:function(l){l&&(r.resizable=l)},children:[this.state.isResizing&&C.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(H.PureComponent);const f$={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},d$={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},Zw=({depth:e=0,className:t,borderType:r,disabled:n})=>fe("transition-colors duration-200",{"text-body":!n,"text-inactive-text":n},r?d$[r]:"border-panel-border",f$[e],t),p$=e=>{if(!e)return{};const t={},r=e.match(/min-w-\[(\d+)px\]/);r&&(t.minWidth=parseInt(r[1],10));const n=e.match(/max-w-\[(\d+)px\]/);n&&(t.maxWidth=parseInt(n[1],10));const o=e.match(/min-h-\[(\d+)px\]/);o&&(t.minHeight=parseInt(o[1],10));const a=e.match(/max-h-\[(\d+)px\]/);return a&&(t.maxHeight=parseInt(a[1],10)),t},Xw=H.forwardRef(({children:e,width:t,height:r,minWidth:n=10,minHeight:o=10,maxWidth:a,maxHeight:l,defaultWidth:c,defaultHeight:u,defaultSize:d,size:p,grid:h,snap:g,lockAspectRatio:y=!1,enable:S,handleStyles:v={},handleClasses:b={},handleComponent:m={},style:w={},className:x,onResizeStart:k,onResize:E,onResizeStop:R,scale:F=1,bounds:A,snapGap:N,as:V="div",depth:$,disabled:M},B)=>{const j=Zw({depth:$,className:x,disabled:M}),I=p$(x),Y=p?{size:p}:t!==void 0||r!==void 0?{size:{width:t??"auto",height:r??"auto"}}:{},X=d?{defaultSize:d}:c!==void 0||u!==void 0?{defaultSize:{width:c??"auto",height:u??"auto"}}:{},K=H.useRef(null);return H.useImperativeHandle(B,()=>{var me;return(me=K.current)==null?void 0:me.resizable}),C.jsx(u$,{"data-qui":"Resizable",ref:K,...Y,...X,minWidth:n??I.minWidth,minHeight:o??I.minHeight,maxWidth:a??I.maxWidth,maxHeight:l??I.maxHeight,grid:h,snap:g,lockAspectRatio:y,enable:S,handleStyles:v,handleClasses:b,handleComponent:m,style:w,className:fe("relative box-border",j),onResizeStart:k,onResize:E,onResizeStop:R,scale:F,bounds:A,snapGap:N,as:V,children:e})});Xw.displayName="Resizable";const Jw=({isDragging:e=!1,className:t})=>C.jsx("div",{className:fe("absolute inset-0 flex items-center justify-center transition-colors",{"bg-primary/30":e},t),children:C.jsx("div",{className:fe("h-full w-full transition-all",{"bg-primary":e,"bg-transparent hover:bg-primary/20":!e})})});Jw.displayName="Handle";const so={sm:{track:"h-4 w-7",thumb:"size-3",thumbUnchecked:"left-0.5",thumbChecked:"left-3.5",label:"text-xs",gap:"gap-2"},md:{track:"h-5 w-9",thumb:"size-4",thumbUnchecked:"left-0.5",thumbChecked:"left-4.5",label:"text-sm",gap:"gap-2.5"},lg:{track:"h-6 w-11",thumb:"size-5",thumbUnchecked:"left-0.5",thumbChecked:"left-5.5",label:"text-base",gap:"gap-3"}},gl={primary:{bg:"bg-primary",thumb:"bg-white group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"bg-white group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"bg-white group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"bg-white group-hover:bg-negative-light",icon:"text-negative"}},h$=(e,t,r,n,o,a)=>({container:fe("inline-flex items-center",so[e].gap,a),track:fe("relative inline-flex items-center shrink-0 group","transition-colors duration-200 ease-in-out","focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","rounded-full justify-between px-0.5",so[e].track,{[gl[t].bg]:r&&!n&&!o,"bg-panel":!r&&!n||o,"bg-panel cursor-not-allowed":n,"cursor-pointer":!n}),thumb:fe("pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",so[e].thumb,r?so[e].thumbChecked:so[e].thumbUnchecked,{[gl[t].thumb]:!n,"bg-canvas-subtle":n}),iconLeft:fe("flex items-center justify-center z-10 w-1/2 p-0.5",{[gl[t].icon]:!r&&!n,"text-panel-subtle":n||r}),iconRight:fe("flex items-center justify-center z-10 w-1/2 p-0.5",{[gl[t].icon]:r&&!n,"text-panel-subtle":n||!r}),label:fe("font-medium text-body",so[e].label,{"cursor-pointer":!n,"cursor-not-allowed text-muted":n})}),Qw=H.forwardRef(({label:e,checked:t,defaultChecked:r=!1,disabled:n=!1,size:o="md",color:a="primary",icons:l,onChange:c,className:u,id:d,name:p,...h},g)=>{const[y,S]=H.useState(r),v=t!==void 0,b=v?t:y,m=()=>{const x=!b;v||S(x),c==null||c(x)},w=h$(o,a,b,n,!!l,u);return C.jsxs("div",{"data-qui":"Toggle",className:w.container,children:[e&&C.jsx("label",{htmlFor:d,className:w.label,children:e}),C.jsxs("button",{ref:g,...h,type:"button",role:"switch","aria-checked":b,"aria-label":e,disabled:n,onClick:m,name:p,id:d,className:w.track,children:[l&&C.jsx("span",{className:w.iconLeft,children:l.unchecked}),C.jsx("span",{className:w.thumb,"aria-hidden":"true"}),l&&C.jsx("span",{className:w.iconRight,children:l.checked})]})]})});Qw.displayName="Toggle";H.createContext(null);const ex=H.forwardRef(({depth:e=0,className:t,children:r,borderType:n,disabled:o,...a},l)=>{const c=Zw({depth:e,className:t,borderType:n,disabled:o});return C.jsx("div",{"data-qui":"Panel",ref:l,className:c,"aria-disabled":o,...a,children:r})});ex.displayName="Panel";const Ec={sm:{container:"h-5 px-0.5 gap-1 rounded",text:"text-xxs leading-3",icon:"text-s",iconButton:"text-s p-0.5 cursor-pointer"},md:{container:"h-5.5 px-1 gap-1 rounded",text:"text-xs leading-4",icon:"text-sm",iconButton:" text-sm p-0.5 cursor-pointer"},lg:{container:"h-6 px-1.5 gap-1.5 rounded",text:"text-s leading-none",icon:"text-base",iconButton:"text-base p-0.5 cursor-pointer"}},Ml={primary:{bg:"bg-primary",text:"text-body",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-body"},positive:{bg:"bg-positive",text:"text-body",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-body",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-body",border:"border-negative",buttonHover:"hover:bg-negative-hover"}},g$=(e,t)=>fe("inline-flex items-center justify-center font-medium border",Ec[e].container,Ml[t].bg,Ml[t].text,Ml[t].border),v$=(e,t,r)=>fe({[Ec[e].icon]:!r,"bg-canvas-default outline-canvas-default text-primary":r&&t!=="white"||r,"bg-primary outline-primary text-body":r&&t==="white"&&!r,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":r||r}),m$=e=>fe(Ec[e].text),tx=(e,t)=>fe("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",Ec[e].iconButton,Ml[t].buttonHover),rx=H.createContext(null),kc=()=>{const e=H.useContext(rx);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},ap=H.forwardRef(({size:e="md",color:t="primary",className:r,children:n,...o},a)=>{const l={size:e,color:t};return C.jsx(rx.Provider,{value:l,children:C.jsx("div",{"data-qui":"Pill",ref:a,className:fe(g$(e,t),r),...o,children:n})})});ap.displayName="Pill.Root";const sp=H.forwardRef(({className:e,children:t,...r},n)=>{const{size:o}=kc();return C.jsx("span",{ref:n,className:fe(m$(o),e),...r,children:t})});sp.displayName="Pill.Text";const lp=H.forwardRef(({className:e,children:t,label:r,position:n,...o},a)=>{const{size:l,color:c}=kc(),u=!!r,d=C.jsx("span",{ref:a,className:fe(v$(l,c,u),e),...o,children:t});return u?C.jsx(G5,{label:r||"",position:n||"up",children:d}):d});lp.displayName="Pill.Icon";const nx=H.forwardRef(({className:e,children:t,...r},n)=>{const{size:o,color:a}=kc();return C.jsx("button",{ref:n,type:"button",className:fe(tx(o,a),e),...r,children:t})});nx.displayName="Pill.Button";const cp=H.forwardRef(({className:e,onClose:t,"aria-label":r="Remove pill",children:n,...o},a)=>{const{size:l,color:c}=kc();return C.jsx("button",{ref:a,type:"button",className:fe(tx(l,c),e),onClick:t,"aria-label":r,...o,children:n||C.jsx(_c,{})})});cp.displayName="Pill.Close";const ix=H.forwardRef(({size:e="md",color:t="primary",label:r,icon:n,onClose:o,closable:a=!1,className:l,...c},u)=>C.jsxs(ap,{ref:u,size:e,color:t,className:l,...c,children:[n&&C.jsx(lp,{children:n}),C.jsx(sp,{children:r}),a&&C.jsx(cp,{onClose:o})]}));ix.displayName="Pill";Object.assign(ix,{Root:ap,Text:sp,Icon:lp,Button:nx,Close:cp});const b$=H.createContext(null),Zt=()=>{const e=H.useContext(b$);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},Bt={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-2.25 h-3.5",placeholder:"text-2.25",singleValue:"text-2.25",multiValue:"h-3.5 px-0.5 gap-1 text-2",multiValueLabel:"text-2",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-2",noOptionsMessage:"px-2 py-1 text-2.25",loadingMessage:"px-2 py-1 text-2.25",message:"text-2.25 p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-xs h-4",placeholder:"text-xs",singleValue:"text-xs",multiValue:"h-4 p-1 gap-1 text-2.5",multiValueLabel:"text-2.5",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"my-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-2.5",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-s h-5",placeholder:"text-s",singleValue:"text-s",multiValue:"h-5 px-1.5 gap-1.5 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-xs",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},at={primary:{control:"cursor-pointer bg-select-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-select-bg border-input-error-border text-select-text",placeholder:"text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-select-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"border-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-select-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-select-bg border-input-error-border text-select-text",placeholder:"text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-select-border shadow-lg",menuList:"",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"border-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-select-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-select-bg border-input-error-border text-select-text",placeholder:"text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-select-border shadow-lg",menuList:"bg-select-list-bg border-select-border shadow-lg",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"border-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-select-bg text-select-text",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-select-bg border-input-error-border text-select-text",placeholder:"text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-select-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"border-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},y$=({size:e,color:t,isDisabled:r,isFocused:n,isInvalid:o,hasMessage:a})=>fe("flex items-center justify-between border border-select-border only:rounded first:rounded-t last:rounded-b",Bt[e].control,o&&!n?at[t].controlInvalid:at[t].control,{[at[t].controlFocused]:n&&!a,[at[t].controlDisabled]:r,"border-0 ring-1":a,[at[t].messageBorder]:a}),w$=({isMulti:e})=>fe("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),x$=({size:e,color:t})=>fe("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 px-1",Bt[e].input,at[t].placeholder),S$=({size:e,color:t})=>fe("select-none truncate",Bt[e].placeholder,at[t].placeholder),_$=({size:e,color:t,isDisabled:r})=>fe("truncate",Bt[e].singleValue,r?at[t].singleValueDisabled:at[t].singleValue),E$=({size:e,color:t,isDisabled:r,isFocused:n})=>fe("inline-flex items-center rounded-xs",Bt[e].multiValue,r?at[t].multiValueDisabled:at[t].multiValue,{"border border-white":n&&!r}),k$=({size:e})=>fe("truncate",Bt[e].multiValueLabel),O$=({size:e,color:t,isDisabled:r})=>fe("flex items-center justify-center cursor-pointer transition-colors",Bt[e].multiValueRemove,at[t].multiValueRemove),ox=({size:e,color:t,isDisabled:r})=>fe("flex items-center justify-center transition-colors rounded",Bt[e].clearIndicator,r?"hidden":[at[t].clearIndicator,at[t].clearIndicatorHover]),A$=({size:e,color:t,isDisabled:r})=>fe("flex items-center justify-center transition-colors rounded",Bt[e].dropdownIndicator,r?"text-grey-200":[at[t].dropdownIndicator,at[t].dropdownIndicatorHover]),T$=({size:e,placement:t,hasMessage:r,color:n})=>{const o={auto:"top-full rounded-t-none",bottom:"top-full rounded-t-none",top:"bottom-full rounded-b-none"};return fe("absolute w-full z-50 rounded overflow-hidden border border-t-0",at.primary.menu,{[at[n].messageBorder]:r},o[t||"auto"],Bt[e].menu)},R$=({size:e})=>fe("overflow-y-auto",Bt[e].menuList,at.primary.menuList),C$=({size:e,color:t,isDisabled:r,isFocused:n,isSelected:o})=>fe("transition-colors duration-150 cursor-pointer mx-1 rounded",Bt[e].option,{[at[t].optionDisabled]:r,[at[t].optionSelected]:o&&!r,[at[t].optionFocused]:n&&!o&&!r,[at[t].option]:!o&&!n&&!r}),P$=({size:e})=>fe(Bt[e].group),I$=({size:e,color:t})=>fe(Bt[e].groupHeading,at[t].groupHeading),N$=({size:e})=>fe("text-grey-100",Bt[e].loadingMessage),M$=({size:e})=>fe(Bt[e].noOptionsMessage,at.primary.noOptionsMessage),D$=e=>e.length>0&&"options"in e[0];function va(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yt.apply(null,arguments)}function pd(e,t){return pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},pd(e,t)}function $$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,pd(e,t)}var vl={exports:{}},Rf={exports:{}},Ue={};/** @license React v16.13.1
213
- * react-is.production.min.js
214
- *
215
- * Copyright (c) Facebook, Inc. and its affiliates.
216
- *
217
- * This source code is licensed under the MIT license found in the
218
- * LICENSE file in the root directory of this source tree.
219
- */var zb;function L$(){if(zb)return Ue;zb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(E){if(typeof E=="object"&&E!==null){var R=E.$$typeof;switch(R){case t:switch(E=E.type,E){case u:case d:case n:case a:case o:case h:return E;default:switch(E=E&&E.$$typeof,E){case c:case p:case S:case y:case l:return E;default:return R}}case r:return R}}}function k(E){return x(E)===d}return Ue.AsyncMode=u,Ue.ConcurrentMode=d,Ue.ContextConsumer=c,Ue.ContextProvider=l,Ue.Element=t,Ue.ForwardRef=p,Ue.Fragment=n,Ue.Lazy=S,Ue.Memo=y,Ue.Portal=r,Ue.Profiler=a,Ue.StrictMode=o,Ue.Suspense=h,Ue.isAsyncMode=function(E){return k(E)||x(E)===u},Ue.isConcurrentMode=k,Ue.isContextConsumer=function(E){return x(E)===c},Ue.isContextProvider=function(E){return x(E)===l},Ue.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Ue.isForwardRef=function(E){return x(E)===p},Ue.isFragment=function(E){return x(E)===n},Ue.isLazy=function(E){return x(E)===S},Ue.isMemo=function(E){return x(E)===y},Ue.isPortal=function(E){return x(E)===r},Ue.isProfiler=function(E){return x(E)===a},Ue.isStrictMode=function(E){return x(E)===o},Ue.isSuspense=function(E){return x(E)===h},Ue.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===d||E===a||E===o||E===h||E===g||typeof E=="object"&&E!==null&&(E.$$typeof===S||E.$$typeof===y||E.$$typeof===l||E.$$typeof===c||E.$$typeof===p||E.$$typeof===b||E.$$typeof===m||E.$$typeof===w||E.$$typeof===v)},Ue.typeOf=x,Ue}var Ze={};/** @license React v16.13.1
220
- * react-is.development.js
221
- *
222
- * Copyright (c) Facebook, Inc. and its affiliates.
223
- *
224
- * This source code is licensed under the MIT license found in the
225
- * LICENSE file in the root directory of this source tree.
226
- */var jb;function z$(){return jb||(jb=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(Z){return typeof Z=="string"||typeof Z=="function"||Z===n||Z===d||Z===a||Z===o||Z===h||Z===g||typeof Z=="object"&&Z!==null&&(Z.$$typeof===S||Z.$$typeof===y||Z.$$typeof===l||Z.$$typeof===c||Z.$$typeof===p||Z.$$typeof===b||Z.$$typeof===m||Z.$$typeof===w||Z.$$typeof===v)}function k(Z){if(typeof Z=="object"&&Z!==null){var Pe=Z.$$typeof;switch(Pe){case t:var ge=Z.type;switch(ge){case u:case d:case n:case a:case o:case h:return ge;default:var Et=ge&&ge.$$typeof;switch(Et){case c:case p:case S:case y:case l:return Et;default:return Pe}}case r:return Pe}}}var E=u,R=d,F=c,A=l,N=t,V=p,$=n,M=S,B=y,j=r,I=a,Y=o,X=h,K=!1;function me(Z){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(Z)||k(Z)===u}function L(Z){return k(Z)===d}function U(Z){return k(Z)===c}function te(Z){return k(Z)===l}function ee(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function J(Z){return k(Z)===p}function ae(Z){return k(Z)===n}function se(Z){return k(Z)===S}function ne(Z){return k(Z)===y}function ce(Z){return k(Z)===r}function he(Z){return k(Z)===a}function pe(Z){return k(Z)===o}function Se(Z){return k(Z)===h}Ze.AsyncMode=E,Ze.ConcurrentMode=R,Ze.ContextConsumer=F,Ze.ContextProvider=A,Ze.Element=N,Ze.ForwardRef=V,Ze.Fragment=$,Ze.Lazy=M,Ze.Memo=B,Ze.Portal=j,Ze.Profiler=I,Ze.StrictMode=Y,Ze.Suspense=X,Ze.isAsyncMode=me,Ze.isConcurrentMode=L,Ze.isContextConsumer=U,Ze.isContextProvider=te,Ze.isElement=ee,Ze.isForwardRef=J,Ze.isFragment=ae,Ze.isLazy=se,Ze.isMemo=ne,Ze.isPortal=ce,Ze.isProfiler=he,Ze.isStrictMode=pe,Ze.isSuspense=Se,Ze.isValidElementType=x,Ze.typeOf=k})()),Ze}var Fb;function ax(){return Fb||(Fb=1,process.env.NODE_ENV==="production"?Rf.exports=L$():Rf.exports=z$()),Rf.exports}/*
227
- object-assign
228
- (c) Sindre Sorhus
229
- @license MIT
230
- */var Cf,Hb;function j$(){if(Hb)return Cf;Hb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(p){return l[p]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Cf=o()?Object.assign:function(a,l){for(var c,u=n(a),d,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var h in c)t.call(c,h)&&(u[h]=c[h]);if(e){d=e(c);for(var g=0;g<d.length;g++)r.call(c,d[g])&&(u[d[g]]=c[d[g]])}}return u},Cf}var Pf,Wb;function up(){if(Wb)return Pf;Wb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pf=e,Pf}var Bb,Vb;function sx(){return Vb||(Vb=1,Bb=Function.call.bind(Object.prototype.hasOwnProperty)),Bb}var If,Ub;function F$(){if(Ub)return If;Ub=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=up(),r={},n=sx();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(a,l,c,u,d){if(process.env.NODE_ENV!=="production"){for(var p in a)if(n(a,p)){var h;try{if(typeof a[p]!="function"){var g=Error((u||"React class")+": "+c+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}h=a[p](l,p,u,c,null,t)}catch(S){h=S}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var y=d?d():"";e("Failed "+c+" type: "+h.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},If=o,If}var Nf,qb;function H$(){if(qb)return Nf;qb=1;var e=ax(),t=j$(),r=up(),n=sx(),o=F$(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return Nf=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function h(L){var U=L&&(d&&L[d]||L[p]);if(typeof U=="function")return U}var g="<<anonymous>>",y={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:w(),arrayOf:x,element:k(),elementType:E(),instanceOf:R,node:V(),objectOf:A,oneOf:F,oneOfType:N,shape:M,exact:B};function S(L,U){return L===U?L!==0||1/L===1/U:L!==L&&U!==U}function v(L,U){this.message=L,this.data=U&&typeof U=="object"?U:{},this.stack=""}v.prototype=Error.prototype;function b(L){if(process.env.NODE_ENV!=="production")var U={},te=0;function ee(ae,se,ne,ce,he,pe,Se){if(ce=ce||g,pe=pe||ne,Se!==r){if(u){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Pe=ce+":"+ne;!U[Pe]&&te<3&&(a("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+ce+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[Pe]=!0,te++)}}return se[ne]==null?ae?se[ne]===null?new v("The "+he+" `"+pe+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new v("The "+he+" `"+pe+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:L(se,ne,ce,he,pe)}var J=ee.bind(null,!1);return J.isRequired=ee.bind(null,!0),J}function m(L){function U(te,ee,J,ae,se,ne){var ce=te[ee],he=Y(ce);if(he!==L){var pe=X(ce);return new v("Invalid "+ae+" `"+se+"` of type "+("`"+pe+"` supplied to `"+J+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return b(U)}function w(){return b(l)}function x(L){function U(te,ee,J,ae,se){if(typeof L!="function")return new v("Property `"+se+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var ne=te[ee];if(!Array.isArray(ne)){var ce=Y(ne);return new v("Invalid "+ae+" `"+se+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected an array."))}for(var he=0;he<ne.length;he++){var pe=L(ne,he,J,ae,se+"["+he+"]",r);if(pe instanceof Error)return pe}return null}return b(U)}function k(){function L(U,te,ee,J,ae){var se=U[te];if(!c(se)){var ne=Y(se);return new v("Invalid "+J+" `"+ae+"` of type "+("`"+ne+"` supplied to `"+ee+"`, expected a single ReactElement."))}return null}return b(L)}function E(){function L(U,te,ee,J,ae){var se=U[te];if(!e.isValidElementType(se)){var ne=Y(se);return new v("Invalid "+J+" `"+ae+"` of type "+("`"+ne+"` supplied to `"+ee+"`, expected a single ReactElement type."))}return null}return b(L)}function R(L){function U(te,ee,J,ae,se){if(!(te[ee]instanceof L)){var ne=L.name||g,ce=me(te[ee]);return new v("Invalid "+ae+" `"+se+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected ")+("instance of `"+ne+"`."))}return null}return b(U)}function F(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function U(te,ee,J,ae,se){for(var ne=te[ee],ce=0;ce<L.length;ce++)if(S(ne,L[ce]))return null;var he=JSON.stringify(L,function(pe,Se){var Z=X(Se);return Z==="symbol"?String(Se):Se});return new v("Invalid "+ae+" `"+se+"` of value `"+String(ne)+"` "+("supplied to `"+J+"`, expected one of "+he+"."))}return b(U)}function A(L){function U(te,ee,J,ae,se){if(typeof L!="function")return new v("Property `"+se+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var ne=te[ee],ce=Y(ne);if(ce!=="object")return new v("Invalid "+ae+" `"+se+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected an object."));for(var he in ne)if(n(ne,he)){var pe=L(ne,he,J,ae,se+"."+he,r);if(pe instanceof Error)return pe}return null}return b(U)}function N(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var U=0;U<L.length;U++){var te=L[U];if(typeof te!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(te)+" at index "+U+"."),l}function ee(J,ae,se,ne,ce){for(var he=[],pe=0;pe<L.length;pe++){var Se=L[pe],Z=Se(J,ae,se,ne,ce,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&he.push(Z.data.expectedType)}var Pe=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new v("Invalid "+ne+" `"+ce+"` supplied to "+("`"+se+"`"+Pe+"."))}return b(ee)}function V(){function L(U,te,ee,J,ae){return j(U[te])?null:new v("Invalid "+J+" `"+ae+"` supplied to "+("`"+ee+"`, expected a ReactNode."))}return b(L)}function $(L,U,te,ee,J){return new v((L||"React class")+": "+U+" type `"+te+"."+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function M(L){function U(te,ee,J,ae,se){var ne=te[ee],ce=Y(ne);if(ce!=="object")return new v("Invalid "+ae+" `"+se+"` of type `"+ce+"` "+("supplied to `"+J+"`, expected `object`."));for(var he in L){var pe=L[he];if(typeof pe!="function")return $(J,ae,se,he,X(pe));var Se=pe(ne,he,J,ae,se+"."+he,r);if(Se)return Se}return null}return b(U)}function B(L){function U(te,ee,J,ae,se){var ne=te[ee],ce=Y(ne);if(ce!=="object")return new v("Invalid "+ae+" `"+se+"` of type `"+ce+"` "+("supplied to `"+J+"`, expected `object`."));var he=t({},te[ee],L);for(var pe in he){var Se=L[pe];if(n(L,pe)&&typeof Se!="function")return $(J,ae,se,pe,X(Se));if(!Se)return new v("Invalid "+ae+" `"+se+"` key `"+pe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(te[ee],null," ")+`
231
- Valid keys: `+JSON.stringify(Object.keys(L),null," "));var Z=Se(ne,pe,J,ae,se+"."+pe,r);if(Z)return Z}return null}return b(U)}function j(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(j);if(L===null||c(L))return!0;var U=h(L);if(U){var te=U.call(L),ee;if(U!==L.entries){for(;!(ee=te.next()).done;)if(!j(ee.value))return!1}else for(;!(ee=te.next()).done;){var J=ee.value;if(J&&!j(J[1]))return!1}}else return!1;return!0;default:return!1}}function I(L,U){return L==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function Y(L){var U=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":I(U,L)?"symbol":U}function X(L){if(typeof L>"u"||L===null)return""+L;var U=Y(L);if(U==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return U}function K(L){var U=X(L);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function me(L){return!L.constructor||!L.constructor.name?g:L.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},Nf}var Mf,Gb;function W$(){if(Gb)return Mf;Gb=1;var e=up();function t(){}function r(){}return r.resetWarningCache=t,Mf=function(){function n(l,c,u,d,p,h){if(h!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Mf}var Yb;function B$(){if(Yb)return vl.exports;if(Yb=1,process.env.NODE_ENV!=="production"){var e=ax(),t=!0;vl.exports=H$()(e.isElement,t)}else vl.exports=W$()();return vl.exports}var V$=B$();const ue=Lw(V$);var Df={exports:{}},qe={};/**
232
- * @license React
233
- * react-is.production.min.js
234
- *
235
- * Copyright (c) Facebook, Inc. and its affiliates.
236
- *
237
- * This source code is licensed under the MIT license found in the
238
- * LICENSE file in the root directory of this source tree.
239
- */var Kb;function U$(){if(Kb)return qe;Kb=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function v(b){if(typeof b=="object"&&b!==null){var m=b.$$typeof;switch(m){case e:switch(b=b.type,b){case r:case o:case n:case d:case p:return b;default:switch(b=b&&b.$$typeof,b){case c:case l:case u:case g:case h:case a:return b;default:return m}}case t:return m}}}return qe.ContextConsumer=l,qe.ContextProvider=a,qe.Element=e,qe.ForwardRef=u,qe.Fragment=r,qe.Lazy=g,qe.Memo=h,qe.Portal=t,qe.Profiler=o,qe.StrictMode=n,qe.Suspense=d,qe.SuspenseList=p,qe.isAsyncMode=function(){return!1},qe.isConcurrentMode=function(){return!1},qe.isContextConsumer=function(b){return v(b)===l},qe.isContextProvider=function(b){return v(b)===a},qe.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},qe.isForwardRef=function(b){return v(b)===u},qe.isFragment=function(b){return v(b)===r},qe.isLazy=function(b){return v(b)===g},qe.isMemo=function(b){return v(b)===h},qe.isPortal=function(b){return v(b)===t},qe.isProfiler=function(b){return v(b)===o},qe.isStrictMode=function(b){return v(b)===n},qe.isSuspense=function(b){return v(b)===d},qe.isSuspenseList=function(b){return v(b)===p},qe.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===n||b===d||b===p||b===y||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===h||b.$$typeof===a||b.$$typeof===l||b.$$typeof===u||b.$$typeof===S||b.getModuleId!==void 0)},qe.typeOf=v,qe}var Xe={};/**
240
- * @license React
241
- * react-is.development.js
242
- *
243
- * Copyright (c) Facebook, Inc. and its affiliates.
244
- *
245
- * This source code is licensed under the MIT license found in the
246
- * LICENSE file in the root directory of this source tree.
247
- */var Zb;function q$(){return Zb||(Zb=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),S=!1,v=!1,b=!1,m=!1,w=!1,x;x=Symbol.for("react.module.reference");function k(ge){return!!(typeof ge=="string"||typeof ge=="function"||ge===r||ge===o||w||ge===n||ge===d||ge===p||m||ge===y||S||v||b||typeof ge=="object"&&ge!==null&&(ge.$$typeof===g||ge.$$typeof===h||ge.$$typeof===a||ge.$$typeof===l||ge.$$typeof===u||ge.$$typeof===x||ge.getModuleId!==void 0))}function E(ge){if(typeof ge=="object"&&ge!==null){var Et=ge.$$typeof;switch(Et){case e:var vr=ge.type;switch(vr){case r:case o:case n:case d:case p:return vr;default:var Ct=vr&&vr.$$typeof;switch(Ct){case c:case l:case u:case g:case h:case a:return Ct;default:return Et}}case t:return Et}}}var R=l,F=a,A=e,N=u,V=r,$=g,M=h,B=t,j=o,I=n,Y=d,X=p,K=!1,me=!1;function L(ge){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(ge){return me||(me=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(ge){return E(ge)===l}function ee(ge){return E(ge)===a}function J(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===e}function ae(ge){return E(ge)===u}function se(ge){return E(ge)===r}function ne(ge){return E(ge)===g}function ce(ge){return E(ge)===h}function he(ge){return E(ge)===t}function pe(ge){return E(ge)===o}function Se(ge){return E(ge)===n}function Z(ge){return E(ge)===d}function Pe(ge){return E(ge)===p}Xe.ContextConsumer=R,Xe.ContextProvider=F,Xe.Element=A,Xe.ForwardRef=N,Xe.Fragment=V,Xe.Lazy=$,Xe.Memo=M,Xe.Portal=B,Xe.Profiler=j,Xe.StrictMode=I,Xe.Suspense=Y,Xe.SuspenseList=X,Xe.isAsyncMode=L,Xe.isConcurrentMode=U,Xe.isContextConsumer=te,Xe.isContextProvider=ee,Xe.isElement=J,Xe.isForwardRef=ae,Xe.isFragment=se,Xe.isLazy=ne,Xe.isMemo=ce,Xe.isPortal=he,Xe.isProfiler=pe,Xe.isStrictMode=Se,Xe.isSuspense=Z,Xe.isSuspenseList=Pe,Xe.isValidElementType=k,Xe.typeOf=E})()),Xe}var Xb;function G$(){return Xb||(Xb=1,process.env.NODE_ENV==="production"?Df.exports=U$():Df.exports=q$()),Df.exports}var Jb=G$();const Qb=e=>typeof e=="object"&&e!=null&&e.nodeType===1,e0=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",ml=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return e0(r.overflowY,t)||e0(r.overflowX,t)||(n=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},bl=(e,t,r,n,o,a,l,c)=>a<e&&l>t||a>e&&l<t?0:a<=e&&c<=r||l>=t&&c>=r?a-e-n:l>t&&c<r||a<e&&c>r?l-t+o:0,Y$=e=>e.parentElement??(e.getRootNode().host||null),K$=(e,t)=>{var r,n,o,a;if(typeof document>"u")return[];const{inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:B=>B!==c;if(!Qb(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let g=e;for(;Qb(g)&&d(g);){if(g=Y$(g),g===p){h.push(g);break}g!=null&&g===document.body&&ml(g)&&!ml(document.documentElement)||g!=null&&ml(g,u)&&h.push(g)}const y=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,S=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:v,scrollY:b}=window,{height:m,width:w,top:x,right:k,bottom:E,left:R}=e.getBoundingClientRect(),{top:F,right:A,left:N}=(B=>{const j=window.getComputedStyle(B);return{top:parseFloat(j.scrollMarginTop)||0,right:parseFloat(j.scrollMarginRight)||0,bottom:parseFloat(j.scrollMarginBottom)||0,left:parseFloat(j.scrollMarginLeft)||0}})(e);let V=x-F,$=l==="center"?R+w/2-N+A:l==="end"?k+A:R-N;const M=[];for(let B=0;B<h.length;B++){const j=h[B],{height:I,width:Y,top:X,right:K,bottom:me,left:L}=j.getBoundingClientRect();if(x>=0&&R>=0&&E<=S&&k<=y&&(j===p&&!ml(j)||x>=X&&E<=me&&R>=L&&k<=K))return M;const U=getComputedStyle(j),te=parseInt(U.borderLeftWidth,10),ee=parseInt(U.borderTopWidth,10),J=parseInt(U.borderRightWidth,10),ae=parseInt(U.borderBottomWidth,10);let se=0,ne=0;const ce="offsetWidth"in j?j.offsetWidth-j.clientWidth-te-J:0,he="offsetHeight"in j?j.offsetHeight-j.clientHeight-ee-ae:0,pe="offsetWidth"in j?j.offsetWidth===0?0:Y/j.offsetWidth:0,Se="offsetHeight"in j?j.offsetHeight===0?0:I/j.offsetHeight:0;if(p===j)se=bl(b,b+S,S,ee,ae,b+V,b+V+m,m),ne=l==="start"?$:l==="center"?$-y/2:l==="end"?$-y:bl(v,v+y,y,te,J,v+$,v+$+w,w),se=Math.max(0,se+b),ne=Math.max(0,ne+v);else{se=bl(X,me,I,ee,ae+he,V,V+m,m),ne=l==="start"?$-L-te:l==="center"?$-(L+Y/2)+ce/2:l==="end"?$-K+J+ce:bl(L,K,Y,te,J+ce,$,$+w,w);const{scrollLeft:Z,scrollTop:Pe}=j;se=Se===0?0:Math.max(0,Math.min(Pe+se/Se,j.scrollHeight-I/Se+he)),ne=pe===0?0:Math.max(0,Math.min(Z+ne/pe,j.scrollWidth-Y/pe+ce)),V+=Pe-se,$+=Z-ne}M.push({el:j,top:se,left:ne})}return M};var wo=function(){return wo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wo.apply(this,arguments)},Z$=0;function t0(e){return typeof e=="function"?e:_n}function _n(){}function lx(e,t){if(e){var r=K$(e,{boundary:t});r.forEach(function(n){var o=n.el,a=n.top,l=n.left;o.scrollTop=a,o.scrollLeft=l})}}function r0(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function fp(e,t){var r;function n(){r&&clearTimeout(r)}function o(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];n(),r=setTimeout(function(){r=null,e.apply(void 0,l)},t)}return o.cancel=n,o}function Xr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];return t.some(function(c){return c&&c.apply(void 0,[n].concat(a)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function n0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){t.forEach(function(o){typeof o=="function"?o(n):o&&(o.current=n)})}}function X$(){return String(Z$++)}function J$(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function i0(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function cx(e){return typeof e.type=="string"}function ux(e){return e.props}function Q$(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var eL=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function yl(e){e===void 0&&(e={});var t={};return eL.forEach(function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}function tL(e,t){return!e||!t?e:Object.keys(e).reduce(function(r,n){return r[n]=hd(t,n)?t[n]:e[n],r},{})}function hd(e,t){return e[t]!==void 0}function o0(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function rL(e){return Object.prototype.toString.call(e)==="[object Object]"}function $f(e,t,r,n,o){var a=r.length;if(a===0)return-1;var l=a-1;(typeof e!="number"||e<0||e>l)&&(e=t>0?-1:l+1);var c=e+t;c<0?c=l:c>l&&(c=0);var u=tc(c,t<0,r,n,o);return u===-1?e>=a?-1:e:u}function tc(e,t,r,n,o){o===void 0&&(o=!1);var a=r.length;if(t){for(var l=e;l>=0;l--)if(!n(r[l],l))return l}else for(var c=e;c<a;c++)if(!n(r[c],c))return c;return o?tc(t?a-1:0,t,r,n):-1}function a0(e,t,r,n){return n===void 0&&(n=!0),r&&t.some(function(o){return o&&(r0(o,e,r)||n&&r0(o,r.document.activeElement,r))})}var dp=_n;process.env.NODE_ENV!=="production"&&(dp=function(e,t,r){var n="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(function(o){t[o]!==void 0&&r[o]===void 0?console.error('downshift: A component has changed the controlled prop "'+o+'" to be uncontrolled. '+n):t[o]===void 0&&r[o]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+o+'" to be controlled. '+n)})});var nL=fp(function(e){fx(e).textContent=""},500);function fx(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function dx(e,t){if(!(!e||!t)){var r=fx(t);r.textContent=e,nL(t)}}var px=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,hx=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,gx=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,Dl=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,$l=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,vx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,mx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,bx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,yx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,wx=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,xx=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,Sx=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,_x=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,gd=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,Ex=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,kx=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,Ox=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,iL=Object.freeze({__proto__:null,blurButton:Ex,blurInput:xx,changeInput:Sx,clickButton:gd,clickItem:wx,controlledPropUpdatedSelectedItem:kx,itemMouseEnter:gx,keyDownArrowDown:$l,keyDownArrowUp:Dl,keyDownEnd:yx,keyDownEnter:mx,keyDownEscape:vx,keyDownHome:bx,keyDownSpaceButton:_x,mouseUp:hx,touchEnd:Ox,unknown:px}),oL=["refKey","ref"],aL=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],sL=["onKeyDown","onBlur","onChange","onInput","onChangeText"],lL=["refKey","ref"],cL=["onMouseMove","onMouseDown","onClick","onPress","index","item"],uL=(function(){var e=(function(t){function r(o){var a;a=t.call(this,o)||this,a.id=a.props.id||"downshift-"+X$(),a.menuId=a.props.menuId||a.id+"-menu",a.labelId=a.props.labelId||a.id+"-label",a.inputId=a.props.inputId||a.id+"-input",a.getItemId=a.props.getItemId||function(w){return a.id+"-item-"+w},a.items=[],a.itemCount=null,a.previousResultCount=0,a.timeoutIds=[],a.internalSetTimeout=function(w,x){var k=setTimeout(function(){a.timeoutIds=a.timeoutIds.filter(function(E){return E!==k}),w()},x);a.timeoutIds.push(k)},a.setItemCount=function(w){a.itemCount=w},a.unsetItemCount=function(){a.itemCount=null},a.isItemDisabled=function(w,x){var k=a.getItemNodeFromIndex(x);return k&&k.hasAttribute("disabled")},a.setHighlightedIndex=function(w,x){w===void 0&&(w=a.props.defaultHighlightedIndex),x===void 0&&(x={}),x=yl(x),a.internalSetState(yt({highlightedIndex:w},x))},a.clearSelection=function(w){a.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:a.props.defaultHighlightedIndex,isOpen:a.props.defaultIsOpen},w)},a.selectItem=function(w,x,k){x=yl(x),a.internalSetState(yt({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,selectedItem:w,inputValue:a.props.itemToString(w)},x),k)},a.selectItemAtIndex=function(w,x,k){var E=a.items[w];E!=null&&a.selectItem(E,x,k)},a.selectHighlightedItem=function(w,x){return a.selectItemAtIndex(a.getState().highlightedIndex,w,x)},a.internalSetState=function(w,x){var k,E,R={},F=typeof w=="function";return!F&&w.hasOwnProperty("inputValue")&&a.props.onInputValueChange(w.inputValue,yt({},a.getStateAndHelpers(),w)),a.setState(function(A){var N;A=a.getState(A);var V=F?w(A):w;V=a.props.stateReducer(A,V),k=V.hasOwnProperty("selectedItem");var $={};return k&&V.selectedItem!==A.selectedItem&&(E=V.selectedItem),(N=V).type||(N.type=px),Object.keys(V).forEach(function(M){A[M]!==V[M]&&(R[M]=V[M]),M!=="type"&&(V[M],hd(a.props,M)||($[M]=V[M]))}),F&&V.hasOwnProperty("inputValue")&&a.props.onInputValueChange(V.inputValue,yt({},a.getStateAndHelpers(),V)),$},function(){t0(x)();var A=Object.keys(R).length>1;A&&a.props.onStateChange(R,a.getStateAndHelpers()),k&&a.props.onSelect(w.selectedItem,a.getStateAndHelpers()),E!==void 0&&a.props.onChange(E,a.getStateAndHelpers()),a.props.onUserAction(R,a.getStateAndHelpers())})},a.rootRef=function(w){return a._rootNode=w},a.getRootProps=function(w,x){var k,E=w===void 0?{}:w,R=E.refKey,F=R===void 0?"ref":R,A=E.ref,N=va(E,oL),V=x===void 0?{}:x,$=V.suppressRefError,M=$===void 0?!1:$;a.getRootProps.called=!0,a.getRootProps.refKey=F,a.getRootProps.suppressRefError=M;var B=a.getState(),j=B.isOpen;return yt((k={},k[F]=n0(A,a.rootRef),k.role="combobox",k["aria-expanded"]=j,k["aria-haspopup"]="listbox",k["aria-owns"]=j?a.menuId:void 0,k["aria-labelledby"]=a.labelId,k),N)},a.keyDownHandlers={ArrowDown:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var k=w.shiftKey?5:1;this.moveHighlightedIndex(k,{type:$l})}else this.internalSetState({isOpen:!0,type:$l},function(){var E=x.getItemCount();if(E>0){var R=x.getState(),F=R.highlightedIndex,A=$f(F,1,{length:E},x.isItemDisabled,!0);x.setHighlightedIndex(A,{type:$l})}})},ArrowUp:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var k=w.shiftKey?-5:-1;this.moveHighlightedIndex(k,{type:Dl})}else this.internalSetState({isOpen:!0,type:Dl},function(){var E=x.getItemCount();if(E>0){var R=x.getState(),F=R.highlightedIndex,A=$f(F,-1,{length:E},x.isItemDisabled,!0);x.setHighlightedIndex(A,{type:Dl})}})},Enter:function(w){if(w.which!==229){var x=this.getState(),k=x.isOpen,E=x.highlightedIndex;if(k&&E!=null){w.preventDefault();var R=this.items[E],F=this.getItemNodeFromIndex(E);if(R==null||F&&F.hasAttribute("disabled"))return;this.selectHighlightedItem({type:mx})}}},Escape:function(w){w.preventDefault(),this.reset(yt({type:vx},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},a.buttonKeyDownHandlers=yt({},a.keyDownHandlers,{" ":function(w){w.preventDefault(),this.toggleMenu({type:_x})}}),a.inputKeyDownHandlers=yt({},a.keyDownHandlers,{Home:function(w){var x=this.getState(),k=x.isOpen;if(k){w.preventDefault();var E=this.getItemCount();if(!(E<=0||!k)){var R=tc(0,!1,{length:E},this.isItemDisabled);this.setHighlightedIndex(R,{type:bx})}}},End:function(w){var x=this.getState(),k=x.isOpen;if(k){w.preventDefault();var E=this.getItemCount();if(!(E<=0||!k)){var R=tc(E-1,!0,{length:E},this.isItemDisabled);this.setHighlightedIndex(R,{type:yx})}}}}),a.getToggleButtonProps=function(w){var x=w===void 0?{}:w,k=x.onClick;x.onPress;var E=x.onKeyDown,R=x.onKeyUp,F=x.onBlur,A=va(x,aL),N=a.getState(),V=N.isOpen,$={onClick:Xr(k,a.buttonHandleClick),onKeyDown:Xr(E,a.buttonHandleKeyDown),onKeyUp:Xr(R,a.buttonHandleKeyUp),onBlur:Xr(F,a.buttonHandleBlur)},M=A.disabled?{}:$;return yt({type:"button",role:"button","aria-label":V?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},M,A)},a.buttonHandleKeyUp=function(w){w.preventDefault()},a.buttonHandleKeyDown=function(w){var x=o0(w);a.buttonKeyDownHandlers[x]&&a.buttonKeyDownHandlers[x].call(a,w)},a.buttonHandleClick=function(w){if(w.preventDefault(),a.props.environment){var x=a.props.environment.document,k=x.body,E=x.activeElement;k&&k===E&&w.target.focus()}process.env.NODE_ENV==="test"?a.toggleMenu({type:gd}):a.internalSetTimeout(function(){return a.toggleMenu({type:gd})})},a.buttonHandleBlur=function(w){var x=w.target;a.internalSetTimeout(function(){if(!(a.isMouseDown||!a.props.environment)){var k=a.props.environment.document.activeElement;(k==null||k.id!==a.inputId)&&k!==x&&a.reset({type:Ex})}})},a.getLabelProps=function(w){return yt({htmlFor:a.inputId,id:a.labelId},w)},a.getInputProps=function(w){var x=w===void 0?{}:w,k=x.onKeyDown,E=x.onBlur,R=x.onChange,F=x.onInput;x.onChangeText;var A=va(x,sL),N,V={};N="onChange";var $=a.getState(),M=$.inputValue,B=$.isOpen,j=$.highlightedIndex;if(!A.disabled){var I;V=(I={},I[N]=Xr(R,F,a.inputHandleChange),I.onKeyDown=Xr(k,a.inputHandleKeyDown),I.onBlur=Xr(E,a.inputHandleBlur),I)}return yt({"aria-autocomplete":"list","aria-activedescendant":B&&typeof j=="number"&&j>=0?a.getItemId(j):void 0,"aria-controls":B?a.menuId:void 0,"aria-labelledby":A&&A["aria-label"]?void 0:a.labelId,autoComplete:"off",value:M,id:a.inputId},V,A)},a.inputHandleKeyDown=function(w){var x=o0(w);x&&a.inputKeyDownHandlers[x]&&a.inputKeyDownHandlers[x].call(a,w)},a.inputHandleChange=function(w){a.internalSetState({type:Sx,isOpen:!0,inputValue:w.target.value,highlightedIndex:a.props.defaultHighlightedIndex})},a.inputHandleBlur=function(){a.internalSetTimeout(function(){var w;if(!(a.isMouseDown||!a.props.environment)){var x=a.props.environment.document.activeElement,k=(x==null||(w=x.dataset)==null?void 0:w.toggle)&&a._rootNode&&a._rootNode.contains(x);k||a.reset({type:xx})}})},a.menuRef=function(w){a._menuNode=w},a.getMenuProps=function(w,x){var k,E=w===void 0?{}:w,R=E.refKey,F=R===void 0?"ref":R,A=E.ref,N=va(E,lL),V=x===void 0?{}:x,$=V.suppressRefError,M=$===void 0?!1:$;return a.getMenuProps.called=!0,a.getMenuProps.refKey=F,a.getMenuProps.suppressRefError=M,yt((k={},k[F]=n0(A,a.menuRef),k.role="listbox",k["aria-labelledby"]=N&&N["aria-label"]?void 0:a.labelId,k.id=a.menuId,k),N)},a.getItemProps=function(w){var x,k=w===void 0?{}:w,E=k.onMouseMove,R=k.onMouseDown,F=k.onClick;k.onPress;var A=k.index,N=k.item,V=N===void 0?process.env.NODE_ENV==="production"?void 0:Q$("getItemProps","item"):N,$=va(k,cL);A===void 0?(a.items.push(V),A=a.items.indexOf(V)):a.items[A]=V;var M="onClick",B=F,j=(x={onMouseMove:Xr(E,function(){A!==a.getState().highlightedIndex&&(a.setHighlightedIndex(A,{type:gx}),a.avoidScrolling=!0,a.internalSetTimeout(function(){return a.avoidScrolling=!1},250))}),onMouseDown:Xr(R,function(Y){Y.preventDefault()})},x[M]=Xr(B,function(){a.selectItemAtIndex(A,{type:wx})}),x),I=$.disabled?{onMouseDown:j.onMouseDown}:j;return yt({id:a.getItemId(A),role:"option","aria-selected":a.getState().highlightedIndex===A},I,$)},a.clearItems=function(){a.items=[]},a.reset=function(w,x){w===void 0&&(w={}),w=yl(w),a.internalSetState(function(k){var E=k.selectedItem;return yt({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,inputValue:a.props.itemToString(E)},w)},x)},a.toggleMenu=function(w,x){w===void 0&&(w={}),w=yl(w),a.internalSetState(function(k){var E=k.isOpen;return yt({isOpen:!E},E&&{highlightedIndex:a.props.defaultHighlightedIndex},w)},function(){var k=a.getState(),E=k.isOpen,R=k.highlightedIndex;E&&a.getItemCount()>0&&typeof R=="number"&&a.setHighlightedIndex(R,w),t0(x)()})},a.openMenu=function(w){a.internalSetState({isOpen:!0},w)},a.closeMenu=function(w){a.internalSetState({isOpen:!1},w)},a.updateStatus=fp(function(){var w;if((w=a.props)!=null&&(w=w.environment)!=null&&w.document){var x=a.getState(),k=a.items[x.highlightedIndex],E=a.getItemCount(),R=a.props.getA11yStatusMessage(yt({itemToString:a.props.itemToString,previousResultCount:a.previousResultCount,resultCount:E,highlightedItem:k},x));a.previousResultCount=E,dx(R,a.props.environment.document)}},200);var l=a.props,c=l.defaultHighlightedIndex,u=l.initialHighlightedIndex,d=u===void 0?c:u,p=l.defaultIsOpen,h=l.initialIsOpen,g=h===void 0?p:h,y=l.initialInputValue,S=y===void 0?"":y,v=l.initialSelectedItem,b=v===void 0?null:v,m=a.getState({highlightedIndex:d,isOpen:g,inputValue:S,selectedItem:b});return m.selectedItem!=null&&a.props.initialInputValue===void 0&&(m.inputValue=a.props.itemToString(m.selectedItem)),a.state=m,a}$$(r,t);var n=r.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(o){clearTimeout(o)}),this.timeoutIds=[]},n.getState=function(o){return o===void 0&&(o=this.state),tL(o,this.props)},n.getItemCount=function(){var o=this.items.length;return this.itemCount!=null?o=this.itemCount:this.props.itemCount!==void 0&&(o=this.props.itemCount),o},n.getItemNodeFromIndex=function(o){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(o)):null},n.scrollHighlightedItemIntoView=function(){{var o=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(o,this._menuNode)}},n.moveHighlightedIndex=function(o,a){var l=this.getItemCount(),c=this.getState(),u=c.highlightedIndex;if(l>0){var d=$f(u,o,{length:l},this.isItemDisabled,!0);this.setHighlightedIndex(d,a)}},n.getStateAndHelpers=function(){var o=this.getState(),a=o.highlightedIndex,l=o.inputValue,c=o.selectedItem,u=o.isOpen,d=this.props.itemToString,p=this.id,h=this.getRootProps,g=this.getToggleButtonProps,y=this.getLabelProps,S=this.getMenuProps,v=this.getInputProps,b=this.getItemProps,m=this.openMenu,w=this.closeMenu,x=this.toggleMenu,k=this.selectItem,E=this.selectItemAtIndex,R=this.selectHighlightedItem,F=this.setHighlightedIndex,A=this.clearSelection,N=this.clearItems,V=this.reset,$=this.setItemCount,M=this.unsetItemCount,B=this.internalSetState;return{getRootProps:h,getToggleButtonProps:g,getLabelProps:y,getMenuProps:S,getInputProps:v,getItemProps:b,reset:V,openMenu:m,closeMenu:w,toggleMenu:x,selectItem:k,selectItemAtIndex:E,selectHighlightedItem:R,setHighlightedIndex:F,clearSelection:A,clearItems:N,setItemCount:$,unsetItemCount:M,setState:B,itemToString:d,id:p,highlightedIndex:a,inputValue:l,isOpen:u,selectedItem:c}},n.componentDidMount=function(){var o=this;if(process.env.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&s0(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){o.internalClearTimeouts()};else{var a=function(){o.isMouseDown=!0},l=function(h){o.isMouseDown=!1;var g=a0(h.target,[o._rootNode,o._menuNode],o.props.environment);!g&&o.getState().isOpen&&o.reset({type:hx},function(){return o.props.onOuterClick(o.getStateAndHelpers())})},c=function(){o.isTouchMove=!1},u=function(){o.isTouchMove=!0},d=function(h){var g=a0(h.target,[o._rootNode,o._menuNode],o.props.environment,!1);!o.isTouchMove&&!g&&o.getState().isOpen&&o.reset({type:Ox},function(){return o.props.onOuterClick(o.getStateAndHelpers())})},p=this.props.environment;p.addEventListener("mousedown",a),p.addEventListener("mouseup",l),p.addEventListener("touchstart",c),p.addEventListener("touchmove",u),p.addEventListener("touchend",d),this.cleanup=function(){o.internalClearTimeouts(),o.updateStatus.cancel(),p.removeEventListener("mousedown",a),p.removeEventListener("mouseup",l),p.removeEventListener("touchstart",c),p.removeEventListener("touchmove",u),p.removeEventListener("touchend",d)}}},n.shouldScroll=function(o,a){var l=this.props.highlightedIndex===void 0?this.getState():this.props,c=l.highlightedIndex,u=a.highlightedIndex===void 0?o:a,d=u.highlightedIndex,p=c&&this.getState().isOpen&&!o.isOpen,h=c!==d;return p||h},n.componentDidUpdate=function(o,a){process.env.NODE_ENV!=="production"&&(dp(this.state,o,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&s0(this._menuNode,this.getMenuProps)),hd(this.props,"selectedItem")&&this.props.selectedItemChanged(o.selectedItem,this.props.selectedItem)&&this.internalSetState({type:kx,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(a,o)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var o=i0(this.props.children,_n);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var a=i0(o(this.getStateAndHelpers()));if(!a)return null;if(this.getRootProps.called||this.props.suppressRefError)return process.env.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&fL(a,this.getRootProps),a;if(cx(a))return H.cloneElement(a,this.getRootProps(ux(a)));if(process.env.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},r})(H.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:J$,itemToString:function(t){return t==null?"":(process.env.NODE_ENV!=="production"&&rL(t)&&!t.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",t),String(t))},onStateChange:_n,onInputValueChange:_n,onUserAction:_n,onChange:_n,onSelect:_n,onOuterClick:_n,selectedItemChanged:function(t,r){return t!==r},environment:typeof window>"u"?void 0:window,stateReducer:function(t,r){return r},suppressRefError:!1,scrollIntoView:lx},e.stateChangeTypes=iL,e})();process.env.NODE_ENV!=="production"&&(uL.propTypes={children:ue.func,defaultHighlightedIndex:ue.number,defaultIsOpen:ue.bool,initialHighlightedIndex:ue.number,initialSelectedItem:ue.any,initialInputValue:ue.string,initialIsOpen:ue.bool,getA11yStatusMessage:ue.func,itemToString:ue.func,onChange:ue.func,onSelect:ue.func,onStateChange:ue.func,onInputValueChange:ue.func,onUserAction:ue.func,onOuterClick:ue.func,selectedItemChanged:ue.func,stateReducer:ue.func,itemCount:ue.number,id:ue.string,environment:ue.shape({addEventListener:ue.func.isRequired,removeEventListener:ue.func.isRequired,document:ue.shape({createElement:ue.func.isRequired,getElementById:ue.func.isRequired,activeElement:ue.any.isRequired,body:ue.any.isRequired}).isRequired,Node:ue.func.isRequired}),suppressRefError:ue.bool,scrollIntoView:ue.func,selectedItem:ue.any,isOpen:ue.bool,inputValue:ue.string,highlightedIndex:ue.number,labelId:ue.string,inputId:ue.string,menuId:ue.string,getItemId:ue.func});function s0(e,t){var r=t.refKey;e||console.error('downshift: The ref prop "'+r+'" from getMenuProps was not applied correctly on your menu element.')}function fL(e,t){var r=t.refKey,n=r!=="ref",o=!cx(e);o&&!n&&!Jb.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!o&&n&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+r+'"'),!Jb.isForwardRef(e)&&!ux(e)[r]&&console.error('downshift: You must apply the ref prop "'+r+'" from getRootProps onto your root element.')}function dL(e,t){return t.changes}fp(function(e,t){dx(e,t)},200);var Ca={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:dL,scrollIntoView:lx,environment:typeof window>"u"?void 0:window};process.env.NODE_ENV;process.env.NODE_ENV;function pL(){var e=H.useRef(!0);return H.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}var Ll={environment:ue.shape({addEventListener:ue.func.isRequired,removeEventListener:ue.func.isRequired,document:ue.shape({createElement:ue.func.isRequired,getElementById:ue.func.isRequired,activeElement:ue.any.isRequired,body:ue.any.isRequired}).isRequired,Node:ue.func.isRequired}),itemToString:ue.func,itemToKey:ue.func,stateReducer:ue.func},Ax=yt({},Ll,{getA11yStatusMessage:ue.func,highlightedIndex:ue.number,defaultHighlightedIndex:ue.number,initialHighlightedIndex:ue.number,isOpen:ue.bool,defaultIsOpen:ue.bool,initialIsOpen:ue.bool,selectedItem:ue.any,initialSelectedItem:ue.any,defaultSelectedItem:ue.any,id:ue.string,labelId:ue.string,menuId:ue.string,getItemId:ue.func,toggleButtonId:ue.string,onSelectedItemChange:ue.func,onHighlightedIndexChange:ue.func,onStateChange:ue.func,onIsOpenChange:ue.func,scrollIntoView:ue.func}),hL=wo(wo({},Ax),{items:ue.array.isRequired,isItemDisabled:ue.func});wo(wo({},Ca),{isItemDisabled:function(){return!1}});process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;var gL=yt({},Ax,{items:ue.array.isRequired,isItemDisabled:ue.func,inputValue:ue.string,defaultInputValue:ue.string,initialInputValue:ue.string,inputId:ue.string,onInputValueChange:ue.func});process.env.NODE_ENV;yt({},Ca,{isItemDisabled:function(){return!1}});var vL={stateReducer:Ll.stateReducer,itemToKey:Ll.itemToKey,environment:Ll.environment,selectedItems:ue.array,initialSelectedItems:ue.array,defaultSelectedItems:ue.array,getA11yStatusMessage:ue.func,activeIndex:ue.number,initialActiveIndex:ue.number,defaultActiveIndex:ue.number,onActiveIndexChange:ue.func,onSelectedItemsChange:ue.func,keyNavigationNext:ue.string,keyNavigationPrevious:ue.string};Ca.itemToKey,Ca.stateReducer,Ca.environment;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;const Tx=H.forwardRef(({className:e,children:t,isFocused:r,isDisabled:n,...o},a)=>{const{size:l,color:c,isDisabled:u,hasMessage:d,downshift:p,isInvalid:h}=Zt(),g=n??u,y=r??p.isOpen;return C.jsx("div",{ref:a,className:fe(y$({size:l,color:c,isDisabled:g,isFocused:!!y,isInvalid:h&&!p.isOpen,hasMessage:d}),e),"aria-disabled":g,"aria-invalid":h,role:"combobox",tabIndex:g?-1:0,...o,children:t})}),Rx=({className:e,children:t,isMulti:r})=>C.jsx("div",{className:fe(w$({isMulti:r}),e),children:t}),zl=H.forwardRef(({isHidden:e,inputClassName:t,...r},n)=>{const{size:o,color:a}=Zt();return e?C.jsx("input",{ref:n,type:"text",style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...r}):C.jsx("input",{ref:n,type:"text",className:fe(x$({size:o,color:a}),t),...r})}),Cx=({className:e,children:t})=>{const{size:r,color:n}=Zt();return C.jsx("div",{className:fe(S$({size:r,color:n}),e),children:t})},Px=({className:e,children:t,data:r,isDisabled:n})=>{const{size:o,color:a}=Zt();return C.jsx("div",{className:fe(_$({size:o,color:a,isDisabled:n}),e),children:t||r.label})},Ix=({className:e,children:t,data:r,isDisabled:n,isFocused:o,onRemove:a})=>{const{size:l,color:c,downshift:u}=Zt(),d=()=>{a?a(r):u.removeItem(r)};return C.jsxs("div",{className:fe(E$({size:l,color:c,isDisabled:n,isFocused:o}),e),children:[C.jsx("div",{className:k$({size:l}),children:t||r.label}),!n&&C.jsx("div",{className:O$({size:l,color:c,isDisabled:!1}),onClick:d,children:C.jsx(_c,{className:"w-3 h-3"})})]})},Nx=({color:e,className:t,children:r,onClick:n,isDisabled:o,...a})=>{const{size:l,color:c,isDisabled:u,downshift:d}=Zt(),p=o??u,h=d.selectedItems.length>0;if(p||!h)return null;const g=y=>{y.stopPropagation(),n?n(y):d.clearSelection()};return C.jsx("div",{className:fe(ox({size:l,color:e||c,isDisabled:p}),t),onClick:g,role:"button",tabIndex:0,"aria-label":"Clear selection",...a,children:r||C.jsx(WM,{})})},mL=({className:e,children:t,onClick:r,isDisabled:n,...o})=>{const{size:a,color:l,isDisabled:c,downshift:u}=Zt(),d=n??c,p=u.inputValue.length>0&&u.isSearchable;if(d||!p)return null;const h=g=>{g.stopPropagation(),r?r(g):u.setInputValue("")};return C.jsx("div",{className:fe(ox({size:a,color:l,isDisabled:d}),e),onClick:h,role:"button",tabIndex:0,"aria-label":"Clear selection",...o,children:t||C.jsx(_c,{})})},Mx=({color:e,className:t,children:r,onClick:n,isDisabled:o,...a})=>{const{size:l,color:c,isDisabled:u,downshift:d}=Zt(),p=o??u,h=d.isOpen,g=y=>{y.stopPropagation(),p||(n?n(y):d.toggleMenu())};return C.jsx("div",{className:fe(A$({size:l,color:e||c,isDisabled:p}),"cursor-pointer",t),onClick:g,role:"button",tabIndex:p?-1:0,"aria-label":h?"Close menu":"Open menu","aria-expanded":h,"aria-disabled":p,...a,children:r||C.jsx(BM,{className:fe("transition-transform duration-200",{"rotate-180":h})})})},Dx=H.forwardRef(({className:e,children:t,placement:r,...n},o)=>{const{size:a,hasMessage:l,color:c}=Zt();return C.jsx("div",{"data-qui":"SelectMenu",ref:o,className:fe(T$({size:a,placement:r,hasMessage:l,color:c}),e),...n,children:t})}),$x=H.forwardRef(({className:e,children:t,maxHeight:r=300,...n},o)=>{const{size:a}=Zt();return C.jsx(op,{scrollableNodeProps:{ref:o},className:fe(R$({size:a}),e),style:{maxHeight:r},...n,children:t})}),vd=({className:e,children:t,data:r,isDisabled:n,isFocused:o,isSelected:a,innerProps:l,...c})=>{const{size:u,color:d}=Zt();return C.jsx("div",{"data-qui":"SelectOption",className:fe(C$({size:u,color:d,isDisabled:n,isFocused:o,isSelected:a}),e),...l,...c,children:t||r.label})},Lx=({className:e,children:t,data:r,label:n})=>{const{size:o}=Zt();return C.jsxs("div",{"data-qui":"SelectGroup",className:fe(P$({size:o}),e),children:[C.jsx(zx,{children:n||r.label}),t]})},zx=({className:e,children:t})=>{const{size:r,color:n}=Zt();return C.jsx("div",{className:fe(I$({size:r,color:n}),e),children:t})},jl=({className:e,children:t,inputValue:r})=>{const{size:n}=Zt();return C.jsx("div",{className:fe(M$({size:n}),e),children:t||`No options found${r?` for "${r}"`:""}`})},bL=({isOpen:e,usePortal:t,controlRef:r,children:n})=>{const[o,a]=H.useState(null);return H.useLayoutEffect(()=>{if(t&&e&&r.current){const l=()=>{var c;const u=(c=r.current)==null?void 0:c.getBoundingClientRect();u&&a({top:u.top+window.scrollY,left:u.left+window.scrollX,width:u.width,height:u.height})};return l(),window.addEventListener("resize",l),window.addEventListener("scroll",l,!0),()=>{window.removeEventListener("resize",l),window.removeEventListener("scroll",l,!0)}}},[e,t,r]),e?t&&o?ti.createPortal(C.jsx("div",{className:"absolute z-50",style:{top:o.top,left:o.left,width:o.width,height:o.height,pointerEvents:"none"},children:C.jsx("div",{className:"relative w-full h-full",children:C.jsx("div",{style:{pointerEvents:"auto"},children:n})})}),document.body):C.jsx(C.Fragment,{children:n}):null},yL=e=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},wL=H.forwardRef(({placeholder:e,noOptionsMessage:t="",hideNoOptions:r=!1,loadingMessage:n="Loading...",isClearable:o=!1,isSearchClearable:a=!1,isLoading:l=!1,isRequired:c=!1,hideIndicators:u=!1,hideDropdownIndicator:d=!1,searchPlacement:p="trigger",hideSelectedOptions:h=!1,onFocus:g,onBlur:y,renderMenuHeader:S,formatOptionLabel:v,displayFormattedOption:b=!1,isOptionDisabled:m=j=>j.isDisabled||!1,inputRef:w,controlShouldRenderValue:x=!0,name:k,id:E,onSelectionComplete:R,"aria-label":F,"aria-labelledby":A,"aria-describedby":N,children:V,usePortal:$=!1,...M},B)=>{const{size:j,isInvalid:I,isDisabled:Y,downshift:X,options:K=[]}=Zt(),me=H.useRef(null),L=w||me,U=H.useRef(null),{isOpen:te,openMenu:ee,selectedItem:J,inputValue:ae,highlightedIndex:se,getToggleButtonProps:ne,getMenuProps:ce,getInputProps:he,getItemProps:pe,isMulti:Se,isSearchable:Z}=X,Pe=Se?X.selectedItems??[]:J?[J]:[],ge=Pe.length>0,Et=a&&!Y&&!u,vr=o&&ge&&!Y&&!u,Ct=!d&&!u,zi=!ge&&(!Z||!ae)||!x,ji={},zt={};Object.entries(M).forEach(([Re,ze])=>{Re.startsWith("data-")||Re.startsWith("aria-")||Re==="role"?ji[Re]=ze:zt[Re]=ze});const kt=H.useMemo(()=>yL([U,B]),[B]),qr=ne({disabled:Y,ref:kt}),Nr=(he==null?void 0:he({disabled:Y,required:c,name:k,id:E,"aria-label":F,"aria-labelledby":A,"aria-describedby":N,"aria-invalid":I,onFocus:g,onBlur:y,...zt}))??{},ai=Re=>Pe.some(ze=>ze.value===Re.value),Mr=Re=>h?Re.filter(ze=>!ai(ze)):Re,Fi=Re=>h?Re.map(ze=>({...ze,options:Mr(ze.options)})).filter(ze=>ze.options.length>0):Re,Dr=Re=>{R==null||R(Re.value,Re)};return C.jsxs("div",{className:"relative",children:[C.jsxs(Tx,{...Z?{ref:kt}:qr,...ji,isFocused:te,isDisabled:Y,onClick:Re=>{Re.stopPropagation(),ee()},children:[V||C.jsxs(Rx,{isMulti:Se,children:[Se&&x&&Pe.map((Re,ze)=>C.jsx(Ix,{data:Re,index:ze,isDisabled:Y},Re.value)),!Se&&ge&&x&&C.jsx("div",{className:"flex items-center gap-2",children:C.jsx(Px,{data:Pe[0],isDisabled:Y,children:v&&b?v(Pe[0]):Pe[0].label})}),Z&&p==="trigger"?C.jsx(zl,{ref:L,...Nr,placeholder:e}):C.jsxs(C.Fragment,{children:[C.jsx(zl,{ref:L,isHidden:!0,value:Pe.map(Re=>Re.value).join(","),...Nr}),zi&&C.jsx(Cx,{children:e})]})]}),C.jsxs("div",{className:fe("flex items-center size-fit gap-1",{hidden:!vr&&!Ct}),children:[Et&&C.jsx(mL,{}),vr&&C.jsx(Nx,{}),Ct&&C.jsx(Mx,{})]})]}),C.jsx(bL,{isOpen:te,usePortal:$,controlRef:U,children:r&&X.filteredItems.length===0?null:C.jsxs(Dx,{...ce(),children:[S&&S(X),Z&&p==="menu"&&C.jsx("div",{className:"p-2",children:C.jsx(zl,{ref:L,...Nr,autoFocus:!0,placeholder:e,onClick:Re=>Re.stopPropagation()})}),C.jsx($x,{children:l?C.jsx("div",{className:N$({size:j}),children:n}):X.filteredItems.length===0?C.jsx(jl,{inputValue:ae,children:typeof t=="function"?t(ae):t}):D$(K)?(()=>{const Re=Fi(K);return Re.length===0?C.jsx(jl,{inputValue:ae,children:typeof t=="function"?t(ae):t}):Re.map(ze=>C.jsx(Lx,{data:ze,label:ze.label,options:ze.options,children:ze.options.map(Vt=>{const un=Vt.value,Pn=Pe.some(ci=>ci.value===un),In=X.filteredItems.findIndex(ci=>ci.value===un),si=se===In,li=m(Vt),fn=pe({item:Vt,index:In,onClick:()=>Dr(Vt)});return C.jsx(vd,{...fn,data:Vt,isDisabled:li,isFocused:si,isSelected:Pn,children:v?v(Vt):Vt.label},un)})},ze.label))})():(()=>{const Re=Mr(X.filteredItems);return Re.length===0?C.jsx(jl,{inputValue:ae,children:typeof t=="function"?t(ae):t}):Re.map(ze=>{const Vt=ze.value,un=Pe.some(fn=>fn.value===Vt),Pn=X.filteredItems.findIndex(fn=>fn.value===Vt),In=se===Pn,si=m(ze),li=pe({item:ze,index:Pn,onClick:()=>Dr(ze)});return C.jsx(vd,{...li,data:ze,isDisabled:si,isFocused:In,isSelected:un,children:v?v(ze):ze.label},Vt)})})()})]})})]})});Tx.displayName="Select.Control";Rx.displayName="Select.ValueContainer";zl.displayName="Select.Input";Cx.displayName="Select.Placeholder";Px.displayName="Select.SingleValue";Ix.displayName="Select.MultiValue";Nx.displayName="Select.ClearIndicator";Mx.displayName="Select.DropdownIndicator";Dx.displayName="Select.Menu";$x.displayName="Select.MenuList";vd.displayName="Select.Option";Lx.displayName="Select.Group";zx.displayName="Select.GroupHeading";jl.displayName="Select.NoOptionsMessage";wL.displayName="Select.Field";H.createContext(void 0);const xL=({active:e,disabled:t,error:r,isOpen:n,className:o})=>fe("flex w-full items-center justify-between text-left leading-5 transition-colors duration-200",{"cursor-pointer":!t,"text-inactive-text":t,"bg-primary hover:bg-primary-hover text-tab-active-fg":e&&!t,"text-negative":r&&!e&&!t,"bg-primary":n&&!e&&!t,"text-tab-inactive-fg":!e&&!t&&!r,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},o),SL=H.forwardRef(({active:e,disabled:t,error:r,isOpen:n,className:o,children:a,as:l="div",...c},u)=>{const d=xL({active:e,disabled:t,error:r,isOpen:n,className:o});return C.jsx(l,{"data-qui":"ListItem",ref:u,className:d,"aria-disabled":t,"aria-selected":e,"aria-invalid":r,"aria-expanded":n,role:c.onClick?"button":"listitem",...c,children:a})});SL.displayName="ListItem";const _L=({id:e,title:t,message:r,icon:n,type:o,color:a,zIndex:l=3e3,views:c,width:u=520,hasOverlay:d=!0,container:p,onClose:h,onEdit:g})=>{const y=b=>{h({id:e,reason:b})};H.useEffect(()=>{function b(m){m.key==="Escape"&&y(co.CANCELED)}return window.addEventListener("keyup",b),()=>{window.removeEventListener("keyup",b)}},[]);const S=Je.merge(Je.values(c==null?void 0:c.toggles).flatMap(b=>b.value?b.warnings||[]:[]),c==null?void 0:c.tips),v=(b,m)=>{var x;if(!(c!=null&&c.toggles))return;const w=Je.cloneDeep(c);(x=w.toggles)!=null&&x[b]&&(w.toggles[b].value=m),g({id:e,views:w})};return ti.createPortal(C.jsx(Xl,{appear:!0,show:!0,as:H.Fragment,children:C.jsx("div",{className:tt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":d}),style:{zIndex:l},onClick:()=>y(co.CANCELED),children:C.jsx(Xl.Child,{as:H.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:C.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:u},onClick:b=>b.stopPropagation(),children:C.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[n?C.jsx("div",{className:"flex items-center justify-center",children:C.jsx(FM,{name:n,color:a,className:"w-6 h-6"})}):null,C.jsx(EL,{condition:t,children:C.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),C.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),C.jsx("div",{className:"text-xs text-white",children:Je.values(c==null?void 0:c.toggles).map(b=>C.jsx("div",{children:C.jsxs("label",{htmlFor:b.key,className:"flex items-center",children:[C.jsx(Qw,{size:"sm",checked:b.value,onChange:m=>v(b.key,m)}),C.jsxs("span",{className:"ml-1",children:[b.title," "]})]})},b.key))}),C.jsx(kL,{warnings:S}),C.jsx("div",{className:"flex items-center gap-4",children:o===rp.CONFIRM?C.jsxs(C.Fragment,{children:[C.jsx(_f,{autoFocus:!0,color:a,onClick:()=>y(co.CONFIRMED),children:"Confirm"}),C.jsx(_f,{color:a,variant:"outlined",onClick:()=>y(co.CANCELED),children:"Cancel"})]}):C.jsx(_f,{autoFocus:!0,onClick:()=>y(),children:"OK"})})]})})})})}),p||document.body)},EL=e=>e.condition?C.jsx(C.Fragment,{children:e.children}):null,kL=e=>e.warnings?C.jsx(Xl,{appear:!0,show:!!e.warnings.length,as:H.Fragment,children:C.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>C.jsx(Xl.Child,{as:H.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:C.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[C.jsx(wt.FdWarningDanger,{className:tt({"h-3 w-3":!0,"text-yellow-500":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),C.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var jx=(e=>(e[e.MIN=.5]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(jx||{});const OL=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:n,handleZoomOut:o})=>C.jsxs(ex,{className:"flex items-center rounded p-1",depth:4,children:[C.jsx(wt.FdMinusNaked,{onClick:o,className:tt("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),C.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),C.jsx(wt.FdPlusNaked,{onClick:n,className:tt("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),AL=z.forwardRef(((e,t)=>z.createElement(ii.span,pt({},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}})))),TL=AL;function l0(e){const t=z.useRef({value:e,previous:e});return z.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[Fx]=Fd("Tooltip",[mc]),pp=mc(),RL=700,[e4,CL]=Fx("TooltipProvider",{isOpenDelayed:!0,delayDuration:RL,onOpen:()=>{},onClose:()=>{}}),[PL,Oc]=Fx("Tooltip"),IL=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,delayDuration:l}=e,c=CL("Tooltip",t),u=pp(t),[d,p]=z.useState(null),h=Oy(),g=z.useRef(0),y=l??c.delayDuration,S=z.useRef(!1),{onOpen:v,onClose:b}=c,[m=!1,w]=zy({prop:n,defaultProp:o,onChange:R=>{R&&(document.dispatchEvent(new CustomEvent("tooltip.open")),v()),a==null||a(R)}}),x=z.useMemo((()=>m?S.current?"delayed-open":"instant-open":"closed"),[m]),k=z.useCallback((()=>{window.clearTimeout(g.current),S.current=!1,w(!0)}),[w]),E=z.useCallback((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>{S.current=!0,w(!0)}),y)}),[y,w]);return z.useEffect((()=>()=>window.clearTimeout(g.current)),[]),z.createElement(Dy,u,z.createElement(PL,{scope:t,contentId:h,open:m,stateAttribute:x,trigger:d,onTriggerChange:p,onTriggerEnter:z.useCallback((()=>{c.isOpenDelayed?E():k()}),[c.isOpenDelayed,E,k]),onOpen:z.useCallback(k,[k]),onClose:z.useCallback((()=>{window.clearTimeout(g.current),w(!1),b()}),[w,b])},r))},NL=z.forwardRef(((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Oc("TooltipTrigger",r),a=pp(r),l=ni(t,o.onTriggerChange),c=z.useRef(!1),u=z.useCallback((()=>c.current=!1),[]);return z.useEffect((()=>()=>document.removeEventListener("mouseup",u)),[u]),z.createElement($y,pt({asChild:!0},a),z.createElement(ii.button,pt({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},n,{ref:l,onMouseEnter:dr(e.onMouseEnter,o.onTriggerEnter),onMouseLeave:dr(e.onMouseLeave,o.onClose),onMouseDown:dr(e.onMouseDown,(()=>{o.onClose(),c.current=!0,document.addEventListener("mouseup",u,{once:!0})})),onFocus:dr(e.onFocus,(()=>{c.current||o.onOpen()})),onBlur:dr(e.onBlur,o.onClose),onClick:dr(e.onClick,(d=>{d.detail===0&&o.onClose()}))})))})),ML=z.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,o=Oc("TooltipContent",e.__scopeTooltip);return z.createElement(zd,{present:r||o.open},z.createElement(DL,pt({ref:t},n)))})),DL=z.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,portalled:a=!0,...l}=e,c=Oc("TooltipContent",r),u=pp(r),d=a?jd:z.Fragment,{onClose:p}=c;return Cy((()=>p())),z.useEffect((()=>(document.addEventListener("tooltip.open",p),()=>document.removeEventListener("tooltip.open",p))),[p]),z.createElement(d,null,z.createElement($L,{__scopeTooltip:r}),z.createElement(Ly,pt({"data-state":c.stateAttribute},u,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),z.createElement(Ry,null,n),z.createElement(TL,{id:c.contentId,role:"tooltip"},o||n)))}));function $L(e){const{__scopeTooltip:t}=e,r=Oc("CheckTriggerMoved",t),n=Iy(r.trigger),o=n==null?void 0:n.left,a=l0(o),l=n==null?void 0:n.top,c=l0(l),u=r.onClose;return z.useEffect((()=>{(a!==void 0&&a!==o||c!==void 0&&c!==l)&&u()}),[u,a,c,o,l]),null}const LL=IL,zL=NL,jL=ML;function FL(e){return C.jsxs(LL,{delayDuration:e.delayDuration,open:e.open,children:[C.jsx(zL,{tabIndex:-1,asChild:!0,children:C.jsx("span",{children:e.children})}),C.jsxs(jL,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&C.jsx("p",{className:"max-w-[240px] rounded-md bg-primary-light px-1 py-2 text-s font-semibold text-primary-dark",children:e.message}),typeof e.message!="string"&&e.message]})]})}const _i=30,Fl=500,HL=e=>{const[t,r]=H.useState(_i),[n,o]=H.useState(!1),a=H.useRef(),l=t>_i,c=H.useRef(null);return H.useEffect(()=>{e.isOpen&&!l&&r(Fl),!e.isOpen&&l&&r(_i)},[e.isOpen]),C.jsx(Xw,{enable:{top:!0},className:"relative w-full select-none border-t isolate",style:{zIndex:49},size:{height:t,width:"100%"},maxHeight:700,minHeight:_i,onResizeStart:()=>{o(!0),a.current&&Date.now()-a.current<200?r(l?_i:Fl):a.current=Date.now()},onResize:(u,d,p)=>{c.current&&cancelAnimationFrame(c.current),c.current=requestAnimationFrame(()=>{var h;(h=e.onResize)==null||h.call(e),c.current=null})},onResizeStop:(u,d,p,h)=>{r(t+h.height),o(!1)},handleComponent:{top:C.jsx(Jw,{isDragging:n})},depth:1,children:C.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Je.kebabCase(e.path)}`,children:[C.jsxs("div",{className:tt("flex justify-between items-center px-3 py-0.5",{"flex-1":!l}),children:[C.jsxs("div",{className:"group flex items-center justify-start",children:[C.jsx("span",{className:"mr-2 text-sm",children:"Contextual panel"}),C.jsx("span",{}),e.tipKey?C.jsx(Xy,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,C.jsx("button",{className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:()=>{l?(r(_i),e.onClose()):(r(Fl),e.onOpen())},children:l?C.jsx(wt.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):C.jsx(wt.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),C.jsxs(Tl,{of:l,children:[C.jsx(Tl,{of:e.render,children:e.render}),C.jsx(Tl,{of:!e.render,children:e.children})]})]})})};function Hx({children:e,viewBox:t="0 0 24 24",...r}){return C.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...Je.omit(r,"isIndeterminate","isChecked"),children:e})}function Wx(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return C.jsx(Hx,{viewBox:"0 0 24 24",...e,children:C.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function WL({isChecked:e,isIndeterminate:t,isInvalid:r,icon:n,label:o,className:a="",style:l,...c}){const u=H.useRef(null),d=n||C.jsx(Wx,{}),p=c.checked??e;H.useEffect(()=>{u.current&&(u.current.indeterminate=!!t)},[t]);const h=p||t,g=["base-checkbox-container",a].join(" ");return C.jsxs("label",{className:g,style:l,"data-invalid":r,children:[C.jsx("input",{ref:u,type:"checkbox",className:"base-checkbox-input",checked:p,...c,"aria-invalid":r||void 0}),C.jsx("span",{className:"base-checkbox-control",children:h&&d&&H.cloneElement(d,{isChecked:p,isIndeterminate:t,className:"base-checkbox-icon"})}),o&&C.jsx("span",{className:"base-checkbox-label",children:o})]})}const BL=H.forwardRef(({label:e,Icon:t,as:r="button",className:n="",disableHover:o=!1,iconClassname:a,...l},c)=>{const[u,d]=H.useState(null),[p,h]=H.useState(!1);return H.useImperativeHandle(c,()=>u,[u]),C.jsxs(C.Fragment,{children:[C.jsx(r,{ref:d,className:tt("rounded p-1 text-white focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",{"hover:bg-primary-hover":!o},n),onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onMouseDown:()=>h(!1),...l,children:C.jsx(t,{className:tt("h-4 w-4",a)})}),p&&ti.createPortal(C.jsx(fw,{label:e,referenceElement:u}),document.body)]})});function VL(e,t){const r=H.useRef(!1);H.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Lf=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function zf(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),r)}function ma(e,t,r,n){e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Bx(e,t){const r=t.slice(0,t.length-1);for(let n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function Vx(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let r=t.lastIndexOf("");for(;r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function UL(e,t){const r=e.length>=t.length?e:t,n=e.length>=t.length?t:e;let o=!0;for(let a=0;a<r.length;a++)n.indexOf(r[a])===-1&&(o=!1);return o}const za={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Lf?173:189,"=":Lf?61:187,";":Lf?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},Ur={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},Sa={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},$t={16:!1,18:!1,17:!1,91:!1},dt={};for(let e=1;e<20;e++)za["f".concat(e)]=111+e;let ct=[],Pa=null,Ux="all";const En=new Map,Ao=e=>za[e.toLowerCase()]||Ur[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),qL=e=>Object.keys(za).find(t=>za[t]===e),GL=e=>Object.keys(Ur).find(t=>Ur[t]===e);function qx(e){Ux=e||"all"}function ja(){return Ux||"all"}function YL(){return ct.slice(0)}function KL(){return ct.map(e=>qL(e)||GL(e)||String.fromCharCode(e))}function ZL(){const e=[];return Object.keys(dt).forEach(t=>{dt[t].forEach(r=>{let{key:n,scope:o,mods:a,shortcut:l}=r;e.push({scope:o,shortcut:l,mods:a,keys:n.split("+").map(c=>Ao(c))})})}),e}function XL(e){const t=e.target||e.srcElement,{tagName:r}=t;let n=!0;const o=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(n=!1),n}function JL(e){return typeof e=="string"&&(e=Ao(e)),ct.indexOf(e)!==-1}function QL(e,t){let r,n;e||(e=ja());for(const o in dt)if(Object.prototype.hasOwnProperty.call(dt,o))for(r=dt[o],n=0;n<r.length;)r[n].scope===e?r.splice(n,1).forEach(l=>{let{element:c}=l;return hp(c)}):n++;ja()===e&&qx(t||"all")}function ez(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Ao(e.key));const r=ct.indexOf(t);if(r>=0&&ct.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&ct.splice(0,ct.length),(t===93||t===224)&&(t=91),t in $t){$t[t]=!1;for(const n in Ur)Ur[n]===t&&(Br[n]=!1)}}function Gx(e){if(typeof e>"u")Object.keys(dt).forEach(o=>{Array.isArray(dt[o])&&dt[o].forEach(a=>wl(a)),delete dt[o]}),hp(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&wl(o)});else if(typeof e=="object")e.key&&wl(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let[o,a]=r;typeof o=="function"&&(a=o,o=""),wl({key:e,scope:o,method:a,splitKey:"+"})}}const wl=e=>{let{key:t,scope:r,method:n,splitKey:o="+"}=e;Vx(t).forEach(l=>{const c=l.split(o),u=c.length,d=c[u-1],p=d==="*"?"*":Ao(d);if(!dt[p])return;r||(r=ja());const h=u>1?Bx(Ur,c):[],g=[];dt[p]=dt[p].filter(y=>{const v=(n?y.method===n:!0)&&y.scope===r&&UL(y.mods,h);return v&&g.push(y.element),!v}),g.forEach(y=>hp(y))})};function c0(e,t,r,n){if(t.element!==n)return;let o;if(t.scope===r||t.scope==="all"){o=t.mods.length>0;for(const a in $t)Object.prototype.hasOwnProperty.call($t,a)&&(!$t[a]&&t.mods.indexOf(+a)>-1||$t[a]&&t.mods.indexOf(+a)===-1)&&(o=!1);(t.mods.length===0&&!$t[16]&&!$t[18]&&!$t[17]&&!$t[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ct),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function u0(e,t){const r=dt["*"];let n=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!Br.filter.call(this,e))return;if((n===93||n===224)&&(n=91),ct.indexOf(n)===-1&&n!==229&&ct.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const u=Sa[c];e[c]&&ct.indexOf(u)===-1?ct.push(u):!e[c]&&ct.indexOf(u)>-1?ct.splice(ct.indexOf(u),1):c==="metaKey"&&e[c]&&(ct=ct.filter(d=>d in Sa||d===n))}),n in $t){$t[n]=!0;for(const c in Ur)if(Object.prototype.hasOwnProperty.call(Ur,c)){const u=Sa[Ur[c]];Br[c]=e[u]}if(!r)return}for(const c in $t)Object.prototype.hasOwnProperty.call($t,c)&&($t[c]=e[Sa[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ct.indexOf(17)===-1&&ct.push(17),ct.indexOf(18)===-1&&ct.push(18),$t[17]=!0,$t[18]=!0);const o=ja();if(r)for(let c=0;c<r.length;c++)r[c].scope===o&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&c0(e,r[c],o,t);if(!(n in dt))return;const a=dt[n],l=a.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&a[c].keydown||e.type==="keyup"&&a[c].keyup)&&a[c].key){const u=a[c],{splitKey:d}=u,p=u.key.split(d),h=[];for(let g=0;g<p.length;g++)h.push(Ao(p[g]));h.sort().join("")===ct.sort().join("")&&c0(e,u,o,t)}}function Br(e,t,r){ct=[];const n=Vx(e);let o=[],a="all",l=document,c=0,u=!1,d=!0,p="+",h=!1,g=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(l=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(d=t.keydown),t.capture!==void 0&&(h=t.capture),typeof t.splitKey=="string"&&(p=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(a=t),g&&Gx(e,a);c<n.length;c++)e=n[c].split(p),o=[],e.length>1&&(o=Bx(Ur,e)),e=e[e.length-1],e=e==="*"?"*":Ao(e),e in dt||(dt[e]=[]),dt[e].push({keyup:u,keydown:d,scope:a,mods:o,shortcut:n[c],method:r,key:n[c],splitKey:p,element:l});if(typeof l<"u"&&window){if(!En.has(l)){const y=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return u0(v,l)},S=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;u0(v,l),ez(v)};En.set(l,{keydownListener:y,keyupListenr:S,capture:h}),zf(l,"keydown",y,h),zf(l,"keyup",S,h)}if(!Pa){const y=()=>{ct=[]};Pa={listener:y,capture:h},zf(window,"focus",y,h)}}}function tz(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(dt).forEach(r=>{dt[r].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function hp(e){const t=Object.values(dt).flat();if(t.findIndex(n=>{let{element:o}=n;return o===e})<0){const{keydownListener:n,keyupListenr:o,capture:a}=En.get(e)||{};n&&o&&(ma(e,"keyup",o,a),ma(e,"keydown",n,a),En.delete(e))}if((t.length<=0||En.size<=0)&&(Object.keys(En).forEach(o=>{const{keydownListener:a,keyupListenr:l,capture:c}=En.get(o)||{};a&&l&&(ma(o,"keyup",l,c),ma(o,"keydown",a,c),En.delete(o))}),En.clear(),Object.keys(dt).forEach(o=>delete dt[o]),Pa)){const{listener:o,capture:a}=Pa;ma(window,"focus",o,a),Pa=null}}const jf={getPressedKeyString:KL,setScope:qx,getScope:ja,deleteScope:QL,getPressedKeyCodes:YL,getAllKeyCodes:ZL,isPressed:JL,filter:XL,trigger:tz,unbind:Gx,keyMap:za,modifier:Ur,modifierMap:Sa};for(const e in jf)Object.prototype.hasOwnProperty.call(jf,e)&&(Br[e]=jf[e]);if(typeof window<"u"){const e=window.hotkeys;Br.noConflict=t=>(t&&window.hotkeys===Br&&(window.hotkeys=e),Br),window.hotkeys=Br}Br.filter=()=>!0;function rz(e,t,r,n){r instanceof Array&&(n=r,r=void 0),n=n||[],r=r||{};const{preventDefault:o=!0}=r,a=H.useCallback((c,u)=>{o&&c.preventDefault(),setTimeout(()=>t(c,u))},n),l=()=>{Br.unbind(e,a)};H.useEffect(()=>(Br(e,r,a),l),[e,r,a])}const nz=e=>{const t=H.useRef(null);return H.useEffect(()=>{const r=n=>{t.current&&!t.current.contains(n.target)&&e(n)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function iz(e){const t=H.useRef();return H.useEffect(()=>{t.current=e},[e]),t.current}function oz(e){const t=H.useRef(e);return H.useEffect(()=>{t.current=e},[e]),t}function az(e){const t=H.useRef(null);return H.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function sz(e){const[t,r]=H.useState(e),n=(a,l)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:l}}}))},o=H.useCallback((...a)=>a.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:n,isFeatureEnabled:o}}const Yx=H.createContext(""),lz=e=>C.jsx(Yx.Provider,{value:e.value,children:e.children}),cz=()=>{const e=H.useContext(Yx);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function uz(e){const[t,r]=H.useState(e),n=H.useMemo(()=>fz(t,r),[]);return{state:t,actions:{...n,set:o=>{r(typeof o=="function"?o:a=>({...a,...o}))}}}}function fz(e,t=()=>{}){return Object.keys(e).reduce((n,o)=>({...n,[`set${Je.upperFirst(o)}`]:a=>t(l=>({...l,[o]:a}))}),{})}const dz=(e,t,r={})=>{r={timeout:200,...r};const n=H.useRef(),o=()=>{n.current&&(clearTimeout(n.current),n.current=null)};return H.useCallback((a,...l)=>{o(),t&&a.detail===1&&(n.current=setTimeout(()=>{t(a,...l)},r.timeout)),a.detail%2===0&&e(a,...l)},[t,e,r.timeout])};function Lt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var o=yz[e],a=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(l){return"'"+l+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function xo(e){return!!e&&!!e[hr]}function Di(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===wz})(e)||Array.isArray(e)||!!e[b0]||!!(!((t=e.constructor)===null||t===void 0)&&t[b0])||gp(e)||vp(e))}function Fa(e,t,r){r===void 0&&(r=!1),To(e)===0?(r?Object.keys:wp)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,o){return t(o,n,e)}))}function To(e){var t=e[hr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:gp(e)?2:vp(e)?3:0}function md(e,t){return To(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function pz(e,t){return To(e)===2?e.get(t):e[t]}function Kx(e,t,r){var n=To(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function hz(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function gp(e){return mz&&e instanceof Map}function vp(e){return bz&&e instanceof Set}function Ei(e){return e.o||e.t}function mp(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=xz(e);delete t[hr];for(var r=wp(t),n=0;n<r.length;n++){var o=r[n],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Ha(e,t){return t===void 0&&(t=!1),bp(e)||xo(e)||!Di(e)||(To(e)>1&&(e.set=e.add=e.clear=e.delete=gz),Object.freeze(e),t&&Fa(e,(function(r,n){return Ha(n,!0)}),!0)),e}function gz(){Lt(2)}function bp(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function sn(e){var t=Sz[e];return t||Lt(18,e),t}function f0(){return process.env.NODE_ENV==="production"||So||Lt(0),So}function Ff(e,t){t&&(sn("Patches"),e.u=[],e.s=[],e.v=t)}function rc(e){bd(e),e.p.forEach(vz),e.p=null}function bd(e){e===So&&(So=e.l)}function d0(e){return So={p:[],l:So,h:e,m:!0,_:0}}function vz(e){var t=e[hr];t.i===0||t.i===1?t.j():t.g=!0}function Hf(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||sn("ES5").S(t,e,n),n?(r[hr].P&&(rc(t),Lt(4)),Di(e)&&(e=nc(t,e),t.l||ic(t,e)),t.u&&sn("Patches").M(r[hr].t,e,t.u,t.s)):e=nc(t,r,[]),rc(t),t.u&&t.v(t.u,t.s),e!==Xx?e:void 0}function nc(e,t,r){if(bp(t))return t;var n=t[hr];if(!n)return Fa(t,(function(c,u){return p0(e,n,t,c,u,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return ic(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=mp(n.k):n.o,a=o,l=!1;n.i===3&&(a=new Set(o),o.clear(),l=!0),Fa(a,(function(c,u){return p0(e,n,o,c,u,r,l)})),ic(e,o,!1),r&&e.u&&sn("Patches").N(n,r,e.u,e.s)}return n.o}function p0(e,t,r,n,o,a,l){if(process.env.NODE_ENV!=="production"&&o===r&&Lt(5),xo(o)){var c=nc(e,o,a&&t&&t.i!==3&&!md(t.R,n)?a.concat(n):void 0);if(Kx(r,n,c),!xo(c))return;e.m=!1}else l&&r.add(o);if(Di(o)&&!bp(o)){if(!e.h.D&&e._<1)return;nc(e,o),t&&t.A.l||ic(e,o)}}function ic(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ha(t,r)}function Wf(e,t){var r=e[hr];return(r?Ei(r):e)[t]}function h0(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function yd(e){e.P||(e.P=!0,e.l&&yd(e.l))}function Bf(e){e.o||(e.o=mp(e.t))}function wd(e,t,r){var n=gp(t)?sn("MapSet").F(t,r):vp(t)?sn("MapSet").T(t,r):e.O?(function(o,a){var l=Array.isArray(o),c={i:l?1:0,A:a?a.A:f0(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},u=c,d=xd;l&&(u=[c],d=_a);var p=Proxy.revocable(u,d),h=p.revoke,g=p.proxy;return c.k=g,c.j=h,g})(t,r):sn("ES5").J(t,r);return(r?r.A:f0()).p.push(n),n}function Zx(e){return xo(e)||Lt(22,e),(function t(r){if(!Di(r))return r;var n,o=r[hr],a=To(r);if(o){if(!o.P&&(o.i<4||!sn("ES5").K(o)))return o.t;o.I=!0,n=g0(r,a),o.I=!1}else n=g0(r,a);return Fa(n,(function(l,c){o&&pz(o.t,l)===c||Kx(n,l,t(c))})),a===3?new Set(n):n})(e)}function g0(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return mp(e)}var v0,So,yp=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mz=typeof Map<"u",bz=typeof Set<"u",m0=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Xx=yp?Symbol.for("immer-nothing"):((v0={})["immer-nothing"]=!0,v0),b0=yp?Symbol.for("immer-draftable"):"__$immer_draftable",hr=yp?Symbol.for("immer-state"):"__$immer_state",yz={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},wz=""+Object.prototype.constructor,wp=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,xz=Object.getOwnPropertyDescriptors||function(e){var t={};return wp(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Sz={},xd={get:function(e,t){if(t===hr)return e;var r=Ei(e);if(!md(r,t))return(function(o,a,l){var c,u=h0(a,l);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(o.k):void 0})(e,r,t);var n=r[t];return e.I||!Di(n)?n:n===Wf(e.t,t)?(Bf(e),e.o[t]=wd(e.A.h,n,e)):n},has:function(e,t){return t in Ei(e)},ownKeys:function(e){return Reflect.ownKeys(Ei(e))},set:function(e,t,r){var n=h0(Ei(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=Wf(Ei(e),t),a=o==null?void 0:o[hr];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(hz(r,o)&&(r!==void 0||md(e.t,t)))return!0;Bf(e),yd(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Wf(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Bf(e),yd(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ei(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Lt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Lt(12)}},_a={};Fa(xd,(function(e,t){_a[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),_a.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Lt(13),_a.set.call(this,e,t,void 0)},_a.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Lt(14),xd.set.call(this,e[0],t,r,e[0])};var _z=(function(){function e(r){var n=this;this.O=m0,this.D=!0,this.produce=function(o,a,l){if(typeof o=="function"&&typeof a!="function"){var c=a;a=o;var u=n;return function(v){var b=this;v===void 0&&(v=c);for(var m=arguments.length,w=Array(m>1?m-1:0),x=1;x<m;x++)w[x-1]=arguments[x];return u.produce(v,(function(k){var E;return(E=a).call.apply(E,[b,k].concat(w))}))}}var d;if(typeof a!="function"&&Lt(6),l!==void 0&&typeof l!="function"&&Lt(7),Di(o)){var p=d0(n),h=wd(n,o,void 0),g=!0;try{d=a(h),g=!1}finally{g?rc(p):bd(p)}return typeof Promise<"u"&&d instanceof Promise?d.then((function(v){return Ff(p,l),Hf(v,p)}),(function(v){throw rc(p),v})):(Ff(p,l),Hf(d,p))}if(!o||typeof o!="object"){if((d=a(o))===void 0&&(d=o),d===Xx&&(d=void 0),n.D&&Ha(d,!0),l){var y=[],S=[];sn("Patches").M(o,d,y,S),l(y,S)}return d}Lt(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(d){for(var p=arguments.length,h=Array(p>1?p-1:0),g=1;g<p;g++)h[g-1]=arguments[g];return n.produceWithPatches(d,(function(y){return o.apply(void 0,[y].concat(h))}))};var l,c,u=n.produce(o,a,(function(d,p){l=d,c=p}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(d){return[d,l,c]})):[u,l,c]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Di(r)||Lt(8),xo(r)&&(r=Zx(r));var n=d0(this),o=wd(this,r,void 0);return o[hr].C=!0,bd(n),o},t.finishDraft=function(r,n){var o=r&&r[hr];process.env.NODE_ENV!=="production"&&(o&&o.C||Lt(9),o.I&&Lt(10));var a=o.A;return Ff(a,n),Hf(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!m0&&Lt(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var a=n[o];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}o>-1&&(n=n.slice(o+1));var l=sn("Patches").$;return xo(r)?l(r,n):this.produce(r,(function(c){return l(c,n)}))},e})(),gr=new _z,Ez=gr.produce;gr.produceWithPatches.bind(gr);gr.setAutoFreeze.bind(gr);gr.setUseProxies.bind(gr);gr.applyPatches.bind(gr);gr.createDraft.bind(gr);gr.finishDraft.bind(gr);function kz(e){var t=H.useState(function(){return Ha(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],H.useCallback(function(n){r(typeof n=="function"?Ez(n):Ha(n))},[])]}const Oz=process.env.NODE_ENV==="development",Vf=Oz&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,Az=(e,t,r)=>{const[n,o]=kz(e),a=H.useRef(null);H.useEffect(()=>{var u;return r&&(a.current=Vf==null?void 0:Vf.connect({name:r,trace:!0}),(u=a.current)==null||u.init(e)),()=>{var d,p;(p=(d=a.current)==null?void 0:d.disconnect)==null||p.call(d)}},[]);const l=t&&typeof t=="object"?t:{},c=H.useMemo(()=>Object.keys(l).reduce((u,d)=>({...u,[d]:p=>(o(h=>{var g;l[d](h,p),(g=a.current)==null||g.send({type:l[d].name},Zx(h))}),c)}),{}),[o]);return{state:n,dispatch:c}};function Tn(e){return typeof e=="function"}function Jx(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Uf=Jx(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
248
- `+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
249
- `):"",this.name="UnsubscriptionError",this.errors=r}});function Sd(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ac=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=Qf(l),u=c.next();!u.done;u=c.next()){var d=u.value;d.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var p=this.initialTeardown;if(Tn(p))try{p()}catch(v){a=v instanceof Uf?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var g=Qf(h),y=g.next();!y.done;y=g.next()){var S=y.value;try{y0(S)}catch(v){a=a??[],v instanceof Uf?a=ql(ql([],ed(a)),ed(v.errors)):a.push(v)}}}catch(v){n={error:v}}finally{try{y&&!y.done&&(o=g.return)&&o.call(g)}finally{if(n)throw n.error}}}if(a)throw new Uf(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)y0(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Sd(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Sd(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Qx=Ac.EMPTY;function e1(e){return e instanceof Ac||e&&"closed"in e&&Tn(e.remove)&&Tn(e.add)&&Tn(e.unsubscribe)}function y0(e){Tn(e)?e():e.unsubscribe()}var Tz={Promise:void 0},Rz={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,ql([e,t],ed(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Cz(e){Rz.setTimeout(function(){throw e})}function w0(){}function Hl(e){e()}var t1=(function(e){gc(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,e1(r)&&r.add(n)):n.destination=Nz,n}return t.create=function(r,n,o){return new _d(r,n,o)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Ac),Pz=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){xl(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){xl(n)}else xl(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){xl(r)}},e})(),_d=(function(e){gc(t,e);function t(r,n,o){var a=e.call(this)||this,l;return Tn(r)||!r?l={next:r??void 0,error:n??void 0,complete:o??void 0}:l=r,a.destination=new Pz(l),a}return t})(t1);function xl(e){Cz(e)}function Iz(e){throw e}var Nz={closed:!0,next:w0,error:Iz,complete:w0},Mz=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Dz(e){return e}function $z(e){return e.length===0?Dz:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var x0=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,a=zz(t)?t:new _d(t,r,n);return Hl(function(){var l=o,c=l.operator,u=l.source;a.add(c?c.call(a,u):u?o._subscribe(a):o._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=S0(r),new r(function(o,a){var l=new _d({next:function(c){try{t(c)}catch(u){a(u),l.unsubscribe()}},error:a,complete:o});n.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Mz]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return $z(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=S0(t),new t(function(n,o){var a;r.subscribe(function(l){return a=l},function(l){return o(l)},function(){return n(a)})})},e.create=function(t){return new e(t)},e})();function S0(e){var t;return(t=e??Tz.Promise)!==null&&t!==void 0?t:Promise}function Lz(e){return e&&Tn(e.next)&&Tn(e.error)&&Tn(e.complete)}function zz(e){return e&&e instanceof t1||Lz(e)&&e1(e)}var jz=Jx(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),cn=(function(e){gc(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new _0(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new jz},t.prototype.next=function(r){var n=this;Hl(function(){var o,a;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var l=Qf(n.currentObservers),c=l.next();!c.done;c=l.next()){var u=c.value;u.next(r)}}catch(d){o={error:d}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;Hl(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;Hl(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,a=o.hasError,l=o.isStopped,c=o.observers;return a||l?Qx:(this.currentObservers=null,c.push(r),new Ac(function(){n.currentObservers=null,Sd(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,a=n.thrownError,l=n.isStopped;o?r.error(a):l&&r.complete()},t.prototype.asObservable=function(){var r=new x0;return r.source=this,r},t.create=function(r,n){return new _0(r,n)},t})(x0),_0=(function(e){gc(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Qx},t})(cn),r1=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(r1||{}),n1=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(n1||{});const Fz=new cn,Hz=new cn,i1=new cn;var o1=(e=>(e.SAVE_ALL="save-all",e))(o1||{});const Wz=new cn;var a1=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(a1||{});const Bz=new cn;var s1=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(s1||{});const Vz=new cn,Uz=new cn;var Wa=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(Wa||{});const oc=new cn,qz=new cn,xp=255;var Sp=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${xp} characters (including extension)`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Sp||{});function Tc(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>xp)throw new Error(Sp.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(r))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(r))throw new Error("Invalid name");return!0}function Gz(e){if(!e)return null;if(typeof e=="string")try{Tc(e)}catch(t){return t.message}}function Yz(e,t){let r="";if(["array","object"].includes(t))try{const n=JSON.parse(e);t==="array"&&(!Array.isArray(n)||!Je.isObject(n))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Je.isObject(n)||Array.isArray(n))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function Kz(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Rc(e){const{PLACEHOLDER_PREFIX:t,counter:r}=Kz();let n=r;const o=[],a="@!",l=p=>(o.push(p),`${t}${n++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(p,h,g)=>h+l(g)),c=c.replace(/:\d{2}:\d{2}/g,l);const u=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let d=c.replace(u,"");for(let p=0;p<o.length;p++){const g=`${t}${p}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),y=new RegExp(g,"g");d=d.replace(y,o[p])}return d}var _p=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(_p||{});const Qn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var ft=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.LOCALIZATION="localization",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(ft||{}),oi=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(oi||{}),Ep=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Ep||{});const l1="roles.json",c1="qodlyApp.json",Zz="model.4DModel",u1="HTTPHandlers.json",f1="Shared/i18n.json";function Xz(e){const t=kp(e);switch(t){case ft.SETTINGS:return{filename:"Settings",type:t};case ft.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case ft.ROLES:return{filename:"Roles & Privileges",type:t};case ft.LOCALIZATION:return{filename:"Localization",type:t};case ft.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[n]=r[1].split(".");return{filename:n,type:t}}}}function kp(e){const t=e.split("."),r=t.pop(),n=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return ft.MODEL;case r==="WebForm":return ft.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&n===Qn.METHODS):return ft.METHOD;case(["4dm","4qs","4qm"].includes(r)&&n===Qn.CLASSES):return ft.CLASS;case e===l1:return ft.ROLES;case e===u1:return ft.HTTP_HANDLERS;case e===c1:return ft.SETTINGS;case e===f1:return ft.LOCALIZATION;default:return ft.TEXT}}function Jz(e,t=!1){switch(e){case Qn.REPORTS:case"report":return"QoDoc";case Qn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Qn.CLASSES:case Qn.METHODS:return t?"4qs":"4dm";default:return""}}function Qz(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function e3(e,t,r){switch(t){case ft.MOBILEFORM:return`${e}.MForm`;case ft.WEBFORM:return`${e}.WebForm`;case ft.REPORT:return`${e}.QoDoc`;case ft.METHOD:case ft.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class d1{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(o=>{t=o}),n=this.current.then(()=>t);return this.current=r,n}}function Op(){const e=new d1;return async t=>{const r=await e.lock();try{const n=await t();return r(),n}catch(n){console.error(n),r();return}}}const p1=Je.curry((e,t,r)=>e&&Je.get(r,e)===t),t3=Je.curry((e,t,r)=>Je.get(r,e)!==t),r3=Je.curry((e,t)=>Je.get(t,"id")!==e),n3=Je.curry((e,t)=>Je.get(t,"id")===e),i3=Je.curry((e,t)=>Je.get(t,"path")===e);function o3(e="id",t,r){return r.findIndex(p1(e,t))!==-1}function a3(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function s3(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function h1(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function l3(e){return e.type==="object"}function g1(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function v1(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!h1(e)}function c3(e){return g1(e)||v1(e)}function u3(e){return e.applyTo==="dataStore"}function f3(e){return e.applyTo==="dataClass"}function d3(e){return e.applyTo==="entity"}function p3(e){return e.applyTo==="entityCollection"}function h3(e){return e.type==="entity"}function g3(e){return e.type==="entitysel"}function m1(e){return e.dataType==="array"}function b1(e){return e.dataType==="object"}function y1(e){return e.type==="scalar"}function v3(e){return m1(e)||b1(e)||y1(e)}const m3=e=>e!=null&&e.type==="entity",b3=e=>e.type==="entitysel",y3=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",w3=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",x3=e=>e.type==="scalar"&&e.dataType==="date";function S3(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function _3(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}var Ba=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(Ba||{}),w1=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(w1||{}),Ap=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Ap||{});const E3={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function k3(e){var a;let t={};try{const l=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...n}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:Ba.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Ap.table}},...n}}function x1(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[Ba.capable,Ba.incapable].includes(e.preemptive)&&(t.preemptive=e.preemptive),e.publishedSoap&&(t.publishedSoap=!0,e.publishedWsdl&&(t.publishedWsdl=!0)),e.publishedWeb&&(t.publishedWeb=!0),e.publishedSql&&(t.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(t.published4DMobile=e.publishedRestOptions),JSON.stringify(t).replace(/"(true|false)"/g,"$1")}function O3(e,t,r=!1){const n=Je.isString(t)?t:x1(t);if(!r&&S1(e))return e;const o=_1(e);return`//%attributes = ${n}\r
250
- ${o}`}function S1(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function _1(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const A3=()=>Ii.uuid().replaceAll("-","").toUpperCase(),T3=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var Ge=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(Ge||{}),ot=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(ot||{});const R3=[Ge.DATASTORE,Ge.DATACLASS,Ge.ATTRIBUTE,Ge.SINGLETON_METHOD,Ge.SINGLETON,Ge.METHOD,ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD],E0=e=>[ot.DS_METHOD,ot.ENTITY_METHOD,ot.DATACLASS_METHOD].includes(e)?Ge.METHOD:e,ac="guest",Tp=[{key:"read",label:"Read",canApplyTo:[Ge.DATASTORE,Ge.DATACLASS,Ge.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Ge.DATASTORE,Ge.DATACLASS,Ge.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Ge.DATASTORE,Ge.DATACLASS,Ge.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Ge.DATASTORE,Ge.DATACLASS,Ge.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[Ge.DATASTORE,Ge.DATACLASS,Ge.METHOD,ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD,Ge.SINGLETON,Ge.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[Ge.METHOD,ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD,Ge.SINGLETON_METHOD]}];function Ir(e,...t){return Array.from(new Set([...e,...t]))}function E1(e){const t={},r=new Map;e.forEach(u=>{const d=u.id||Ii.generate();t[d]={...u,id:d,parents:[],includes:Ir(u.includes||[]),resources:[]},r.set(u.privilege,d)}),Object.entries(t).forEach(([u,d])=>{const p=d.includes.map(h=>{const g=r.get(h);return g?(t[g].parents=Ir(t[g].parents,g),g):""}).filter(Boolean);t[u]={...d,includes:p}});const n=k1(t),o=new Set;function a(u){o.add(u.id),u.includes=u.includes.filter(d=>!o.has(d))}if(n.forEach(a),n.forEach(u=>u.parents=[]),n.forEach(u=>{u.includes.forEach(d=>t[d].parents.push(u.id))}),Object.values(t).find(({privilege:u})=>u===ac))return t;const c=Ii.generate();return{[c]:{id:c,privilege:ac,includes:[],parents:[],resources:[]},...t}}function k1(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function Cc(e,t){const r=t[e];let n=[];return r&&r.parents.forEach(o=>{n=Ir(n,...Cc(o,t),o)}),n}function sc(e,t){const r=t[e];let n=[];return r&&r.includes.forEach(o=>{n=Ir(n,...sc(o,t),o)}),n}function C3(e,t){const r=t[e];if(!r)return[];const n=[e,...Cc(e,t),...r.includes];return Object.keys(t).filter(o=>!n.includes(o))}function P3(e,t){return t[e]?Object.keys(t).reduce((n,o)=>o===e?n:{...n,[o]:{...t[o],parents:t[o].parents.filter(a=>a!==e),includes:t[o].includes.filter(a=>a!==e)}},{}):t}function I3(e,t,r){const n=r[e],o=r[t];return!n||!o?r:{...r,[e]:{...r[e],includes:Ir(n.includes,t)},[t]:{...r[t],parents:Ir(o.parents,e)}}}function N3(e,t,r){const n=r[e],o=r[t];return!n||!o?r:{...r,[e]:{...r[e],includes:r[e].includes.filter(a=>a!==t)},[t]:{...r[t],parents:r[t].parents.filter(a=>a!==e)}}}function M3(e,t){Tc(e),Object.entries(t).forEach(([,{privilege:n}])=>{if(e.toLowerCase()===n.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const r=Ii.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function D3(e,t,r){if(!e)throw new Error("Please enter a name");if(!r[t])throw new Error("Invalid privilege");return Object.entries(r).forEach(([,{privilege:n,id:o}])=>{if(e.toLowerCase()===n.toLowerCase()&&t!==o)throw new Error(`There's already a Privilege with the name ${e}`)}),{...r,[t]:{...r[t],privilege:e}}}function $3(e,t){return e.map(r=>Cn(r,t))}function Cn(e,t){return t[e]?t[e]:null}function O1({applyTo:e,type:t,...r}){return Object.entries(r).reduce((n,[o,a])=>{const l=Je.find(Tp,["key",o]);return!l||!l.canApplyTo.includes(t)||(typeof a=="string"?a.split(","):a).forEach(u=>{n[u]=Ir(n[u]||[],o)}),n},{})}const k0=(e,t=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${t?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${t?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${t?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function Rp(e){return{permissions:Tp.filter(({canApplyTo:t})=>t.includes(e.type)).map(({key:t,label:r})=>{const n={name:t,from:[]};switch(e.type){case Ge.DATASTORE:return{...n,info:k0(r,!0)};case Ge.DATACLASS:return{...n,info:k0(r)};default:return n}}),resource:e.applyTo,type:e.type}}function A1(e,t){const r=T1(t),n={};return e.filter(({type:o})=>R3.includes(o)).forEach(o=>{const a=O1(o);Object.entries(a).forEach(([l,c])=>{var p;const u=(p=r[l])==null?void 0:p.id;if(!u)return;n[u]=n[u]||{...t[u]};let d=Je.find(n[u].resources,{resource:o.applyTo,type:o.type});d||(d=Rp(o),n[u].resources.push(d)),d.permissions=d.permissions.map(h=>({...h,checked:h.checked||c.includes(h.name)}))})}),{...t,...n}}function T1(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function L3(e){var r;if(!e)throw new Error("Invalid roles data");const t=E1(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:A1(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:n=Ii.generate(),role:o,privileges:a=[]})=>({id:n,role:o,privileges:Ir(a).map(l=>{var c;return(c=Object.values(t).find(({privilege:u})=>u===l))==null?void 0:c.id}).filter(Boolean)})).reduce((n,o)=>({...n,[o.id]:{...o}}),{})}}function z3(e){const t=Object.values(e.privileges).filter(({includes:n})=>n.length===0).map(({id:n})=>n),r=[...t,...t.map(n=>Cc(n,e.privileges).reverse())].flat().filter((n,o,a)=>a.indexOf(n)===o).map(n=>e.privileges[n]);return{forceLogin:e.forceLogin||!1,restrictedByDefault:e.restrictedByDefault||!1,permissions:{allowed:Object.values(e.privileges).reduce((n,o)=>(o.resources.forEach(({permissions:a,resource:l,type:c})=>{let u=Je.find(n,{applyTo:l,type:E0(c)});u||(u={applyTo:l,type:E0(c)},n.push(u)),a.forEach(({name:d,checked:p})=>{p&&u&&(u[d]=u[d]||[],u[d].push(o.privilege))})}),n),[])},privileges:r.filter(({privilege:n})=>n!==ac).map(({id:n,includes:o,privilege:a})=>({id:n,privilege:a,includes:o.map(l=>e.privileges[l].privilege)})),roles:Object.values(e.roles).map(n=>({...n,privileges:n.privileges.map(o=>{var a;return(a=e.privileges[o])==null?void 0:a.privilege}).filter(Boolean)}))}}function j3(e,t){const r=t[e],n={children:[],links:[],parents:[],selected:e};if(!r)return n;function o(c,u,d=[]){const p=c.reduce((h,g)=>[...h,...t[g][u]],[]);return p.length===0?d:(d.push(p),o(p,u,d))}function a(c){const u=[],d=[];for(let p=c.length-1;p>=0;p-=1){const h=c[p].filter(g=>u.includes(g)?!1:(u.push(g),!0));h.length>0&&d.unshift(Ir(h))}return d}function l(c,u){const d=[];return c.reduce((p,h)=>(h.forEach(g=>{t[g][u==="parents"?"includes":"parents"].forEach(S=>{d.includes(S)&&p.push(u==="parents"?{source:g,target:S}:{source:S,target:g})}),d.push(g)}),p),[])}return n.children=o([e],"includes"),n.children=a(n.children),n.parents=o([e],"parents"),n.parents=a(n.parents),n.links=[...l([[e],...n.parents],"parents"),...l([[e],...n.children],"includes")],n}function F3(e,t,r){const n=Cn(e,r);if(!n||Je.find(n.resources,{resource:t.applyTo,type:t.type}))return r;const o={...n,resources:[...n.resources,Rp(t)]};return{...r,[e]:o}}function H3(e,t,r){const n=Cn(e,r);if(!n)return r;const o={...n,resources:n.resources.filter(({resource:a,type:l})=>a!==t.applyTo||l!==t.type)};return{...r,[e]:o}}function W3(e,t){const r=Object.entries(e).map(([n,o])=>{const a=Cn(n,t);if(!a)return{[n]:t[n]};const l={...a,resources:a.resources.filter(({resource:c,type:u})=>!o.some(d=>d.applyTo===c&&d.type===u))};return{[n]:l}}).reduce((n,o)=>({...n,...o}),{});return{...t,...r}}function B3(e,t){const r=Cn(e,t);if(!r)return t;const n={...r,resources:r.resources.filter(o=>o.permissions.some(a=>a.from.length)).map(o=>({...o,permissions:o.permissions.map(a=>({...a,checked:!1}))}))};return{...t,[e]:n}}function V3(e,t,r,n){const o=Cn(e,n);if(!o)return n;const l=Je.find(o.resources,{type:t.type,resource:t.resource})?{...o,resources:o.resources.map(c=>c.type===t.type&&c.resource===t.resource?{...c,permissions:t.permissions.map(u=>u.name===r.name?{...u,checked:!u.checked,from:[]}:u)}:c)}:{...o,resources:[...o.resources,{...t,permissions:t.permissions.map(c=>({...c,checked:r.name===c.name,from:[]}))}]};return{...n,[e]:l}}function U3(e,t){var u;const r=R1(e,t)||[],n=((u=Cn(e,t))==null?void 0:u.resources)||[],l=([...r,...n].filter(({type:d})=>[ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD].includes(d))||[]).map(({resource:d})=>d);return Object.entries(t).reduce((d,[p,{resources:h}])=>(h.filter(({resource:g,type:y})=>[ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD].includes(y)&&l.includes(g)).forEach(({permissions:g,resource:y})=>{var v;((v=g.find(({name:b})=>b==="promote"))==null?void 0:v.checked)&&(d[y]=Ir(d[y]||[],p))}),d),{})}function R1(e,t){var l;const r=Cn(e,t);if(!r)return[];const n=(l=Object.values(t).find(c=>c.privilege===ac))==null?void 0:l.id;return(n&&n!==e?Ir(sc(e,t),n):sc(e,t)).reduce((c,u)=>(t[u].resources.forEach(p=>{if(p.permissions.filter(({checked:y,name:S})=>y&&S!=="promote").length===0)return;const g=Je.find(c,{type:p.type,resource:p.resource});if(!g){c.push({...p,permissions:p.permissions.map(y=>({...y,from:y.checked?[u]:[],checked:!1}))});return}g.permissions=g.permissions.map((y,S)=>{let{from:v=[]}=y;return p.permissions[S].checked&&!v.includes(u)&&(v=[...v,u]),{...y,from:v,checked:y.checked}})}),c),Je.clone(r.resources.map(c=>({...c,permissions:c.permissions.map(({checked:u,...d})=>({...d,checked:!!u}))}))))}const q3=(e,t,r)=>{const n={id:e,role:t,privileges:[]};return{...r,[n.id]:n}},G3=(e,t)=>t[e]?Object.values(t).reduce((r,n)=>e===n.id||n.role===""?r:{...r,[n.id]:n},{}):t,Y3=(e,t)=>{if(Tc(e.role),Object.values(t).find(n=>n.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(t).reduce((n,o)=>e.id===o.id?{...n,[e.id]:e}:{...n,[o.id]:o},{})},_t="/rest/$designer",es="/rest/$designer-ext";function K3(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(n=>{typeof r[n]=="string"&&(r[n]=new Date(r[n]))}),r}}class Ed extends Error{constructor(t,r,n){super(),this.url=t,this.response=r,this.data=n}log(){console.error("Error while sending the request",this)}}async function Ye(e,t){var o;oc.next({action:Wa.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const l=await r.json();((o=l==null?void 0:l.__ERROR)==null?void 0:o.some(u=>u.errCode===1651))&&oc.next({action:Wa.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new Ed(e,r,l)}catch{a=new Ed(e,r)}throw a.log(),a}return await r.json()}function Z3(e){return oc.next({action:Wa.REQUEST_SENT}),e}var Jr={},Dt={},O0;function Oi(){if(O0)return Dt;O0=1;var e=Dt.ValidationError=function(v,b,m,w,x,k){if(Array.isArray(w)?(this.path=w,this.property=w.reduce(function(R,F){return R+c(F)},"instance")):w!==void 0&&(this.property=w),v&&(this.message=v),m){var E=m.$id||m.id;this.schema=E||m}b!==void 0&&(this.instance=b),this.name=x,this.argument=k,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=Dt.ValidatorResult=function(v,b,m,w){this.instance=v,this.schema=b,this.options=m,this.path=w.path,this.propertyPath=w.propertyPath,this.errors=[],this.throwError=m&&m.throwError,this.throwFirst=m&&m.throwFirst,this.throwAll=m&&m.throwAll,this.disableFormat=m&&m.disableFormat===!0};t.prototype.addError=function(v){var b;if(typeof v=="string")b=new e(v,this.instance,this.schema,this.path);else{if(!v)throw new Error("Missing error detail");if(!v.message)throw new Error("Missing error message");if(!v.name)throw new Error("Missing validator type");b=new e(v.message,this.instance,this.schema,this.path,v.name,v.argument)}if(this.errors.push(b),this.throwFirst)throw new n(this);if(this.throwError)throw b;return b},t.prototype.importErrors=function(v){typeof v=="string"||v&&v.validatorType?this.addError(v):v&&v.errors&&(this.errors=this.errors.concat(v.errors))};function r(S,v){return v+": "+S.toString()+`
251
- `}t.prototype.toString=function(v){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),Dt.ValidatorResultError=n;function n(S){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n),this.instance=S.instance,this.schema=S.schema,this.options=S.options,this.errors=S.errors}n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Validation Error";var o=Dt.SchemaError=function S(v,b){this.message=v,this.schema=b,Error.call(this,v),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,S)};o.prototype=Object.create(Error.prototype,{constructor:{value:o,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var a=Dt.SchemaContext=function(v,b,m,w,x){this.schema=v,this.options=b,Array.isArray(m)?(this.path=m,this.propertyPath=m.reduce(function(k,E){return k+c(E)},"instance")):this.propertyPath=m,this.base=w,this.schemas=x};a.prototype.resolve=function(v){return y(this.base,v)},a.prototype.makeChild=function(v,b){var m=b===void 0?this.path:this.path.concat([b]),w=v.$id||v.id;let x=y(this.base,w||"");var k=new a(v,this.options,m,x,Object.create(this.schemas));return w&&!k.schemas[x]&&(k.schemas[x]=v),k};var l=Dt.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(S){return typeof S=="string"&&parseFloat(S)===parseInt(S,10)&&!isNaN(S)},regex:function(S){var v=!0;try{new RegExp(S)}catch{v=!1}return v},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],Dt.isFormat=function(v,b,m){if(typeof v=="string"&&l[b]!==void 0){if(l[b]instanceof RegExp)return l[b].test(v);if(typeof l[b]=="function")return l[b](v)}else if(m&&m.customFormats&&typeof m.customFormats[b]=="function")return m.customFormats[b](v);return!0};var c=Dt.makeSuffix=function(v){return v=v.toString(),!v.match(/[.\s\[\]]/)&&!v.match(/^[\d]/)?"."+v:v.match(/^\d+$/)?"["+v+"]":"["+JSON.stringify(v)+"]"};Dt.deepCompareStrict=function S(v,b){if(typeof v!=typeof b)return!1;if(Array.isArray(v))return!Array.isArray(b)||v.length!==b.length?!1:v.every(function(x,k){return S(v[k],b[k])});if(typeof v=="object"){if(!v||!b)return v===b;var m=Object.keys(v),w=Object.keys(b);return m.length!==w.length?!1:m.every(function(x){return S(v[x],b[x])})}return v===b};function u(S,v,b,m){typeof b=="object"?v[m]=h(S[m],b):S.indexOf(b)===-1&&v.push(b)}function d(S,v,b){v[b]=S[b]}function p(S,v,b,m){typeof v[m]!="object"||!v[m]?b[m]=v[m]:S[m]?b[m]=h(S[m],v[m]):b[m]=v[m]}function h(S,v){var b=Array.isArray(v),m=b&&[]||{};return b?(S=S||[],m=m.concat(S),v.forEach(u.bind(null,S,m))):(S&&typeof S=="object"&&Object.keys(S).forEach(d.bind(null,S,m)),Object.keys(v).forEach(p.bind(null,S,v,m))),m}Dt.deepMerge=h,Dt.objectGetPath=function(v,b){for(var m=b.split("/").slice(1),w;typeof(w=m.shift())=="string";){var x=decodeURIComponent(w.replace(/~0/,"~").replace(/~1/g,"/"));if(!(x in v))return;v=v[x]}return v};function g(S){return"/"+encodeURIComponent(S).replace(/~/g,"%7E")}Dt.encodePath=function(v){return v.map(g).join("")},Dt.getDecimalPlaces=function(v){var b=0;if(isNaN(v))return b;typeof v!="number"&&(v=Number(v));var m=v.toString().split("e");if(m.length===2){if(m[1][0]!=="-")return b;b=Number(m[1].slice(1))}var w=m[0].split(".");return w.length===2&&(b+=w[1].length),b},Dt.isSchema=function(v){return typeof v=="object"&&v||typeof v=="boolean"};var y=Dt.resolveUrl=function(v,b){const m=new URL(b,new URL(v,"resolve://"));if(m.protocol==="resolve:"){const{pathname:w,search:x,hash:k}=m;return w+x+k}return m.toString()};return Dt}var qf,A0;function X3(){if(A0)return qf;A0=1;var e=Oi(),t=e.ValidatorResult,r=e.SchemaError,n={};n.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var o=n.validators={};o.type=function(h,g,y,S){if(h===void 0)return null;var v=new t(h,g,y,S),b=Array.isArray(g.type)?g.type:[g.type];if(!b.some(this.testType.bind(this,h,g,y,S))){var m=b.map(function(w){if(w){var x=w.$id||w.id;return x?"<"+x+">":w+""}});v.addError({name:"type",argument:m,message:"is not of a type(s) "+m})}return v};function a(p,h,g,y,S){var v=h.throwError,b=h.throwAll;h.throwError=!1,h.throwAll=!1;var m=this.validateSchema(p,S,h,g);return h.throwError=v,h.throwAll=b,!m.valid&&y instanceof Function&&y(m),m.valid}o.anyOf=function(h,g,y,S){if(h===void 0)return null;var v=new t(h,g,y,S),b=new t(h,g,y,S);if(!Array.isArray(g.anyOf))throw new r("anyOf must be an array");if(!g.anyOf.some(a.bind(this,h,y,S,function(w){b.importErrors(w)}))){var m=g.anyOf.map(function(w,x){var k=w.$id||w.id;return k?"<"+k+">":w.title&&JSON.stringify(w.title)||w.$ref&&"<"+w.$ref+">"||"[subschema "+x+"]"});y.nestedErrors&&v.importErrors(b),v.addError({name:"anyOf",argument:m,message:"is not any of "+m.join(",")})}return v},o.allOf=function(h,g,y,S){if(h===void 0)return null;if(!Array.isArray(g.allOf))throw new r("allOf must be an array");var v=new t(h,g,y,S),b=this;return g.allOf.forEach(function(m,w){var x=b.validateSchema(h,m,y,S);if(!x.valid){var k=m.$id||m.id,E=k||m.title&&JSON.stringify(m.title)||m.$ref&&"<"+m.$ref+">"||"[subschema "+w+"]";v.addError({name:"allOf",argument:{id:E,length:x.errors.length,valid:x},message:"does not match allOf schema "+E+" with "+x.errors.length+" error[s]:"}),v.importErrors(x)}}),v},o.oneOf=function(h,g,y,S){if(h===void 0)return null;if(!Array.isArray(g.oneOf))throw new r("oneOf must be an array");var v=new t(h,g,y,S),b=new t(h,g,y,S),m=g.oneOf.filter(a.bind(this,h,y,S,function(x){b.importErrors(x)})).length,w=g.oneOf.map(function(x,k){var E=x.$id||x.id;return E||x.title&&JSON.stringify(x.title)||x.$ref&&"<"+x.$ref+">"||"[subschema "+k+"]"});return m!==1&&(y.nestedErrors&&v.importErrors(b),v.addError({name:"oneOf",argument:w,message:"is not exactly one from "+w.join(",")})),v},o.if=function(h,g,y,S){if(h===void 0)return null;if(!e.isSchema(g.if))throw new Error('Expected "if" keyword to be a schema');var v=a.call(this,h,y,S,null,g.if),b=new t(h,g,y,S),m;if(v){if(g.then===void 0)return;if(!e.isSchema(g.then))throw new Error('Expected "then" keyword to be a schema');m=this.validateSchema(h,g.then,y,S.makeChild(g.then)),b.importErrors(m)}else{if(g.else===void 0)return;if(!e.isSchema(g.else))throw new Error('Expected "else" keyword to be a schema');m=this.validateSchema(h,g.else,y,S.makeChild(g.else)),b.importErrors(m)}return b};function l(p,h){if(Object.hasOwnProperty.call(p,h))return p[h];if(h in p){for(;p=Object.getPrototypeOf(p);)if(Object.propertyIsEnumerable.call(p,h))return p[h]}}o.propertyNames=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=g.propertyNames!==void 0?g.propertyNames:{};if(!e.isSchema(b))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var m in h)if(l(h,m)!==void 0){var w=this.validateSchema(m,b,y,S.makeChild(b));v.importErrors(w)}return v}},o.properties=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=g.properties||{};for(var m in b){var w=b[m];if(w!==void 0){if(w===null)throw new r('Unexpected null, expected schema in "properties"');typeof y.preValidateProperty=="function"&&y.preValidateProperty(h,m,w,y,S);var x=l(h,m),k=this.validateSchema(x,w,y,S.makeChild(w,m));k.instance!==v.instance[m]&&(v.instance[m]=k.instance),v.importErrors(k)}}return v}};function c(p,h,g,y,S,v){if(this.types.object(p)&&!(h.properties&&h.properties[S]!==void 0))if(h.additionalProperties===!1)v.addError({name:"additionalProperties",argument:S,message:"is not allowed to have the additional property "+JSON.stringify(S)});else{var b=h.additionalProperties||{};typeof g.preValidateProperty=="function"&&g.preValidateProperty(p,S,b,g,y);var m=this.validateSchema(p[S],b,g,y.makeChild(b,S));m.instance!==v.instance[S]&&(v.instance[S]=m.instance),v.importErrors(m)}}o.patternProperties=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=g.patternProperties||{};for(var m in h){var w=!0;for(var x in b){var k=b[x];if(k!==void 0){if(k===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var E=new RegExp(x,"u")}catch{E=new RegExp(x)}if(E.test(m)){w=!1,typeof y.preValidateProperty=="function"&&y.preValidateProperty(h,m,k,y,S);var R=this.validateSchema(h[m],k,y,S.makeChild(k,m));R.instance!==v.instance[m]&&(v.instance[m]=R.instance),v.importErrors(R)}}}w&&c.call(this,h,g,y,S,m,v)}return v}},o.additionalProperties=function(h,g,y,S){if(this.types.object(h)){if(g.patternProperties)return null;var v=new t(h,g,y,S);for(var b in h)c.call(this,h,g,y,S,b,v);return v}},o.minProperties=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=Object.keys(h);return b.length>=g.minProperties||v.addError({name:"minProperties",argument:g.minProperties,message:"does not meet minimum property length of "+g.minProperties}),v}},o.maxProperties=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=Object.keys(h);return b.length<=g.maxProperties||v.addError({name:"maxProperties",argument:g.maxProperties,message:"does not meet maximum property length of "+g.maxProperties}),v}},o.items=function(h,g,y,S){var v=this;if(this.types.array(h)&&g.items!==void 0){var b=new t(h,g,y,S);return h.every(function(m,w){if(Array.isArray(g.items))var x=g.items[w]===void 0?g.additionalItems:g.items[w];else var x=g.items;if(x===void 0)return!0;if(x===!1)return b.addError({name:"items",message:"additionalItems not permitted"}),!1;var k=v.validateSchema(m,x,y,S.makeChild(x,w));return k.instance!==b.instance[w]&&(b.instance[w]=k.instance),b.importErrors(k),!0}),b}},o.contains=function(h,g,y,S){var v=this;if(this.types.array(h)&&g.contains!==void 0){if(!e.isSchema(g.contains))throw new Error('Expected "contains" keyword to be a schema');var b=new t(h,g,y,S),m=h.some(function(w,x){var k=v.validateSchema(w,g.contains,y,S.makeChild(g.contains,x));return k.errors.length===0});return m===!1&&b.addError({name:"contains",argument:g.contains,message:"must contain an item matching given schema"}),b}},o.minimum=function(h,g,y,S){if(this.types.number(h)){var v=new t(h,g,y,S);return g.exclusiveMinimum&&g.exclusiveMinimum===!0?h>g.minimum||v.addError({name:"minimum",argument:g.minimum,message:"must be greater than "+g.minimum}):h>=g.minimum||v.addError({name:"minimum",argument:g.minimum,message:"must be greater than or equal to "+g.minimum}),v}},o.maximum=function(h,g,y,S){if(this.types.number(h)){var v=new t(h,g,y,S);return g.exclusiveMaximum&&g.exclusiveMaximum===!0?h<g.maximum||v.addError({name:"maximum",argument:g.maximum,message:"must be less than "+g.maximum}):h<=g.maximum||v.addError({name:"maximum",argument:g.maximum,message:"must be less than or equal to "+g.maximum}),v}},o.exclusiveMinimum=function(h,g,y,S){if(typeof g.exclusiveMinimum!="boolean"&&this.types.number(h)){var v=new t(h,g,y,S),b=h>g.exclusiveMinimum;return b||v.addError({name:"exclusiveMinimum",argument:g.exclusiveMinimum,message:"must be strictly greater than "+g.exclusiveMinimum}),v}},o.exclusiveMaximum=function(h,g,y,S){if(typeof g.exclusiveMaximum!="boolean"&&this.types.number(h)){var v=new t(h,g,y,S),b=h<g.exclusiveMaximum;return b||v.addError({name:"exclusiveMaximum",argument:g.exclusiveMaximum,message:"must be strictly less than "+g.exclusiveMaximum}),v}};var u=function(h,g,y,S,v,b){if(this.types.number(h)){var m=g[v];if(m==0)throw new r(v+" cannot be zero");var w=new t(h,g,y,S),x=e.getDecimalPlaces(h),k=e.getDecimalPlaces(m),E=Math.max(x,k),R=Math.pow(10,E);return Math.round(h*R)%Math.round(m*R)!==0&&w.addError({name:v,argument:m,message:b+JSON.stringify(m)}),w}};o.multipleOf=function(h,g,y,S){return u.call(this,h,g,y,S,"multipleOf","is not a multiple of (divisible by) ")},o.divisibleBy=function(h,g,y,S){return u.call(this,h,g,y,S,"divisibleBy","is not divisible by (multiple of) ")},o.required=function(h,g,y,S){var v=new t(h,g,y,S);return h===void 0&&g.required===!0?v.addError({name:"required",message:"is required"}):this.types.object(h)&&Array.isArray(g.required)&&g.required.forEach(function(b){l(h,b)===void 0&&v.addError({name:"required",argument:b,message:"requires property "+JSON.stringify(b)})}),v},o.pattern=function(h,g,y,S){if(this.types.string(h)){var v=new t(h,g,y,S),b=g.pattern;try{var m=new RegExp(b,"u")}catch{m=new RegExp(b)}return h.match(m)||v.addError({name:"pattern",argument:g.pattern,message:"does not match pattern "+JSON.stringify(g.pattern.toString())}),v}},o.format=function(h,g,y,S){if(h!==void 0){var v=new t(h,g,y,S);return!v.disableFormat&&!e.isFormat(h,g.format,this)&&v.addError({name:"format",argument:g.format,message:"does not conform to the "+JSON.stringify(g.format)+" format"}),v}},o.minLength=function(h,g,y,S){if(this.types.string(h)){var v=new t(h,g,y,S),b=h.match(/[\uDC00-\uDFFF]/g),m=h.length-(b?b.length:0);return m>=g.minLength||v.addError({name:"minLength",argument:g.minLength,message:"does not meet minimum length of "+g.minLength}),v}},o.maxLength=function(h,g,y,S){if(this.types.string(h)){var v=new t(h,g,y,S),b=h.match(/[\uDC00-\uDFFF]/g),m=h.length-(b?b.length:0);return m<=g.maxLength||v.addError({name:"maxLength",argument:g.maxLength,message:"does not meet maximum length of "+g.maxLength}),v}},o.minItems=function(h,g,y,S){if(this.types.array(h)){var v=new t(h,g,y,S);return h.length>=g.minItems||v.addError({name:"minItems",argument:g.minItems,message:"does not meet minimum length of "+g.minItems}),v}},o.maxItems=function(h,g,y,S){if(this.types.array(h)){var v=new t(h,g,y,S);return h.length<=g.maxItems||v.addError({name:"maxItems",argument:g.maxItems,message:"does not meet maximum length of "+g.maxItems}),v}};function d(p,h,g){var y,S=g.length;for(y=h+1,S;y<S;y++)if(e.deepCompareStrict(p,g[y]))return!1;return!0}return o.uniqueItems=function(h,g,y,S){if(g.uniqueItems===!0&&this.types.array(h)){var v=new t(h,g,y,S);return h.every(d)||v.addError({name:"uniqueItems",message:"contains duplicate item"}),v}},o.dependencies=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S);for(var b in g.dependencies)if(h[b]!==void 0){var m=g.dependencies[b],w=S.makeChild(m,b);if(typeof m=="string"&&(m=[m]),Array.isArray(m))m.forEach(function(k){h[k]===void 0&&v.addError({name:"dependencies",argument:w.propertyPath,message:"property "+k+" not found, required by "+w.propertyPath})});else{var x=this.validateSchema(h,m,y,w);v.instance!==x.instance&&(v.instance=x.instance),x&&x.errors.length&&(v.addError({name:"dependencies",argument:w.propertyPath,message:"does not meet dependency required by "+w.propertyPath}),v.importErrors(x))}}return v}},o.enum=function(h,g,y,S){if(h===void 0)return null;if(!Array.isArray(g.enum))throw new r("enum expects an array",g);var v=new t(h,g,y,S);return g.enum.some(e.deepCompareStrict.bind(null,h))||v.addError({name:"enum",argument:g.enum,message:"is not one of enum values: "+g.enum.map(String).join(",")}),v},o.const=function(h,g,y,S){if(h===void 0)return null;var v=new t(h,g,y,S);return e.deepCompareStrict(g.const,h)||v.addError({name:"const",argument:g.const,message:"does not exactly match expected constant: "+g.const}),v},o.not=o.disallow=function(h,g,y,S){var v=this;if(h===void 0)return null;var b=new t(h,g,y,S),m=g.not||g.disallow;return m?(Array.isArray(m)||(m=[m]),m.forEach(function(w){if(v.testType(h,g,y,S,w)){var x=w&&(w.$id||w.id),k=x||w;b.addError({name:"not",argument:k,message:"is of prohibited type "+k})}}),b):null},qf=n,qf}var Sl={},T0;function kd(){if(T0)return Sl;T0=1;var e=Oi();Sl.SchemaScanResult=t;function t(r,n){this.id=r,this.ref=n}return Sl.scan=function(n,o){function a(p,h){if(!h||typeof h!="object")return;if(h.$ref){let v=e.resolveUrl(p,h.$ref);d[v]=d[v]?d[v]+1:0;return}var g=h.$id||h.id;let y=e.resolveUrl(p,g);var S=g?y:p;if(S){if(S.indexOf("#")<0&&(S+="#"),u[S]){if(!e.deepCompareStrict(u[S],h))throw new Error("Schema <"+S+"> already exists with different definition");return u[S]}u[S]=h,S[S.length-1]=="#"&&(u[S.substring(0,S.length-1)]=h)}l(S+"/items",Array.isArray(h.items)?h.items:[h.items]),l(S+"/extends",Array.isArray(h.extends)?h.extends:[h.extends]),a(S+"/additionalItems",h.additionalItems),c(S+"/properties",h.properties),a(S+"/additionalProperties",h.additionalProperties),c(S+"/definitions",h.definitions),c(S+"/patternProperties",h.patternProperties),c(S+"/dependencies",h.dependencies),l(S+"/disallow",h.disallow),l(S+"/allOf",h.allOf),l(S+"/anyOf",h.anyOf),l(S+"/oneOf",h.oneOf),a(S+"/not",h.not)}function l(p,h){if(Array.isArray(h))for(var g=0;g<h.length;g++)a(p+"/"+g,h[g])}function c(p,h){if(!(!h||typeof h!="object"))for(var g in h)a(p+"/"+g,h[g])}var u={},d={};return a(n,o),new t(u,d)},Sl}var Gf,R0;function J3(){if(R0)return Gf;R0=1;var e=X3(),t=Oi(),r=kd().scan,n=t.ValidatorResult,o=t.ValidatorResultError,a=t.SchemaError,l=t.SchemaContext,c="/",u=function h(){this.customFormats=Object.create(h.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(p),this.attributes=Object.create(e.validators)};u.prototype.customFormats={},u.prototype.schemas=null,u.prototype.types=null,u.prototype.attributes=null,u.prototype.unresolvedRefs=null,u.prototype.addSchema=function(g,y){var S=this;if(!g)return null;var v=r(y||c,g),b=y||g.$id||g.id;for(var m in v.id)this.schemas[m]=v.id[m];for(var m in v.ref)this.unresolvedRefs.push(m);return this.unresolvedRefs=this.unresolvedRefs.filter(function(w){return typeof S.schemas[w]>"u"}),this.schemas[b]},u.prototype.addSubSchemaArray=function(g,y){if(Array.isArray(y))for(var S=0;S<y.length;S++)this.addSubSchema(g,y[S])},u.prototype.addSubSchemaObject=function(g,y){if(!(!y||typeof y!="object"))for(var S in y)this.addSubSchema(g,y[S])},u.prototype.setSchemas=function(g){this.schemas=g},u.prototype.getSchema=function(g){return this.schemas[g]},u.prototype.validate=function(g,y,S,v){if(typeof y!="boolean"&&typeof y!="object"||y===null)throw new a("Expected `schema` to be an object or boolean");S||(S={});var b=y.$id||y.id;let m=t.resolveUrl(S.base,b||"");if(!v){v=new l(y,S,[],m,Object.create(this.schemas)),v.schemas[m]||(v.schemas[m]=y);var w=r(m,y);for(var x in w.id){var k=w.id[x];v.schemas[x]=k}}if(S.required&&g===void 0){var E=new n(g,y,S,v);return E.addError("is required, but is undefined"),E}var E=this.validateSchema(g,y,S,v);if(E){if(S.throwAll&&E.errors.length)throw new o(E)}else throw new Error("Result undefined");return E};function d(h){var g=typeof h=="string"?h:h.$ref;return typeof g=="string"?g:!1}u.prototype.validateSchema=function(g,y,S,v){var b=new n(g,y,S,v);if(typeof y=="boolean")y===!0?y={}:y===!1&&(y={type:[]});else if(!y)throw new Error("schema is undefined");if(y.extends)if(Array.isArray(y.extends)){var m={schema:y,ctx:v};y.extends.forEach(this.schemaTraverser.bind(this,m)),y=m.schema,m.schema=null,m.ctx=null,m=null}else y=t.deepMerge(y,this.superResolve(y.extends,v));var w=d(y);if(w){var x=this.resolve(y,w,v),k=new l(x.subschema,S,v.path,x.switchSchema,v.schemas);return this.validateSchema(g,x.subschema,S,k)}var E=S&&S.skipAttributes||[];for(var R in y)if(!e.ignoreProperties[R]&&E.indexOf(R)<0){var F=null,A=this.attributes[R];if(A)F=A.call(this,g,y,S,v);else if(S.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+R,y);F&&b.importErrors(F)}if(typeof S.rewrite=="function"){var N=S.rewrite.call(this,g,y,S,v);b.instance=N}return b},u.prototype.schemaTraverser=function(g,y){g.schema=t.deepMerge(g.schema,this.superResolve(y,g.ctx))},u.prototype.superResolve=function(g,y){var S=d(g);return S?this.resolve(g,S,y).subschema:g},u.prototype.resolve=function(g,y,S){if(y=S.resolve(y),S.schemas[y])return{subschema:S.schemas[y],switchSchema:y};let b=new URL(y,"thismessage::/").hash;var m=b&&b.length&&y.substr(0,y.length-b.length);if(!m||!S.schemas[m])throw new a("no such schema <"+y+">",g);var w=t.objectGetPath(S.schemas[m],b.substr(1));if(w===void 0)throw new a("no such schema "+b+" located in <"+m+">",g);return{subschema:w,switchSchema:y}},u.prototype.testType=function(g,y,S,v,b){if(b!==void 0){if(b===null)throw new a('Unexpected null in "type" keyword');if(typeof this.types[b]=="function")return this.types[b].call(this,g);if(b&&typeof b=="object"){var m=this.validateSchema(g,b,S,v);return m===void 0||!(m&&m.errors.length)}return!0}};var p=u.prototype.types={};return p.string=function(g){return typeof g=="string"},p.number=function(g){return typeof g=="number"&&isFinite(g)},p.integer=function(g){return typeof g=="number"&&g%1===0},p.boolean=function(g){return typeof g=="boolean"},p.array=function(g){return Array.isArray(g)},p.null=function(g){return g===null},p.date=function(g){return g instanceof Date},p.any=function(g){return!0},p.object=function(g){return g&&typeof g=="object"&&!Array.isArray(g)&&!(g instanceof Date)},Gf=u,Gf}var C0;function Q3(){if(C0)return Jr;C0=1;var e=Jr.Validator=J3();return Jr.ValidatorResult=Oi().ValidatorResult,Jr.ValidatorResultError=Oi().ValidatorResultError,Jr.ValidationError=Oi().ValidationError,Jr.SchemaError=Oi().SchemaError,Jr.SchemaScanResult=kd().SchemaScanResult,Jr.scan=kd().scan,Jr.validate=function(t,r,n){var o=new e;return o.validate(t,r,n)},Jr}var ej=Q3();const C1=(e,t,r)=>{const n=e instanceof RegExp?P0(e,r):e,o=t instanceof RegExp?P0(t,r):t,a=n!==null&&o!=null&&tj(n,o,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+n.length,a[1]),post:r.slice(a[1]+o.length)}},P0=(e,t)=>{const r=t.match(e);return r?r[0]:null},tj=(e,t,r)=>{let n,o,a,l,c,u=r.indexOf(e),d=r.indexOf(t,u+1),p=u;if(u>=0&&d>0){if(e===t)return[u,d];for(n=[],a=r.length;p>=0&&!c;){if(p===u)n.push(p),u=r.indexOf(e,p+1);else if(n.length===1){const h=n.pop();h!==void 0&&(c=[h,d])}else o=n.pop(),o!==void 0&&o<a&&(a=o,l=d),d=r.indexOf(t,p+1);p=u<d&&u>=0?u:d}n.length&&l!==void 0&&(c=[a,l])}return c},P1="\0SLASH"+Math.random()+"\0",I1="\0OPEN"+Math.random()+"\0",Cp="\0CLOSE"+Math.random()+"\0",N1="\0COMMA"+Math.random()+"\0",M1="\0PERIOD"+Math.random()+"\0",rj=new RegExp(P1,"g"),nj=new RegExp(I1,"g"),ij=new RegExp(Cp,"g"),oj=new RegExp(N1,"g"),aj=new RegExp(M1,"g"),sj=/\\\\/g,lj=/\\{/g,cj=/\\}/g,uj=/\\,/g,fj=/\\./g;function Yf(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function dj(e){return e.replace(sj,P1).replace(lj,I1).replace(cj,Cp).replace(uj,N1).replace(fj,M1)}function pj(e){return e.replace(rj,"\\").replace(nj,"{").replace(ij,"}").replace(oj,",").replace(aj,".")}function D1(e){if(!e)return[""];const t=[],r=C1("{","}",e);if(!r)return e.split(",");const{pre:n,body:o,post:a}=r,l=n.split(",");l[l.length-1]+="{"+o+"}";const c=D1(a);return a.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function hj(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Ea(dj(e),!0).map(pj)):[]}function gj(e){return"{"+e+"}"}function vj(e){return/^-?0\d/.test(e)}function mj(e,t){return e<=t}function bj(e,t){return e>=t}function Ea(e,t){const r=[],n=C1("{","}",e);if(!n)return[e];const o=n.pre,a=n.post.length?Ea(n.post,!1):[""];if(/\$$/.test(n.pre))for(let l=0;l<a.length;l++){const c=o+"{"+n.body+"}"+a[l];r.push(c)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),u=l||c,d=n.body.indexOf(",")>=0;if(!u&&!d)return n.post.match(/,(?!,).*\}/)?(e=n.pre+"{"+n.body+Cp+n.post,Ea(e)):[e];let p;if(u)p=n.body.split(/\.\./);else if(p=D1(n.body),p.length===1&&p[0]!==void 0&&(p=Ea(p[0],!1).map(gj),p.length===1))return a.map(g=>n.pre+p[0]+g);let h;if(u&&p[0]!==void 0&&p[1]!==void 0){const g=Yf(p[0]),y=Yf(p[1]),S=Math.max(p[0].length,p[1].length);let v=p.length===3&&p[2]!==void 0?Math.abs(Yf(p[2])):1,b=mj;y<g&&(v*=-1,b=bj);const w=p.some(vj);h=[];for(let x=g;b(x,y);x+=v){let k;if(c)k=String.fromCharCode(x),k==="\\"&&(k="");else if(k=String(x),w){const E=S-k.length;if(E>0){const R=new Array(E+1).join("0");x<0?k="-"+R+k.slice(1):k=R+k}}h.push(k)}}else{h=[];for(let g=0;g<p.length;g++)h.push.apply(h,Ea(p[g],!1))}for(let g=0;g<h.length;g++)for(let y=0;y<a.length;y++){const S=o+h[g]+a[y];(!t||u||S)&&r.push(S)}}return r}const yj=1024*64,lc=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>yj)throw new TypeError("pattern is too long")},wj={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ba=e=>e.replace(/[[\]\\-]/g,"\\$&"),xj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),I0=e=>e.join(""),Sj=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],o=[];let a=r+1,l=!1,c=!1,u=!1,d=!1,p=r,h="";e:for(;a<e.length;){const v=e.charAt(a);if((v==="!"||v==="^")&&a===r+1){d=!0,a++;continue}if(v==="]"&&l&&!u){p=a+1;break}if(l=!0,v==="\\"&&!u){u=!0,a++;continue}if(v==="["&&!u){for(const[b,[m,w,x]]of Object.entries(wj))if(e.startsWith(b,a)){if(h)return["$.",!1,e.length-r,!0];a+=b.length,x?o.push(m):n.push(m),c=c||w;continue e}}if(u=!1,h){v>h?n.push(ba(h)+"-"+ba(v)):v===h&&n.push(ba(v)),h="",a++;continue}if(e.startsWith("-]",a+1)){n.push(ba(v+"-")),a+=2;continue}if(e.startsWith("-",a+1)){h=v,a+=2;continue}n.push(ba(v)),a++}if(p<a)return["",!1,0,!1];if(!n.length&&!o.length)return["$.",!1,e.length-r,!0];if(o.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!d){const v=n[0].length===2?n[0].slice(-1):n[0];return[xj(v),!1,p-r,!1]}const g="["+(d?"^":"")+I0(n)+"]",y="["+(d?"":"^")+I0(o)+"]";return[n.length&&o.length?"("+g+"|"+y+")":n.length?g:y,c,p-r,!0]},ka=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),_j=new Set(["!","?","+","*","@"]),N0=e=>_j.has(e),Ej="(?!(?:^|/)\\.\\.?(?:$|/))",_l="(?!\\.)",kj=new Set(["[","."]),Oj=new Set(["..","."]),Aj=new Set("().*{}+?[]^$\\!"),Tj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Pp="[^/]",M0=Pp+"*?",D0=Pp+"+?";var Rt,It,On,lt,xt,Zn,Ai,Xn,tn,Ti,Ua,$i,$1,ei,Wl,Od,L1;const Yt=class Yt{constructor(t,r,n={}){Ht(this,$i);Oe(this,"type");Ht(this,Rt);Ht(this,It);Ht(this,On,!1);Ht(this,lt,[]);Ht(this,xt);Ht(this,Zn);Ht(this,Ai);Ht(this,Xn,!1);Ht(this,tn);Ht(this,Ti);Ht(this,Ua,!1);this.type=t,t&&gt(this,It,!0),gt(this,xt,r),gt(this,Rt,de(this,xt)?de(de(this,xt),Rt):this),gt(this,tn,de(this,Rt)===this?n:de(de(this,Rt),tn)),gt(this,Ai,de(this,Rt)===this?[]:de(de(this,Rt),Ai)),t==="!"&&!de(de(this,Rt),Xn)&&de(this,Ai).push(this),gt(this,Zn,de(this,xt)?de(de(this,xt),lt).length:0)}get hasMagic(){if(de(this,It)!==void 0)return de(this,It);for(const t of de(this,lt))if(typeof t!="string"&&(t.type||t.hasMagic))return gt(this,It,!0);return de(this,It)}toString(){return de(this,Ti)!==void 0?de(this,Ti):this.type?gt(this,Ti,this.type+"("+de(this,lt).map(t=>String(t)).join("|")+")"):gt(this,Ti,de(this,lt).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Yt&&de(r,xt)===this))throw new Error("invalid part: "+r);de(this,lt).push(r)}}toJSON(){var r;const t=this.type===null?de(this,lt).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...de(this,lt).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===de(this,Rt)||de(de(this,Rt),Xn)&&((r=de(this,xt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(de(this,Rt)===this)return!0;if(!((r=de(this,xt))!=null&&r.isStart()))return!1;if(de(this,Zn)===0)return!0;const t=de(this,xt);for(let n=0;n<de(this,Zn);n++){const o=de(t,lt)[n];if(!(o instanceof Yt&&o.type==="!"))return!1}return!0}isEnd(){var r,n,o;if(de(this,Rt)===this||((r=de(this,xt))==null?void 0:r.type)==="!")return!0;if(!((n=de(this,xt))!=null&&n.isEnd()))return!1;if(!this.type)return(o=de(this,xt))==null?void 0:o.isEnd();const t=de(this,xt)?de(de(this,xt),lt).length:0;return de(this,Zn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Yt(this.type,t);for(const n of de(this,lt))r.copyIn(n);return r}static fromGlob(t,r={}){var o;const n=new Yt(null,void 0,r);return We(o=Yt,ei,Wl).call(o,t,n,0,r),n}toMMPattern(){if(this!==de(this,Rt))return de(this,Rt).toMMPattern();const t=this.toString(),[r,n,o,a]=this.toRegExpSource();if(!(o||de(this,It)||de(this,tn).nocase&&!de(this,tn).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const c=(de(this,tn).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return de(this,tn)}toRegExpSource(t){var u;const r=t??!!de(this,tn).dot;if(de(this,Rt)===this&&We(this,$i,$1).call(this),!this.type){const d=this.isStart()&&this.isEnd(),p=de(this,lt).map(S=>{var x;const[v,b,m,w]=typeof S=="string"?We(x=Yt,ei,L1).call(x,S,de(this,It),d):S.toRegExpSource(t);return gt(this,It,de(this,It)||m),gt(this,On,de(this,On)||w),v}).join("");let h="";if(this.isStart()&&typeof de(this,lt)[0]=="string"&&!(de(this,lt).length===1&&Oj.has(de(this,lt)[0]))){const v=kj,b=r&&v.has(p.charAt(0))||p.startsWith("\\.")&&v.has(p.charAt(2))||p.startsWith("\\.\\.")&&v.has(p.charAt(4)),m=!r&&!t&&v.has(p.charAt(0));h=b?Ej:m?_l:""}let g="";return this.isEnd()&&de(de(this,Rt),Xn)&&((u=de(this,xt))==null?void 0:u.type)==="!"&&(g="(?:$|\\/)"),[h+p+g,ka(p),gt(this,It,!!de(this,It)),de(this,On)]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let a=We(this,$i,Od).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const d=this.toString();return gt(this,lt,[d]),this.type=null,gt(this,It,void 0),[d,ka(this.toString()),!1,!1]}let l=!n||t||r||!_l?"":We(this,$i,Od).call(this,!0);l===a&&(l=""),l&&(a=`(?:${a})(?:${l})*?`);let c="";if(this.type==="!"&&de(this,Ua))c=(this.isStart()&&!r?_l:"")+D0;else{const d=this.type==="!"?"))"+(this.isStart()&&!r&&!t?_l:"")+M0+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=o+a+d}return[c,ka(a),gt(this,It,!!de(this,It)),de(this,On)]}};Rt=new WeakMap,It=new WeakMap,On=new WeakMap,lt=new WeakMap,xt=new WeakMap,Zn=new WeakMap,Ai=new WeakMap,Xn=new WeakMap,tn=new WeakMap,Ti=new WeakMap,Ua=new WeakMap,$i=new WeakSet,$1=function(){if(this!==de(this,Rt))throw new Error("should only call on root");if(de(this,Xn))return this;this.toString(),gt(this,Xn,!0);let t;for(;t=de(this,Ai).pop();){if(t.type!=="!")continue;let r=t,n=de(r,xt);for(;n;){for(let o=de(r,Zn)+1;!n.type&&o<de(n,lt).length;o++)for(const a of de(t,lt)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(de(n,lt)[o])}r=n,n=de(r,xt)}}return this},ei=new WeakSet,Wl=function(t,r,n,o){var y,S;let a=!1,l=!1,c=-1,u=!1;if(r.type===null){let v=n,b="";for(;v<t.length;){const m=t.charAt(v++);if(a||m==="\\"){a=!a,b+=m;continue}if(l){v===c+1?(m==="^"||m==="!")&&(u=!0):m==="]"&&!(v===c+2&&u)&&(l=!1),b+=m;continue}else if(m==="["){l=!0,c=v,u=!1,b+=m;continue}if(!o.noext&&N0(m)&&t.charAt(v)==="("){r.push(b),b="";const w=new Yt(m,r);v=We(y=Yt,ei,Wl).call(y,t,w,v,o),r.push(w);continue}b+=m}return r.push(b),v}let d=n+1,p=new Yt(null,r);const h=[];let g="";for(;d<t.length;){const v=t.charAt(d++);if(a||v==="\\"){a=!a,g+=v;continue}if(l){d===c+1?(v==="^"||v==="!")&&(u=!0):v==="]"&&!(d===c+2&&u)&&(l=!1),g+=v;continue}else if(v==="["){l=!0,c=d,u=!1,g+=v;continue}if(N0(v)&&t.charAt(d)==="("){p.push(g),g="";const b=new Yt(v,p);p.push(b),d=We(S=Yt,ei,Wl).call(S,t,b,d,o);continue}if(v==="|"){p.push(g),g="",h.push(p),p=new Yt(null,r);continue}if(v===")")return g===""&&de(r,lt).length===0&&gt(r,Ua,!0),p.push(g),g="",r.push(...h,p),d;g+=v}return r.type=null,gt(r,It,void 0),gt(r,lt,[t.substring(n-1)]),d},Od=function(t){return de(this,lt).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,o,a,l]=r.toRegExpSource(t);return gt(this,On,de(this,On)||l),n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},L1=function(t,r,n=!1){let o=!1,a="",l=!1;for(let c=0;c<t.length;c++){const u=t.charAt(c);if(o){o=!1,a+=(Aj.has(u)?"\\":"")+u;continue}if(u==="\\"){c===t.length-1?a+="\\\\":o=!0;continue}if(u==="["){const[d,p,h,g]=Sj(t,c);if(h){a+=d,l=l||p,c+=h-1,r=r||g;continue}}if(u==="*"){n&&t==="*"?a+=D0:a+=M0,r=!0;continue}if(u==="?"){a+=Pp,r=!0;continue}a+=Tj(u)}return[a,ka(t),!!r,l]},Ht(Yt,ei);let cc=Yt;const Rj=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Wt=(e,t,r={})=>(lc(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Pc(t,r).match(e)),Cj=/^\*+([^+@!?\*\[\(]*)$/,Pj=e=>t=>!t.startsWith(".")&&t.endsWith(e),Ij=e=>t=>t.endsWith(e),Nj=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Mj=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Dj=/^\*+\.\*+$/,$j=e=>!e.startsWith(".")&&e.includes("."),Lj=e=>e!=="."&&e!==".."&&e.includes("."),zj=/^\.\*+$/,jj=e=>e!=="."&&e!==".."&&e.startsWith("."),Fj=/^\*+$/,Hj=e=>e.length!==0&&!e.startsWith("."),Wj=e=>e.length!==0&&e!=="."&&e!=="..",Bj=/^\?+([^+@!?\*\[\(]*)?$/,Vj=([e,t=""])=>{const r=z1([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},Uj=([e,t=""])=>{const r=j1([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},qj=([e,t=""])=>{const r=j1([e]);return t?n=>r(n)&&n.endsWith(t):r},Gj=([e,t=""])=>{const r=z1([e]);return t?n=>r(n)&&n.endsWith(t):r},z1=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},j1=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},F1=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",$0={win32:{sep:"\\"},posix:{sep:"/"}},Yj=F1==="win32"?$0.win32.sep:$0.posix.sep;Wt.sep=Yj;const Or=Symbol("globstar **");Wt.GLOBSTAR=Or;const Kj="[^/]",Zj=Kj+"*?",Xj="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Jj="(?:(?!(?:\\/|^)\\.).)*?",Qj=(e,t={})=>r=>Wt(r,e,t);Wt.filter=Qj;const kr=(e,t={})=>Object.assign({},e,t),eF=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Wt;const t=Wt;return Object.assign((n,o,a={})=>t(n,o,kr(e,a)),{Minimatch:class extends t.Minimatch{constructor(o,a={}){super(o,kr(e,a))}static defaults(o){return t.defaults(kr(e,o)).Minimatch}},AST:class extends t.AST{constructor(o,a,l={}){super(o,a,kr(e,l))}static fromGlob(o,a={}){return t.AST.fromGlob(o,kr(e,a))}},unescape:(n,o={})=>t.unescape(n,kr(e,o)),escape:(n,o={})=>t.escape(n,kr(e,o)),filter:(n,o={})=>t.filter(n,kr(e,o)),defaults:n=>t.defaults(kr(e,n)),makeRe:(n,o={})=>t.makeRe(n,kr(e,o)),braceExpand:(n,o={})=>t.braceExpand(n,kr(e,o)),match:(n,o,a={})=>t.match(n,o,kr(e,a)),sep:t.sep,GLOBSTAR:Or})};Wt.defaults=eF;const H1=(e,t={})=>(lc(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:hj(e));Wt.braceExpand=H1;const tF=(e,t={})=>new Pc(e,t).makeRe();Wt.makeRe=tF;const rF=(e,t,r={})=>{const n=new Pc(t,r);return e=e.filter(o=>n.match(o)),n.options.nonull&&!e.length&&e.push(t),e};Wt.match=rF;const L0=/[?*]|[+@!]\(.*?\)|\[|\]/,nF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Pc{constructor(t,r={}){Oe(this,"options");Oe(this,"set");Oe(this,"pattern");Oe(this,"windowsPathsNoEscape");Oe(this,"nonegate");Oe(this,"negate");Oe(this,"comment");Oe(this,"empty");Oe(this,"preserveMultipleSlashes");Oe(this,"partial");Oe(this,"globSet");Oe(this,"globParts");Oe(this,"nocase");Oe(this,"isWindows");Oe(this,"platform");Oe(this,"windowsNoMagicRoot");Oe(this,"regexp");lc(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||F1,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);const n=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let o=this.globParts.map((a,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const u=a[0]===""&&a[1]===""&&(a[2]==="?"||!L0.test(a[2]))&&!L0.test(a[3]),d=/^[a-z]:/i.test(a[0]);if(u)return[...a.slice(0,4),...a.slice(4).map(p=>this.parse(p))];if(d)return[a[0],...a.slice(1).map(p=>this.parse(p))]}return a.map(u=>this.parse(u))});if(this.debug(this.pattern,o),this.set=o.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){const l=this.set[a];l[0]===""&&l[1]===""&&this.globParts[a][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let o=0;o<t[n].length;o++)t[n][o]==="**"&&(t[n][o]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let o=n;for(;r[o+1]==="**";)o++;o!==n&&r.splice(n,o-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,o)=>{const a=n[n.length-1];return o==="**"&&a==="**"?n:o===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(n.pop(),n):(n.push(o),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let o=1;o<t.length-1;o++){const a=t[o];o===1&&a===""&&t[0]===""||(a==="."||a==="")&&(r=!0,t.splice(o,1),o--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){const o=t[n-1];o&&o!=="."&&o!==".."&&o!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let o=-1;for(;(o=n.indexOf("**",o+1))!==-1;){let l=o;for(;n[l+1]==="**";)l++;l>o&&n.splice(o+1,l-o);let c=n[o+1];const u=n[o+2],d=n[o+3];if(c!==".."||!u||u==="."||u===".."||!d||d==="."||d==="..")continue;r=!0,n.splice(o,1);const p=n.slice(0);p[o]="**",t.push(p),o--}if(!this.preserveMultipleSlashes){for(let l=1;l<n.length-1;l++){const c=n[l];l===1&&c===""&&n[0]===""||(c==="."||c==="")&&(r=!0,n.splice(l,1),l--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let a=0;for(;(a=n.indexOf("..",a+1))!==-1;){const l=n[a-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const u=a===1&&n[a+1]==="**"?["."]:[];n.splice(a-1,2,...u),n.length===0&&n.push(""),a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){const o=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(o){t[r]=[],t[n]=o;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let o=0,a=0,l=[],c="";for(;o<t.length&&a<r.length;)if(t[o]===r[a])l.push(c==="b"?r[a]:t[o]),o++,a++;else if(n&&t[o]==="**"&&r[a]===t[o+1])l.push(t[o]),o++;else if(n&&r[a]==="**"&&t[o]===r[a+1])l.push(r[a]),a++;else if(t[o]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(c==="b")return!1;c="a",l.push(t[o]),o++,a++}else if(r[a]==="*"&&t[o]&&(this.options.dot||!t[o].startsWith("."))&&t[o]!=="**"){if(c==="a")return!1;c="b",l.push(r[a]),o++,a++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,n=0;for(let o=0;o<t.length&&t.charAt(o)==="!";o++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){const o=this.options;if(this.isWindows){const v=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),b=!v&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),m=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),w=!m&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),x=b?3:v?0:void 0,k=w?3:m?0:void 0;if(typeof x=="number"&&typeof k=="number"){const[E,R]=[t[x],r[k]];E.toLowerCase()===R.toLowerCase()&&(r[k]=E,k>x?r=r.slice(k):x>k&&(t=t.slice(x)))}}const{optimizationLevel:a=1}=this.options;a>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,c=0,u=t.length,d=r.length;l<u&&c<d;l++,c++){this.debug("matchOne loop");var p=r[c],h=t[l];if(this.debug(r,p,h),p===!1)return!1;if(p===Or){this.debug("GLOBSTAR",[r,p,h]);var g=l,y=c+1;if(y===d){for(this.debug("** at the end");l<u;l++)if(t[l]==="."||t[l]===".."||!o.dot&&t[l].charAt(0)===".")return!1;return!0}for(;g<u;){var S=t[g];if(this.debug(`
252
- globstar while`,t,g,r,y,S),this.matchOne(t.slice(g),r.slice(y),n))return this.debug("globstar found match!",g,u,S),!0;if(S==="."||S===".."||!o.dot&&S.charAt(0)==="."){this.debug("dot detected!",t,g,r,y);break}this.debug("globstar swallow a segment, and continue"),g++}return!!(n&&(this.debug(`
253
- >>> no match, partial?`,t,g,r,y),g===u))}let v;if(typeof p=="string"?(v=h===p,this.debug("string match",p,h,v)):(v=p.test(h),this.debug("pattern match",p,h,v)),!v)return!1}if(l===u&&c===d)return!0;if(l===u)return n;if(c===d)return l===u-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return H1(this.pattern,this.options)}parse(t){lc(t);const r=this.options;if(t==="**")return Or;if(t==="")return"";let n,o=null;(n=t.match(Fj))?o=r.dot?Wj:Hj:(n=t.match(Cj))?o=(r.nocase?r.dot?Mj:Nj:r.dot?Ij:Pj)(n[1]):(n=t.match(Bj))?o=(r.nocase?r.dot?Uj:Vj:r.dot?qj:Gj)(n):(n=t.match(Dj))?o=r.dot?Lj:$j:(n=t.match(zj))&&(o=jj);const a=cc.fromGlob(t,this.options).toMMPattern();return o&&typeof a=="object"&&Reflect.defineProperty(a,"test",{value:o}),a}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?Zj:r.dot?Xj:Jj,o=new Set(r.nocase?["i"]:[]);let a=t.map(u=>{const d=u.map(p=>{if(p instanceof RegExp)for(const h of p.flags.split(""))o.add(h);return typeof p=="string"?nF(p):p===Or?Or:p._src});return d.forEach((p,h)=>{const g=d[h+1],y=d[h-1];p!==Or||y===Or||(y===void 0?g!==void 0&&g!==Or?d[h+1]="(?:\\/|"+n+"\\/)?"+g:d[h]=n:g===void 0?d[h-1]=y+"(?:\\/|"+n+")?":g!==Or&&(d[h-1]=y+"(?:\\/|\\/"+n+"\\/)"+g,d[h+1]=Or))}),d.filter(p=>p!==Or).join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];a="^"+l+a+c+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const o=this.slashSplit(t);this.debug(this.pattern,"split",o);const a=this.set;this.debug(this.pattern,"set",a);let l=o[o.length-1];if(!l)for(let c=o.length-2;!l&&c>=0;c--)l=o[c];for(let c=0;c<a.length;c++){const u=a[c];let d=o;if(n.matchBase&&u.length===1&&(d=[l]),this.matchOne(d,u,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return Wt.defaults(t).Minimatch}}Wt.AST=cc;Wt.Minimatch=Pc;Wt.escape=Rj;Wt.unescape=ka;const Va="/$shared",iF={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/shared_app_events.json":{parser:"json",content:[]},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/i18n.json":{parser:"json",content:{keys:{},userLang:{primary:"",supported:[]}},schema:{type:"object",properties:{keys:{type:"object"},userLang:{type:"object",properties:{primary:{type:"string"},supported:{type:"array",items:{type:"string"}}},required:["primary","supported"]}},required:["keys","userLang"]}},"**/*.json":{parser:"json",content:{}}};function W1(e){const t=Object.entries(iF).find(([r])=>Wt(e,r));return t==null?void 0:t[1]}function Ic(e){var n;const t=(n=W1(e))==null?void 0:n.content;if(!t)return;const r=e.replace(`${Va}/`,"Shared/");Ip({name:r,content:t,asText:typeof t=="string"})}async function oF(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Ye(`${Va}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){B1(r)&&Ic(`${Va}/${t}`)}}function ts({path:e,createIfNotExists:t=!1}){const r=`${Va}/${e}`;return Ye(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(n=>{const o=W1(e);let a=n;if(!o)return a;if(typeof a=="string")try{switch(o.parser){case"json":a=JSON.parse(a);break;default:break}}catch{throw new Error("Cannot parse")}if(o.schema&&!new ej.Validator().validate(a,o.schema).valid)throw new Error("Invalid Schema");return a}).catch(n=>{if(B1(n)&&t){const o=aF(n,e);i1.next({message:o,kind:"warning"}),Ic(r)}throw n})}function B1(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===404||(e==null?void 0:e.message)==="Invalid Schema"||(e==null?void 0:e.message)==="Cannot parse"||(e==null?void 0:e.name)==="SyntaxError"}function aF(e,t){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${t}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${t}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${t}' not found, creating...`;default:return e==null?void 0:e.message}}function sF(e){return Ye(es,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function lF(e){return Ye(es,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const V1=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Ep.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function cF(){const{hostname:e,host:t,protocol:r}=window.location,n=r==="https:";try{const o=await Ye(_t,{method:"POST",body:JSON.stringify({verb:oi.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(o.rendererPath)return o.rendererPath;const l=`http://${e}:${o.webServerHTTPPort}`,c=`https://${e}:${o.webServerHTTPSPort}`;return o.webServerHTTPPort&&o.webServerHTTPSPort?n?c:l:o.webServerHTTPPort?l:c})();return{projectOpened:o.webServerHTTPSPort>0||o.webServerHTTPPort>0,remoteDebuggerMode:o.remoteDebuggerMode,baseUrl:a,qodly:typeof o.qodly>"u"?!0:o.qodly,urls:{renderer:o.rendererPath||`${a}/$lib/renderer/`,debugger:`ws${n?"s":""}://${t}/remoteDebugger`,lsp:`ws${n?"s":""}://${t}/LSP`},isRestActive:o.isRESTActive}}catch(o){return console.error(o),V1()}}async function U1(e){return await Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function uF(...e){return(await Promise.all(e.map(n=>U1({root:n,verb:oi.GET_FOLDER})))).map(({children:n})=>n.map(({name:o,date:a,type:l})=>({name:o,type:l,date:a,path:`${l}/${o}`}))).flat()}function fF(e,t={}){const{sanitize:r=!0}=t;return Ye(`/rest/$getWebForm/${e}`,{method:"GET"}).then(n=>{if(!(n!=null&&n.components)||!r)return n;const o=new Map;return{...n,components:Je.entries(n.components).map(([a,l])=>{const c=a,{resolvedName:u}=l.type;if(u==="WebformLoader"){const d=Ii.generate();o.set(a,d),a=d}return[a,l,c]}).reduce((a,[l,c,u])=>{var d;return c.nodes&&(c.nodes=c.nodes.map(p=>o.get(p)||p)),c.linkedNodes&&(c.linkedNodes=Je.entries(c.linkedNodes).reduce((p,[h,g])=>({...p,[h]:o.get(g)||g}),{})),(d=c.props)!=null&&d.events&&(c.props.events=c.props.events.map(p=>(p.type==="navigation"&&p.loader&&(p.loader=o.get(p.loader)||p.loader),p))),{...a,[l]:{...c,props:{...c.props,__originalID:u}}}},{})}})}function dF(e){return Ye(_t,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[ft.METHOD,ft.CLASS].includes(t.type)?Rc(t.content):t.content}))}function pF(e){return e.type==="folder"?Ye(es,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function hF(e){return e.type==="folder"?(await Ye(es,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function gF(e){return Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function vF(e){return Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function mF(e){return(await Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function bF(...e){return await Ye(_t,{method:"POST",body:JSON.stringify({verb:oi.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function yF(e){const t=await Ye("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function wF(){return await Ye("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function xF(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,n=await(await fetch(t)).text(),{supported:o}=JSON.parse(n);return o}catch{return[]}}async function SF({name:e,path:t="",root:r="root",asText:n=!1}){return Ye(_t,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:n}),headers:new Headers({"Content-Type":"application/json"})})}async function _F(e={}){try{return await ts({path:"shared_datasources.json",...e})}catch{return{}}}async function EF(e={}){try{return await ts({path:"shared_app_events.json",...e})}catch{return[]}}async function kF(e={}){try{return await ts({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function OF(e={}){try{return await ts({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function AF(){try{return await Ye("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function TF(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const RF=Op(),CF=async e=>{const t={verb:oi.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return RF(async()=>(await Ye(_t,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},PF=Op(),IF=async e=>{const t={verb:oi.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return PF(async()=>(await Ye(_t,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},Ip=async e=>{const t=await Ye(_t,{method:"POST",body:JSON.stringify({...e,verb:oi.SET_FILE_CONTENT,root:_p.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=kp(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},NF=async e=>await Ip({name:"crafted_components.json",path:Qn.WEBFORMS,content:e});function MF(e){return Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function DF(e){return Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function $F(e){return Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function LF(e){return Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?Rc(t.content):t.content}).catch(t=>{var r,n;throw((n=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:n.errCode)===1839&&Ic(e.path),t})}function zF(e){return Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function jF(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function FF(e){const t=new RegExp(/(->)(.*)/gi).exec(e);if(t!==null)return t[0].replace("->","");const r=/:([^)]*)$/.exec(e);return r!==null?`result : ${r[1].trim()}`:""}function HF(e){const t=jF(e).split(/[;,]/g).filter(Boolean).map(o=>{const a=o.split(":")[0].trim(),l=o.split(":")[1].trim();return{name:a,type:l}}),r=FF(e),n=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:n}}async function WF(e,t){const n=e.split(".").pop();try{const o=await Ye(_t,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:n}),headers:new Headers({"Content-Type":"application/json"})});o.content=Rc(o.content);const{params:a,result:l}=HF(o.parameters);return{...o,params:a,returns:l}}catch(o){return console.error(o),{className:t,functionName:n,filePath:e,content:"",params:[]}}}var q1=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(q1||{});function BF(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function VF(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var G1=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(G1||{}),Y1=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(Y1||{}),K1=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(K1||{}),Z1=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(Z1||{});const UF={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},qF={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=_t;exports.AppLoader=pM;exports.BaseCheckboxIcon=Hx;exports.Checkbox=WL;exports.DATASOURCE_THEMES=UF;exports.DatasourcesActions=n1;exports.DebuggerActions=s1;exports.DefaultCheckboxIcon=Wx;exports.DesignerRequestVerb=oi;exports.Dialog=BC;exports.DialogBody=J0;exports.EActivity=q1;exports.EDITOR=qF;exports.EIDENTIFIERS=K1;exports.EPermissionType=Ge;exports.ERROR_CODES=Z1;exports.ESubPermissionType=ot;exports.EWebFormStyleClassScope=G1;exports.EXT_API_PREFIX=es;exports.FileFolderType=ft;exports.FloatingTooltip=FL;exports.FolderRootPath=Qn;exports.FolderRootType=_p;exports.HTTPError=Ed;exports.HTTP_HANDLERS_TAB_PATH=u1;exports.IPreemptive=Ba;exports.IPublished=w1;exports.IPublishedRestScope=Ap;exports.IdentityProvider=lz;exports.Incase=Tl;exports.IndentLines=dy;exports.LOCALIZATION_TAB_PATH=f1;exports.LogoSVG=dw;exports.LspActions=a1;exports.MAX_FILE_NAME_LENGTH=xp;exports.MODEL_TAB_PATH=Zz;exports.Modal=_L;exports.ModalCloseReason=co;exports.ModalColor=Ci;exports.ModalIcons=cd;exports.ModalType=rp;exports.Mutex=d1;exports.NameError=Sp;exports.Overlay=X0;exports.PANEL_EXPANDED_HEIGHT=Fl;exports.PANEL_INITIAL_HEIGHT=_i;exports.PERMISSIONS=Tp;exports.Panel=HL;exports.PopperTooltip=fw;exports.Portal=F0;exports.PublishOptions=E3;exports.ROLES_TAB_PATH=l1;exports.RemoteDebuggerMode=Ep;exports.SETTINGS_TAB_PATH=c1;exports.SHARED_API_PREFIX=Va;exports.SourceCodeDescriptor=Y1;exports.Switcher=py;exports.TabEventsActions=o1;exports.Tip=Xy;exports.TipsProvider=vN;exports.Toast=ZP;exports.ToolbarIcon=BL;exports.Tooltip=fM;exports.Tree=hI;exports.TreeIcon=ly;exports.TreeNode=Ld;exports.WebformActions=r1;exports.WebformEventsActions=Wa;exports.ZoomComponent=OL;exports.ZoomLevel=jx;exports._isArrayDatasource=y3;exports._isObjectDatasource=w3;exports.actionsToPrivs=O1;exports.addAttributesToContent=O3;exports.addFolder=gF;exports.addPermission=F3;exports.addPrivilegeIn=I3;exports.allowed=C3;exports.by=p1;exports.byId=n3;exports.byPath=i3;exports.callServerSideParser=Z3;exports.checkUpdates=sF;exports.children=sc;exports.createFolder=MF;exports.createPrivilege=M3;exports.createRole=q3;exports.datasourcesSubject=Fz;exports.debuggerSubject=Vz;exports.dropFile=hF;exports.dropFolder=mF;exports.exists=o3;exports.extractWebformName=Qz;exports.generateUUID=A3;exports.getAppSettings=cF;exports.getCatalog=wF;exports.getDatasourceId=s3;exports.getDefaultAppSettings=V1;exports.getDictByName=T1;exports.getFile=dF;exports.getFileContent=SF;exports.getFileExtentionFromType=Jz;exports.getFilenameAndTypeFromPath=Xz;exports.getFilenameFromType=e3;exports.getFilesInfo=bF;exports.getFolder=U1;exports.getFolders=uF;exports.getFunctionContent=WF;exports.getGraphData=j3;exports.getInheritedResources=R1;exports.getMonacoTheme=TF;exports.getNodeInfo=LF;exports.getPrivilegeById=Cn;exports.getPromotions=U3;exports.getResourceFromType=Rp;exports.getSavedConditions=OF;exports.getSharedAppEvents=EF;exports.getSharedCSS=kF;exports.getSharedDatasources=_F;exports.getSharedResource=ts;exports.getSupportedLanguages=xF;exports.getTypeFromExtension=kp;exports.getUserPrivileges=AF;exports.getWebForm=fF;exports.hasAttributesString=S1;exports.http=Ye;exports.i18nSubject=qz;exports.initializeDefaultProjectFiles=oF;exports.installUpdates=lF;exports.isArrayDatasource=m1;exports.isDataClassMethod=f3;exports.isDataStoreMethod=u3;exports.isDateDatasource=x3;exports.isEntity=m3;exports.isEntityDatasource=h3;exports.isEntityMethod=d3;exports.isEntitySelection=b3;exports.isEntitySelectionDatasource=g3;exports.isEntitySelectionMethod=p3;exports.isObjectAttribute=l3;exports.isObjectDatasource=b1;exports.isRelatedAttribute=c3;exports.isRelatedEntitiesAttribute=g1;exports.isRelatedEntityAttribute=v1;exports.isScalarDatasource=y1;exports.isSimpleAttribute=h1;exports.isSimpleDatasource=v3;exports.loadDS=S3;exports.loadI18n=_3;exports.localeCompare=a3;exports.log=BF;exports.login=yF;exports.lspSubject=Bz;exports.moveItem=$F;exports.outBy=t3;exports.outById=r3;exports.parents=Cc;exports.parseAttributes=k3;exports.populateShallow=$3;exports.queue=Op;exports.removeAttributesString=_1;exports.removeItem=DF;exports.removeMultiplePermissions=W3;exports.removePermission=H3;exports.removePrivilege=P3;exports.removePrivilegeFrom=N3;exports.removeRole=G3;exports.renameFile=pF;exports.renameFolder=vF;exports.renamePrivilege=D3;exports.resetResources=B3;exports.rolesToAPI=z3;exports.sanitizeContent=Rc;exports.sanitizeNameCY=T3;exports.sanitizePermissions=A1;exports.sanitizePrivileges=E1;exports.sanitizeRoles=L3;exports.saveContent=zF;exports.saveRole=Y3;exports.setCraftedComponents=NF;exports.setFileContent=Ip;exports.setSharedAppEvents=IF;exports.setSharedSources=CF;exports.sortPrivileges=k1;exports.stringifyAttributes=x1;exports.tabEventsSubject=Wz;exports.tasksManagerSubject=Uz;exports.toastSubject=i1;exports.togglePermission=V3;exports.trackEvent=VF;exports.transformDates=K3;exports.tryCreateSharedResource=Ic;exports.uniquePush=Ir;exports.useDidMountEffect=VL;exports.useDoubleClick=dz;exports.useEnhancedState=Az;exports.useFeatureFlags=sz;exports.useForwardedRef=az;exports.useHotkeys=rz;exports.useIdentity=cz;exports.useOutsideClick=nz;exports.usePrevious=iz;exports.useStateObject=uz;exports.useStateRef=oz;exports.useTip=Zy;exports.validateName=Tc;exports.validateServerSide=Gz;exports.validateValue=Yz;exports.webformEventsSubject=oc;exports.webformSubject=Hz;
200
+ `)+ee+`return __p
201
+ }`;var Se=oh(function(){return Pe(T,le+"return "+ee).apply(r,P)});if(Se.source=ee,ol(Se))throw Se;return Se}function O_(n){return ke(n).toLowerCase()}function A_(n){return ke(n).toUpperCase()}function T_(n,o,u){if(n=ke(n),n&&(u||o===r))return hd(n);if(!n||!(o=Nt(o)))return n;var y=sr(n),_=sr(o),T=gd(y,_),P=md(y,_)+1;return on(y,T,P).join("")}function R_(n,o,u){if(n=ke(n),n&&(u||o===r))return n.slice(0,yd(n)+1);if(!n||!(o=Nt(o)))return n;var y=sr(n),_=md(y,sr(o))+1;return on(y,0,_).join("")}function P_(n,o,u){if(n=ke(n),n&&(u||o===r))return n.replace(ou,"");if(!n||!(o=Nt(o)))return n;var y=sr(n),_=gd(y,sr(o));return on(y,_).join("")}function C_(n,o){var u=G,y=j;if(Ge(o)){var _="separator"in o?o.separator:_;u="length"in o?xe(o.length):u,y="omission"in o?Nt(o.omission):y}n=ke(n);var T=n.length;if(Xn(n)){var P=sr(n);T=P.length}if(u>=T)return n;var I=u-Jn(y);if(I<1)return y;var z=P?on(P,0,I).join(""):n.slice(0,I);if(_===r)return z+y;if(P&&(I+=z.length-I),al(_)){if(n.slice(I).search(_)){var V,X=z;for(_.global||(_=Su(_.source,ke(Ff.exec(_))+"g")),_.lastIndex=0;V=_.exec(X);)var ee=V.index;z=z.slice(0,ee===r?I:ee)}}else if(n.indexOf(Nt(_),I)!=I){var oe=z.lastIndexOf(_);oe>-1&&(z=z.slice(0,oe))}return z+y}function k_(n){return n=ke(n),n&&U0.test(n)?n.replace(If,aw):n}var $_=oi(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),ll=ap("toUpperCase");function ih(n,o,u){return n=ke(n),o=u?r:o,o===r?tw(n)?lw(n):Zb(n):n.match(o)||[]}var oh=_e(function(n,o){try{return Ft(n,r,o)}catch(u){return ol(u)?u:new be(u)}}),I_=Dr(function(n,o){return Vt(o,function(u){u=br(u),Mr(n,u,nl(n[u],n))}),n});function L_(n){var o=n==null?0:n.length,u=pe();return n=o?Be(n,function(y){if(typeof y[1]!="function")throw new Yt(l);return[u(y[0]),y[1]]}):[],_e(function(y){for(var _=-1;++_<o;){var T=n[_];if(Ft(T[0],this,y))return Ft(T[1],this,y)}})}function M_(n){return a1(Jt(n,g))}function cl(n){return function(){return n}}function F_(n,o){return n==null||n!==n?o:n}var D_=up(),N_=up(!0);function $t(n){return n}function fl(n){return Nd(typeof n=="function"?n:Jt(n,g))}function j_(n){return zd(Jt(n,g))}function z_(n,o){return Wd(n,Jt(o,g))}var W_=_e(function(n,o){return function(u){return Mi(u,n,o)}}),U_=_e(function(n,o){return function(u){return Mi(n,u,o)}});function dl(n,o,u){var y=ct(o),_=va(o,y);u==null&&!(Ge(o)&&(_.length||!y.length))&&(u=o,o=n,n=this,_=va(o,ct(o)));var T=!(Ge(u)&&"chain"in u)||!!u.chain,P=jr(n);return Vt(_,function(I){var z=o[I];n[I]=z,P&&(n.prototype[I]=function(){var V=this.__chain__;if(T||V){var X=n(this.__wrapped__),ee=X.__actions__=Pt(this.__actions__);return ee.push({func:z,args:arguments,thisArg:n}),X.__chain__=V,X}return z.apply(n,Jr([this.value()],arguments))})}),n}function B_(){return dt._===this&&(dt._=gw),this}function pl(){}function H_(n){return n=xe(n),_e(function(o){return Ud(o,n)})}var q_=Hu(Be),Z_=Hu(ld),G_=Hu(gu);function ah(n){return Xu(n)?mu(br(n)):E1(n)}function K_(n){return function(o){return n==null?r:An(n,o)}}var V_=cp(),Y_=cp(!0);function hl(){return[]}function gl(){return!1}function X_(){return{}}function J_(){return""}function Q_(){return!0}function eO(n,o){if(n=xe(n),n<1||n>te)return[];var u=Q,y=bt(n,Q);o=pe(o),n-=Q;for(var _=bu(y,o);++u<n;)o(u);return _}function tO(n){return we(n)?Be(n,br):jt(n)?[n]:Pt(Ap(ke(n)))}function rO(n){var o=++pw;return ke(n)+o}var nO=Ea(function(n,o){return n+o},0),iO=qu("ceil"),oO=Ea(function(n,o){return n/o},1),aO=qu("floor");function sO(n){return n&&n.length?ma(n,$t,Cu):r}function uO(n,o){return n&&n.length?ma(n,pe(o,2),Cu):r}function lO(n){return dd(n,$t)}function cO(n,o){return dd(n,pe(o,2))}function fO(n){return n&&n.length?ma(n,$t,Lu):r}function dO(n,o){return n&&n.length?ma(n,pe(o,2),Lu):r}var pO=Ea(function(n,o){return n*o},1),hO=qu("round"),gO=Ea(function(n,o){return n-o},0);function mO(n){return n&&n.length?yu(n,$t):0}function vO(n,o){return n&&n.length?yu(n,pe(o,2)):0}return A.after=jS,A.ary=Dp,A.assign=AE,A.assignIn=Xp,A.assignInWith=Fa,A.assignWith=TE,A.at=RE,A.before=Np,A.bind=nl,A.bindAll=I_,A.bindKey=jp,A.castArray=XS,A.chain=Lp,A.chunk=ax,A.compact=sx,A.concat=ux,A.cond=L_,A.conforms=M_,A.constant=cl,A.countBy=mS,A.create=PE,A.curry=zp,A.curryRight=Wp,A.debounce=Up,A.defaults=CE,A.defaultsDeep=kE,A.defer=zS,A.delay=WS,A.difference=lx,A.differenceBy=cx,A.differenceWith=fx,A.drop=dx,A.dropRight=px,A.dropRightWhile=hx,A.dropWhile=gx,A.fill=mx,A.filter=yS,A.flatMap=xS,A.flatMapDeep=SS,A.flatMapDepth=ES,A.flatten=Cp,A.flattenDeep=vx,A.flattenDepth=yx,A.flip=US,A.flow=D_,A.flowRight=N_,A.fromPairs=bx,A.functions=NE,A.functionsIn=jE,A.groupBy=_S,A.initial=xx,A.intersection=Sx,A.intersectionBy=Ex,A.intersectionWith=_x,A.invert=WE,A.invertBy=UE,A.invokeMap=AS,A.iteratee=fl,A.keyBy=TS,A.keys=ct,A.keysIn=kt,A.map=Ca,A.mapKeys=HE,A.mapValues=qE,A.matches=j_,A.matchesProperty=z_,A.memoize=$a,A.merge=ZE,A.mergeWith=Jp,A.method=W_,A.methodOf=U_,A.mixin=dl,A.negate=Ia,A.nthArg=H_,A.omit=GE,A.omitBy=KE,A.once=BS,A.orderBy=RS,A.over=q_,A.overArgs=HS,A.overEvery=Z_,A.overSome=G_,A.partial=il,A.partialRight=Bp,A.partition=PS,A.pick=VE,A.pickBy=Qp,A.property=ah,A.propertyOf=K_,A.pull=Rx,A.pullAll=$p,A.pullAllBy=Px,A.pullAllWith=Cx,A.pullAt=kx,A.range=V_,A.rangeRight=Y_,A.rearg=qS,A.reject=$S,A.remove=$x,A.rest=ZS,A.reverse=tl,A.sampleSize=LS,A.set=XE,A.setWith=JE,A.shuffle=MS,A.slice=Ix,A.sortBy=NS,A.sortedUniq=zx,A.sortedUniqBy=Wx,A.split=x_,A.spread=GS,A.tail=Ux,A.take=Bx,A.takeRight=Hx,A.takeRightWhile=qx,A.takeWhile=Zx,A.tap=sS,A.throttle=KS,A.thru=Pa,A.toArray=Kp,A.toPairs=eh,A.toPairsIn=th,A.toPath=tO,A.toPlainObject=Yp,A.transform=QE,A.unary=VS,A.union=Gx,A.unionBy=Kx,A.unionWith=Vx,A.uniq=Yx,A.uniqBy=Xx,A.uniqWith=Jx,A.unset=e_,A.unzip=rl,A.unzipWith=Ip,A.update=t_,A.updateWith=r_,A.values=ui,A.valuesIn=n_,A.without=Qx,A.words=ih,A.wrap=YS,A.xor=eS,A.xorBy=tS,A.xorWith=rS,A.zip=nS,A.zipObject=iS,A.zipObjectDeep=oS,A.zipWith=aS,A.entries=eh,A.entriesIn=th,A.extend=Xp,A.extendWith=Fa,dl(A,A),A.add=nO,A.attempt=oh,A.camelCase=s_,A.capitalize=rh,A.ceil=iO,A.clamp=i_,A.clone=JS,A.cloneDeep=eE,A.cloneDeepWith=tE,A.cloneWith=QS,A.conformsTo=rE,A.deburr=nh,A.defaultTo=F_,A.divide=oO,A.endsWith=u_,A.eq=lr,A.escape=l_,A.escapeRegExp=c_,A.every=vS,A.find=bS,A.findIndex=Rp,A.findKey=$E,A.findLast=wS,A.findLastIndex=Pp,A.findLastKey=IE,A.floor=aO,A.forEach=Mp,A.forEachRight=Fp,A.forIn=LE,A.forInRight=ME,A.forOwn=FE,A.forOwnRight=DE,A.get=sl,A.gt=nE,A.gte=iE,A.has=zE,A.hasIn=ul,A.head=kp,A.identity=$t,A.includes=OS,A.indexOf=wx,A.inRange=o_,A.invoke=BE,A.isArguments=Pn,A.isArray=we,A.isArrayBuffer=oE,A.isArrayLike=Ct,A.isArrayLikeObject=et,A.isBoolean=aE,A.isBuffer=an,A.isDate=sE,A.isElement=uE,A.isEmpty=lE,A.isEqual=cE,A.isEqualWith=fE,A.isError=ol,A.isFinite=dE,A.isFunction=jr,A.isInteger=Hp,A.isLength=La,A.isMap=qp,A.isMatch=pE,A.isMatchWith=hE,A.isNaN=gE,A.isNative=mE,A.isNil=yE,A.isNull=vE,A.isNumber=Zp,A.isObject=Ge,A.isObjectLike=Je,A.isPlainObject=Wi,A.isRegExp=al,A.isSafeInteger=bE,A.isSet=Gp,A.isString=Ma,A.isSymbol=jt,A.isTypedArray=si,A.isUndefined=wE,A.isWeakMap=xE,A.isWeakSet=SE,A.join=Ox,A.kebabCase=f_,A.last=er,A.lastIndexOf=Ax,A.lowerCase=d_,A.lowerFirst=p_,A.lt=EE,A.lte=_E,A.max=sO,A.maxBy=uO,A.mean=lO,A.meanBy=cO,A.min=fO,A.minBy=dO,A.stubArray=hl,A.stubFalse=gl,A.stubObject=X_,A.stubString=J_,A.stubTrue=Q_,A.multiply=pO,A.nth=Tx,A.noConflict=B_,A.noop=pl,A.now=ka,A.pad=h_,A.padEnd=g_,A.padStart=m_,A.parseInt=v_,A.random=a_,A.reduce=CS,A.reduceRight=kS,A.repeat=y_,A.replace=b_,A.result=YE,A.round=hO,A.runInContext=N,A.sample=IS,A.size=FS,A.snakeCase=w_,A.some=DS,A.sortedIndex=Lx,A.sortedIndexBy=Mx,A.sortedIndexOf=Fx,A.sortedLastIndex=Dx,A.sortedLastIndexBy=Nx,A.sortedLastIndexOf=jx,A.startCase=S_,A.startsWith=E_,A.subtract=gO,A.sum=mO,A.sumBy=vO,A.template=__,A.times=eO,A.toFinite=zr,A.toInteger=xe,A.toLength=Vp,A.toLower=O_,A.toNumber=tr,A.toSafeInteger=OE,A.toString=ke,A.toUpper=A_,A.trim=T_,A.trimEnd=R_,A.trimStart=P_,A.truncate=C_,A.unescape=k_,A.uniqueId=rO,A.upperCase=$_,A.upperFirst=ll,A.each=Mp,A.eachRight=Fp,A.first=kp,dl(A,(function(){var n={};return vr(A,function(o,u){Fe.call(A.prototype,u)||(n[u]=o)}),n})(),{chain:!1}),A.VERSION=i,Vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){A[n].placeholder=A}),Vt(["drop","take"],function(n,o){Te.prototype[n]=function(u){u=u===r?1:st(xe(u),0);var y=this.__filtered__&&!o?new Te(this):this.clone();return y.__filtered__?y.__takeCount__=bt(u,y.__takeCount__):y.__views__.push({size:bt(u,Q),type:n+(y.__dir__<0?"Right":"")}),y},Te.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Vt(["filter","map","takeWhile"],function(n,o){var u=o+1,y=u==q||u==J;Te.prototype[n]=function(_){var T=this.clone();return T.__iteratees__.push({iteratee:pe(_,3),type:u}),T.__filtered__=T.__filtered__||y,T}}),Vt(["head","last"],function(n,o){var u="take"+(o?"Right":"");Te.prototype[n]=function(){return this[u](1).value()[0]}}),Vt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");Te.prototype[n]=function(){return this.__filtered__?new Te(this):this[u](1)}}),Te.prototype.compact=function(){return this.filter($t)},Te.prototype.find=function(n){return this.filter(n).head()},Te.prototype.findLast=function(n){return this.reverse().find(n)},Te.prototype.invokeMap=_e(function(n,o){return typeof n=="function"?new Te(this):this.map(function(u){return Mi(u,n,o)})}),Te.prototype.reject=function(n){return this.filter(Ia(pe(n)))},Te.prototype.slice=function(n,o){n=xe(n);var u=this;return u.__filtered__&&(n>0||o<0)?new Te(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=xe(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},Te.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Te.prototype.toArray=function(){return this.take(Q)},vr(Te.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),y=/^(?:head|last)$/.test(o),_=A[y?"take"+(o=="last"?"Right":""):o],T=y||/^find/.test(o);_&&(A.prototype[o]=function(){var P=this.__wrapped__,I=y?[1]:arguments,z=P instanceof Te,V=I[0],X=z||we(P),ee=function(Oe){var Re=_.apply(A,Jr([Oe],I));return y&&oe?Re[0]:Re};X&&u&&typeof V=="function"&&V.length!=1&&(z=X=!1);var oe=this.__chain__,le=!!this.__actions__.length,he=T&&!oe,Se=z&&!le;if(!T&&X){P=Se?P:new Te(this);var ge=n.apply(P,I);return ge.__actions__.push({func:Pa,args:[ee],thisArg:r}),new Xt(ge,oe)}return he&&Se?n.apply(this,I):(ge=this.thru(ee),he?y?ge.value()[0]:ge.value():ge)})}),Vt(["pop","push","shift","sort","splice","unshift"],function(n){var o=ta[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",y=/^(?:pop|shift)$/.test(n);A.prototype[n]=function(){var _=arguments;if(y&&!this.__chain__){var T=this.value();return o.apply(we(T)?T:[],_)}return this[u](function(P){return o.apply(we(P)?P:[],_)})}}),vr(Te.prototype,function(n,o){var u=A[o];if(u){var y=u.name+"";Fe.call(ri,y)||(ri[y]=[]),ri[y].push({name:o,func:u})}}),ri[Sa(r,h).name]=[{name:"wrapper",func:r}],Te.prototype.clone=kw,Te.prototype.reverse=$w,Te.prototype.value=Iw,A.prototype.at=uS,A.prototype.chain=lS,A.prototype.commit=cS,A.prototype.next=fS,A.prototype.plant=pS,A.prototype.reverse=hS,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=gS,A.prototype.first=A.prototype.head,Ri&&(A.prototype[Ri]=dS),A}),Qn=cw();xn?((xn.exports=Qn)._=Qn,fu._=Qn):dt._=Qn}).call(Jk)})(go,go.exports)),go.exports}var Ve=Qk();const Ec={FdSave:nt.FdSave,FdWarningDanger:nt.FdWarningDanger,FdInfoCircle:nt.FdInfoCircle,FdInfoBold:nt.FdInfoBold};var pf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(pf||{}),zn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(zn||{}),pi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(pi||{});const Ry={[zn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[zn.DANGER]:{icon:"red-500",button:"primary-dark"},[zn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Kl=({color:e=zn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...a})=>{const s=Ry[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${s}`:`text-white bg-${s} border border-${s} hover:border-white hover:bg-primary-hover hover:text-white`;return D.jsx("button",{autoFocus:i,className:We("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:r})},e$=({name:e,color:t=zn.PRIMARY,className:r="w-8 h-8"})=>{const i=Ec[e]||Ec.FdInfoCircle,a=`text-${Ry[t].icon}`;return D.jsx(i,{className:We(r,a)})},t$=({id:e,title:t,message:r,icon:i,type:a,color:s,zIndex:l=3e3,views:c,width:f=520,hasOverlay:v=!0,container:m,onClose:g,onEdit:p})=>{const b=w=>{g({id:e,reason:w})};W.useEffect(()=>{function w(h){h.key==="Escape"&&b(pi.CANCELED)}return window.addEventListener("keyup",w),()=>{window.removeEventListener("keyup",w)}},[]);const x=Ve.merge(Ve.values(c==null?void 0:c.toggles).flatMap(w=>w.value?w.warnings||[]:[]),c==null?void 0:c.tips),d=(w,h)=>{var E;if(!(c!=null&&c.toggles))return;const S=Ve.cloneDeep(c);(E=S.toggles)!=null&&E[w]&&(S.toggles[w].value=h),p({id:e,views:S})};return Do.createPortal(D.jsx(ws,{appear:!0,show:!0,as:W.Fragment,children:D.jsx("div",{className:We("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":v}),style:{zIndex:l},onClick:()=>b(pi.CANCELED),children:D.jsx(ws.Child,{as:W.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:D.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:f},onClick:w=>w.stopPropagation(),children:D.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?D.jsx("div",{className:"flex items-center justify-center",children:D.jsx(e$,{name:i,color:s,className:"w-6 h-6"})}):null,D.jsx(r$,{condition:t,children:D.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),D.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),D.jsx("div",{className:"text-xs text-white",children:Ve.values(c==null?void 0:c.toggles).map(w=>D.jsx("div",{children:D.jsxs("label",{htmlFor:w.key,className:"flex items-center",children:[D.jsx(py,{size:"xs",value:w.value,onChange:h=>d(w.key,h)}),D.jsx("span",{className:"ml-1",children:w.title})]})},w.key))}),D.jsx(n$,{warnings:x}),D.jsx("div",{className:"flex items-center gap-4",children:a===pf.CONFIRM?D.jsxs(D.Fragment,{children:[D.jsx(Kl,{autoFocus:!0,color:s,onClick:()=>b(pi.CONFIRMED),children:"Confirm"}),D.jsx(Kl,{color:s,variant:"outlined",onClick:()=>b(pi.CANCELED),children:"Cancel"})]}):D.jsx(Kl,{autoFocus:!0,onClick:()=>b(),children:"OK"})})]})})})})}),m||document.body)},r$=e=>e.condition?D.jsx(D.Fragment,{children:e.children}):null,n$=e=>e.warnings?D.jsx(ws,{appear:!0,show:!!e.warnings.length,as:W.Fragment,children:D.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>D.jsx(ws.Child,{as:W.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:D.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[D.jsx(nt.FdWarningDanger,{className:We({"h-3 w-3":!0,"text-yellow-500":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),D.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var Py=(e=>(e[e.MIN=.5]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(Py||{});const i$=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:a})=>D.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[D.jsx(nt.FdMinusNaked,{onClick:a,className:We("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),D.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),D.jsx(nt.FdPlusNaked,{onClick:i,className:We("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),o$=$.forwardRef(((e,t)=>$.createElement(yn.span,Xe({},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}})))),a$=o$;function pm(e){const t=$.useRef({value:e,previous:e});return $.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[Cy]=Gc("Tooltip",[Ds]),hf=Ds(),s$=700,[dM,u$]=Cy("TooltipProvider",{isOpenDelayed:!0,delayDuration:s$,onOpen:()=>{},onClose:()=>{}}),[l$,Bs]=Cy("Tooltip"),c$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:a=!1,onOpenChange:s,delayDuration:l}=e,c=u$("Tooltip",t),f=hf(t),[v,m]=$.useState(null),g=Cv(),p=$.useRef(0),b=l??c.delayDuration,x=$.useRef(!1),{onOpen:d,onClose:w}=c,[h=!1,S]=Uv({prop:i,defaultProp:a,onChange:k=>{k&&(document.dispatchEvent(new CustomEvent("tooltip.open")),d()),s==null||s(k)}}),E=$.useMemo((()=>h?x.current?"delayed-open":"instant-open":"closed"),[h]),R=$.useCallback((()=>{window.clearTimeout(p.current),x.current=!1,S(!0)}),[S]),O=$.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{x.current=!0,S(!0)}),b)}),[b,S]);return $.useEffect((()=>()=>window.clearTimeout(p.current)),[]),$.createElement(jv,f,$.createElement(l$,{scope:t,contentId:g,open:h,stateAttribute:E,trigger:v,onTriggerChange:m,onTriggerEnter:$.useCallback((()=>{c.isOpenDelayed?O():R()}),[c.isOpenDelayed,O,R]),onOpen:$.useCallback(R,[R]),onClose:$.useCallback((()=>{window.clearTimeout(p.current),S(!1),w()}),[S,w])},r))},f$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,a=Bs("TooltipTrigger",r),s=hf(r),l=vn(t,a.onTriggerChange),c=$.useRef(!1),f=$.useCallback((()=>c.current=!1),[]);return $.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),$.createElement(zv,Xe({asChild:!0},s),$.createElement(yn.button,Xe({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},i,{ref:l,onMouseEnter:Bt(e.onMouseEnter,a.onTriggerEnter),onMouseLeave:Bt(e.onMouseLeave,a.onClose),onMouseDown:Bt(e.onMouseDown,(()=>{a.onClose(),c.current=!0,document.addEventListener("mouseup",f,{once:!0})})),onFocus:Bt(e.onFocus,(()=>{c.current||a.onOpen()})),onBlur:Bt(e.onBlur,a.onClose),onClick:Bt(e.onClick,(v=>{v.detail===0&&a.onClose()}))})))})),d$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,a=Bs("TooltipContent",e.__scopeTooltip);return $.createElement(qc,{present:r||a.open},$.createElement(p$,Xe({ref:t},i)))})),p$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":a,portalled:s=!0,...l}=e,c=Bs("TooltipContent",r),f=hf(r),v=s?Zc:$.Fragment,{onClose:m}=c;return Lv((()=>m())),$.useEffect((()=>(document.addEventListener("tooltip.open",m),()=>document.removeEventListener("tooltip.open",m))),[m]),$.createElement(v,null,$.createElement(h$,{__scopeTooltip:r}),$.createElement(Wv,Xe({"data-state":c.stateAttribute},f,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),$.createElement(Iv,null,i),$.createElement(a$,{id:c.contentId,role:"tooltip"},a||i)))}));function h$(e){const{__scopeTooltip:t}=e,r=Bs("CheckTriggerMoved",t),i=Fv(r.trigger),a=i==null?void 0:i.left,s=pm(a),l=i==null?void 0:i.top,c=pm(l),f=r.onClose;return $.useEffect((()=>{(s!==void 0&&s!==a||c!==void 0&&c!==l)&&f()}),[f,s,c,a,l]),null}const g$=c$,m$=f$,v$=d$;function y$(e){return D.jsxs(g$,{delayDuration:e.delayDuration,open:e.open,children:[D.jsx(m$,{tabIndex:-1,asChild:!0,children:D.jsx("span",{children:e.children})}),D.jsxs(v$,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&D.jsx("p",{className:"max-w-[240px] rounded-md bg-primary-light px-1 py-2 text-s font-semibold text-primary-dark",children:e.message}),typeof e.message!="string"&&e.message]})]})}const In=30,ds=500,b$=()=>D.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),w$=e=>{const[t,r]=W.useState(In),i=W.useRef(),a=t>In,s=W.useRef(null);return W.useEffect(()=>{e.isOpen&&!a&&r(ds),!e.isOpen&&a&&r(In)},[e.isOpen]),D.jsxs("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:[D.jsx(wO.Resizable,{enable:{top:!0,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},className:"w-full select-none border-t border-grey-900 bg-grey-800",size:{height:t,width:"100%"},maxHeight:700,minHeight:In,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(a?In:ds):i.current=Date.now()},onResize:(l,c,f)=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{var v;(v=e.onResize)==null||v.call(e),s.current=null})},onResizeStop:(l,c,f,v)=>{r(t+v.height)},handleComponent:{top:D.jsx(b$,{})}}),D.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Ve.kebabCase(e.path)}`,children:[D.jsxs("div",{className:We("flex justify-between items-center px-3 py-0.5",{"flex-1":!a}),children:[D.jsxs("div",{className:"group flex items-center justify-start",children:[D.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),D.jsx("span",{}),e.tipKey?D.jsx(ty,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,D.jsx("button",{className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:()=>{a?(r(In),e.onClose()):(r(ds),e.onOpen())},children:a?D.jsx(nt.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):D.jsx(nt.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),D.jsxs(us,{of:a,children:[D.jsx(us,{of:e.render,children:e.render}),D.jsx(us,{of:!e.render,children:e.children})]})]})]})};function ky({children:e,viewBox:t="0 0 24 24",...r}){return D.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...r,children:e})}function $y(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return D.jsx(ky,{viewBox:"0 0 24 24",...e,children:D.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function x$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:a,className:s="",style:l,...c}){const f=W.useRef(null),v=i||D.jsx($y,{}),m=c.checked??e;W.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const g=m||t,p=["base-checkbox-container",s].join(" ");return D.jsxs("label",{className:p,style:l,"data-invalid":r,children:[D.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:m,...c,"aria-invalid":r||void 0}),D.jsx("span",{className:"base-checkbox-control",children:g&&v&&W.cloneElement(v,{isChecked:m,isIndeterminate:t,className:"base-checkbox-icon"})}),a&&D.jsx("span",{className:"base-checkbox-label",children:a})]})}function S$(e,t){const r=W.useRef(!1);W.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Vl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Yl(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function fo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Iy(e,t){const r=t.slice(0,t.length-1);for(let i=0;i<r.length;i++)r[i]=e[r[i].toLowerCase()];return r}function Ly(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let r=t.lastIndexOf("");for(;r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function E$(e,t){const r=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let a=!0;for(let s=0;s<r.length;s++)i.indexOf(r[s])===-1&&(a=!1);return a}const Po={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Vl?173:189,"=":Vl?61:187,";":Vl?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},gr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},mo={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},gt={16:!1,18:!1,17:!1,91:!1},Ye={};for(let e=1;e<20;e++)Po["f".concat(e)]=111+e;let qe=[],Oo=null,My="all";const Br=new Map,_i=e=>Po[e.toLowerCase()]||gr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),_$=e=>Object.keys(Po).find(t=>Po[t]===e),O$=e=>Object.keys(gr).find(t=>gr[t]===e);function Fy(e){My=e||"all"}function Co(){return My||"all"}function A$(){return qe.slice(0)}function T$(){return qe.map(e=>_$(e)||O$(e)||String.fromCharCode(e))}function R$(){const e=[];return Object.keys(Ye).forEach(t=>{Ye[t].forEach(r=>{let{key:i,scope:a,mods:s,shortcut:l}=r;e.push({scope:a,shortcut:l,mods:s,keys:i.split("+").map(c=>_i(c))})})}),e}function P$(e){const t=e.target||e.srcElement,{tagName:r}=t;let i=!0;const a=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(a||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function C$(e){return typeof e=="string"&&(e=_i(e)),qe.indexOf(e)!==-1}function k$(e,t){let r,i;e||(e=Co());for(const a in Ye)if(Object.prototype.hasOwnProperty.call(Ye,a))for(r=Ye[a],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(l=>{let{element:c}=l;return gf(c)}):i++;Co()===e&&Fy(t||"all")}function $$(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=_i(e.key));const r=qe.indexOf(t);if(r>=0&&qe.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&qe.splice(0,qe.length),(t===93||t===224)&&(t=91),t in gt){gt[t]=!1;for(const i in gr)gr[i]===t&&(hr[i]=!1)}}function Dy(e){if(typeof e>"u")Object.keys(Ye).forEach(a=>{Array.isArray(Ye[a])&&Ye[a].forEach(s=>es(s)),delete Ye[a]}),gf(null);else if(Array.isArray(e))e.forEach(a=>{a.key&&es(a)});else if(typeof e=="object")e.key&&es(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let[a,s]=r;typeof a=="function"&&(s=a,a=""),es({key:e,scope:a,method:s,splitKey:"+"})}}const es=e=>{let{key:t,scope:r,method:i,splitKey:a="+"}=e;Ly(t).forEach(l=>{const c=l.split(a),f=c.length,v=c[f-1],m=v==="*"?"*":_i(v);if(!Ye[m])return;r||(r=Co());const g=f>1?Iy(gr,c):[],p=[];Ye[m]=Ye[m].filter(b=>{const d=(i?b.method===i:!0)&&b.scope===r&&E$(b.mods,g);return d&&p.push(b.element),!d}),p.forEach(b=>gf(b))})};function hm(e,t,r,i){if(t.element!==i)return;let a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(const s in gt)Object.prototype.hasOwnProperty.call(gt,s)&&(!gt[s]&&t.mods.indexOf(+s)>-1||gt[s]&&t.mods.indexOf(+s)===-1)&&(a=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(qe),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function gm(e,t){const r=Ye["*"];let i=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!hr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),qe.indexOf(i)===-1&&i!==229&&qe.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const f=mo[c];e[c]&&qe.indexOf(f)===-1?qe.push(f):!e[c]&&qe.indexOf(f)>-1?qe.splice(qe.indexOf(f),1):c==="metaKey"&&e[c]&&(qe=qe.filter(v=>v in mo||v===i))}),i in gt){gt[i]=!0;for(const c in gr)if(Object.prototype.hasOwnProperty.call(gr,c)){const f=mo[gr[c]];hr[c]=e[f]}if(!r)return}for(const c in gt)Object.prototype.hasOwnProperty.call(gt,c)&&(gt[c]=e[mo[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(qe.indexOf(17)===-1&&qe.push(17),qe.indexOf(18)===-1&&qe.push(18),gt[17]=!0,gt[18]=!0);const a=Co();if(r)for(let c=0;c<r.length;c++)r[c].scope===a&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&hm(e,r[c],a,t);if(!(i in Ye))return;const s=Ye[i],l=s.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&s[c].keydown||e.type==="keyup"&&s[c].keyup)&&s[c].key){const f=s[c],{splitKey:v}=f,m=f.key.split(v),g=[];for(let p=0;p<m.length;p++)g.push(_i(m[p]));g.sort().join("")===qe.sort().join("")&&hm(e,f,a,t)}}function hr(e,t,r){qe=[];const i=Ly(e);let a=[],s="all",l=document,c=0,f=!1,v=!0,m="+",g=!1,p=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(l=t.element),t.keyup&&(f=t.keyup),t.keydown!==void 0&&(v=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(m=t.splitKey),t.single===!0&&(p=!0)),typeof t=="string"&&(s=t),p&&Dy(e,s);c<i.length;c++)e=i[c].split(m),a=[],e.length>1&&(a=Iy(gr,e)),e=e[e.length-1],e=e==="*"?"*":_i(e),e in Ye||(Ye[e]=[]),Ye[e].push({keyup:f,keydown:v,scope:s,mods:a,shortcut:i[c],method:r,key:i[c],splitKey:m,element:l});if(typeof l<"u"&&window){if(!Br.has(l)){const b=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return gm(d,l)},x=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;gm(d,l),$$(d)};Br.set(l,{keydownListener:b,keyupListenr:x,capture:g}),Yl(l,"keydown",b,g),Yl(l,"keyup",x,g)}if(!Oo){const b=()=>{qe=[]};Oo={listener:b,capture:g},Yl(window,"focus",b,g)}}}function I$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Ye).forEach(r=>{Ye[r].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}function gf(e){const t=Object.values(Ye).flat();if(t.findIndex(i=>{let{element:a}=i;return a===e})<0){const{keydownListener:i,keyupListenr:a,capture:s}=Br.get(e)||{};i&&a&&(fo(e,"keyup",a,s),fo(e,"keydown",i,s),Br.delete(e))}if((t.length<=0||Br.size<=0)&&(Object.keys(Br).forEach(a=>{const{keydownListener:s,keyupListenr:l,capture:c}=Br.get(a)||{};s&&l&&(fo(a,"keyup",l,c),fo(a,"keydown",s,c),Br.delete(a))}),Br.clear(),Object.keys(Ye).forEach(a=>delete Ye[a]),Oo)){const{listener:a,capture:s}=Oo;fo(window,"focus",a,s),Oo=null}}const Xl={getPressedKeyString:T$,setScope:Fy,getScope:Co,deleteScope:k$,getPressedKeyCodes:A$,getAllKeyCodes:R$,isPressed:C$,filter:P$,trigger:I$,unbind:Dy,keyMap:Po,modifier:gr,modifierMap:mo};for(const e in Xl)Object.prototype.hasOwnProperty.call(Xl,e)&&(hr[e]=Xl[e]);if(typeof window<"u"){const e=window.hotkeys;hr.noConflict=t=>(t&&window.hotkeys===hr&&(window.hotkeys=e),hr),window.hotkeys=hr}hr.filter=()=>!0;function L$(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:a=!0}=r,s=W.useCallback((c,f)=>{a&&c.preventDefault(),setTimeout(()=>t(c,f))},i),l=()=>{hr.unbind(e,s)};W.useEffect(()=>(hr(e,r,s),l),[e,r,s])}const M$=e=>{const t=W.useRef(null);return W.useEffect(()=>{const r=i=>{t.current&&!t.current.contains(i.target)&&e(i)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function F$(e){const t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}function D$(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}function N$(e){const t=W.useRef(null);return W.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function j$(e){const[t,r]=W.useState(e),i=(s,l)=>{r(c=>({...c,features:{...c.features,[s]:{enabled:l}}}))},a=W.useCallback((...s)=>s.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:a}}const Ny=W.createContext(""),z$=e=>D.jsx(Ny.Provider,{value:e.value,children:e.children}),W$=()=>{const e=W.useContext(Ny);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function U$(e){const[t,r]=W.useState(e),i=W.useMemo(()=>B$(t,r),[]);return{state:t,actions:{...i,set:a=>{r(typeof a=="function"?a:s=>({...s,...a}))}}}}function B$(e,t=()=>{}){return Object.keys(e).reduce((i,a)=>({...i,[`set${Ve.upperFirst(a)}`]:s=>t(l=>({...l,[a]:s}))}),{})}const H$=(e,t,r={})=>{r={timeout:200,...r};const i=W.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return W.useCallback((s,...l)=>{a(),t&&s.detail===1&&(i.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...l)},[t,e,r.timeout])};function mt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(process.env.NODE_ENV!=="production"){var a=X$[e],s=a?typeof a=="function"?a.apply(null,r):a:"unknown error nr: "+e;throw Error("[Immer] "+s)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(l){return"'"+l+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Si(e){return!!e&&!!e[qt]}function Hn(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var a=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===J$})(e)||Array.isArray(e)||!!e[Em]||!!(!((t=e.constructor)===null||t===void 0)&&t[Em])||mf(e)||vf(e))}function ko(e,t,r){r===void 0&&(r=!1),Oi(e)===0?(r?Object.keys:xf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,a){return t(a,i,e)}))}function Oi(e){var t=e[qt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:mf(e)?2:vf(e)?3:0}function _c(e,t){return Oi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function q$(e,t){return Oi(e)===2?e.get(t):e[t]}function jy(e,t,r){var i=Oi(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function Z$(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function mf(e){return V$&&e instanceof Map}function vf(e){return Y$&&e instanceof Set}function Ln(e){return e.o||e.t}function yf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Q$(e);delete t[qt];for(var r=xf(t),i=0;i<r.length;i++){var a=r[i],s=t[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function $o(e,t){return t===void 0&&(t=!1),bf(e)||Si(e)||!Hn(e)||(Oi(e)>1&&(e.set=e.add=e.clear=e.delete=G$),Object.freeze(e),t&&ko(e,(function(r,i){return $o(i,!0)}),!0)),e}function G$(){mt(2)}function bf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Rr(e){var t=eI[e];return t||mt(18,e),t}function mm(){return process.env.NODE_ENV==="production"||Ei||mt(0),Ei}function Jl(e,t){t&&(Rr("Patches"),e.u=[],e.s=[],e.v=t)}function _s(e){Oc(e),e.p.forEach(K$),e.p=null}function Oc(e){e===Ei&&(Ei=e.l)}function vm(e){return Ei={p:[],l:Ei,h:e,m:!0,_:0}}function K$(e){var t=e[qt];t.i===0||t.i===1?t.j():t.g=!0}function Ql(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||Rr("ES5").S(t,e,i),i?(r[qt].P&&(_s(t),mt(4)),Hn(e)&&(e=Os(t,e),t.l||As(t,e)),t.u&&Rr("Patches").M(r[qt].t,e,t.u,t.s)):e=Os(t,r,[]),_s(t),t.u&&t.v(t.u,t.s),e!==Wy?e:void 0}function Os(e,t,r){if(bf(t))return t;var i=t[qt];if(!i)return ko(t,(function(c,f){return ym(e,i,t,c,f,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return As(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var a=i.i===4||i.i===5?i.o=yf(i.k):i.o,s=a,l=!1;i.i===3&&(s=new Set(a),a.clear(),l=!0),ko(s,(function(c,f){return ym(e,i,a,c,f,r,l)})),As(e,a,!1),r&&e.u&&Rr("Patches").N(i,r,e.u,e.s)}return i.o}function ym(e,t,r,i,a,s,l){if(process.env.NODE_ENV!=="production"&&a===r&&mt(5),Si(a)){var c=Os(e,a,s&&t&&t.i!==3&&!_c(t.R,i)?s.concat(i):void 0);if(jy(r,i,c),!Si(c))return;e.m=!1}else l&&r.add(a);if(Hn(a)&&!bf(a)){if(!e.h.D&&e._<1)return;Os(e,a),t&&t.A.l||As(e,a)}}function As(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&$o(t,r)}function ec(e,t){var r=e[qt];return(r?Ln(r):e)[t]}function bm(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function Ac(e){e.P||(e.P=!0,e.l&&Ac(e.l))}function tc(e){e.o||(e.o=yf(e.t))}function Tc(e,t,r){var i=mf(t)?Rr("MapSet").F(t,r):vf(t)?Rr("MapSet").T(t,r):e.O?(function(a,s){var l=Array.isArray(a),c={i:l?1:0,A:s?s.A:mm(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},f=c,v=Rc;l&&(f=[c],v=vo);var m=Proxy.revocable(f,v),g=m.revoke,p=m.proxy;return c.k=p,c.j=g,p})(t,r):Rr("ES5").J(t,r);return(r?r.A:mm()).p.push(i),i}function zy(e){return Si(e)||mt(22,e),(function t(r){if(!Hn(r))return r;var i,a=r[qt],s=Oi(r);if(a){if(!a.P&&(a.i<4||!Rr("ES5").K(a)))return a.t;a.I=!0,i=wm(r,s),a.I=!1}else i=wm(r,s);return ko(i,(function(l,c){a&&q$(a.t,l)===c||jy(i,l,t(c))})),s===3?new Set(i):i})(e)}function wm(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return yf(e)}var xm,Ei,wf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",V$=typeof Map<"u",Y$=typeof Set<"u",Sm=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Wy=wf?Symbol.for("immer-nothing"):((xm={})["immer-nothing"]=!0,xm),Em=wf?Symbol.for("immer-draftable"):"__$immer_draftable",qt=wf?Symbol.for("immer-state"):"__$immer_state",X$={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},J$=""+Object.prototype.constructor,xf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Q$=Object.getOwnPropertyDescriptors||function(e){var t={};return xf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},eI={},Rc={get:function(e,t){if(t===qt)return e;var r=Ln(e);if(!_c(r,t))return(function(a,s,l){var c,f=bm(s,l);return f?"value"in f?f.value:(c=f.get)===null||c===void 0?void 0:c.call(a.k):void 0})(e,r,t);var i=r[t];return e.I||!Hn(i)?i:i===ec(e.t,t)?(tc(e),e.o[t]=Tc(e.A.h,i,e)):i},has:function(e,t){return t in Ln(e)},ownKeys:function(e){return Reflect.ownKeys(Ln(e))},set:function(e,t,r){var i=bm(Ln(e),t);if(i!=null&&i.set)return i.set.call(e.k,r),!0;if(!e.P){var a=ec(Ln(e),t),s=a==null?void 0:a[qt];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Z$(r,a)&&(r!==void 0||_c(e.t,t)))return!0;tc(e),Ac(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return ec(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,tc(e),Ac(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ln(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){mt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){mt(12)}},vo={};ko(Rc,(function(e,t){vo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),vo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&mt(13),vo.set.call(this,e,t,void 0)},vo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&mt(14),Rc.set.call(this,e[0],t,r,e[0])};var tI=(function(){function e(r){var i=this;this.O=Sm,this.D=!0,this.produce=function(a,s,l){if(typeof a=="function"&&typeof s!="function"){var c=s;s=a;var f=i;return function(d){var w=this;d===void 0&&(d=c);for(var h=arguments.length,S=Array(h>1?h-1:0),E=1;E<h;E++)S[E-1]=arguments[E];return f.produce(d,(function(R){var O;return(O=s).call.apply(O,[w,R].concat(S))}))}}var v;if(typeof s!="function"&&mt(6),l!==void 0&&typeof l!="function"&&mt(7),Hn(a)){var m=vm(i),g=Tc(i,a,void 0),p=!0;try{v=s(g),p=!1}finally{p?_s(m):Oc(m)}return typeof Promise<"u"&&v instanceof Promise?v.then((function(d){return Jl(m,l),Ql(d,m)}),(function(d){throw _s(m),d})):(Jl(m,l),Ql(v,m))}if(!a||typeof a!="object"){if((v=s(a))===void 0&&(v=a),v===Wy&&(v=void 0),i.D&&$o(v,!0),l){var b=[],x=[];Rr("Patches").M(a,v,b,x),l(b,x)}return v}mt(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(v){for(var m=arguments.length,g=Array(m>1?m-1:0),p=1;p<m;p++)g[p-1]=arguments[p];return i.produceWithPatches(v,(function(b){return a.apply(void 0,[b].concat(g))}))};var l,c,f=i.produce(a,s,(function(v,m){l=v,c=m}));return typeof Promise<"u"&&f instanceof Promise?f.then((function(v){return[v,l,c]})):[f,l,c]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Hn(r)||mt(8),Si(r)&&(r=zy(r));var i=vm(this),a=Tc(this,r,void 0);return a[qt].C=!0,Oc(i),a},t.finishDraft=function(r,i){var a=r&&r[qt];process.env.NODE_ENV!=="production"&&(a&&a.C||mt(9),a.I&&mt(10));var s=a.A;return Jl(s,i),Ql(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Sm&&mt(20),this.O=r},t.applyPatches=function(r,i){var a;for(a=i.length-1;a>=0;a--){var s=i[a];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}a>-1&&(i=i.slice(a+1));var l=Rr("Patches").$;return Si(r)?l(r,i):this.produce(r,(function(c){return l(c,i)}))},e})(),Zt=new tI,rI=Zt.produce;Zt.produceWithPatches.bind(Zt);Zt.setAutoFreeze.bind(Zt);Zt.setUseProxies.bind(Zt);Zt.applyPatches.bind(Zt);Zt.createDraft.bind(Zt);Zt.finishDraft.bind(Zt);function nI(e){var t=W.useState(function(){return $o(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],W.useCallback(function(i){r(typeof i=="function"?rI(i):$o(i))},[])]}const iI=process.env.NODE_ENV==="development",rc=iI&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,oI=(e,t,r)=>{const[i,a]=nI(e),s=W.useRef(null);W.useEffect(()=>{var f;return r&&(s.current=rc==null?void 0:rc.connect({name:r,trace:!0}),(f=s.current)==null||f.init(e)),()=>{var v,m;(m=(v=s.current)==null?void 0:v.disconnect)==null||m.call(v)}},[]);const l=t&&typeof t=="object"?t:{},c=W.useMemo(()=>Object.keys(l).reduce((f,v)=>({...f,[v]:m=>(a(g=>{var p;l[v](g,m),(p=s.current)==null||p.send({type:l[v].name},zy(g))}),c)}),{}),[a]);return{state:i,dispatch:c}};function Zr(e){return typeof e=="function"}function Uy(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var nc=Uy(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
202
+ `+r.map(function(i,a){return a+1+") "+i.toString()}).join(`
203
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function Pc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Hs=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,a,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=fc(l),f=c.next();!f.done;f=c.next()){var v=f.value;v.remove(this)}}catch(d){t={error:d}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var m=this.initialTeardown;if(Zr(m))try{m()}catch(d){s=d instanceof nc?d.errors:[d]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var p=fc(g),b=p.next();!b.done;b=p.next()){var x=b.value;try{_m(x)}catch(d){s=s??[],d instanceof nc?s=ys(ys([],dc(s)),dc(d.errors)):s.push(d)}}}catch(d){i={error:d}}finally{try{b&&!b.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}}if(s)throw new nc(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)_m(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Pc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Pc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),By=Hs.EMPTY;function Hy(e){return e instanceof Hs||e&&"closed"in e&&Zr(e.remove)&&Zr(e.add)&&Zr(e.unsubscribe)}function _m(e){Zr(e)?e():e.unsubscribe()}var aI={Promise:void 0},sI={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,ys([e,t],dc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function uI(e){sI.setTimeout(function(){throw e})}function Om(){}function ps(e){e()}var qy=(function(e){Ms(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Hy(r)&&r.add(i)):i.destination=fI,i}return t.create=function(r,i,a){return new Cc(r,i,a)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Hs),lI=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){ts(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){ts(i)}else ts(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ts(r)}},e})(),Cc=(function(e){Ms(t,e);function t(r,i,a){var s=e.call(this)||this,l;return Zr(r)||!r?l={next:r??void 0,error:i??void 0,complete:a??void 0}:l=r,s.destination=new lI(l),s}return t})(qy);function ts(e){uI(e)}function cI(e){throw e}var fI={closed:!0,next:Om,error:cI,complete:Om},dI=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function pI(e){return e}function hI(e){return e.length===0?pI:e.length===1?e[0]:function(r){return e.reduce(function(i,a){return a(i)},r)}}var Am=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var a=this,s=mI(t)?t:new Cc(t,r,i);return ps(function(){var l=a,c=l.operator,f=l.source;s.add(c?c.call(s,f):f?a._subscribe(s):a._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Tm(r),new r(function(a,s){var l=new Cc({next:function(c){try{t(c)}catch(f){s(f),l.unsubscribe()}},error:s,complete:a});i.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[dI]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hI(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Tm(t),new t(function(i,a){var s;r.subscribe(function(l){return s=l},function(l){return a(l)},function(){return i(s)})})},e.create=function(t){return new e(t)},e})();function Tm(e){var t;return(t=e??aI.Promise)!==null&&t!==void 0?t:Promise}function gI(e){return e&&Zr(e.next)&&Zr(e.error)&&Zr(e.complete)}function mI(e){return e&&e instanceof qy||gI(e)&&Hy(e)}var vI=Uy(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),kr=(function(e){Ms(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new Rm(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new vI},t.prototype.next=function(r){var i=this;ps(function(){var a,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=fc(i.currentObservers),c=l.next();!c.done;c=l.next()){var f=c.value;f.next(r)}}catch(v){a={error:v}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var i=this;ps(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var a=i.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;ps(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,a=this,s=a.hasError,l=a.isStopped,c=a.observers;return s||l?By:(this.currentObservers=null,c.push(r),new Hs(function(){i.currentObservers=null,Pc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,a=i.hasError,s=i.thrownError,l=i.isStopped;a?r.error(s):l&&r.complete()},t.prototype.asObservable=function(){var r=new Am;return r.source=this,r},t.create=function(r,i){return new Rm(r,i)},t})(Am),Rm=(function(e){Ms(t,e);function t(r,i){var a=e.call(this)||this;return a.destination=r,a.source=i,a}return t.prototype.next=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.next)===null||a===void 0||a.call(i,r)},t.prototype.error=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.error)===null||a===void 0||a.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,a;return(a=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&a!==void 0?a:By},t})(kr),Zy=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(Zy||{}),Gy=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(Gy||{});const yI=new kr,bI=new kr,Ky=new kr;var Vy=(e=>(e.SAVE_ALL="save-all",e))(Vy||{});const wI=new kr;var Yy=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(Yy||{});const xI=new kr;var Xy=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Xy||{});const SI=new kr,EI=new kr;var Io=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(Io||{});const Ts=new kr,_I=new kr,Sf=255;var Ef=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Sf} characters (including extension)`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Ef||{});function Jy(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>Sf)throw new Error(Ef.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(r))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(r))throw new Error("Invalid name");return!0}function OI(e){if(!e)return null;if(typeof e=="string")try{Jy(e)}catch(t){return t.message}}function AI(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!Ve.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Ve.isObject(i)||Array.isArray(i))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function TI(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function qs(e){const{PLACEHOLDER_PREFIX:t,counter:r}=TI();let i=r;const a=[],s="@!",l=m=>(a.push(m),`${t}${i++}${s}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(m,g,p)=>g+l(p)),c=c.replace(/:\d{2}:\d{2}/g,l);const f=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let v=c.replace(f,"");for(let m=0;m<a.length;m++){const p=`${t}${m}${s}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),b=new RegExp(p,"g");v=v.replace(b,a[m])}return v}var _f=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(_f||{});const hn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Ke=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.LOCALIZATION="localization",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Ke||{}),bn=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(bn||{}),Of=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Of||{});const Qy="roles.json",e0="qodlyApp.json",RI="model.4DModel",t0="HTTPHandlers.json",r0="Shared/i18n.json";function PI(e){const t=Af(e);switch(t){case Ke.SETTINGS:return{filename:"Settings",type:t};case Ke.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case Ke.ROLES:return{filename:"Roles & Privileges",type:t};case Ke.LOCALIZATION:return{filename:"Localization",type:t};case Ke.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[i]=r[1].split(".");return{filename:i,type:t}}}}function Af(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Ke.MODEL;case r==="WebForm":return Ke.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===hn.METHODS):return Ke.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===hn.CLASSES):return Ke.CLASS;case e===Qy:return Ke.ROLES;case e===t0:return Ke.HTTP_HANDLERS;case e===e0:return Ke.SETTINGS;case e===r0:return Ke.LOCALIZATION;default:return Ke.TEXT}}function CI(e,t=!1){switch(e){case hn.REPORTS:case"report":return"QoDoc";case hn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case hn.CLASSES:case hn.METHODS:return t?"4qs":"4dm";default:return""}}function kI(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function $I(e,t,r){switch(t){case Ke.MOBILEFORM:return`${e}.MForm`;case Ke.WEBFORM:return`${e}.WebForm`;case Ke.REPORT:return`${e}.QoDoc`;case Ke.METHOD:case Ke.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class n0{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(a=>{t=a}),i=this.current.then(()=>t);return this.current=r,i}}function Tf(){const e=new n0;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const i0=Ve.curry((e,t,r)=>e&&Ve.get(r,e)===t),II=Ve.curry((e,t,r)=>Ve.get(r,e)!==t),LI=Ve.curry((e,t)=>Ve.get(t,"id")!==e),MI=Ve.curry((e,t)=>Ve.get(t,"id")===e),FI=Ve.curry((e,t)=>Ve.get(t,"path")===e);function DI(e="id",t,r){return r.findIndex(i0(e,t))!==-1}function NI(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function jI(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function o0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function zI(e){return e.type==="object"}function a0(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function s0(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!o0(e)}function WI(e){return a0(e)||s0(e)}function UI(e){return e.applyTo==="dataStore"}function BI(e){return e.applyTo==="dataClass"}function HI(e){return e.applyTo==="entity"}function qI(e){return e.applyTo==="entityCollection"}function ZI(e){return e.type==="entity"}function GI(e){return e.type==="entitysel"}function u0(e){return e.dataType==="array"}function l0(e){return e.dataType==="object"}function c0(e){return e.type==="scalar"}function KI(e){return u0(e)||l0(e)||c0(e)}const VI=e=>e!=null&&e.type==="entity",YI=e=>e.type==="entitysel",XI=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",JI=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",QI=e=>e.type==="scalar"&&e.dataType==="date";function eL(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function tL(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const yo="Qodly",f0="Location",d0="UserLanguage",p0="Title",Rf={[yo]:[{id:p0,dataType:"string",type:"scalar",namespace:yo,initialValue:""},{id:f0,dataType:"object",type:"scalar",namespace:yo,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:d0,dataType:"object",type:"scalar",namespace:yo,initialValue:{selected:{},supported:[]},schema:{type:"object",properties:[{name:"selected",type:"object",initialValue:{},attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]},{name:"supported",type:"array",initialValue:[],attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]}]}}]};var Lo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(Lo||{}),h0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(h0||{}),Pf=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Pf||{});const rL={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function nL(e){var s;let t={};try{const l=((s=e.match(/\/\/%attributes = (.*)/))==null?void 0:s[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:Lo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Pf.table}},...i}}function g0(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[Lo.capable,Lo.incapable].includes(e.preemptive)&&(t.preemptive=e.preemptive),e.publishedSoap&&(t.publishedSoap=!0,e.publishedWsdl&&(t.publishedWsdl=!0)),e.publishedWeb&&(t.publishedWeb=!0),e.publishedSql&&(t.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(t.published4DMobile=e.publishedRestOptions),JSON.stringify(t).replace(/"(true|false)"/g,"$1")}function iL(e,t,r=!1){const i=Ve.isString(t)?t:g0(t);if(!r&&m0(e))return e;const a=v0(e);return`//%attributes = ${i}\r
204
+ ${a}`}function m0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function v0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const oL=()=>Bc.uuid().replaceAll("-","").toUpperCase(),aL=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,""),ot="/rest/$designer",Ho="/rest/$designer-ext";function sL(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(i=>{typeof r[i]=="string"&&(r[i]=new Date(r[i]))}),r}}class kc extends Error{constructor(t,r,i){super(),this.url=t,this.response=r,this.data=i}log(){console.error("Error while sending the request",this)}}async function Me(e,t){var a;Ts.next({action:Io.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let s;try{const l=await r.json();((a=l==null?void 0:l.__ERROR)==null?void 0:a.some(f=>f.errCode===1651))&&Ts.next({action:Io.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),s=new kc(e,r,l)}catch{s=new kc(e,r)}throw s.log(),s}return await r.json()}function uL(e){return Ts.next({action:Io.REQUEST_SENT}),e}var xr={},ht={},Pm;function Fn(){if(Pm)return ht;Pm=1;var e=ht.ValidationError=function(d,w,h,S,E,R){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(k,U){return k+c(U)},"instance")):S!==void 0&&(this.property=S),d&&(this.message=d),h){var O=h.$id||h.id;this.schema=O||h}w!==void 0&&(this.instance=w),this.name=E,this.argument=R,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=ht.ValidatorResult=function(d,w,h,S){this.instance=d,this.schema=w,this.options=h,this.path=S.path,this.propertyPath=S.propertyPath,this.errors=[],this.throwError=h&&h.throwError,this.throwFirst=h&&h.throwFirst,this.throwAll=h&&h.throwAll,this.disableFormat=h&&h.disableFormat===!0};t.prototype.addError=function(d){var w;if(typeof d=="string")w=new e(d,this.instance,this.schema,this.path);else{if(!d)throw new Error("Missing error detail");if(!d.message)throw new Error("Missing error message");if(!d.name)throw new Error("Missing validator type");w=new e(d.message,this.instance,this.schema,this.path,d.name,d.argument)}if(this.errors.push(w),this.throwFirst)throw new i(this);if(this.throwError)throw w;return w},t.prototype.importErrors=function(d){typeof d=="string"||d&&d.validatorType?this.addError(d):d&&d.errors&&(this.errors=this.errors.concat(d.errors))};function r(x,d){return d+": "+x.toString()+`
205
+ `}t.prototype.toString=function(d){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),ht.ValidatorResultError=i;function i(x){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,i),this.instance=x.instance,this.schema=x.schema,this.options=x.options,this.errors=x.errors}i.prototype=new Error,i.prototype.constructor=i,i.prototype.name="Validation Error";var a=ht.SchemaError=function x(d,w){this.message=d,this.schema=w,Error.call(this,d),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,x)};a.prototype=Object.create(Error.prototype,{constructor:{value:a,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var s=ht.SchemaContext=function(d,w,h,S,E){this.schema=d,this.options=w,Array.isArray(h)?(this.path=h,this.propertyPath=h.reduce(function(R,O){return R+c(O)},"instance")):this.propertyPath=h,this.base=S,this.schemas=E};s.prototype.resolve=function(d){return b(this.base,d)},s.prototype.makeChild=function(d,w){var h=w===void 0?this.path:this.path.concat([w]),S=d.$id||d.id;let E=b(this.base,S||"");var R=new s(d,this.options,h,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=d),R};var l=ht.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(x){return typeof x=="string"&&parseFloat(x)===parseInt(x,10)&&!isNaN(x)},regex:function(x){var d=!0;try{new RegExp(x)}catch{d=!1}return d},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],ht.isFormat=function(d,w,h){if(typeof d=="string"&&l[w]!==void 0){if(l[w]instanceof RegExp)return l[w].test(d);if(typeof l[w]=="function")return l[w](d)}else if(h&&h.customFormats&&typeof h.customFormats[w]=="function")return h.customFormats[w](d);return!0};var c=ht.makeSuffix=function(d){return d=d.toString(),!d.match(/[.\s\[\]]/)&&!d.match(/^[\d]/)?"."+d:d.match(/^\d+$/)?"["+d+"]":"["+JSON.stringify(d)+"]"};ht.deepCompareStrict=function x(d,w){if(typeof d!=typeof w)return!1;if(Array.isArray(d))return!Array.isArray(w)||d.length!==w.length?!1:d.every(function(E,R){return x(d[R],w[R])});if(typeof d=="object"){if(!d||!w)return d===w;var h=Object.keys(d),S=Object.keys(w);return h.length!==S.length?!1:h.every(function(E){return x(d[E],w[E])})}return d===w};function f(x,d,w,h){typeof w=="object"?d[h]=g(x[h],w):x.indexOf(w)===-1&&d.push(w)}function v(x,d,w){d[w]=x[w]}function m(x,d,w,h){typeof d[h]!="object"||!d[h]?w[h]=d[h]:x[h]?w[h]=g(x[h],d[h]):w[h]=d[h]}function g(x,d){var w=Array.isArray(d),h=w&&[]||{};return w?(x=x||[],h=h.concat(x),d.forEach(f.bind(null,x,h))):(x&&typeof x=="object"&&Object.keys(x).forEach(v.bind(null,x,h)),Object.keys(d).forEach(m.bind(null,x,d,h))),h}ht.deepMerge=g,ht.objectGetPath=function(d,w){for(var h=w.split("/").slice(1),S;typeof(S=h.shift())=="string";){var E=decodeURIComponent(S.replace(/~0/,"~").replace(/~1/g,"/"));if(!(E in d))return;d=d[E]}return d};function p(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}ht.encodePath=function(d){return d.map(p).join("")},ht.getDecimalPlaces=function(d){var w=0;if(isNaN(d))return w;typeof d!="number"&&(d=Number(d));var h=d.toString().split("e");if(h.length===2){if(h[1][0]!=="-")return w;w=Number(h[1].slice(1))}var S=h[0].split(".");return S.length===2&&(w+=S[1].length),w},ht.isSchema=function(d){return typeof d=="object"&&d||typeof d=="boolean"};var b=ht.resolveUrl=function(d,w){const h=new URL(w,new URL(d,"resolve://"));if(h.protocol==="resolve:"){const{pathname:S,search:E,hash:R}=h;return S+E+R}return h.toString()};return ht}var ic,Cm;function lL(){if(Cm)return ic;Cm=1;var e=Fn(),t=e.ValidatorResult,r=e.SchemaError,i={};i.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var a=i.validators={};a.type=function(g,p,b,x){if(g===void 0)return null;var d=new t(g,p,b,x),w=Array.isArray(p.type)?p.type:[p.type];if(!w.some(this.testType.bind(this,g,p,b,x))){var h=w.map(function(S){if(S){var E=S.$id||S.id;return E?"<"+E+">":S+""}});d.addError({name:"type",argument:h,message:"is not of a type(s) "+h})}return d};function s(m,g,p,b,x){var d=g.throwError,w=g.throwAll;g.throwError=!1,g.throwAll=!1;var h=this.validateSchema(m,x,g,p);return g.throwError=d,g.throwAll=w,!h.valid&&b instanceof Function&&b(h),h.valid}a.anyOf=function(g,p,b,x){if(g===void 0)return null;var d=new t(g,p,b,x),w=new t(g,p,b,x);if(!Array.isArray(p.anyOf))throw new r("anyOf must be an array");if(!p.anyOf.some(s.bind(this,g,b,x,function(S){w.importErrors(S)}))){var h=p.anyOf.map(function(S,E){var R=S.$id||S.id;return R?"<"+R+">":S.title&&JSON.stringify(S.title)||S.$ref&&"<"+S.$ref+">"||"[subschema "+E+"]"});b.nestedErrors&&d.importErrors(w),d.addError({name:"anyOf",argument:h,message:"is not any of "+h.join(",")})}return d},a.allOf=function(g,p,b,x){if(g===void 0)return null;if(!Array.isArray(p.allOf))throw new r("allOf must be an array");var d=new t(g,p,b,x),w=this;return p.allOf.forEach(function(h,S){var E=w.validateSchema(g,h,b,x);if(!E.valid){var R=h.$id||h.id,O=R||h.title&&JSON.stringify(h.title)||h.$ref&&"<"+h.$ref+">"||"[subschema "+S+"]";d.addError({name:"allOf",argument:{id:O,length:E.errors.length,valid:E},message:"does not match allOf schema "+O+" with "+E.errors.length+" error[s]:"}),d.importErrors(E)}}),d},a.oneOf=function(g,p,b,x){if(g===void 0)return null;if(!Array.isArray(p.oneOf))throw new r("oneOf must be an array");var d=new t(g,p,b,x),w=new t(g,p,b,x),h=p.oneOf.filter(s.bind(this,g,b,x,function(E){w.importErrors(E)})).length,S=p.oneOf.map(function(E,R){var O=E.$id||E.id;return O||E.title&&JSON.stringify(E.title)||E.$ref&&"<"+E.$ref+">"||"[subschema "+R+"]"});return h!==1&&(b.nestedErrors&&d.importErrors(w),d.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),d},a.if=function(g,p,b,x){if(g===void 0)return null;if(!e.isSchema(p.if))throw new Error('Expected "if" keyword to be a schema');var d=s.call(this,g,b,x,null,p.if),w=new t(g,p,b,x),h;if(d){if(p.then===void 0)return;if(!e.isSchema(p.then))throw new Error('Expected "then" keyword to be a schema');h=this.validateSchema(g,p.then,b,x.makeChild(p.then)),w.importErrors(h)}else{if(p.else===void 0)return;if(!e.isSchema(p.else))throw new Error('Expected "else" keyword to be a schema');h=this.validateSchema(g,p.else,b,x.makeChild(p.else)),w.importErrors(h)}return w};function l(m,g){if(Object.hasOwnProperty.call(m,g))return m[g];if(g in m){for(;m=Object.getPrototypeOf(m);)if(Object.propertyIsEnumerable.call(m,g))return m[g]}}a.propertyNames=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=p.propertyNames!==void 0?p.propertyNames:{};if(!e.isSchema(w))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var h in g)if(l(g,h)!==void 0){var S=this.validateSchema(h,w,b,x.makeChild(w));d.importErrors(S)}return d}},a.properties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=p.properties||{};for(var h in w){var S=w[h];if(S!==void 0){if(S===null)throw new r('Unexpected null, expected schema in "properties"');typeof b.preValidateProperty=="function"&&b.preValidateProperty(g,h,S,b,x);var E=l(g,h),R=this.validateSchema(E,S,b,x.makeChild(S,h));R.instance!==d.instance[h]&&(d.instance[h]=R.instance),d.importErrors(R)}}return d}};function c(m,g,p,b,x,d){if(this.types.object(m)&&!(g.properties&&g.properties[x]!==void 0))if(g.additionalProperties===!1)d.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var w=g.additionalProperties||{};typeof p.preValidateProperty=="function"&&p.preValidateProperty(m,x,w,p,b);var h=this.validateSchema(m[x],w,p,b.makeChild(w,x));h.instance!==d.instance[x]&&(d.instance[x]=h.instance),d.importErrors(h)}}a.patternProperties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=p.patternProperties||{};for(var h in g){var S=!0;for(var E in w){var R=w[E];if(R!==void 0){if(R===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var O=new RegExp(E,"u")}catch{O=new RegExp(E)}if(O.test(h)){S=!1,typeof b.preValidateProperty=="function"&&b.preValidateProperty(g,h,R,b,x);var k=this.validateSchema(g[h],R,b,x.makeChild(R,h));k.instance!==d.instance[h]&&(d.instance[h]=k.instance),d.importErrors(k)}}}S&&c.call(this,g,p,b,x,h,d)}return d}},a.additionalProperties=function(g,p,b,x){if(this.types.object(g)){if(p.patternProperties)return null;var d=new t(g,p,b,x);for(var w in g)c.call(this,g,p,b,x,w,d);return d}},a.minProperties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=Object.keys(g);return w.length>=p.minProperties||d.addError({name:"minProperties",argument:p.minProperties,message:"does not meet minimum property length of "+p.minProperties}),d}},a.maxProperties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=Object.keys(g);return w.length<=p.maxProperties||d.addError({name:"maxProperties",argument:p.maxProperties,message:"does not meet maximum property length of "+p.maxProperties}),d}},a.items=function(g,p,b,x){var d=this;if(this.types.array(g)&&p.items!==void 0){var w=new t(g,p,b,x);return g.every(function(h,S){if(Array.isArray(p.items))var E=p.items[S]===void 0?p.additionalItems:p.items[S];else var E=p.items;if(E===void 0)return!0;if(E===!1)return w.addError({name:"items",message:"additionalItems not permitted"}),!1;var R=d.validateSchema(h,E,b,x.makeChild(E,S));return R.instance!==w.instance[S]&&(w.instance[S]=R.instance),w.importErrors(R),!0}),w}},a.contains=function(g,p,b,x){var d=this;if(this.types.array(g)&&p.contains!==void 0){if(!e.isSchema(p.contains))throw new Error('Expected "contains" keyword to be a schema');var w=new t(g,p,b,x),h=g.some(function(S,E){var R=d.validateSchema(S,p.contains,b,x.makeChild(p.contains,E));return R.errors.length===0});return h===!1&&w.addError({name:"contains",argument:p.contains,message:"must contain an item matching given schema"}),w}},a.minimum=function(g,p,b,x){if(this.types.number(g)){var d=new t(g,p,b,x);return p.exclusiveMinimum&&p.exclusiveMinimum===!0?g>p.minimum||d.addError({name:"minimum",argument:p.minimum,message:"must be greater than "+p.minimum}):g>=p.minimum||d.addError({name:"minimum",argument:p.minimum,message:"must be greater than or equal to "+p.minimum}),d}},a.maximum=function(g,p,b,x){if(this.types.number(g)){var d=new t(g,p,b,x);return p.exclusiveMaximum&&p.exclusiveMaximum===!0?g<p.maximum||d.addError({name:"maximum",argument:p.maximum,message:"must be less than "+p.maximum}):g<=p.maximum||d.addError({name:"maximum",argument:p.maximum,message:"must be less than or equal to "+p.maximum}),d}},a.exclusiveMinimum=function(g,p,b,x){if(typeof p.exclusiveMinimum!="boolean"&&this.types.number(g)){var d=new t(g,p,b,x),w=g>p.exclusiveMinimum;return w||d.addError({name:"exclusiveMinimum",argument:p.exclusiveMinimum,message:"must be strictly greater than "+p.exclusiveMinimum}),d}},a.exclusiveMaximum=function(g,p,b,x){if(typeof p.exclusiveMaximum!="boolean"&&this.types.number(g)){var d=new t(g,p,b,x),w=g<p.exclusiveMaximum;return w||d.addError({name:"exclusiveMaximum",argument:p.exclusiveMaximum,message:"must be strictly less than "+p.exclusiveMaximum}),d}};var f=function(g,p,b,x,d,w){if(this.types.number(g)){var h=p[d];if(h==0)throw new r(d+" cannot be zero");var S=new t(g,p,b,x),E=e.getDecimalPlaces(g),R=e.getDecimalPlaces(h),O=Math.max(E,R),k=Math.pow(10,O);return Math.round(g*k)%Math.round(h*k)!==0&&S.addError({name:d,argument:h,message:w+JSON.stringify(h)}),S}};a.multipleOf=function(g,p,b,x){return f.call(this,g,p,b,x,"multipleOf","is not a multiple of (divisible by) ")},a.divisibleBy=function(g,p,b,x){return f.call(this,g,p,b,x,"divisibleBy","is not divisible by (multiple of) ")},a.required=function(g,p,b,x){var d=new t(g,p,b,x);return g===void 0&&p.required===!0?d.addError({name:"required",message:"is required"}):this.types.object(g)&&Array.isArray(p.required)&&p.required.forEach(function(w){l(g,w)===void 0&&d.addError({name:"required",argument:w,message:"requires property "+JSON.stringify(w)})}),d},a.pattern=function(g,p,b,x){if(this.types.string(g)){var d=new t(g,p,b,x),w=p.pattern;try{var h=new RegExp(w,"u")}catch{h=new RegExp(w)}return g.match(h)||d.addError({name:"pattern",argument:p.pattern,message:"does not match pattern "+JSON.stringify(p.pattern.toString())}),d}},a.format=function(g,p,b,x){if(g!==void 0){var d=new t(g,p,b,x);return!d.disableFormat&&!e.isFormat(g,p.format,this)&&d.addError({name:"format",argument:p.format,message:"does not conform to the "+JSON.stringify(p.format)+" format"}),d}},a.minLength=function(g,p,b,x){if(this.types.string(g)){var d=new t(g,p,b,x),w=g.match(/[\uDC00-\uDFFF]/g),h=g.length-(w?w.length:0);return h>=p.minLength||d.addError({name:"minLength",argument:p.minLength,message:"does not meet minimum length of "+p.minLength}),d}},a.maxLength=function(g,p,b,x){if(this.types.string(g)){var d=new t(g,p,b,x),w=g.match(/[\uDC00-\uDFFF]/g),h=g.length-(w?w.length:0);return h<=p.maxLength||d.addError({name:"maxLength",argument:p.maxLength,message:"does not meet maximum length of "+p.maxLength}),d}},a.minItems=function(g,p,b,x){if(this.types.array(g)){var d=new t(g,p,b,x);return g.length>=p.minItems||d.addError({name:"minItems",argument:p.minItems,message:"does not meet minimum length of "+p.minItems}),d}},a.maxItems=function(g,p,b,x){if(this.types.array(g)){var d=new t(g,p,b,x);return g.length<=p.maxItems||d.addError({name:"maxItems",argument:p.maxItems,message:"does not meet maximum length of "+p.maxItems}),d}};function v(m,g,p){var b,x=p.length;for(b=g+1,x;b<x;b++)if(e.deepCompareStrict(m,p[b]))return!1;return!0}return a.uniqueItems=function(g,p,b,x){if(p.uniqueItems===!0&&this.types.array(g)){var d=new t(g,p,b,x);return g.every(v)||d.addError({name:"uniqueItems",message:"contains duplicate item"}),d}},a.dependencies=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x);for(var w in p.dependencies)if(g[w]!==void 0){var h=p.dependencies[w],S=x.makeChild(h,w);if(typeof h=="string"&&(h=[h]),Array.isArray(h))h.forEach(function(R){g[R]===void 0&&d.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(g,h,b,S);d.instance!==E.instance&&(d.instance=E.instance),E&&E.errors.length&&(d.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),d.importErrors(E))}}return d}},a.enum=function(g,p,b,x){if(g===void 0)return null;if(!Array.isArray(p.enum))throw new r("enum expects an array",p);var d=new t(g,p,b,x);return p.enum.some(e.deepCompareStrict.bind(null,g))||d.addError({name:"enum",argument:p.enum,message:"is not one of enum values: "+p.enum.map(String).join(",")}),d},a.const=function(g,p,b,x){if(g===void 0)return null;var d=new t(g,p,b,x);return e.deepCompareStrict(p.const,g)||d.addError({name:"const",argument:p.const,message:"does not exactly match expected constant: "+p.const}),d},a.not=a.disallow=function(g,p,b,x){var d=this;if(g===void 0)return null;var w=new t(g,p,b,x),h=p.not||p.disallow;return h?(Array.isArray(h)||(h=[h]),h.forEach(function(S){if(d.testType(g,p,b,x,S)){var E=S&&(S.$id||S.id),R=E||S;w.addError({name:"not",argument:R,message:"is of prohibited type "+R})}}),w):null},ic=i,ic}var rs={},km;function $c(){if(km)return rs;km=1;var e=Fn();rs.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return rs.scan=function(i,a){function s(m,g){if(!g||typeof g!="object")return;if(g.$ref){let d=e.resolveUrl(m,g.$ref);v[d]=v[d]?v[d]+1:0;return}var p=g.$id||g.id;let b=e.resolveUrl(m,p);var x=p?b:m;if(x){if(x.indexOf("#")<0&&(x+="#"),f[x]){if(!e.deepCompareStrict(f[x],g))throw new Error("Schema <"+x+"> already exists with different definition");return f[x]}f[x]=g,x[x.length-1]=="#"&&(f[x.substring(0,x.length-1)]=g)}l(x+"/items",Array.isArray(g.items)?g.items:[g.items]),l(x+"/extends",Array.isArray(g.extends)?g.extends:[g.extends]),s(x+"/additionalItems",g.additionalItems),c(x+"/properties",g.properties),s(x+"/additionalProperties",g.additionalProperties),c(x+"/definitions",g.definitions),c(x+"/patternProperties",g.patternProperties),c(x+"/dependencies",g.dependencies),l(x+"/disallow",g.disallow),l(x+"/allOf",g.allOf),l(x+"/anyOf",g.anyOf),l(x+"/oneOf",g.oneOf),s(x+"/not",g.not)}function l(m,g){if(Array.isArray(g))for(var p=0;p<g.length;p++)s(m+"/"+p,g[p])}function c(m,g){if(!(!g||typeof g!="object"))for(var p in g)s(m+"/"+p,g[p])}var f={},v={};return s(i,a),new t(f,v)},rs}var oc,$m;function cL(){if($m)return oc;$m=1;var e=lL(),t=Fn(),r=$c().scan,i=t.ValidatorResult,a=t.ValidatorResultError,s=t.SchemaError,l=t.SchemaContext,c="/",f=function g(){this.customFormats=Object.create(g.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(m),this.attributes=Object.create(e.validators)};f.prototype.customFormats={},f.prototype.schemas=null,f.prototype.types=null,f.prototype.attributes=null,f.prototype.unresolvedRefs=null,f.prototype.addSchema=function(p,b){var x=this;if(!p)return null;var d=r(b||c,p),w=b||p.$id||p.id;for(var h in d.id)this.schemas[h]=d.id[h];for(var h in d.ref)this.unresolvedRefs.push(h);return this.unresolvedRefs=this.unresolvedRefs.filter(function(S){return typeof x.schemas[S]>"u"}),this.schemas[w]},f.prototype.addSubSchemaArray=function(p,b){if(Array.isArray(b))for(var x=0;x<b.length;x++)this.addSubSchema(p,b[x])},f.prototype.addSubSchemaObject=function(p,b){if(!(!b||typeof b!="object"))for(var x in b)this.addSubSchema(p,b[x])},f.prototype.setSchemas=function(p){this.schemas=p},f.prototype.getSchema=function(p){return this.schemas[p]},f.prototype.validate=function(p,b,x,d){if(typeof b!="boolean"&&typeof b!="object"||b===null)throw new s("Expected `schema` to be an object or boolean");x||(x={});var w=b.$id||b.id;let h=t.resolveUrl(x.base,w||"");if(!d){d=new l(b,x,[],h,Object.create(this.schemas)),d.schemas[h]||(d.schemas[h]=b);var S=r(h,b);for(var E in S.id){var R=S.id[E];d.schemas[E]=R}}if(x.required&&p===void 0){var O=new i(p,b,x,d);return O.addError("is required, but is undefined"),O}var O=this.validateSchema(p,b,x,d);if(O){if(x.throwAll&&O.errors.length)throw new a(O)}else throw new Error("Result undefined");return O};function v(g){var p=typeof g=="string"?g:g.$ref;return typeof p=="string"?p:!1}f.prototype.validateSchema=function(p,b,x,d){var w=new i(p,b,x,d);if(typeof b=="boolean")b===!0?b={}:b===!1&&(b={type:[]});else if(!b)throw new Error("schema is undefined");if(b.extends)if(Array.isArray(b.extends)){var h={schema:b,ctx:d};b.extends.forEach(this.schemaTraverser.bind(this,h)),b=h.schema,h.schema=null,h.ctx=null,h=null}else b=t.deepMerge(b,this.superResolve(b.extends,d));var S=v(b);if(S){var E=this.resolve(b,S,d),R=new l(E.subschema,x,d.path,E.switchSchema,d.schemas);return this.validateSchema(p,E.subschema,x,R)}var O=x&&x.skipAttributes||[];for(var k in b)if(!e.ignoreProperties[k]&&O.indexOf(k)<0){var U=null,M=this.attributes[k];if(M)U=M.call(this,p,b,x,d);else if(x.allowUnknownAttributes===!1)throw new s("Unsupported attribute: "+k,b);U&&w.importErrors(U)}if(typeof x.rewrite=="function"){var F=x.rewrite.call(this,p,b,x,d);w.instance=F}return w},f.prototype.schemaTraverser=function(p,b){p.schema=t.deepMerge(p.schema,this.superResolve(b,p.ctx))},f.prototype.superResolve=function(p,b){var x=v(p);return x?this.resolve(p,x,b).subschema:p},f.prototype.resolve=function(p,b,x){if(b=x.resolve(b),x.schemas[b])return{subschema:x.schemas[b],switchSchema:b};let w=new URL(b,"thismessage::/").hash;var h=w&&w.length&&b.substr(0,b.length-w.length);if(!h||!x.schemas[h])throw new s("no such schema <"+b+">",p);var S=t.objectGetPath(x.schemas[h],w.substr(1));if(S===void 0)throw new s("no such schema "+w+" located in <"+h+">",p);return{subschema:S,switchSchema:b}},f.prototype.testType=function(p,b,x,d,w){if(w!==void 0){if(w===null)throw new s('Unexpected null in "type" keyword');if(typeof this.types[w]=="function")return this.types[w].call(this,p);if(w&&typeof w=="object"){var h=this.validateSchema(p,w,x,d);return h===void 0||!(h&&h.errors.length)}return!0}};var m=f.prototype.types={};return m.string=function(p){return typeof p=="string"},m.number=function(p){return typeof p=="number"&&isFinite(p)},m.integer=function(p){return typeof p=="number"&&p%1===0},m.boolean=function(p){return typeof p=="boolean"},m.array=function(p){return Array.isArray(p)},m.null=function(p){return p===null},m.date=function(p){return p instanceof Date},m.any=function(p){return!0},m.object=function(p){return p&&typeof p=="object"&&!Array.isArray(p)&&!(p instanceof Date)},oc=f,oc}var Im;function fL(){if(Im)return xr;Im=1;var e=xr.Validator=cL();return xr.ValidatorResult=Fn().ValidatorResult,xr.ValidatorResultError=Fn().ValidatorResultError,xr.ValidationError=Fn().ValidationError,xr.SchemaError=Fn().SchemaError,xr.SchemaScanResult=$c().SchemaScanResult,xr.scan=$c().scan,xr.validate=function(t,r,i){var a=new e;return a.validate(t,r,i)},xr}var dL=fL();const y0=(e,t,r)=>{const i=e instanceof RegExp?Lm(e,r):e,a=t instanceof RegExp?Lm(t,r):t,s=i!==null&&a!=null&&pL(i,a,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+i.length,s[1]),post:r.slice(s[1]+a.length)}},Lm=(e,t)=>{const r=t.match(e);return r?r[0]:null},pL=(e,t,r)=>{let i,a,s,l,c,f=r.indexOf(e),v=r.indexOf(t,f+1),m=f;if(f>=0&&v>0){if(e===t)return[f,v];for(i=[],s=r.length;m>=0&&!c;){if(m===f)i.push(m),f=r.indexOf(e,m+1);else if(i.length===1){const g=i.pop();g!==void 0&&(c=[g,v])}else a=i.pop(),a!==void 0&&a<s&&(s=a,l=v),v=r.indexOf(t,m+1);m=f<v&&f>=0?f:v}i.length&&l!==void 0&&(c=[s,l])}return c},b0="\0SLASH"+Math.random()+"\0",w0="\0OPEN"+Math.random()+"\0",Cf="\0CLOSE"+Math.random()+"\0",x0="\0COMMA"+Math.random()+"\0",S0="\0PERIOD"+Math.random()+"\0",hL=new RegExp(b0,"g"),gL=new RegExp(w0,"g"),mL=new RegExp(Cf,"g"),vL=new RegExp(x0,"g"),yL=new RegExp(S0,"g"),bL=/\\\\/g,wL=/\\{/g,xL=/\\}/g,SL=/\\,/g,EL=/\\./g;function ac(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function _L(e){return e.replace(bL,b0).replace(wL,w0).replace(xL,Cf).replace(SL,x0).replace(EL,S0)}function OL(e){return e.replace(hL,"\\").replace(gL,"{").replace(mL,"}").replace(vL,",").replace(yL,".")}function E0(e){if(!e)return[""];const t=[],r=y0("{","}",e);if(!r)return e.split(",");const{pre:i,body:a,post:s}=r,l=i.split(",");l[l.length-1]+="{"+a+"}";const c=E0(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function AL(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),bo(_L(e),!0).map(OL)):[]}function TL(e){return"{"+e+"}"}function RL(e){return/^-?0\d/.test(e)}function PL(e,t){return e<=t}function CL(e,t){return e>=t}function bo(e,t){const r=[],i=y0("{","}",e);if(!i)return[e];const a=i.pre,s=i.post.length?bo(i.post,!1):[""];if(/\$$/.test(i.pre))for(let l=0;l<s.length;l++){const c=a+"{"+i.body+"}"+s[l];r.push(c)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=l||c,v=i.body.indexOf(",")>=0;if(!f&&!v)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+Cf+i.post,bo(e)):[e];let m;if(f)m=i.body.split(/\.\./);else if(m=E0(i.body),m.length===1&&m[0]!==void 0&&(m=bo(m[0],!1).map(TL),m.length===1))return s.map(p=>i.pre+m[0]+p);let g;if(f&&m[0]!==void 0&&m[1]!==void 0){const p=ac(m[0]),b=ac(m[1]),x=Math.max(m[0].length,m[1].length);let d=m.length===3&&m[2]!==void 0?Math.abs(ac(m[2])):1,w=PL;b<p&&(d*=-1,w=CL);const S=m.some(RL);g=[];for(let E=p;w(E,b);E+=d){let R;if(c)R=String.fromCharCode(E),R==="\\"&&(R="");else if(R=String(E),S){const O=x-R.length;if(O>0){const k=new Array(O+1).join("0");E<0?R="-"+k+R.slice(1):R=k+R}}g.push(R)}}else{g=[];for(let p=0;p<m.length;p++)g.push.apply(g,bo(m[p],!1))}for(let p=0;p<g.length;p++)for(let b=0;b<s.length;b++){const x=a+g[p]+s[b];(!t||f||x)&&r.push(x)}}return r}const kL=1024*64,Rs=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>kL)throw new TypeError("pattern is too long")},$L={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},po=e=>e.replace(/[[\]\\-]/g,"\\$&"),IL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Mm=e=>e.join(""),LL=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],a=[];let s=r+1,l=!1,c=!1,f=!1,v=!1,m=r,g="";e:for(;s<e.length;){const d=e.charAt(s);if((d==="!"||d==="^")&&s===r+1){v=!0,s++;continue}if(d==="]"&&l&&!f){m=s+1;break}if(l=!0,d==="\\"&&!f){f=!0,s++;continue}if(d==="["&&!f){for(const[w,[h,S,E]]of Object.entries($L))if(e.startsWith(w,s)){if(g)return["$.",!1,e.length-r,!0];s+=w.length,E?a.push(h):i.push(h),c=c||S;continue e}}if(f=!1,g){d>g?i.push(po(g)+"-"+po(d)):d===g&&i.push(po(d)),g="",s++;continue}if(e.startsWith("-]",s+1)){i.push(po(d+"-")),s+=2;continue}if(e.startsWith("-",s+1)){g=d,s+=2;continue}i.push(po(d)),s++}if(m<s)return["",!1,0,!1];if(!i.length&&!a.length)return["$.",!1,e.length-r,!0];if(a.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!v){const d=i[0].length===2?i[0].slice(-1):i[0];return[IL(d),!1,m-r,!1]}const p="["+(v?"^":"")+Mm(i)+"]",b="["+(v?"":"^")+Mm(a)+"]";return[i.length&&a.length?"("+p+"|"+b+")":i.length?p:b,c,m-r,!0]},wo=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),ML=new Set(["!","?","+","*","@"]),Fm=e=>ML.has(e),FL="(?!(?:^|/)\\.\\.?(?:$|/))",ns="(?!\\.)",DL=new Set(["[","."]),NL=new Set(["..","."]),jL=new Set("().*{}+?[]^$\\!"),zL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),kf="[^/]",Dm=kf+"*?",Nm=kf+"+?";var ut,ft,qr,He,it,fn,Dn,dn,Er,Nn,Fo,qn,_0,gn,hs,Ic,O0;const Tt=class Tt{constructor(t,r,i={}){xt(this,qn);ve(this,"type");xt(this,ut);xt(this,ft);xt(this,qr,!1);xt(this,He,[]);xt(this,it);xt(this,fn);xt(this,Dn);xt(this,dn,!1);xt(this,Er);xt(this,Nn);xt(this,Fo,!1);this.type=t,t&&Qe(this,ft,!0),Qe(this,it,r),Qe(this,ut,re(this,it)?re(re(this,it),ut):this),Qe(this,Er,re(this,ut)===this?i:re(re(this,ut),Er)),Qe(this,Dn,re(this,ut)===this?[]:re(re(this,ut),Dn)),t==="!"&&!re(re(this,ut),dn)&&re(this,Dn).push(this),Qe(this,fn,re(this,it)?re(re(this,it),He).length:0)}get hasMagic(){if(re(this,ft)!==void 0)return re(this,ft);for(const t of re(this,He))if(typeof t!="string"&&(t.type||t.hasMagic))return Qe(this,ft,!0);return re(this,ft)}toString(){return re(this,Nn)!==void 0?re(this,Nn):this.type?Qe(this,Nn,this.type+"("+re(this,He).map(t=>String(t)).join("|")+")"):Qe(this,Nn,re(this,He).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Tt&&re(r,it)===this))throw new Error("invalid part: "+r);re(this,He).push(r)}}toJSON(){var r;const t=this.type===null?re(this,He).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...re(this,He).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===re(this,ut)||re(re(this,ut),dn)&&((r=re(this,it))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(re(this,ut)===this)return!0;if(!((r=re(this,it))!=null&&r.isStart()))return!1;if(re(this,fn)===0)return!0;const t=re(this,it);for(let i=0;i<re(this,fn);i++){const a=re(t,He)[i];if(!(a instanceof Tt&&a.type==="!"))return!1}return!0}isEnd(){var r,i,a;if(re(this,ut)===this||((r=re(this,it))==null?void 0:r.type)==="!")return!0;if(!((i=re(this,it))!=null&&i.isEnd()))return!1;if(!this.type)return(a=re(this,it))==null?void 0:a.isEnd();const t=re(this,it)?re(re(this,it),He).length:0;return re(this,fn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Tt(this.type,t);for(const i of re(this,He))r.copyIn(i);return r}static fromGlob(t,r={}){var a;const i=new Tt(null,void 0,r);return $e(a=Tt,gn,hs).call(a,t,i,0,r),i}toMMPattern(){if(this!==re(this,ut))return re(this,ut).toMMPattern();const t=this.toString(),[r,i,a,s]=this.toRegExpSource();if(!(a||re(this,ft)||re(this,Er).nocase&&!re(this,Er).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(re(this,Er).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return re(this,Er)}toRegExpSource(t){var f;const r=t??!!re(this,Er).dot;if(re(this,ut)===this&&$e(this,qn,_0).call(this),!this.type){const v=this.isStart()&&this.isEnd(),m=re(this,He).map(x=>{var E;const[d,w,h,S]=typeof x=="string"?$e(E=Tt,gn,O0).call(E,x,re(this,ft),v):x.toRegExpSource(t);return Qe(this,ft,re(this,ft)||h),Qe(this,qr,re(this,qr)||S),d}).join("");let g="";if(this.isStart()&&typeof re(this,He)[0]=="string"&&!(re(this,He).length===1&&NL.has(re(this,He)[0]))){const d=DL,w=r&&d.has(m.charAt(0))||m.startsWith("\\.")&&d.has(m.charAt(2))||m.startsWith("\\.\\.")&&d.has(m.charAt(4)),h=!r&&!t&&d.has(m.charAt(0));g=w?FL:h?ns:""}let p="";return this.isEnd()&&re(re(this,ut),dn)&&((f=re(this,it))==null?void 0:f.type)==="!"&&(p="(?:$|\\/)"),[g+m+p,wo(m),Qe(this,ft,!!re(this,ft)),re(this,qr)]}const i=this.type==="*"||this.type==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let s=$e(this,qn,Ic).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const v=this.toString();return Qe(this,He,[v]),this.type=null,Qe(this,ft,void 0),[v,wo(this.toString()),!1,!1]}let l=!i||t||r||!ns?"":$e(this,qn,Ic).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let c="";if(this.type==="!"&&re(this,Fo))c=(this.isStart()&&!r?ns:"")+Nm;else{const v=this.type==="!"?"))"+(this.isStart()&&!r&&!t?ns:"")+Dm+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=a+s+v}return[c,wo(s),Qe(this,ft,!!re(this,ft)),re(this,qr)]}};ut=new WeakMap,ft=new WeakMap,qr=new WeakMap,He=new WeakMap,it=new WeakMap,fn=new WeakMap,Dn=new WeakMap,dn=new WeakMap,Er=new WeakMap,Nn=new WeakMap,Fo=new WeakMap,qn=new WeakSet,_0=function(){if(this!==re(this,ut))throw new Error("should only call on root");if(re(this,dn))return this;this.toString(),Qe(this,dn,!0);let t;for(;t=re(this,Dn).pop();){if(t.type!=="!")continue;let r=t,i=re(r,it);for(;i;){for(let a=re(r,fn)+1;!i.type&&a<re(i,He).length;a++)for(const s of re(t,He)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(re(i,He)[a])}r=i,i=re(r,it)}}return this},gn=new WeakSet,hs=function(t,r,i,a){var b,x;let s=!1,l=!1,c=-1,f=!1;if(r.type===null){let d=i,w="";for(;d<t.length;){const h=t.charAt(d++);if(s||h==="\\"){s=!s,w+=h;continue}if(l){d===c+1?(h==="^"||h==="!")&&(f=!0):h==="]"&&!(d===c+2&&f)&&(l=!1),w+=h;continue}else if(h==="["){l=!0,c=d,f=!1,w+=h;continue}if(!a.noext&&Fm(h)&&t.charAt(d)==="("){r.push(w),w="";const S=new Tt(h,r);d=$e(b=Tt,gn,hs).call(b,t,S,d,a),r.push(S);continue}w+=h}return r.push(w),d}let v=i+1,m=new Tt(null,r);const g=[];let p="";for(;v<t.length;){const d=t.charAt(v++);if(s||d==="\\"){s=!s,p+=d;continue}if(l){v===c+1?(d==="^"||d==="!")&&(f=!0):d==="]"&&!(v===c+2&&f)&&(l=!1),p+=d;continue}else if(d==="["){l=!0,c=v,f=!1,p+=d;continue}if(Fm(d)&&t.charAt(v)==="("){m.push(p),p="";const w=new Tt(d,m);m.push(w),v=$e(x=Tt,gn,hs).call(x,t,w,v,a);continue}if(d==="|"){m.push(p),p="",g.push(m),m=new Tt(null,r);continue}if(d===")")return p===""&&re(r,He).length===0&&Qe(r,Fo,!0),m.push(p),p="",r.push(...g,m),v;p+=d}return r.type=null,Qe(r,ft,void 0),Qe(r,He,[t.substring(i-1)]),v},Ic=function(t){return re(this,He).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,a,s,l]=r.toRegExpSource(t);return Qe(this,qr,re(this,qr)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},O0=function(t,r,i=!1){let a=!1,s="",l=!1;for(let c=0;c<t.length;c++){const f=t.charAt(c);if(a){a=!1,s+=(jL.has(f)?"\\":"")+f;continue}if(f==="\\"){c===t.length-1?s+="\\\\":a=!0;continue}if(f==="["){const[v,m,g,p]=LL(t,c);if(g){s+=v,l=l||m,c+=g-1,r=r||p;continue}}if(f==="*"){i&&t==="*"?s+=Nm:s+=Dm,r=!0;continue}if(f==="?"){s+=kf,r=!0;continue}s+=zL(f)}return[s,wo(t),!!r,l]},xt(Tt,gn);let Ps=Tt;const WL=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Et=(e,t,r={})=>(Rs(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Zs(t,r).match(e)),UL=/^\*+([^+@!?\*\[\(]*)$/,BL=e=>t=>!t.startsWith(".")&&t.endsWith(e),HL=e=>t=>t.endsWith(e),qL=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),ZL=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),GL=/^\*+\.\*+$/,KL=e=>!e.startsWith(".")&&e.includes("."),VL=e=>e!=="."&&e!==".."&&e.includes("."),YL=/^\.\*+$/,XL=e=>e!=="."&&e!==".."&&e.startsWith("."),JL=/^\*+$/,QL=e=>e.length!==0&&!e.startsWith("."),e2=e=>e.length!==0&&e!=="."&&e!=="..",t2=/^\?+([^+@!?\*\[\(]*)?$/,r2=([e,t=""])=>{const r=A0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},n2=([e,t=""])=>{const r=T0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},i2=([e,t=""])=>{const r=T0([e]);return t?i=>r(i)&&i.endsWith(t):r},o2=([e,t=""])=>{const r=A0([e]);return t?i=>r(i)&&i.endsWith(t):r},A0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},T0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},R0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",jm={win32:{sep:"\\"},posix:{sep:"/"}},a2=R0==="win32"?jm.win32.sep:jm.posix.sep;Et.sep=a2;const nr=Symbol("globstar **");Et.GLOBSTAR=nr;const s2="[^/]",u2=s2+"*?",l2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",c2="(?:(?!(?:\\/|^)\\.).)*?",f2=(e,t={})=>r=>Et(r,e,t);Et.filter=f2;const rr=(e,t={})=>Object.assign({},e,t),d2=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Et;const t=Et;return Object.assign((i,a,s={})=>t(i,a,rr(e,s)),{Minimatch:class extends t.Minimatch{constructor(a,s={}){super(a,rr(e,s))}static defaults(a){return t.defaults(rr(e,a)).Minimatch}},AST:class extends t.AST{constructor(a,s,l={}){super(a,s,rr(e,l))}static fromGlob(a,s={}){return t.AST.fromGlob(a,rr(e,s))}},unescape:(i,a={})=>t.unescape(i,rr(e,a)),escape:(i,a={})=>t.escape(i,rr(e,a)),filter:(i,a={})=>t.filter(i,rr(e,a)),defaults:i=>t.defaults(rr(e,i)),makeRe:(i,a={})=>t.makeRe(i,rr(e,a)),braceExpand:(i,a={})=>t.braceExpand(i,rr(e,a)),match:(i,a,s={})=>t.match(i,a,rr(e,s)),sep:t.sep,GLOBSTAR:nr})};Et.defaults=d2;const P0=(e,t={})=>(Rs(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:AL(e));Et.braceExpand=P0;const p2=(e,t={})=>new Zs(e,t).makeRe();Et.makeRe=p2;const h2=(e,t,r={})=>{const i=new Zs(t,r);return e=e.filter(a=>i.match(a)),i.options.nonull&&!e.length&&e.push(t),e};Et.match=h2;const zm=/[?*]|[+@!]\(.*?\)|\[|\]/,g2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Zs{constructor(t,r={}){ve(this,"options");ve(this,"set");ve(this,"pattern");ve(this,"windowsPathsNoEscape");ve(this,"nonegate");ve(this,"negate");ve(this,"comment");ve(this,"empty");ve(this,"preserveMultipleSlashes");ve(this,"partial");ve(this,"globSet");ve(this,"globParts");ve(this,"nocase");ve(this,"isWindows");ve(this,"platform");ve(this,"windowsNoMagicRoot");ve(this,"regexp");Rs(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||R0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let a=this.globParts.map((s,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=s[0]===""&&s[1]===""&&(s[2]==="?"||!zm.test(s[2]))&&!zm.test(s[3]),v=/^[a-z]:/i.test(s[0]);if(f)return[...s.slice(0,4),...s.slice(4).map(m=>this.parse(m))];if(v)return[s[0],...s.slice(1).map(m=>this.parse(m))]}return s.map(f=>this.parse(f))});if(this.debug(this.pattern,a),this.set=a.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const l=this.set[s];l[0]===""&&l[1]===""&&this.globParts[s][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let a=0;a<t[i].length;a++)t[i][a]==="**"&&(t[i][a]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let a=i;for(;r[a+1]==="**";)a++;a!==i&&r.splice(i,a-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,a)=>{const s=i[i.length-1];return a==="**"&&s==="**"?i:a===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(a),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let a=1;a<t.length-1;a++){const s=t[a];a===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(a,1),a--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const a=t[i-1];a&&a!=="."&&a!==".."&&a!=="**"&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let a=-1;for(;(a=i.indexOf("**",a+1))!==-1;){let l=a;for(;i[l+1]==="**";)l++;l>a&&i.splice(a+1,l-a);let c=i[a+1];const f=i[a+2],v=i[a+3];if(c!==".."||!f||f==="."||f===".."||!v||v==="."||v==="..")continue;r=!0,i.splice(a,1);const m=i.slice(0);m[a]="**",t.push(m),a--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){const c=i[l];l===1&&c===""&&i[0]===""||(c==="."||c==="")&&(r=!0,i.splice(l,1),l--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){const l=i[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const f=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...f),i.length===0&&i.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const a=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(a){t[r]=[],t[i]=a;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let a=0,s=0,l=[],c="";for(;a<t.length&&s<r.length;)if(t[a]===r[s])l.push(c==="b"?r[s]:t[a]),a++,s++;else if(i&&t[a]==="**"&&r[s]===t[a+1])l.push(t[a]),a++;else if(i&&r[s]==="**"&&t[a]===r[s+1])l.push(r[s]),s++;else if(t[a]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",l.push(t[a]),a++,s++}else if(r[s]==="*"&&t[a]&&(this.options.dot||!t[a].startsWith("."))&&t[a]!=="**"){if(c==="a")return!1;c="b",l.push(r[s]),a++,s++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let a=0;a<t.length&&t.charAt(a)==="!";a++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){const a=this.options;if(this.isWindows){const d=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),w=!d&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),h=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!h&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),E=w?3:d?0:void 0,R=S?3:h?0:void 0;if(typeof E=="number"&&typeof R=="number"){const[O,k]=[t[E],r[R]];O.toLowerCase()===k.toLowerCase()&&(r[R]=O,R>E?r=r.slice(R):E>R&&(t=t.slice(E)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,c=0,f=t.length,v=r.length;l<f&&c<v;l++,c++){this.debug("matchOne loop");var m=r[c],g=t[l];if(this.debug(r,m,g),m===!1)return!1;if(m===nr){this.debug("GLOBSTAR",[r,m,g]);var p=l,b=c+1;if(b===v){for(this.debug("** at the end");l<f;l++)if(t[l]==="."||t[l]===".."||!a.dot&&t[l].charAt(0)===".")return!1;return!0}for(;p<f;){var x=t[p];if(this.debug(`
206
+ globstar while`,t,p,r,b,x),this.matchOne(t.slice(p),r.slice(b),i))return this.debug("globstar found match!",p,f,x),!0;if(x==="."||x===".."||!a.dot&&x.charAt(0)==="."){this.debug("dot detected!",t,p,r,b);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(i&&(this.debug(`
207
+ >>> no match, partial?`,t,p,r,b),p===f))}let d;if(typeof m=="string"?(d=g===m,this.debug("string match",m,g,d)):(d=m.test(g),this.debug("pattern match",m,g,d)),!d)return!1}if(l===f&&c===v)return!0;if(l===f)return i;if(c===v)return l===f-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return P0(this.pattern,this.options)}parse(t){Rs(t);const r=this.options;if(t==="**")return nr;if(t==="")return"";let i,a=null;(i=t.match(JL))?a=r.dot?e2:QL:(i=t.match(UL))?a=(r.nocase?r.dot?ZL:qL:r.dot?HL:BL)(i[1]):(i=t.match(t2))?a=(r.nocase?r.dot?n2:r2:r.dot?i2:o2)(i):(i=t.match(GL))?a=r.dot?VL:KL:(i=t.match(YL))&&(a=XL);const s=Ps.fromGlob(t,this.options).toMMPattern();return a&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:a}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,i=r.noglobstar?u2:r.dot?l2:c2,a=new Set(r.nocase?["i"]:[]);let s=t.map(f=>{const v=f.map(m=>{if(m instanceof RegExp)for(const g of m.flags.split(""))a.add(g);return typeof m=="string"?g2(m):m===nr?nr:m._src});return v.forEach((m,g)=>{const p=v[g+1],b=v[g-1];m!==nr||b===nr||(b===void 0?p!==void 0&&p!==nr?v[g+1]="(?:\\/|"+i+"\\/)?"+p:v[g]=i:p===void 0?v[g-1]=b+"(?:\\/|"+i+")?":p!==nr&&(v[g-1]=b+"(?:\\/|\\/"+i+"\\/)"+p,v[g+1]=nr))}),v.filter(m=>m!==nr).join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+c+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...a].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const a=this.slashSplit(t);this.debug(this.pattern,"split",a);const s=this.set;this.debug(this.pattern,"set",s);let l=a[a.length-1];if(!l)for(let c=a.length-2;!l&&c>=0;c--)l=a[c];for(let c=0;c<s.length;c++){const f=s[c];let v=a;if(i.matchBase&&f.length===1&&(v=[l]),this.matchOne(v,f,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Et.defaults(t).Minimatch}}Et.AST=Ps;Et.Minimatch=Zs;Et.escape=WL;Et.unescape=wo;const Mo="/$shared",m2={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/shared_app_events.json":{parser:"json",content:[]},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/i18n.json":{parser:"json",content:{keys:{},userLang:{primary:"",supported:[]}},schema:{type:"object",properties:{keys:{type:"object"},userLang:{type:"object",properties:{primary:{type:"string"},supported:{type:"array",items:{type:"string"}}},required:["primary","supported"]}},required:["keys","userLang"]}},"**/*.json":{parser:"json",content:{}}};function C0(e){const t=Object.entries(m2).find(([r])=>Et(e,r));return t==null?void 0:t[1]}function Gs(e){var i;const t=(i=C0(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Mo}/`,"Shared/");$f({name:r,content:t,asText:typeof t=="string"})}async function v2(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Me(`${Mo}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){k0(r)&&Gs(`${Mo}/${t}`)}}function qo({path:e,createIfNotExists:t=!1}){const r=`${Mo}/${e}`;return Me(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const a=C0(e);let s=i;if(!a)return s;if(typeof s=="string")try{switch(a.parser){case"json":s=JSON.parse(s);break;default:break}}catch{throw new Error("Cannot parse")}if(a.schema&&!new dL.Validator().validate(s,a.schema).valid)throw new Error("Invalid Schema");return s}).catch(i=>{if(k0(i)&&t){const a=y2(i,e);Ky.next({message:a,kind:"warning"}),Gs(r)}throw i})}function k0(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===404||(e==null?void 0:e.message)==="Invalid Schema"||(e==null?void 0:e.message)==="Cannot parse"||(e==null?void 0:e.name)==="SyntaxError"}function y2(e,t){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${t}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${t}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${t}' not found, creating...`;default:return e==null?void 0:e.message}}function b2(e){return Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function w2(e){return Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const $0=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Of.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function x2(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const a=await Me(ot,{method:"POST",body:JSON.stringify({verb:bn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,c=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?i?c:l:a.webServerHTTPPort?l:c})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:s,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),$0()}}async function I0(e){return await Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function S2(...e){return(await Promise.all(e.map(i=>I0({root:i,verb:bn.GET_FOLDER})))).map(({children:i})=>i.map(({name:a,date:s,type:l})=>({name:a,type:l,date:s,path:`${l}/${a}`}))).flat()}function E2(e,t={}){const{sanitize:r=!0}=t;return Me(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const a=new Map;return{...i,components:Ve.entries(i.components).map(([s,l])=>{const c=s,{resolvedName:f}=l.type;if(f==="WebformLoader"){const v=Bc.generate();a.set(s,v),s=v}return[s,l,c]}).reduce((s,[l,c,f])=>{var v;return c.nodes&&(c.nodes=c.nodes.map(m=>a.get(m)||m)),c.linkedNodes&&(c.linkedNodes=Ve.entries(c.linkedNodes).reduce((m,[g,p])=>({...m,[g]:a.get(p)||p}),{})),(v=c.props)!=null&&v.events&&(c.props.events=c.props.events.map(m=>(m.type==="navigation"&&m.loader&&(m.loader=a.get(m.loader)||m.loader),m))),{...s,[l]:{...c,props:{...c.props,__originalID:f}}}},{})}})}function _2(e){return Me(ot,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Ke.METHOD,Ke.CLASS].includes(t.type)?qs(t.content):t.content}))}function O2(e){return e.type==="folder"?Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function A2(e){return e.type==="folder"?(await Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function T2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function R2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function P2(e){return(await Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function C2(...e){return await Me(ot,{method:"POST",body:JSON.stringify({verb:bn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function k2(e){const t=await Me("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function $2(){return await Me("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function I2(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,i=await(await fetch(t)).text(),{supported:a}=JSON.parse(i);return a}catch{return[]}}async function L2({name:e,path:t="",root:r="root",asText:i=!1}){return Me(ot,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function M2(e={}){try{return{...await qo({path:"shared_datasources.json",...e}),...Rf}}catch{return{}}}async function F2(e={}){try{return await qo({path:"shared_app_events.json",...e})}catch{return[]}}async function D2(e={}){try{return await qo({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function N2(e={}){try{return await qo({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function j2(){try{return await Me("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function z2(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const W2=Tf(),U2=async e=>{const t={verb:bn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Ve.omit(e,Ve.keys(Rf))};return W2(()=>Me(ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},B2=Tf(),H2=async e=>{const t={verb:bn.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return B2(()=>Me(ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},$f=async e=>{const t=await Me(ot,{method:"POST",body:JSON.stringify({...e,verb:bn.SET_FILE_CONTENT,root:_f.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Af(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},q2=async e=>await $f({name:"crafted_components.json",path:hn.WEBFORMS,content:e});function Z2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function G2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function K2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function V2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?qs(t.content):t.content}).catch(t=>{var r,i;throw((i=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:i.errCode)===1839&&Gs(e.path),t})}function Y2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function X2(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function J2(e){const t=new RegExp(/(->)(.*)/gi).exec(e);if(t!==null)return t[0].replace("->","");const r=/:([^)]*)$/.exec(e);return r!==null?`result : ${r[1].trim()}`:""}function Q2(e){const t=X2(e).split(/[;,]/g).filter(Boolean).map(a=>{const s=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:s,type:l}}),r=J2(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function eM(e,t){const i=e.split(".").pop();try{const a=await Me(ot,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});a.content=qs(a.content);const{params:s,result:l}=Q2(a.parameters);return{...a,params:s,returns:l}}catch(a){return console.error(a),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var L0=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(L0||{});function tM(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function rM(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var M0=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(M0||{}),F0=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(F0||{}),D0=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(D0||{}),N0=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(N0||{});const nM={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},iM={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=ot;exports.AppLoader=Xk;exports.BaseCheckboxIcon=ky;exports.Checkbox=x$;exports.ControlledSwitch=py;exports.DATASOURCE_THEMES=nM;exports.DatasourcesActions=Gy;exports.DebuggerActions=Xy;exports.DefaultCheckboxIcon=$y;exports.DesignerRequestVerb=bn;exports.Dialog=$A;exports.DialogBody=rv;exports.EActivity=L0;exports.EDITOR=iM;exports.EIDENTIFIERS=D0;exports.ERROR_CODES=N0;exports.EWebFormStyleClassScope=M0;exports.EXT_API_PREFIX=Ho;exports.FileFolderType=Ke;exports.FloatingTooltip=y$;exports.FolderRootPath=hn;exports.FolderRootType=_f;exports.HTTPError=kc;exports.HTTP_HANDLERS_TAB_PATH=t0;exports.IPreemptive=Lo;exports.IPublished=h0;exports.IPublishedRestScope=Pf;exports.IdentityProvider=z$;exports.Incase=us;exports.IndentLines=mv;exports.LOCALIZATION_TAB_PATH=r0;exports.LOCATION_DATASOURCE_ID=f0;exports.LogoSVG=Ty;exports.LspActions=Yy;exports.MAX_FILE_NAME_LENGTH=Sf;exports.MODEL_TAB_PATH=RI;exports.Modal=t$;exports.ModalCloseReason=pi;exports.ModalColor=zn;exports.ModalIcons=Ec;exports.ModalType=pf;exports.Mutex=n0;exports.NameError=Ef;exports.Overlay=tv;exports.PANEL_EXPANDED_HEIGHT=ds;exports.PANEL_INITIAL_HEIGHT=In;exports.Panel=w$;exports.Portal=Bm;exports.PublishOptions=rL;exports.QODLY_NAMESPACE=yo;exports.ROLES_TAB_PATH=Qy;exports.RemoteDebuggerMode=Of;exports.SETTINGS_TAB_PATH=e0;exports.SHARED_API_PREFIX=Mo;exports.SHARED_USER_NAMESPACE=Rf;exports.SourceCodeDescriptor=F0;exports.Switcher=vv;exports.TITLE_DATASOURCE_ID=p0;exports.TabEventsActions=Vy;exports.Tip=ty;exports.TipsProvider=oC;exports.Toast=jT;exports.Tooltip=Vk;exports.Tree=nR;exports.TreeIcon=dv;exports.TreeNode=Hc;exports.USER_LANGUAGE_DATASOURCE_ID=d0;exports.WebformActions=Zy;exports.WebformEventsActions=Io;exports.ZoomComponent=i$;exports.ZoomLevel=Py;exports._isArrayDatasource=XI;exports._isObjectDatasource=JI;exports.addAttributesToContent=iL;exports.addFolder=T2;exports.by=i0;exports.byId=MI;exports.byPath=FI;exports.callServerSideParser=uL;exports.checkUpdates=b2;exports.createFolder=Z2;exports.datasourcesSubject=yI;exports.debuggerSubject=SI;exports.dropFile=A2;exports.dropFolder=P2;exports.exists=DI;exports.extractWebformName=kI;exports.generateUUID=oL;exports.getAppSettings=x2;exports.getCatalog=$2;exports.getDatasourceId=jI;exports.getDefaultAppSettings=$0;exports.getFile=_2;exports.getFileContent=L2;exports.getFileExtentionFromType=CI;exports.getFilenameAndTypeFromPath=PI;exports.getFilenameFromType=$I;exports.getFilesInfo=C2;exports.getFolder=I0;exports.getFolders=S2;exports.getFunctionContent=eM;exports.getMonacoTheme=z2;exports.getNodeInfo=V2;exports.getSavedConditions=N2;exports.getSharedAppEvents=F2;exports.getSharedCSS=D2;exports.getSharedDatasources=M2;exports.getSharedResource=qo;exports.getSupportedLanguages=I2;exports.getTypeFromExtension=Af;exports.getUserPrivileges=j2;exports.getWebForm=E2;exports.hasAttributesString=m0;exports.http=Me;exports.i18nSubject=_I;exports.initializeDefaultProjectFiles=v2;exports.installUpdates=w2;exports.isArrayDatasource=u0;exports.isDataClassMethod=BI;exports.isDataStoreMethod=UI;exports.isDateDatasource=QI;exports.isEntity=VI;exports.isEntityDatasource=ZI;exports.isEntityMethod=HI;exports.isEntitySelection=YI;exports.isEntitySelectionDatasource=GI;exports.isEntitySelectionMethod=qI;exports.isObjectAttribute=zI;exports.isObjectDatasource=l0;exports.isRelatedAttribute=WI;exports.isRelatedEntitiesAttribute=a0;exports.isRelatedEntityAttribute=s0;exports.isScalarDatasource=c0;exports.isSimpleAttribute=o0;exports.isSimpleDatasource=KI;exports.loadDS=eL;exports.loadI18n=tL;exports.localeCompare=NI;exports.log=tM;exports.login=k2;exports.lspSubject=xI;exports.moveItem=K2;exports.outBy=II;exports.outById=LI;exports.parseAttributes=nL;exports.queue=Tf;exports.removeAttributesString=v0;exports.removeItem=G2;exports.renameFile=O2;exports.renameFolder=R2;exports.sanitizeContent=qs;exports.sanitizeNameCY=aL;exports.saveContent=Y2;exports.setCraftedComponents=q2;exports.setFileContent=$f;exports.setSharedAppEvents=H2;exports.setSharedSources=U2;exports.stringifyAttributes=g0;exports.tabEventsSubject=wI;exports.tasksManagerSubject=EI;exports.toastSubject=Ky;exports.trackEvent=rM;exports.transformDates=sL;exports.tryCreateSharedResource=Gs;exports.useDidMountEffect=S$;exports.useDoubleClick=H$;exports.useEnhancedState=oI;exports.useFeatureFlags=j$;exports.useForwardedRef=N$;exports.useHotkeys=L$;exports.useIdentity=W$;exports.useOutsideClick=M$;exports.usePrevious=F$;exports.useStateObject=U$;exports.useStateRef=D$;exports.useTip=ey;exports.validateName=Jy;exports.validateServerSide=OI;exports.validateValue=AI;exports.webformEventsSubject=Ts;exports.webformSubject=bI;
254
208
  //# sourceMappingURL=index.cjs.js.map