@ws-ui/shared 1.14.0 → 1.14.1

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,157 +1,204 @@
1
- "use strict";var TO=Object.defineProperty;var jh=e=>{throw TypeError(e)};var OO=(e,t,r)=>t in e?TO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ye=(e,t,r)=>OO(e,typeof t!="symbol"?t+"":t,r),kl=(e,t,r)=>t.has(e)||jh("Cannot "+r);var X=(e,t,r)=>(kl(e,t,"read from private field"),r?r.call(e):t.get(e)),vt=(e,t,r)=>t.has(e)?jh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),He=(e,t,r,i)=>(kl(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),de=(e,t,r)=>(kl(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react/jsx-runtime"),M=require("react"),Qn=require("react-dom"),Qe=require("@ws-ui/icons"),Sc=require("@emotion/react"),AO=require("re-resizable");function Ev(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 $=Ev(M),RO=Ev(Qn),_v=({children:e,container:t=document.body})=>Qn.createPortal(e,t);var zh=function(t){return t.reduce(function(r,i){var s=i[0],a=i[1];return r[s]=a,r},{})},Bh=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,Nt="top",ar="bottom",ur="right",Ft="left",ef="auto",Zo=[Nt,ar,ur,Ft],Pi="start",No="end",PO="clippingParents",Tv="viewport",Qi="popper",CO="reference",Wh=Zo.reduce(function(e,t){return e.concat([t+"-"+Pi,t+"-"+No])},[]),Ov=[].concat(Zo,[ef]).reduce(function(e,t){return e.concat([t,t+"-"+Pi,t+"-"+No])},[]),kO="beforeRead",IO="read",$O="afterRead",LO="beforeMain",MO="main",DO="afterMain",NO="beforeWrite",FO="write",jO="afterWrite",zO=[kO,IO,$O,LO,MO,DO,NO,FO,jO];function Nr(e){return e?(e.nodeName||"").toLowerCase():null}function Kt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Kn(e){var t=Kt(e).Element;return e instanceof t||e instanceof Element}function sr(e){var t=Kt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tf(e){if(typeof ShadowRoot>"u")return!1;var t=Kt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function BO(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},s=t.attributes[r]||{},a=t.elements[r];!sr(a)||!Nr(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(u){var l=s[u];l===!1?a.removeAttribute(u):a.setAttribute(u,l===!0?"":l)}))})}function WO(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 s=t.elements[i],a=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),l=u.reduce(function(f,p){return f[p]="",f},{});!sr(s)||!Nr(s)||(Object.assign(s.style,l),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const HO={name:"applyStyles",enabled:!0,phase:"write",fn:BO,effect:WO,requires:["computeStyles"]};function Mr(e){return e.split("-")[0]}var Zn=Math.max,Ta=Math.min,Ci=Math.round;function Ec(){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 Av(){return!/^((?!chrome|android).)*safari/i.test(Ec())}function ki(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),s=1,a=1;t&&sr(e)&&(s=e.offsetWidth>0&&Ci(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ci(i.height)/e.offsetHeight||1);var u=Kn(e)?Kt(e):window,l=u.visualViewport,f=!Av()&&r,p=(i.left+(f&&l?l.offsetLeft:0))/s,m=(i.top+(f&&l?l.offsetTop:0))/a,d=i.width/s,g=i.height/a;return{width:d,height:g,top:m,right:p+d,bottom:m+g,left:p,x:p,y:m}}function rf(e){var t=ki(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 Rv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&tf(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function tn(e){return Kt(e).getComputedStyle(e)}function UO(e){return["table","td","th"].indexOf(Nr(e))>=0}function An(e){return((Kn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wa(e){return Nr(e)==="html"?e:e.assignedSlot||e.parentNode||(tf(e)?e.host:null)||An(e)}function Hh(e){return!sr(e)||tn(e).position==="fixed"?null:e.offsetParent}function qO(e){var t=/firefox/i.test(Ec()),r=/Trident/i.test(Ec());if(r&&sr(e)){var i=tn(e);if(i.position==="fixed")return null}var s=Wa(e);for(tf(s)&&(s=s.host);sr(s)&&["html","body"].indexOf(Nr(s))<0;){var a=tn(s);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 s;s=s.parentNode}return null}function Vo(e){for(var t=Kt(e),r=Hh(e);r&&UO(r)&&tn(r).position==="static";)r=Hh(r);return r&&(Nr(r)==="html"||Nr(r)==="body"&&tn(r).position==="static")?t:r||qO(e)||t}function nf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Io(e,t,r){return Zn(e,Ta(t,r))}function GO(e,t,r){var i=Io(e,t,r);return i>r?r:i}function Pv(){return{top:0,right:0,bottom:0,left:0}}function Cv(e){return Object.assign({},Pv(),e)}function kv(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,Cv(typeof t!="number"?t:kv(t,Zo))};function VO(e){var t,r=e.state,i=e.name,s=e.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,l=Mr(r.placement),f=nf(l),p=[Ft,ur].indexOf(l)>=0,m=p?"height":"width";if(!(!a||!u)){var d=ZO(s.padding,r),g=rf(a),y=f==="y"?Nt:Ft,x=f==="y"?ar:ur,h=r.rects.reference[m]+r.rects.reference[f]-u[f]-r.rects.popper[m],w=u[f]-r.rects.reference[f],v=Vo(a),S=v?f==="y"?v.clientHeight||0:v.clientWidth||0:0,E=h/2-w/2,R=d[y],T=S-g[m]-d[x],C=S/2-g[m]/2+E,W=Io(R,C,T),N=f;r.modifiersData[i]=(t={},t[N]=W,t.centerOffset=W-C,t)}}function KO(e){var t=e.state,r=e.options,i=r.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||Rv(t.elements.popper,s)&&(t.elements.arrow=s))}const YO={name:"arrow",enabled:!0,phase:"main",fn:VO,effect:KO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ii(e){return e.split("-")[1]}var XO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function JO(e,t){var r=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Ci(r*s)/s||0,y:Ci(i*s)/s||0}}function Uh(e){var t,r=e.popper,i=e.popperRect,s=e.placement,a=e.variation,u=e.offsets,l=e.position,f=e.gpuAcceleration,p=e.adaptive,m=e.roundOffsets,d=e.isFixed,g=u.x,y=g===void 0?0:g,x=u.y,h=x===void 0?0:x,w=typeof m=="function"?m({x:y,y:h}):{x:y,y:h};y=w.x,h=w.y;var v=u.hasOwnProperty("x"),S=u.hasOwnProperty("y"),E=Ft,R=Nt,T=window;if(p){var C=Vo(r),W="clientHeight",N="clientWidth";if(C===Kt(r)&&(C=An(r),tn(C).position!=="static"&&l==="absolute"&&(W="scrollHeight",N="scrollWidth")),C=C,s===Nt||(s===Ft||s===ur)&&a===No){R=ar;var F=d&&C===T&&T.visualViewport?T.visualViewport.height:C[W];h-=F-i.height,h*=f?1:-1}if(s===Ft||(s===Nt||s===ar)&&a===No){E=ur;var q=d&&C===T&&T.visualViewport?T.visualViewport.width:C[N];y-=q-i.width,y*=f?1:-1}}var j=Object.assign({position:l},p&&XO),D=m===!0?JO({x:y,y:h},Kt(r)):{x:y,y:h};if(y=D.x,h=D.y,f){var H;return Object.assign({},j,(H={},H[R]=S?"0":"",H[E]=v?"0":"",H.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+h+"px)":"translate3d("+y+"px, "+h+"px, 0)",H))}return Object.assign({},j,(t={},t[R]=S?h+"px":"",t[E]=v?y+"px":"",t.transform="",t))}function QO(e){var t=e.state,r=e.options,i=r.gpuAcceleration,s=i===void 0?!0:i,a=r.adaptive,u=a===void 0?!0:a,l=r.roundOffsets,f=l===void 0?!0:l,p={placement:Mr(t.placement),variation:Ii(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Uh(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Uh(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const eA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:QO,data:{}};var Gs={passive:!0};function tA(e){var t=e.state,r=e.instance,i=e.options,s=i.scroll,a=s===void 0?!0:s,u=i.resize,l=u===void 0?!0:u,f=Kt(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&p.forEach(function(m){m.addEventListener("scroll",r.update,Gs)}),l&&f.addEventListener("resize",r.update,Gs),function(){a&&p.forEach(function(m){m.removeEventListener("scroll",r.update,Gs)}),l&&f.removeEventListener("resize",r.update,Gs)}}const rA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tA,data:{}};var nA={left:"right",right:"left",bottom:"top",top:"bottom"};function ha(e){return e.replace(/left|right|bottom|top/g,function(t){return nA[t]})}var iA={start:"end",end:"start"};function qh(e){return e.replace(/start|end/g,function(t){return iA[t]})}function of(e){var t=Kt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function sf(e){return ki(An(e)).left+of(e).scrollLeft}function oA(e,t){var r=Kt(e),i=An(e),s=r.visualViewport,a=i.clientWidth,u=i.clientHeight,l=0,f=0;if(s){a=s.width,u=s.height;var p=Av();(p||!p&&t==="fixed")&&(l=s.offsetLeft,f=s.offsetTop)}return{width:a,height:u,x:l+sf(e),y:f}}function sA(e){var t,r=An(e),i=of(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=Zn(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=Zn(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-i.scrollLeft+sf(e),f=-i.scrollTop;return tn(s||r).direction==="rtl"&&(l+=Zn(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:u,x:l,y:f}}function af(e){var t=tn(e),r=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+i)}function Iv(e){return["html","body","#document"].indexOf(Nr(e))>=0?e.ownerDocument.body:sr(e)&&af(e)?e:Iv(Wa(e))}function $o(e,t){var r;t===void 0&&(t=[]);var i=Iv(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Kt(i),u=s?[a].concat(a.visualViewport||[],af(i)?i:[]):i,l=t.concat(u);return s?l:l.concat($o(Wa(u)))}function _c(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aA(e,t){var r=ki(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===Tv?_c(oA(e,r)):Kn(t)?aA(t,r):_c(sA(An(e)))}function uA(e){var t=$o(Wa(e)),r=["absolute","fixed"].indexOf(tn(e).position)>=0,i=r&&sr(e)?Vo(e):e;return Kn(i)?t.filter(function(s){return Kn(s)&&Rv(s,i)&&Nr(s)!=="body"}):[]}function lA(e,t,r,i){var s=t==="clippingParents"?uA(e):[].concat(t),a=[].concat(s,[r]),u=a[0],l=a.reduce(function(f,p){var m=Gh(e,p,i);return f.top=Zn(m.top,f.top),f.right=Ta(m.right,f.right),f.bottom=Ta(m.bottom,f.bottom),f.left=Zn(m.left,f.left),f},Gh(e,u,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function $v(e){var t=e.reference,r=e.element,i=e.placement,s=i?Mr(i):null,a=i?Ii(i):null,u=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,f;switch(s){case Nt:f={x:u,y:t.y-r.height};break;case ar:f={x:u,y:t.y+t.height};break;case ur:f={x:t.x+t.width,y:l};break;case Ft:f={x:t.x-r.width,y:l};break;default:f={x:t.x,y:t.y}}var p=s?nf(s):null;if(p!=null){var m=p==="y"?"height":"width";switch(a){case Pi:f[p]=f[p]-(t[m]/2-r[m]/2);break;case No:f[p]=f[p]+(t[m]/2-r[m]/2);break}}return f}function Fo(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=i===void 0?e.placement:i,a=r.strategy,u=a===void 0?e.strategy:a,l=r.boundary,f=l===void 0?PO:l,p=r.rootBoundary,m=p===void 0?Tv:p,d=r.elementContext,g=d===void 0?Qi:d,y=r.altBoundary,x=y===void 0?!1:y,h=r.padding,w=h===void 0?0:h,v=Cv(typeof w!="number"?w:kv(w,Zo)),S=g===Qi?CO:Qi,E=e.rects.popper,R=e.elements[x?S:g],T=lA(Kn(R)?R:R.contextElement||An(e.elements.popper),f,m,u),C=ki(e.elements.reference),W=$v({reference:C,element:E,placement:s}),N=_c(Object.assign({},E,W)),F=g===Qi?N:C,q={top:T.top-F.top+v.top,bottom:F.bottom-T.bottom+v.bottom,left:T.left-F.left+v.left,right:F.right-T.right+v.right},j=e.modifiersData.offset;if(g===Qi&&j){var D=j[s];Object.keys(q).forEach(function(H){var G=[ur,ar].indexOf(H)>=0?1:-1,k=[Nt,ar].indexOf(H)>=0?"y":"x";q[H]+=D[k]*G})}return q}function cA(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=r.boundary,a=r.rootBoundary,u=r.padding,l=r.flipVariations,f=r.allowedAutoPlacements,p=f===void 0?Ov:f,m=Ii(i),d=m?l?Wh:Wh.filter(function(x){return Ii(x)===m}):Zo,g=d.filter(function(x){return p.indexOf(x)>=0});g.length===0&&(g=d);var y=g.reduce(function(x,h){return x[h]=Fo(e,{placement:h,boundary:s,rootBoundary:a,padding:u})[Mr(h)],x},{});return Object.keys(y).sort(function(x,h){return y[x]-y[h]})}function fA(e){if(Mr(e)===ef)return[];var t=ha(e);return[qh(e),t,qh(t)]}function dA(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=r.mainAxis,a=s===void 0?!0:s,u=r.altAxis,l=u===void 0?!0:u,f=r.fallbackPlacements,p=r.padding,m=r.boundary,d=r.rootBoundary,g=r.altBoundary,y=r.flipVariations,x=y===void 0?!0:y,h=r.allowedAutoPlacements,w=t.options.placement,v=Mr(w),S=v===w,E=f||(S||!x?[ha(w)]:fA(w)),R=[w].concat(E).reduce(function(ie,he){return ie.concat(Mr(he)===ef?cA(t,{placement:he,boundary:m,rootBoundary:d,padding:p,flipVariations:x,allowedAutoPlacements:h}):he)},[]),T=t.rects.reference,C=t.rects.popper,W=new Map,N=!0,F=R[0],q=0;q<R.length;q++){var j=R[q],D=Mr(j),H=Ii(j)===Pi,G=[Nt,ar].indexOf(D)>=0,k=G?"width":"height",Q=Fo(t,{placement:j,boundary:m,rootBoundary:d,altBoundary:g,padding:p}),J=G?H?ur:Ft:H?ar:Nt;T[k]>C[k]&&(J=ha(J));var re=ha(J),ce=[];if(a&&ce.push(Q[D]<=0),l&&ce.push(Q[J]<=0,Q[re]<=0),ce.every(function(ie){return ie})){F=j,N=!1;break}W.set(j,ce)}if(N)for(var Z=x?3:1,te=function(he){var fe=R.find(function(ve){var xe=W.get(ve);if(xe)return xe.slice(0,he).every(function(Oe){return Oe})});if(fe)return F=fe,"break"},ne=Z;ne>0;ne--){var ue=te(ne);if(ue==="break")break}t.placement!==F&&(t.modifiersData[i]._skip=!0,t.placement=F,t.reset=!0)}}const pA={name:"flip",enabled:!0,phase:"main",fn:dA,requiresIfExists:["offset"],data:{_skip:!1}};function Zh(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[Nt,ur,ar,Ft].some(function(t){return e[t]>=0})}function hA(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,u=Fo(t,{elementContext:"reference"}),l=Fo(t,{altBoundary:!0}),f=Zh(u,i),p=Zh(l,s,a),m=Vh(f),d=Vh(p);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:m,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":d})}const gA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hA};function mA(e,t,r){var i=Mr(e),s=[Ft,Nt].indexOf(i)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=a[0],l=a[1];return u=u||0,l=(l||0)*s,[Ft,ur].indexOf(i)>=0?{x:l,y:u}:{x:u,y:l}}function vA(e){var t=e.state,r=e.options,i=e.name,s=r.offset,a=s===void 0?[0,0]:s,u=Ov.reduce(function(m,d){return m[d]=mA(d,t.rects,a),m},{}),l=u[t.placement],f=l.x,p=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=p),t.modifiersData[i]=u}const yA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vA};function bA(e){var t=e.state,r=e.name;t.modifiersData[r]=$v({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const wA={name:"popperOffsets",enabled:!0,phase:"read",fn:bA,data:{}};function xA(e){return e==="x"?"y":"x"}function SA(e){var t=e.state,r=e.options,i=e.name,s=r.mainAxis,a=s===void 0?!0:s,u=r.altAxis,l=u===void 0?!1:u,f=r.boundary,p=r.rootBoundary,m=r.altBoundary,d=r.padding,g=r.tether,y=g===void 0?!0:g,x=r.tetherOffset,h=x===void 0?0:x,w=Fo(t,{boundary:f,rootBoundary:p,padding:d,altBoundary:m}),v=Mr(t.placement),S=Ii(t.placement),E=!S,R=nf(v),T=xA(R),C=t.modifiersData.popperOffsets,W=t.rects.reference,N=t.rects.popper,F=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,q=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(C){if(a){var H,G=R==="y"?Nt:Ft,k=R==="y"?ar:ur,Q=R==="y"?"height":"width",J=C[R],re=J+w[G],ce=J-w[k],Z=y?-N[Q]/2:0,te=S===Pi?W[Q]:N[Q],ne=S===Pi?-N[Q]:-W[Q],ue=t.elements.arrow,ie=y&&ue?rf(ue):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Pv(),fe=he[G],ve=he[k],xe=Io(0,W[Q],ie[Q]),Oe=E?W[Q]/2-Z-xe-fe-q.mainAxis:te-xe-fe-q.mainAxis,_e=E?-W[Q]/2+Z+xe+ve+q.mainAxis:ne+xe+ve+q.mainAxis,at=t.elements.arrow&&Vo(t.elements.arrow),oe=at?R==="y"?at.clientTop||0:at.clientLeft||0:0,dt=(H=j==null?void 0:j[R])!=null?H:0,zr=J+Oe-dt-oe,St=J+_e-dt,nn=Io(y?Ta(re,zr):re,J,y?Zn(ce,St):ce);C[R]=nn,D[R]=nn-J}if(l){var ts,cr=R==="x"?Nt:Ft,rs=R==="x"?ar:ur,Br=C[T],Sr=T==="y"?"height":"width",kt=Br+w[cr],on=Br-w[rs],sn=[Nt,Ft].indexOf(v)!==-1,ns=(ts=j==null?void 0:j[T])!=null?ts:0,an=sn?kt:Br-W[Sr]-N[Sr]-ns+q.altAxis,is=sn?Br+W[Sr]+N[Sr]-ns-q.altAxis:on,un=y&&sn?GO(an,Br,is):Io(y?an:kt,Br,y?is:on);C[T]=un,D[T]=un-Br}t.modifiersData[i]=D}}const EA={name:"preventOverflow",enabled:!0,phase:"main",fn:SA,requiresIfExists:["offset"]};function _A(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function TA(e){return e===Kt(e)||!sr(e)?of(e):_A(e)}function OA(e){var t=e.getBoundingClientRect(),r=Ci(t.width)/e.offsetWidth||1,i=Ci(t.height)/e.offsetHeight||1;return r!==1||i!==1}function AA(e,t,r){r===void 0&&(r=!1);var i=sr(t),s=sr(t)&&OA(t),a=An(t),u=ki(e,s,r),l={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((Nr(t)!=="body"||af(a))&&(l=TA(t)),sr(t)?(f=ki(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=sf(a))),{x:u.left+l.scrollLeft-f.x,y:u.top+l.scrollTop-f.y,width:u.width,height:u.height}}function RA(e){var t=new Map,r=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function s(a){r.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(l){if(!r.has(l)){var f=t.get(l);f&&s(f)}}),i.push(a)}return e.forEach(function(a){r.has(a.name)||s(a)}),i}function PA(e){var t=RA(e);return zO.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function CA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function kA(e){var t=e.reduce(function(r,i){var s=r[i.name];return r[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Kh={placement:"bottom",modifiers:[],strategy:"absolute"};function Yh(){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 IA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?Kh:s;return function(l,f,p){p===void 0&&(p=a);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},Kh,a),modifiersData:{},elements:{reference:l,popper:f},attributes:{},styles:{}},d=[],g=!1,y={state:m,setOptions:function(v){var S=typeof v=="function"?v(m.options):v;h(),m.options=Object.assign({},a,m.options,S),m.scrollParents={reference:Kn(l)?$o(l):l.contextElement?$o(l.contextElement):[],popper:$o(f)};var E=PA(kA([].concat(i,m.options.modifiers)));return m.orderedModifiers=E.filter(function(R){return R.enabled}),x(),y.update()},forceUpdate:function(){if(!g){var v=m.elements,S=v.reference,E=v.popper;if(Yh(S,E)){m.rects={reference:AA(S,Vo(E),m.options.strategy==="fixed"),popper:rf(E)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(q){return m.modifiersData[q.name]=Object.assign({},q.data)});for(var R=0;R<m.orderedModifiers.length;R++){if(m.reset===!0){m.reset=!1,R=-1;continue}var T=m.orderedModifiers[R],C=T.fn,W=T.options,N=W===void 0?{}:W,F=T.name;typeof C=="function"&&(m=C({state:m,options:N,name:F,instance:y})||m)}}}},update:CA(function(){return new Promise(function(w){y.forceUpdate(),w(m)})}),destroy:function(){h(),g=!0}};if(!Yh(l,f))return y;y.setOptions(p).then(function(w){!g&&p.onFirstUpdate&&p.onFirstUpdate(w)});function x(){m.orderedModifiers.forEach(function(w){var v=w.name,S=w.options,E=S===void 0?{}:S,R=w.effect;if(typeof R=="function"){var T=R({state:m,name:v,instance:y,options:E}),C=function(){};d.push(T||C)}})}function h(){d.forEach(function(w){return w()}),d=[]}return y}}var $A=[rA,wA,eA,HO,yA,pA,EA,YO,gA],LA=IA({defaultModifiers:$A}),Zs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Il,Xh;function MA(){if(Xh)return Il;Xh=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,u){if(a===u)return!0;if(a&&u&&typeof a=="object"&&typeof u=="object"){if(a.constructor!==u.constructor)return!1;var l,f,p;if(Array.isArray(a)){if(l=a.length,l!=u.length)return!1;for(f=l;f--!==0;)if(!s(a[f],u[f]))return!1;return!0}var m;if(t&&a instanceof Map&&u instanceof Map){if(a.size!==u.size)return!1;for(m=a.entries();!(f=m.next()).done;)if(!u.has(f.value[0]))return!1;for(m=a.entries();!(f=m.next()).done;)if(!s(f.value[1],u.get(f.value[0])))return!1;return!0}if(r&&a instanceof Set&&u instanceof Set){if(a.size!==u.size)return!1;for(m=a.entries();!(f=m.next()).done;)if(!u.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(u)){if(l=a.length,l!=u.length)return!1;for(f=l;f--!==0;)if(a[f]!==u[f])return!1;return!0}if(a.constructor===RegExp)return a.source===u.source&&a.flags===u.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof u.valueOf=="function")return a.valueOf()===u.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof u.toString=="function")return a.toString()===u.toString();if(p=Object.keys(a),l=p.length,l!==Object.keys(u).length)return!1;for(f=l;f--!==0;)if(!Object.prototype.hasOwnProperty.call(u,p[f]))return!1;if(e&&a instanceof Element)return!1;for(f=l;f--!==0;)if(!((p[f]==="_owner"||p[f]==="__v"||p[f]==="__o")&&a.$$typeof)&&!s(a[p[f]],u[p[f]]))return!1;return!0}return a!==a&&u!==u}return Il=function(u,l){try{return s(u,l)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Il}var DA=MA();const NA=Lv(DA);var FA=[],uf=function(t,r,i){i===void 0&&(i={});var s=$.useRef(null),a={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||FA},u=$.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=u[0],f=u[1],p=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(y){var x=y.state,h=Object.keys(x.elements);RO.flushSync(function(){f({styles:zh(h.map(function(w){return[w,x.styles[w]||{}]})),attributes:zh(h.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),m=$.useMemo(function(){var g={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[p,{name:"applyStyles",enabled:!1}])};return NA(s.current,g)?s.current||g:(s.current=g,g)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,p]),d=$.useRef();return Bh(function(){d.current&&d.current.setOptions(m)},[m]),Bh(function(){if(!(t==null||r==null)){var g=i.createPopper||LA,y=g(t,r,m);return d.current=y,function(){y.destroy(),d.current=null}}},[t,r,i.createPopper]),{state:d.current?d.current.state:null,styles:l.styles,attributes:l.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}};const Mv=e=>I.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Dv=M.forwardRef(({children:e,style:t,attributes:r},i)=>I.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})),jA=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:s})=>{const[a,u]=M.useState(null),{styles:l,attributes:f}=uf(e,a,{placement:t||"bottom-start"}),p=M.useCallback(()=>{s&&s()},[s]);return r?I.jsxs(_v,{children:[I.jsx(Mv,{onClick:()=>p()}),I.jsx(Dv,{ref:u,style:l.popper,attributes:f.popper,children:i})]}):null};var $l={exports:{}};/*!
1
+ "use strict";var k5=Object.defineProperty;var sm=e=>{throw TypeError(e)};var O5=(e,t,r)=>t in e?k5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ae=(e,t,r)=>O5(e,typeof t!="symbol"?t+"":t,r),Md=(e,t,r)=>t.has(e)||sm("Cannot "+r);var le=(e,t,r)=>(Md(e,t,"read from private field"),r?r.call(e):t.get(e)),Ht=(e,t,r)=>t.has(e)?sm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),rt=(e,t,r,n)=>(Md(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ee=(e,t,r)=>(Md(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react/jsx-runtime"),M=require("react"),nn=require("react-dom"),$f=require("@emotion/react");function Vy(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 H=Vy(M),T5=Vy(nn),Uy=({children:e,container:t=document.body})=>nn.createPortal(e,t);var am=function(t){return t.reduce(function(r,n){var o=n[0],s=n[1];return r[o]=s,r},{})},lm=typeof window<"u"&&window.document&&window.document.createElement?H.useLayoutEffect:H.useEffect,dr="top",Br="bottom",Hr="right",fr="left",Sp="auto",ka=[dr,Br,Hr,fr],Mi="start",da="end",A5="clippingParents",qy="viewport",xs="popper",R5="reference",cm=ka.reduce(function(e,t){return e.concat([t+"-"+Mi,t+"-"+da])},[]),Gy=[].concat(ka,[Sp]).reduce(function(e,t){return e.concat([t,t+"-"+Mi,t+"-"+da])},[]),C5="beforeRead",I5="read",P5="afterRead",N5="beforeMain",M5="main",D5="afterMain",L5="beforeWrite",z5="write",$5="afterWrite",j5=[C5,I5,P5,N5,M5,D5,L5,z5,$5];function kn(e){return e?(e.nodeName||"").toLowerCase():null}function Tr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qo(e){var t=Tr(e).Element;return e instanceof t||e instanceof Element}function Fr(e){var t=Tr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ep(e){if(typeof ShadowRoot>"u")return!1;var t=Tr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function F5(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},s=t.elements[r];!Fr(s)||!kn(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(l){var c=o[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function B5(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],s=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},{});!Fr(o)||!kn(o)||(Object.assign(o.style,c),Object.keys(s).forEach(function(u){o.removeAttribute(u)}))})}}const H5={name:"applyStyles",enabled:!0,phase:"write",fn:F5,effect:B5,requires:["computeStyles"]};function Sn(e){return e.split("-")[0]}var Wo=Math.max,Rc=Math.min,Di=Math.round;function jf(){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 Zy(){return!/^((?!chrome|android).)*safari/i.test(jf())}function Li(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,s=1;t&&Fr(e)&&(o=e.offsetWidth>0&&Di(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Di(n.height)/e.offsetHeight||1);var l=qo(e)?Tr(e):window,c=l.visualViewport,u=!Zy()&&r,d=(n.left+(u&&c?c.offsetLeft:0))/o,g=(n.top+(u&&c?c.offsetTop:0))/s,p=n.width/o,h=n.height/s;return{width:p,height:h,top:g,right:d+p,bottom:g+h,left:d,x:d,y:g}}function _p(e){var t=Li(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 Yy(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ep(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Vn(e){return Tr(e).getComputedStyle(e)}function W5(e){return["table","td","th"].indexOf(kn(e))>=0}function bo(e){return((qo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xc(e){return kn(e)==="html"?e:e.assignedSlot||e.parentNode||(Ep(e)?e.host:null)||bo(e)}function um(e){return!Fr(e)||Vn(e).position==="fixed"?null:e.offsetParent}function V5(e){var t=/firefox/i.test(jf()),r=/Trident/i.test(jf());if(r&&Fr(e)){var n=Vn(e);if(n.position==="fixed")return null}var o=Xc(e);for(Ep(o)&&(o=o.host);Fr(o)&&["html","body"].indexOf(kn(o))<0;){var s=Vn(o);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 o;o=o.parentNode}return null}function Oa(e){for(var t=Tr(e),r=um(e);r&&W5(r)&&Vn(r).position==="static";)r=um(r);return r&&(kn(r)==="html"||kn(r)==="body"&&Vn(r).position==="static")?t:r||V5(e)||t}function kp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ia(e,t,r){return Wo(e,Rc(t,r))}function U5(e,t,r){var n=ia(e,t,r);return n>r?r:n}function Ky(){return{top:0,right:0,bottom:0,left:0}}function Xy(e){return Object.assign({},Ky(),e)}function Jy(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var q5=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Xy(typeof t!="number"?t:Jy(t,ka))};function G5(e){var t,r=e.state,n=e.name,o=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Sn(r.placement),u=kp(c),d=[fr,Hr].indexOf(c)>=0,g=d?"height":"width";if(!(!s||!l)){var p=q5(o.padding,r),h=_p(s),b=u==="y"?dr:fr,S=u==="y"?Br:Hr,v=r.rects.reference[g]+r.rects.reference[u]-l[u]-r.rects.popper[g],y=l[u]-r.rects.reference[u],m=Oa(s),w=m?u==="y"?m.clientHeight||0:m.clientWidth||0:0,x=v/2-y/2,k=p[b],_=w-h[g]-p[S],R=w/2-h[g]/2+x,j=ia(k,R,_),I=u;r.modifiersData[n]=(t={},t[I]=j,t.centerOffset=j-R,t)}}function Z5(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)||Yy(t.elements.popper,o)&&(t.elements.arrow=o))}const Y5={name:"arrow",enabled:!0,phase:"main",fn:G5,effect:Z5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zi(e){return e.split("-")[1]}var K5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X5(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Di(r*o)/o||0,y:Di(n*o)/o||0}}function dm(e){var t,r=e.popper,n=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,g=e.roundOffsets,p=e.isFixed,h=l.x,b=h===void 0?0:h,S=l.y,v=S===void 0?0:S,y=typeof g=="function"?g({x:b,y:v}):{x:b,y:v};b=y.x,v=y.y;var m=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),x=fr,k=dr,_=window;if(d){var R=Oa(r),j="clientHeight",I="clientWidth";if(R===Tr(r)&&(R=bo(r),Vn(R).position!=="static"&&c==="absolute"&&(j="scrollHeight",I="scrollWidth")),R=R,o===dr||(o===fr||o===Hr)&&s===da){k=Br;var L=p&&R===_&&_.visualViewport?_.visualViewport.height:R[j];v-=L-n.height,v*=u?1:-1}if(o===fr||(o===dr||o===Br)&&s===da){x=Hr;var W=p&&R===_&&_.visualViewport?_.visualViewport.width:R[I];b-=W-n.width,b*=u?1:-1}}var $=Object.assign({position:c},d&&K5),D=g===!0?X5({x:b,y:v},Tr(r)):{x:b,y:v};if(b=D.x,v=D.y,u){var U;return Object.assign({},$,(U={},U[k]=w?"0":"",U[x]=m?"0":"",U.transform=(_.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",U))}return Object.assign({},$,(t={},t[k]=w?v+"px":"",t[x]=m?b+"px":"",t.transform="",t))}function J5(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,s=r.adaptive,l=s===void 0?!0:s,c=r.roundOffsets,u=c===void 0?!0:c,d={placement:Sn(t.placement),variation:zi(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,dm(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,dm(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 Q5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:J5,data:{}};var Al={passive:!0};function eR(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,s=o===void 0?!0:o,l=n.resize,c=l===void 0?!0:l,u=Tr(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(g){g.addEventListener("scroll",r.update,Al)}),c&&u.addEventListener("resize",r.update,Al),function(){s&&d.forEach(function(g){g.removeEventListener("scroll",r.update,Al)}),c&&u.removeEventListener("resize",r.update,Al)}}const tR={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eR,data:{}};var rR={left:"right",right:"left",bottom:"top",top:"bottom"};function cc(e){return e.replace(/left|right|bottom|top/g,function(t){return rR[t]})}var nR={start:"end",end:"start"};function fm(e){return e.replace(/start|end/g,function(t){return nR[t]})}function Op(e){var t=Tr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Tp(e){return Li(bo(e)).left+Op(e).scrollLeft}function oR(e,t){var r=Tr(e),n=bo(e),o=r.visualViewport,s=n.clientWidth,l=n.clientHeight,c=0,u=0;if(o){s=o.width,l=o.height;var d=Zy();(d||!d&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:s,height:l,x:c+Tp(e),y:u}}function iR(e){var t,r=bo(e),n=Op(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Wo(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Wo(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+Tp(e),u=-n.scrollTop;return Vn(o||r).direction==="rtl"&&(c+=Wo(r.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:c,y:u}}function Ap(e){var t=Vn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Qy(e){return["html","body","#document"].indexOf(kn(e))>=0?e.ownerDocument.body:Fr(e)&&Ap(e)?e:Qy(Xc(e))}function sa(e,t){var r;t===void 0&&(t=[]);var n=Qy(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),s=Tr(n),l=o?[s].concat(s.visualViewport||[],Ap(n)?n:[]):n,c=t.concat(l);return o?c:c.concat(sa(Xc(l)))}function Ff(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sR(e,t){var r=Li(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 pm(e,t,r){return t===qy?Ff(oR(e,r)):qo(t)?sR(t,r):Ff(iR(bo(e)))}function aR(e){var t=sa(Xc(e)),r=["absolute","fixed"].indexOf(Vn(e).position)>=0,n=r&&Fr(e)?Oa(e):e;return qo(n)?t.filter(function(o){return qo(o)&&Yy(o,n)&&kn(o)!=="body"}):[]}function lR(e,t,r,n){var o=t==="clippingParents"?aR(e):[].concat(t),s=[].concat(o,[r]),l=s[0],c=s.reduce(function(u,d){var g=pm(e,d,n);return u.top=Wo(g.top,u.top),u.right=Rc(g.right,u.right),u.bottom=Rc(g.bottom,u.bottom),u.left=Wo(g.left,u.left),u},pm(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 ew(e){var t=e.reference,r=e.element,n=e.placement,o=n?Sn(n):null,s=n?zi(n):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,u;switch(o){case dr:u={x:l,y:t.y-r.height};break;case Br:u={x:l,y:t.y+t.height};break;case Hr:u={x:t.x+t.width,y:c};break;case fr:u={x:t.x-r.width,y:c};break;default:u={x:t.x,y:t.y}}var d=o?kp(o):null;if(d!=null){var g=d==="y"?"height":"width";switch(s){case Mi:u[d]=u[d]-(t[g]/2-r[g]/2);break;case da:u[d]=u[d]+(t[g]/2-r[g]/2);break}}return u}function fa(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,u=c===void 0?A5:c,d=r.rootBoundary,g=d===void 0?qy:d,p=r.elementContext,h=p===void 0?xs:p,b=r.altBoundary,S=b===void 0?!1:b,v=r.padding,y=v===void 0?0:v,m=Xy(typeof y!="number"?y:Jy(y,ka)),w=h===xs?R5:xs,x=e.rects.popper,k=e.elements[S?w:h],_=lR(qo(k)?k:k.contextElement||bo(e.elements.popper),u,g,l),R=Li(e.elements.reference),j=ew({reference:R,element:x,placement:o}),I=Ff(Object.assign({},x,j)),L=h===xs?I:R,W={top:_.top-L.top+m.top,bottom:L.bottom-_.bottom+m.bottom,left:_.left-L.left+m.left,right:L.right-_.right+m.right},$=e.modifiersData.offset;if(h===xs&&$){var D=$[o];Object.keys(W).forEach(function(U){var V=[Hr,Br].indexOf(U)>=0?1:-1,N=[dr,Br].indexOf(U)>=0?"y":"x";W[U]+=D[N]*V})}return W}function cR(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,s=r.rootBoundary,l=r.padding,c=r.flipVariations,u=r.allowedAutoPlacements,d=u===void 0?Gy:u,g=zi(n),p=g?c?cm:cm.filter(function(S){return zi(S)===g}):ka,h=p.filter(function(S){return d.indexOf(S)>=0});h.length===0&&(h=p);var b=h.reduce(function(S,v){return S[v]=fa(e,{placement:v,boundary:o,rootBoundary:s,padding:l})[Sn(v)],S},{});return Object.keys(b).sort(function(S,v){return b[S]-b[v]})}function uR(e){if(Sn(e)===Sp)return[];var t=cc(e);return[fm(e),t,fm(t)]}function dR(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,s=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!0:l,u=r.fallbackPlacements,d=r.padding,g=r.boundary,p=r.rootBoundary,h=r.altBoundary,b=r.flipVariations,S=b===void 0?!0:b,v=r.allowedAutoPlacements,y=t.options.placement,m=Sn(y),w=m===y,x=u||(w||!S?[cc(y)]:uR(y)),k=[y].concat(x).reduce(function(Z,de){return Z.concat(Sn(de)===Sp?cR(t,{placement:de,boundary:g,rootBoundary:p,padding:d,flipVariations:S,allowedAutoPlacements:v}):de)},[]),_=t.rects.reference,R=t.rects.popper,j=new Map,I=!0,L=k[0],W=0;W<k.length;W++){var $=k[W],D=Sn($),U=zi($)===Mi,V=[dr,Br].indexOf(D)>=0,N=V?"width":"height",X=fa(t,{placement:$,boundary:g,rootBoundary:p,altBoundary:h,padding:d}),ee=V?U?Hr:fr:U?Br:dr;_[N]>R[N]&&(ee=cc(ee));var Y=cc(ee),ge=[];if(s&&ge.push(X[D]<=0),c&&ge.push(X[ee]<=0,X[Y]<=0),ge.every(function(Z){return Z})){L=$,I=!1;break}j.set($,ge)}if(I)for(var P=S?3:1,F=function(de){var ie=k.find(function(re){var oe=j.get(re);if(oe)return oe.slice(0,de).every(function(he){return he})});if(ie)return L=ie,"break"},J=P;J>0;J--){var te=F(J);if(te==="break")break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}}const fR={name:"flip",enabled:!0,phase:"main",fn:dR,requiresIfExists:["offset"],data:{_skip:!1}};function hm(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 gm(e){return[dr,Hr,Br,fr].some(function(t){return e[t]>=0})}function pR(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=fa(t,{elementContext:"reference"}),c=fa(t,{altBoundary:!0}),u=hm(l,n),d=hm(c,o,s),g=gm(u),p=gm(d);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:g,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":p})}const hR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pR};function gR(e,t,r){var n=Sn(e),o=[fr,dr].indexOf(n)>=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)*o,[fr,Hr].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function vR(e){var t=e.state,r=e.options,n=e.name,o=r.offset,s=o===void 0?[0,0]:o,l=Gy.reduce(function(g,p){return g[p]=gR(p,t.rects,s),g},{}),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 mR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vR};function bR(e){var t=e.state,r=e.name;t.modifiersData[r]=ew({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const yR={name:"popperOffsets",enabled:!0,phase:"read",fn:bR,data:{}};function wR(e){return e==="x"?"y":"x"}function xR(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,s=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!1:l,u=r.boundary,d=r.rootBoundary,g=r.altBoundary,p=r.padding,h=r.tether,b=h===void 0?!0:h,S=r.tetherOffset,v=S===void 0?0:S,y=fa(t,{boundary:u,rootBoundary:d,padding:p,altBoundary:g}),m=Sn(t.placement),w=zi(t.placement),x=!w,k=kp(m),_=wR(k),R=t.modifiersData.popperOffsets,j=t.rects.reference,I=t.rects.popper,L=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,W=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(R){if(s){var U,V=k==="y"?dr:fr,N=k==="y"?Br:Hr,X=k==="y"?"height":"width",ee=R[k],Y=ee+y[V],ge=ee-y[N],P=b?-I[X]/2:0,F=w===Mi?j[X]:I[X],J=w===Mi?-I[X]:-j[X],te=t.elements.arrow,Z=b&&te?_p(te):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ky(),ie=de[V],re=de[N],oe=ia(0,j[X],Z[X]),he=x?j[X]/2-P-oe-ie-W.mainAxis:F-oe-ie-W.mainAxis,fe=x?-j[X]/2+P+oe+re+W.mainAxis:J+oe+re+W.mainAxis,Se=t.elements.arrow&&Oa(t.elements.arrow),K=Se?k==="y"?Se.clientTop||0:Se.clientLeft||0:0,je=(U=$==null?void 0:$[k])!=null?U:0,me=ee+he-je-K,De=ee+fe-je,gt=ia(b?Rc(Y,me):Y,ee,b?Wo(ge,De):ge);R[k]=gt,D[k]=gt-ee}if(c){var rr,at=k==="x"?dr:fr,St=k==="x"?Br:Hr,lt=R[_],tt=_==="y"?"height":"width",ft=lt+y[at],on=lt-y[St],Vr=[dr,fr].indexOf(m)!==-1,nr=(rr=$==null?void 0:$[_])!=null?rr:0,Gt=Vr?ft:lt-j[tt]-I[tt]-nr+W.altAxis,xo=Vr?lt+j[tt]+I[tt]-nr-W.altAxis:on,sn=b&&Vr?U5(Gt,lt,xo):ia(b?Gt:ft,lt,b?xo:on);R[_]=sn,D[_]=sn-lt}t.modifiersData[n]=D}}const SR={name:"preventOverflow",enabled:!0,phase:"main",fn:xR,requiresIfExists:["offset"]};function ER(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _R(e){return e===Tr(e)||!Fr(e)?Op(e):ER(e)}function kR(e){var t=e.getBoundingClientRect(),r=Di(t.width)/e.offsetWidth||1,n=Di(t.height)/e.offsetHeight||1;return r!==1||n!==1}function OR(e,t,r){r===void 0&&(r=!1);var n=Fr(t),o=Fr(t)&&kR(t),s=bo(t),l=Li(e,o,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((kn(t)!=="body"||Ap(s))&&(c=_R(t)),Fr(t)?(u=Li(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Tp(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function TR(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function o(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var u=t.get(c);u&&o(u)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||o(s)}),n}function AR(e){var t=TR(e);return j5.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function RR(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function CR(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 vm={placement:"bottom",modifiers:[],strategy:"absolute"};function mm(){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 IR(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,s=o===void 0?vm:o;return function(c,u,d){d===void 0&&(d=s);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},vm,s),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},p=[],h=!1,b={state:g,setOptions:function(m){var w=typeof m=="function"?m(g.options):m;v(),g.options=Object.assign({},s,g.options,w),g.scrollParents={reference:qo(c)?sa(c):c.contextElement?sa(c.contextElement):[],popper:sa(u)};var x=AR(CR([].concat(n,g.options.modifiers)));return g.orderedModifiers=x.filter(function(k){return k.enabled}),S(),b.update()},forceUpdate:function(){if(!h){var m=g.elements,w=m.reference,x=m.popper;if(mm(w,x)){g.rects={reference:OR(w,Oa(x),g.options.strategy==="fixed"),popper:_p(x)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(W){return g.modifiersData[W.name]=Object.assign({},W.data)});for(var k=0;k<g.orderedModifiers.length;k++){if(g.reset===!0){g.reset=!1,k=-1;continue}var _=g.orderedModifiers[k],R=_.fn,j=_.options,I=j===void 0?{}:j,L=_.name;typeof R=="function"&&(g=R({state:g,options:I,name:L,instance:b})||g)}}}},update:RR(function(){return new Promise(function(y){b.forceUpdate(),y(g)})}),destroy:function(){v(),h=!0}};if(!mm(c,u))return b;b.setOptions(d).then(function(y){!h&&d.onFirstUpdate&&d.onFirstUpdate(y)});function S(){g.orderedModifiers.forEach(function(y){var m=y.name,w=y.options,x=w===void 0?{}:w,k=y.effect;if(typeof k=="function"){var _=k({state:g,name:m,instance:b,options:x}),R=function(){};p.push(_||R)}})}function v(){p.forEach(function(y){return y()}),p=[]}return b}}var PR=[tR,yR,Q5,H5,mR,fR,SR,Y5,hR],NR=IR({defaultModifiers:PR}),Rl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dd,bm;function MR(){if(bm)return Dd;bm=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(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,u,d;if(Array.isArray(s)){if(c=s.length,c!=l.length)return!1;for(u=c;u--!==0;)if(!o(s[u],l[u]))return!1;return!0}var g;if(t&&s instanceof Map&&l instanceof Map){if(s.size!==l.size)return!1;for(g=s.entries();!(u=g.next()).done;)if(!l.has(u.value[0]))return!1;for(g=s.entries();!(u=g.next()).done;)if(!o(u.value[1],l.get(u.value[0])))return!1;return!0}if(r&&s instanceof Set&&l instanceof Set){if(s.size!==l.size)return!1;for(g=s.entries();!(u=g.next()).done;)if(!l.has(u.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(l)){if(c=s.length,c!=l.length)return!1;for(u=c;u--!==0;)if(s[u]!==l[u])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(d=Object.keys(s),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&&s instanceof Element)return!1;for(u=c;u--!==0;)if(!((d[u]==="_owner"||d[u]==="__v"||d[u]==="__o")&&s.$$typeof)&&!o(s[d[u]],l[d[u]]))return!1;return!0}return s!==s&&l!==l}return Dd=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}},Dd}var DR=MR();const LR=tw(DR);var zR=[],Rp=function(t,r,n){n===void 0&&(n={});var o=H.useRef(null),s={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||zR},l=H.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],u=l[1],d=H.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var S=b.state,v=Object.keys(S.elements);T5.flushSync(function(){u({styles:am(v.map(function(y){return[y,S.styles[y]||{}]})),attributes:am(v.map(function(y){return[y,S.attributes[y]]}))})})},requires:["computeStyles"]}},[]),g=H.useMemo(function(){var h={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[d,{name:"applyStyles",enabled:!1}])};return LR(o.current,h)?o.current||h:(o.current=h,h)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,d]),p=H.useRef();return lm(function(){p.current&&p.current.setOptions(g)},[g]),lm(function(){if(!(t==null||r==null)){var h=n.createPopper||NR,b=h(t,r,g);return p.current=b,function(){b.destroy(),p.current=null}}},[t,r,n.createPopper]),{state:p.current?p.current.state:null,styles:c.styles,attributes:c.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const rw=e=>T.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),nw=M.forwardRef(({children:e,style:t,attributes:r},n)=>T.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})),$R=({referenceElement:e,placement:t,isOpen:r,children:n,onClose:o})=>{const[s,l]=M.useState(null),{styles:c,attributes:u}=Rp(e,s,{placement:t||"bottom-start"}),d=M.useCallback(()=>{o&&o()},[o]);return r?T.jsxs(Uy,{children:[T.jsx(rw,{onClick:()=>d()}),T.jsx(nw,{ref:l,style:c.popper,attributes:u.popper,children:n})]}):null};(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-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-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--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-text-muted);--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-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}.collapse:not(#\\#){visibility:collapse}.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-px:not(#\\#){right:-1px}.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-px:not(#\\#){left:-1px}.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)}.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}.block:not(#\\#){display:block}.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-30:not(#\\#){height:calc(var(--spacing)*30)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.h-screen:not(#\\#){height:100vh}.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-72:not(#\\#){width:calc(var(--spacing)*72)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.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}.grow:not(#\\#){flex-grow:1}.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}.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-12:not(#\\#){column-gap:calc(var(--spacing)*12)}.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}.scroll-auto:not(#\\#){scroll-behavior: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-b:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.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-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-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-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-text:not(#\\#){background-color:var(--color-input-text)}.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-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}.lowercase:not(#\\#){text-transform:lowercase}.uppercase:not(#\\#){text-transform:uppercase}.italic:not(#\\#){font-style:italic}.underline:not(#\\#){text-decoration-line:underline}.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-opacity:not(#\\#){transition-property:opacity;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-sm:not(#\\#)::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:text-xs:not(#\\#)::placeholder{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.placeholder\\:text-s:not(#\\#)::placeholder{font-size:var(--text-s)}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:bottom-full:first-child:not(#\\#){bottom:100%}.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\\:top-full:last-child:not(#\\#){top:100%}.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\\:top-full:only-child:not(#\\#){top:100%}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.only\\:ring-1:only-child: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)}.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-canvas-default:hover:not(#\\#){border-color:var(--color-canvas-default)}.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-default:hover:not(#\\#){background-color:var(--color-canvas-default)}.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-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary:hover:not(#\\#){background-color:var(--color-primary)}.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-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-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary:hover:not(#\\#){color:var(--color-primary)}.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\\: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(--vscode-button-background,var(--theia-button-secondaryForeground,var(--theia-button-background,var(--ws-palette-primary-200)))));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--vscode-button-foreground,var(--theia-button-secondaryBackground,var(--theia-button-foreground,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(--ws-palette-negative-200);--ws-negative-dark: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-editor-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-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editorGroupHeader-tabsBorder,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(--vscode-editorWidget-background,var(--theia-input-background,var(--ws-palette-input-bg))));--ws-input-border:var(--vscode-input-border,var(--vscode-panel-border,var(--theia-input-border,var(--ws-palette-input-border))));--ws-input-text:var(--vscode-input-foreground,var(--vscode-editor-foreground,var(--theia-input-foreground,var(--ws-palette-input-text))));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--vscode-editor-foreground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder))));--ws-input-focus-border:var(--vscode-focusBorder,var(--vscode-button-background,var(--theia-focusBorder,var(--ws-palette-primary-500))));--ws-select-bg:var(--vscode-dropdown-background,var(--vscode-editorWidget-background,var(--theia-dropdown-background,var(--ws-input-bg))));--ws-select-border:var(--vscode-dropdown-border,var(--vscode-panel-border,var(--theia-dropdown-border,var(--ws-input-border))));--ws-select-text:var(--vscode-dropdown-foreground,var(--vscode-editor-foreground,var(--theia-dropdown-foreground,var(--ws-input-text))));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-900))));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--vscode-button-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(--vscode-editorWidget-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200))));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--vscode-editor-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-text-muted:var(--vscode-descriptionForeground,var(--vscode-editor-foreground,var(--theia-descriptionForeground,var(--ws-palette-grey-100))));--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-base-ide:var(--vscode-editor-background,var(--theia-editor-background));--ws-panel-shift-ide:var(--vscode-editor-foreground,var(--theia-panel-foreground));--ws-panel-0-mix:var(--ws-panel-base-ide);--ws-panel-1-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-1-mix:color-mix(in srgb,var(--ws-panel-base-ide)96%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-2-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-2-mix:color-mix(in srgb,var(--ws-panel-base-ide)92%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-3-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-3-mix:color-mix(in srgb,var(--ws-panel-base-ide)88%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-4-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-4-mix:color-mix(in srgb,var(--ws-panel-base-ide)84%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-5-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-5-mix:color-mix(in srgb,var(--ws-panel-base-ide)80%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-light-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-light-mix:color-mix(in srgb,var(--ws-panel-base-ide)70%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-0:var(--ws-panel-0-mix,var(--ws-palette-grey-900));--ws-panel-1:var(--ws-panel-1-mix,var(--ws-palette-grey-700));--ws-panel-2:var(--ws-panel-2-mix,var(--ws-palette-grey-900));--ws-panel-3:var(--ws-panel-3-mix,var(--ws-palette-grey-900));--ws-panel-4:var(--ws-panel-4-mix,var(--ws-palette-grey-300));--ws-panel-5:var(--ws-panel-5-mix,var(--ws-palette-grey-950));--ws-panel-light:var(--ws-panel-light-mix,var(--ws-palette-grey-200));--ws-panel-border-subtle:var(--vscode-panel-border,var(--vscode-tab-border,var(--theia-border-color,var(--ws-palette-grey-100))));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--vscode-focusBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300))));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--ws-palette-grey-900)));--ws-tab-border:var(--vscode-tab-border,var(--vscode-editorGroupHeader-tabsBorder,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(--vscode-editor-foreground,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(--vscode-descriptionForeground,var(--ws-palette-grey-200)));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--vscode-toolbar-hoverBackground,var(--ws-palette-grey-700)));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-800)));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-bg:var(--vscode-panel-background,var(--vscode-editor-background,var(--ws-bg-default)));--ws-panel-border:var(--vscode-panel-border,var(--vscode-tab-border,var(--ws-palette-grey-950)));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--vscode-focusBorder,var(--ws-palette-primary-500)));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--vscode-descriptionForeground,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}
2
+ `,document.head.prepend(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const jR=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.jsx("path",{d:"M8.82 19.748c.001.245.075.486.214.69l.38 1.004c.117.172.573.312.758.41.185.097.391.148.601.148h2.454c.21 0 .417-.05.601-.148.185-.098.621-.238.737-.41l.402-1.003c.138-.205.213-.445.213-.691l.001-1.498H8.82l.002 1.498ZM5 8.875c0 1.733.654 3.314 1.732 4.522.658.737 1.685 2.275 2.077 3.573l.004.03h6.374l.004-.03c.392-1.298 1.42-2.836 2.076-3.573A6.766 6.766 0 0 0 19 8.875C19 5.07 15.854 1.988 11.978 2 7.921 2.012 5 5.241 5 8.875Z",fill:"currentColor"})}),FR=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.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"})}),BR=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.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"})}),Hi=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.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"})}),HR=e=>T.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[T.jsx("path",{d:"M7.105 12.87a.47.47 0 0 0 .003.689l3.713 3.491.027.027.768.722a.528.528 0 0 0 .407.14.523.523 0 0 0 .32-.143l.761-.73a.513.513 0 0 0 .025-.024l3.682-3.529a.47.47 0 0 0-.003-.688l-.768-.722a.533.533 0 0 0-.726.003l-3.346 3.206-3.377-3.174a.533.533 0 0 0-.725.003l-.761.73Z",fill:"currentColor"}),T.jsx("path",{d:"M7.105 6.87a.47.47 0 0 0 .003.689l3.713 3.491.027.027.768.722a.528.528 0 0 0 .407.14.523.523 0 0 0 .32-.143l.761-.73a.513.513 0 0 0 .025-.025l3.682-3.528a.47.47 0 0 0-.003-.688l-.768-.722a.533.533 0 0 0-.726.003l-3.346 3.206L8.59 6.138a.533.533 0 0 0-.725.003l-.761.73Z",fill:"currentColor"})]}),WR=e=>T.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[T.jsx("path",{d:"M16.811 11.031a.47.47 0 0 0-.003-.688l-3.714-3.491a.485.485 0 0 0-.026-.027l-.768-.722a.528.528 0 0 0-.408-.14.524.524 0 0 0-.32.143l-.76.73a.518.518 0 0 0-.025.025l-3.682 3.528a.47.47 0 0 0 .003.688l.768.722c.201.19.526.188.725-.003l3.347-3.206 3.377 3.174c.2.19.526.188.725-.003l.761-.73Z",fill:"currentColor"}),T.jsx("path",{d:"M16.811 17.032a.47.47 0 0 0-.003-.689l-3.714-3.491a.514.514 0 0 0-.026-.027l-.768-.722a.528.528 0 0 0-.408-.139.523.523 0 0 0-.32.142l-.76.73a.563.563 0 0 0-.025.025l-3.682 3.528a.47.47 0 0 0 .003.688l.768.722c.201.19.526.188.725-.003l3.347-3.206 3.377 3.174c.2.19.526.188.725-.003l.761-.73Z",fill:"currentColor"})]}),uc=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.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"})}),Bf=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),VR=e=>T.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[T.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),T.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),UR=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.jsx("path",{d:"M21.5 10.889a.5.5 0 0 1 .5.5v1.222a.5.5 0 0 1-.5.5h-19a.5.5 0 0 1-.5-.5V11.39a.5.5 0 0 1 .5-.5h19Z",fill:"currentColor"})}),ow=e=>T.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[T.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),T.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),qR=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.jsx("path",{d:"M11.389 2a.5.5 0 0 0-.5.5v8.389H2.5a.5.5 0 0 0-.5.5v1.222a.5.5 0 0 0 .5.5h8.389V21.5a.5.5 0 0 0 .5.5h1.222a.5.5 0 0 0 .5-.5v-8.389H21.5a.5.5 0 0 0 .5-.5V11.39a.5.5 0 0 0-.5-.5h-8.389V2.5a.5.5 0 0 0-.5-.5H11.39Z",fill:"currentColor"})}),GR=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.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"})}),ZR=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.jsx("path",{d:"M18.797 12.299a.524.524 0 0 0 0-.726l-2.349-2.487-.007.008L9.856 2.12a.58.58 0 0 0-.835 0L7.089 4.166a.524.524 0 0 0 0 .726l6.66 7.051-6.66 7.053a.524.524 0 0 0 0 .725l1.932 2.045a.58.58 0 0 0 .835 0l8.941-9.467Z",fill:"currentColor"})}),YR=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm1 15.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7ZM11 7a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z",fill:"currentColor"})}),KR=e=>T.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[T.jsx("path",{fill:"#fff",d:"M8 5h8v14H8z"}),T.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor"})]}),XR=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),JR=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.774 15.7A7.513 7.513 0 0 1 4.2 4.2a7.511 7.511 0 0 1 10.623 0 7.515 7.515 0 0 1 .876 9.573l6.01 6.01a.995.995 0 0 1 0 1.407l-.52.519a.995.995 0 0 1-1.406 0l-6.009-6.01Zm-1.076-3a4.507 4.507 0 1 1-6.373-6.374 4.507 4.507 0 0 1 6.373 6.373Z",fill:"currentColor"})}),Cp=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})}),QR=(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},eC=(e,t)=>({classGroupId:e,validator:t}),iw=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Cc="-",ym=[],tC="arbitrary..",rC=e=>{const t=oC(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return nC(o);const s=o.split(Cc),l=s[0]===""&&s.length>1?1:0;return sw(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=n[o],c=r[o];return l?c?QR(c,l):l:c||ym}return r[o]||ym}}},sw=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const u=sw(e,t+1,o);if(u)return u}const s=r.validators;if(s===null)return;const l=t===0?e.join(Cc):e.slice(t).join(Cc),c=s.length;for(let u=0;u<c;u++){const d=s[u];if(d.validator(l))return d.classGroupId}},nC=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?tC+n:void 0})(),oC=e=>{const{theme:t,classGroups:r}=e;return iC(r,t)},iC=(e,t)=>{const r=iw();for(const n in e){const o=e[n];Ip(o,r,n,t)}return r},Ip=(e,t,r,n)=>{const o=e.length;for(let s=0;s<o;s++){const l=e[s];sC(l,t,r,n)}},sC=(e,t,r,n)=>{if(typeof e=="string"){aC(e,t,r);return}if(typeof e=="function"){lC(e,t,r,n);return}cC(e,t,r,n)},aC=(e,t,r)=>{const n=e===""?t:aw(t,e);n.classGroupId=r},lC=(e,t,r,n)=>{if(uC(e)){Ip(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(eC(r,e))},cC=(e,t,r,n)=>{const o=Object.entries(e),s=o.length;for(let l=0;l<s;l++){const[c,u]=o[l];Ip(u,aw(t,c),r,n)}},aw=(e,t)=>{let r=e;const n=t.split(Cc),o=n.length;for(let s=0;s<o;s++){const l=n[s];let c=r.nextPart.get(l);c||(c=iw(),r.nextPart.set(l,c)),r=c}return r},uC=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,dC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(s,l)=>{r[s]=l,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(s){let l=r[s];if(l!==void 0)return l;if((l=n[s])!==void 0)return o(s,l),l},set(s,l){s in r?r[s]=l:o(s,l)}}},Hf="!",wm=":",fC=[],xm=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),pC=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let l=0,c=0,u=0,d;const g=o.length;for(let v=0;v<g;v++){const y=o[v];if(l===0&&c===0){if(y===wm){s.push(o.slice(u,v)),u=v+1;continue}if(y==="/"){d=v;continue}}y==="["?l++:y==="]"?l--:y==="("?c++:y===")"&&c--}const p=s.length===0?o:o.slice(u);let h=p,b=!1;p.endsWith(Hf)?(h=p.slice(0,-1),b=!0):p.startsWith(Hf)&&(h=p.slice(1),b=!0);const S=d&&d>u?d-u:void 0;return xm(s,b,h,S)};if(t){const o=t+wm,s=n;n=l=>l.startsWith(o)?s(l.slice(o.length)):xm(fC,!1,l,void 0,!0)}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},hC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let s=0;s<r.length;s++){const l=r[s],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}},gC=e=>({cache:dC(e.cacheSize),parseClassName:pC(e),sortModifiers:hC(e),...rC(e)}),vC=/\s+/,mC=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,l=[],c=e.trim().split(vC);let u="";for(let d=c.length-1;d>=0;d-=1){const g=c[d],{isExternal:p,modifiers:h,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:v}=r(g);if(p){u=g+(u.length>0?" "+u:u);continue}let y=!!v,m=n(y?S.substring(0,v):S);if(!m){if(!y){u=g+(u.length>0?" "+u:u);continue}if(m=n(S),!m){u=g+(u.length>0?" "+u:u);continue}y=!1}const w=h.length===0?"":h.length===1?h[0]:s(h).join(":"),x=b?w+Hf:w,k=x+m;if(l.indexOf(k)>-1)continue;l.push(k);const _=o(m,y);for(let R=0;R<_.length;++R){const j=_[R];l.push(x+j)}u=g+(u.length>0?" "+u:u)}return u},bC=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=lw(r))&&(o&&(o+=" "),o+=n);return o},lw=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=lw(e[n]))&&(r&&(r+=" "),r+=t);return r},Sm=(e,...t)=>{let r,n,o,s;const l=u=>{const d=t.reduce((g,p)=>p(g),e());return r=gC(d),n=r.cache.get,o=r.cache.set,s=c,c(u)},c=u=>{const d=n(u);if(d)return d;const g=mC(u,r);return o(u,g),g};return s=l,(...u)=>s(bC(...u))},yC=[],Nt=e=>{const t=r=>r[e]||yC;return t.isThemeGetter=!0,t},cw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,uw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wC=/^\d+\/\d+$/,xC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,SC=/\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$/,EC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gi=e=>wC.test(e),ze=e=>!!e&&!Number.isNaN(Number(e)),oo=e=>!!e&&Number.isInteger(Number(e)),Ld=e=>e.endsWith("%")&&ze(e.slice(0,-1)),Ln=e=>xC.test(e),OC=()=>!0,TC=e=>SC.test(e)&&!EC.test(e),dw=()=>!1,AC=e=>_C.test(e),RC=e=>kC.test(e),CC=e=>!ye(e)&&!we(e),IC=e=>Wi(e,hw,dw),ye=e=>cw.test(e),Do=e=>Wi(e,gw,TC),zd=e=>Wi(e,LC,ze),Em=e=>Wi(e,fw,dw),PC=e=>Wi(e,pw,RC),Cl=e=>Wi(e,vw,AC),we=e=>uw.test(e),Ss=e=>Vi(e,gw),NC=e=>Vi(e,zC),_m=e=>Vi(e,fw),MC=e=>Vi(e,hw),DC=e=>Vi(e,pw),Il=e=>Vi(e,vw,!0),Wi=(e,t,r)=>{const n=cw.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Vi=(e,t,r=!1)=>{const n=uw.exec(e);return n?n[1]?t(n[1]):r:!1},fw=e=>e==="position"||e==="percentage",pw=e=>e==="image"||e==="url",hw=e=>e==="length"||e==="size"||e==="bg-size",gw=e=>e==="length",LC=e=>e==="number",zC=e=>e==="family-name",vw=e=>e==="shadow",km=()=>{const e=Nt("color"),t=Nt("font"),r=Nt("text"),n=Nt("font-weight"),o=Nt("tracking"),s=Nt("leading"),l=Nt("breakpoint"),c=Nt("container"),u=Nt("spacing"),d=Nt("radius"),g=Nt("shadow"),p=Nt("inset-shadow"),h=Nt("text-shadow"),b=Nt("drop-shadow"),S=Nt("blur"),v=Nt("perspective"),y=Nt("aspect"),m=Nt("ease"),w=Nt("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"],_=()=>[...k(),we,ye],R=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],I=()=>[we,ye,u],L=()=>[gi,"full","auto",...I()],W=()=>[oo,"none","subgrid",we,ye],$=()=>["auto",{span:["full",oo,we,ye]},oo,we,ye],D=()=>[oo,"auto",we,ye],U=()=>["auto","min","max","fr",we,ye],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],X=()=>["auto",...I()],ee=()=>[gi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],Y=()=>[e,we,ye],ge=()=>[...k(),_m,Em,{position:[we,ye]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",MC,IC,{size:[we,ye]}],J=()=>[Ld,Ss,Do],te=()=>["","none","full",d,we,ye],Z=()=>["",ze,Ss,Do],de=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>[ze,Ld,_m,Em],oe=()=>["","none",S,we,ye],he=()=>["none",ze,we,ye],fe=()=>["none",ze,we,ye],Se=()=>[ze,we,ye],K=()=>[gi,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ln],breakpoint:[Ln],color:[OC],container:[Ln],"drop-shadow":[Ln],ease:["in","out","in-out"],font:[CC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ln],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ln],shadow:[Ln],spacing:["px",ze],text:[Ln],"text-shadow":[Ln],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gi,ye,we,y]}],container:["container"],columns:[{columns:[ze,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:_()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[oo,"auto",we,ye]}],basis:[{basis:[gi,"full","auto",c,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,gi,"auto","initial","none",ye]}],grow:[{grow:["",ze,we,ye]}],shrink:[{shrink:["",ze,we,ye]}],order:[{order:[oo,"first","last","none",we,ye]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:X()}],mx:[{mx:X()}],my:[{my:X()}],ms:[{ms:X()}],me:[{me:X()}],mt:[{mt:X()}],mr:[{mr:X()}],mb:[{mb:X()}],ml:[{ml:X()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[c,"screen",...ee()]}],"min-w":[{"min-w":[c,"screen","none",...ee()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",r,Ss,Do]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,we,zd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ld,ye]}],"font-family":[{font:[NC,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":[ze,"none",we,zd]}],leading:[{leading:[s,...I()]}],"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:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",we,Do]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[ze,"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:I()}],"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:ge()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oo,we,ye],radial:["",we,ye],conic:[oo,we,ye]},DC,PC]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:J()}],"gradient-via-pos":[{via:J()}],"gradient-to-pos":[{to:J()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,we,ye]}],"outline-w":[{outline:["",ze,Ss,Do]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",g,Il,Cl]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",p,Il,Cl]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[ze,Do]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",h,Il,Cl]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[ze,we,ye]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[we,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"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":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,ye]}],filter:[{filter:["","none",we,ye]}],blur:[{blur:oe()}],brightness:[{brightness:[ze,we,ye]}],contrast:[{contrast:[ze,we,ye]}],"drop-shadow":[{"drop-shadow":["","none",b,Il,Cl]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",ze,we,ye]}],"hue-rotate":[{"hue-rotate":[ze,we,ye]}],invert:[{invert:["",ze,we,ye]}],saturate:[{saturate:[ze,we,ye]}],sepia:[{sepia:["",ze,we,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",we,ye]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[ze,we,ye]}],"backdrop-contrast":[{"backdrop-contrast":[ze,we,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,we,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,we,ye]}],"backdrop-invert":[{"backdrop-invert":["",ze,we,ye]}],"backdrop-opacity":[{"backdrop-opacity":[ze,we,ye]}],"backdrop-saturate":[{"backdrop-saturate":[ze,we,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,we,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"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:[ze,"initial",we,ye]}],ease:[{ease:["linear","initial",m,we,ye]}],delay:[{delay:[ze,we,ye]}],animate:[{animate:["none",w,we,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,we,ye]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"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:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"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":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",...Y()]}],"stroke-w":[{stroke:[ze,Ss,Do,zd]}],stroke:[{stroke:["none",...Y()]}],"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"]}},$C=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:s={}})=>(Xs(e,"cacheSize",t),Xs(e,"prefix",r),Xs(e,"experimentalParseClassName",n),Pl(e.theme,s.theme),Pl(e.classGroups,s.classGroups),Pl(e.conflictingClassGroups,s.conflictingClassGroups),Pl(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Xs(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),Nl(e.theme,o.theme),Nl(e.classGroups,o.classGroups),Nl(e.conflictingClassGroups,o.conflictingClassGroups),Nl(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),mw(e,o,"orderSensitiveModifiers"),e),Xs=(e,t,r)=>{r!==void 0&&(e[t]=r)},Pl=(e,t)=>{if(t)for(const r in t)Xs(e,r,t[r])},Nl=(e,t)=>{if(t)for(const r in t)mw(e,t,r)},mw=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},jC=(e,...t)=>typeof e=="function"?Sm(km,e,...t):Sm(()=>$C(km(),e),...t);function bw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Om={exports:{}};/*!
2
3
  Copyright (c) 2018 Jed Watson.
3
4
  Licensed under the MIT License (MIT), see
4
5
  http://jedwatson.github.io/classnames
5
- */var Jh;function Nv(){return Jh||(Jh=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",u=0;u<arguments.length;u++){var l=arguments[u];l&&(a=s(a,i(l)))}return a}function i(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 u="";for(var l in a)t.call(a,l)&&a[l]&&(u=s(u,l));return u}function s(a,u){return u?a?a+" "+u:a+u:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})($l)),$l.exports}var zA=Nv();const Be=Lv(zA);function Un(){return Un=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},Un.apply(this,arguments)}const BA=["children","options"],Qh=["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"}),eg={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:""},WA=["style","script","pre"],HA=["src","href","data","formAction","srcDoc","action"],UA=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,qA=/\n{2,}$/,tg=/^(\s*>[\s\S]*?)(?=\n\n|$)/,GA=/^ *> ?/gm,ZA=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,VA=/^ {2,}\n/,KA=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,rg=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,ng=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,YA=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,XA=/^(?:\n *)*\n/,JA=/\r\n?/g,QA=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,eR=/^\[\^([^\]]+)]/,tR=/\f/g,rR=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,nR=/^\s*?\[(x|\s)\]/,ig=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,og=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,sg=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Ll=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,iR=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,ag=/^<!--[\s\S]*?(?:-->)/,oR=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ml=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,sR=/^\{.*\}$/,aR=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,uR=/^<([^ >]+[:@\/][^ >]+)>/,lR=/-([a-z])?/gi,ug=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,cR=/^[^\n]+(?: \n|\n{2,})/,fR=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,dR=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,pR=/^\[([^\]]*)\] ?\[([^\]]*)\]/,hR=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,gR=/\t/g,mR=/(^ *\||\| *$)/g,vR=/^ *:-+: *$/,yR=/^ *:-+ *$/,bR=/^ *-+: *$/,Ha=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Ua="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",wR=RegExp(`^([*_])\\1${Ha(1)}${Ua}\\1\\1(?!\\1)`),xR=RegExp(`^([*_])${Ha(0)}${Ua}\\1(?!\\1)`),SR=RegExp(`^(==)${Ha(0)}${Ua}\\1`),ER=RegExp(`^(~~)${Ha(0)}${Ua}\\1`),_R=/^(:[a-zA-Z0-9-_]+:)/,TR=/^\\([^0-9A-Za-z\s])/,OR=/\\([^0-9A-Za-z\s])/g,AR=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,RR=/^\n+/,PR=/^([ \t]*)/,CR=/(?:^|\n)( *)$/,lf="(?:\\d+\\.)",cf="(?:[*+-])";function Fv(e){return"( *)("+(e===1?lf:cf)+") +"}const jv=Fv(1),zv=Fv(2);function Bv(e){return RegExp("^"+(e===1?jv:zv))}const kR=Bv(1),IR=Bv(2);function Wv(e){return RegExp("^"+(e===1?jv:zv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?lf:cf)+" )[^\\n]*)*(\\n|$)","gm")}const $R=Wv(1),LR=Wv(2);function Hv(e){const t=e===1?lf:cf;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Uv=Hv(1),qv=Hv(2);function lg(e,t){const r=t===1,i=r?Uv:qv,s=r?$R:LR,a=r?kR:IR;return{t:u=>a.test(u),o:$i(function(u,l){const f=CR.exec(l.prevCapture);return f&&(l.list||!l.inline&&!l.simple)?i.exec(u=f[1]+u):null}),i:1,u(u,l,f){const p=r?+u[2]:void 0,m=u[0].replace(qA,`
6
- `).match(s);let d=!1;return{items:m.map(function(g,y){const x=a.exec(g)[0].length,h=RegExp("^ {1,"+x+"}","gm"),w=g.replace(h,"").replace(a,""),v=y===m.length-1,S=w.indexOf(`
6
+ */var Tm;function FC(){return Tm||(Tm=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=o(s,n(c)))}return s}function n(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=o(l,c));return l}function o(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Om)),Om.exports}var BC=FC();const HC=bw(BC),WC=jC({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 ce(...e){return WC(HC(e))}const Ta={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"}},$r={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"}},VC=`
7
+ appearance-none border rounded transition-all duration-200
8
+ focus:ring-2 focus:ring-offset-2 focus:outline-hidden
9
+ relative
10
+ `,UC=(e,t,r)=>{const{isChecked:n,isIndeterminate:o,isDisabled:s,isInvalid:l}=r,c=n||o;return ce(VC,Ta[e].checkbox,{"cursor-pointer":!s},l?{[$r.negative.checked]:c,[$r.negative.unchecked]:!c,[$r.negative.checkedHover]:!s&&c,[$r.negative.focus]:!s,"border-input-disable":s}:{[$r[t].checked]:c&&!s,[$r[t].unchecked]:!c&&!s,[$r[t].checkedHover]:!s&&c,[$r[t].focus]:!s,"border-input-disable":s,"bg-input-disable":s&&c})},qC=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return ce(Ta[e].text,o?{[$r.negative.label]:o}:{"text-input-disable":n,[$r[t].label]:!n,"cursor-pointer":!n})},GC=e=>ce("inline-flex items-center ws-group",Ta[e].spacing),ZC=(e,t,r)=>ce("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",Ta[e].hoverSquare,{[$r.negative.hoverSquare]:r,[$r[t].hoverSquare]:!r}),YC=e=>`${Ta[e].icon}`,KC=e=>T.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:T.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),XC=M.forwardRef(({label:e,isDisabled:t=!1,isInvalid:r=!1,isRequired:n=!1,size:o="md",color:s="primary",onChange:l,onFocus:c,onBlur:u,value:d,defaultValue:g,name:p,id:h,...b},S)=>{const[v,y]=M.useState(g),m=d===!0||v===!0,w=d===null,x=m||w,k={isChecked:m,isIndeterminate:w,isDisabled:t,isInvalid:r},_=UC(o,s,k),R=qC(o,s,k),j=GC(o),I=ZC(o,s,r),L=YC(o);return T.jsxs("label",{"data-qui":"Checkbox",className:j,children:[T.jsxs("div",{className:_,children:[T.jsx("input",{ref:S,type:"checkbox",className:"sr-only",checked:m,disabled:t,required:n,onChange:W=>{d===void 0&&y(W.target.checked),l==null||l(W)},onFocus:c,onBlur:u,name:p,id:h,...b}),x&&T.jsx("div",{className:"center-absolute",children:w?T.jsx(KC,{className:L}):T.jsx(FR,{className:L})}),!x&&!t&&T.jsx("div",{className:I})]}),e&&T.jsxs("span",{className:R,children:[e,n&&T.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});XC.displayName="Checkbox";const Aa={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"}},pa={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"}},JC=`
11
+ relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
12
+ focus:outline-hidden focus:ring-2 focus:ring-offset-0
13
+ cursor-pointer peer
14
+ `,QC=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return ce(JC,Aa[e].radio,o?pa[t].radioInvalid:{[pa[t].radio]:!n,"cursor-not-allowed opacity-60":n})},eI=(e,t,r)=>{const{checked:n,isDisabled:o,isInvalid:s}=r;return ce("center-absolute rounded-full transition-all duration-200 ease-in-out",Aa[e].dot,s?"bg-negative":{[pa[t].dot]:!o,"border-neutral":o,"opacity-0 scale-0":!n,"opacity-100 scale-100":n&&!o})},tI=(e,t,r)=>ce("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",Aa[e].hoverDot,{[pa[t].hoverDot]:!r,"bg-negative-bg":r}),rI=e=>ce("cursor-pointer select-none transition-colors duration-200",Aa[e].label),nI=(e,t,r,n)=>{const{isDisabled:o,isInvalid:s}=r;return ce("inline-flex items-center group",Aa[e].container,s?{"text-negative":s}:{[pa[t].label]:!o,"text-muted":o},n)},oI=M.createContext(null),iI=()=>{const e=M.useContext(oI);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},sI=M.forwardRef(({value:e,label:t,size:r,color:n,isDisabled:o,isInvalid:s,isRequired:l,className:c,...u},d)=>{const g=iI(),p=r??g.size,h=n??g.color,b=o??g.isDisabled,S=s??g.isInvalid,v=l??g.isRequired,y=g.value===e,m={checked:y,isDisabled:b,isInvalid:S},w=QC(p,h,m),x=eI(p,h,m),k=tI(p,h,S),_=rI(p),R=nI(p,h,m,c),j=()=>{b||g.onChange(e)};return T.jsxs("label",{"data-qui":"RadioItem",className:R,children:[T.jsxs("div",{className:ce("relative",{hidden:g.hideIndicator}),children:[T.jsx("input",{ref:d,type:"radio",value:e,checked:y,disabled:b,required:v,"aria-invalid":S,"aria-label":t?void 0:u["aria-label"],name:g.name,onChange:j,className:"sr-only",...u}),T.jsxs("div",{className:w,children:[T.jsx("div",{className:x}),!y&&!b&&T.jsx("div",{className:k})]})]}),t&&T.jsxs("span",{className:_,children:[t,v&&T.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});sI.displayName="RadioItem";const yw={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"}},aI={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-primary-hover hover:bg-primary hover:text-body",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-body",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-body",outline:"border-body",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas-default hover:bg-canvas-default hover:text-primary",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:bg-positive-hover hover:text-body",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:bg-warning-hover hover:text-body",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:bg-negative-hover hover:text-body",ghost:"hover:bg-negative-hover hover:text-body"}}},lI=(e,t,r,n)=>{const o=yw[e],s=aI[r],l=ce("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!n},o.container);return n?ce(l,"text-inactive-text pointer-events-none",{"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"}):ce(l,s.bg[t],s.text[t],s.hover[t],s.border[t])},cI=e=>ce("flex items-center justify-center gap-1",yw[e].text),En=M.forwardRef(({size:e="md",variant:t="solid",color:r="primary",className:n,children:o,disabled:s,...l},c)=>T.jsx("button",{"data-qui":"Button",ref:c,type:"button",className:ce(lI(e,t,r,s),cI(e),n),disabled:s,...l,children:o}));En.displayName="Button";const ww=M.createContext(null),Ra=()=>{const e=M.useContext(ww);if(!e)throw new Error("Input components must be used within Input.Root");return e},Ui={sm:{group:"h-5 min-h-fit",input:"text-xxs",message:"text-xxs 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"}},Vo={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-negative",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"}},uI=()=>ce("flex flex-col relative"),dI=({size:e,color:t,isDisabled:r,isReadOnly:n,hasMessage:o,hasArea:s,isInvalid:l})=>{const c=Vo[l?"negative":t];return ce("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",c.text,o?c.borderMessage:!n&&c.border,Ui[e].group,{"ring-1":o,"opacity-60":r,"items-center":!s})},fI=({size:e,color:t})=>ce("bg-transparent ring-0 w-full","focus:outline-hidden",[Ui[e].input],Vo[t].placeholder),Am=({size:e,color:t})=>ce("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Ui[e].input,Vo[t].placeholder),pI=({size:e,color:t,isDisabled:r,isAction:n})=>{const o=Vo[t];return ce("transition-colors duration-200 rounded max-h-full h-fit",Ui[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?o.action:o.icon,{"cursor-pointer p-0.5":n&&!r,[o.actionHover]:n&&!r,"pointer-events-none":!n})},hI=({size:e,color:t,isDisabled:r,usePortal:n=!1,portalPlacement:o="bottom"})=>ce("flex items-start gap-x-2 ring-1",n?o==="top"?"rounded-t ring-b-0":"rounded-b ring-t-0":["absolute left-0 right-0 z-10","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1"],r?"text-muted":Vo[t].messageText,Vo[t].borderMessage,Vo[t].messageBackground,Ui[e].message,{"opacity-60":r}),gI=({size:e})=>ce(Ui[e].icon);function Ic(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var vI=typeof global=="object"&&global&&global.Object===Object&&global,mI=typeof self=="object"&&self&&self.Object===Object&&self,xw=vI||mI||Function("return this")(),$d=function(){return xw.Date.now()},bI=/\s/;function yI(e){for(var t=e.length;t--&&bI.test(e.charAt(t)););return t}var wI=/^\s+/;function xI(e){return e&&e.slice(0,yI(e)+1).replace(wI,"")}var Pc=xw.Symbol,Sw=Object.prototype,SI=Sw.hasOwnProperty,EI=Sw.toString,Es=Pc?Pc.toStringTag:void 0;function _I(e){var t=SI.call(e,Es),r=e[Es];try{e[Es]=void 0;var n=!0}catch{}var o=EI.call(e);return n&&(t?e[Es]=r:delete e[Es]),o}var kI=Object.prototype,OI=kI.toString;function TI(e){return OI.call(e)}var AI="[object Null]",RI="[object Undefined]",Rm=Pc?Pc.toStringTag:void 0;function CI(e){return e==null?e===void 0?RI:AI:Rm&&Rm in Object(e)?_I(e):TI(e)}function II(e){return e!=null&&typeof e=="object"}var PI="[object Symbol]";function NI(e){return typeof e=="symbol"||II(e)&&CI(e)==PI}var Cm=NaN,MI=/^[-+]0x[0-9a-f]+$/i,DI=/^0b[01]+$/i,LI=/^0o[0-7]+$/i,zI=parseInt;function Im(e){if(typeof e=="number")return e;if(NI(e))return Cm;if(Ic(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ic(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=xI(e);var r=DI.test(e);return r||LI.test(e)?zI(e.slice(2),r?2:8):MI.test(e)?Cm:+e}var $I="Expected a function",jI=Math.max,FI=Math.min;function dc(e,t,r){var n,o,s,l,c,u,d=0,g=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError($I);t=Im(t)||0,Ic(r)&&(g=!!r.leading,p="maxWait"in r,s=p?jI(Im(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h);function b(R){var j=n,I=o;return n=o=void 0,d=R,l=e.apply(I,j),l}function S(R){return d=R,c=setTimeout(m,t),g?b(R):l}function v(R){var j=R-u,I=R-d,L=t-j;return p?FI(L,s-I):L}function y(R){var j=R-u,I=R-d;return u===void 0||j>=t||j<0||p&&I>=s}function m(){var R=$d();if(y(R))return w(R);c=setTimeout(m,v(R))}function w(R){return c=void 0,h&&n?b(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($d())}function _(){var R=$d(),j=y(R);if(n=arguments,o=this,u=R,j){if(c===void 0)return S(u);if(p)return clearTimeout(c),c=setTimeout(m,t),b(u)}return c===void 0&&(c=setTimeout(m,t)),l}return _.cancel=x,_.flush=k,_}var BI="Expected a function";function HI(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(BI);return Ic(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),dc(e,t,{leading:n,maxWait:t,trailing:o})}var Oi=function(){return Oi=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},Oi.apply(this,arguments)};function Ew(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function _w(e){return!e||!e.ownerDocument?document:e.ownerDocument}var kw=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,o){var s=o.name.match(/data-simplebar-(.+)/);if(s){var l=s[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 Ow(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function Tw(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function Aw(e){return".".concat(e.split(" ").join("."))}var Pp=!!(typeof window<"u"&&window.document&&window.document.createElement),WI=Object.freeze({__proto__:null,addClasses:Ow,canUseDOM:Pp,classNamesToQuery:Aw,getElementDocument:_w,getElementWindow:Ew,getOptions:kw,removeClasses:Tw}),Ei=null,Pm=null;Pp&&window.addEventListener("resize",function(){Pm!==window.devicePixelRatio&&(Pm=window.devicePixelRatio,Ei=null)});function Nm(){if(Ei===null){if(typeof document>"u")return Ei=0,Ei;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),Ei=r}return Ei}var io=Ew,jd=_w,VI=kw,so=Ow,ao=Tw,cr=Aw,_s=(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=io(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,so(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(){ao(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(so(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){ao(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 s,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)&&(s=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(l=n.isWithinBounds(n.axis.y.track.rect)),(s||l)&&(o.stopPropagation(),o.type==="pointerdown"&&o.pointerType!=="touch"&&(s&&(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 s,l,c,u,d,g,p,h,b,S,v;if(!(!n.draggedAxis||!n.contentWrapperEl)){var y,m=n.axis[n.draggedAxis].track,w=(l=(s=m.rect)===null||s===void 0?void 0:s[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,_=parseInt((g=(d=n.elStyles)===null||d===void 0?void 0:d[n.axis[n.draggedAxis].sizeAttr])!==null&&g!==void 0?g:"0px",10);o.preventDefault(),o.stopPropagation(),n.draggedAxis==="y"?y=o.pageY:y=o.pageX;var R=y-((h=(p=m.rect)===null||p===void 0?void 0:p[n.axis[n.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-n.axis[n.draggedAxis].dragOffset;R=n.draggedAxis==="x"&&n.isRtl?((S=(b=m.rect)===null||b===void 0?void 0:b[n.axis[n.draggedAxis].sizeAttr])!==null&&S!==void 0?S:0)-x.size-R:R;var j=R/(w-x.size),I=j*(k-_);n.draggedAxis==="x"&&n.isRtl&&(I=!((v=e.getRtlHelpers())===null||v===void 0)&&v.isScrollingToNegative?-I:I),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=I}},this.onEndDrag=function(o){n.isDragging=!1;var s=jd(n.el),l=io(n.el);o.preventDefault(),o.stopPropagation(),ao(n.el,n.classNames.dragging),n.onStopScrolling(),s.removeEventListener("mousemove",n.drag,!0),s.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=l.setTimeout(function(){s.removeEventListener("click",n.preventClick,!0),s.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(o){o.preventDefault(),o.stopPropagation()},this.el=t,this.options=Oi(Oi({},e.defaultOptions),r),this.classNames=Oi(Oi({},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=HI(this._onMouseMove,64),this.onWindowResize=dc(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=dc(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=dc(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),s=e.getOffset(n);r.scrollLeft=-999;var l=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:o.left!==s.left,isScrollingToNegative:s.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:Nm()}catch{return Nm()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=jd(t),o=io(t);return{top:r.top+(o.pageYOffset||n.documentElement.scrollTop),left:r.left+(o.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){Pp&&(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(cr(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(cr(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(cr(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(cr(this.classNames.offset)),this.maskEl=this.el.querySelector(cr(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,cr(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(cr(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(cr(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(cr(this.classNames.track)).concat(cr(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(cr(this.classNames.track)).concat(cr(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(cr(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(cr(this.classNames.scrollbar)))||null,this.options.autoHide||(so(this.axis.x.scrollbar.el,this.classNames.visible),so(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=io(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,s=n.ResizeObserver||ResizeObserver;this.resizeObserver=new s(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=io(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,s=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 g=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&d>r,this.axis.y.isOverflowing=u>g,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 p=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>s-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>g-p,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],s=(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=s/o,c;return c=Math.max(~~(l*s),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 s=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!s.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 g=d/(l-u),p=~~((c-s.size)*g);p=t==="x"&&this.isRtl?-p+(c-s.size):p,s.el.style.transform=t==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"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&&(so(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&&(ao(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),so(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?so(r.scrollbar.el,this.classNames.hover):ao(r.scrollbar.el,this.classNames.hover)):(ao(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),ao(this.axis[t].track.el,this.classNames.hover),ao(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=jd(this.el),s=io(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,so(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)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,o,s,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=io(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var g=this.axis[r].scrollbar,p=(s=(o=g.rect)===null||o===void 0?void 0:o[this.axis[r].offsetAttr])!==null&&s!==void 0?s:0,h=parseInt((c=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[r].sizeAttr])!==null&&c!==void 0?c:"0px",10),b=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],S=r==="y"?this.mouseY-p:this.mouseX-p,v=S<0?-1:1,y=v===-1?b-h:b+h,m=40,w=function(){n.contentWrapperEl&&(v===-1?b>y&&(b-=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=b,d.requestAnimationFrame(w)):b<y&&(b+=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=b,d.requestAnimationFrame(w)))};w()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=io(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=VI,e.helpers=WI,e})(),kr=function(){return kr=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},kr.apply(this,arguments)};function UI(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 Np=H.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,o=n===void 0?{}:n,s=UI(e,["children","scrollableNodeProps"]),l=H.useRef(),c=H.useRef(),u=H.useRef(),d={},g={};Object.keys(s).forEach(function(b){Object.prototype.hasOwnProperty.call(_s.defaultOptions,b)?d[b]=s[b]:g[b]=s[b]});var p=kr(kr({},_s.defaultOptions.classNames),d.classNames),h=kr(kr({},o),{className:"".concat(p.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:d.tabIndex||_s.defaultOptions.tabIndex,role:"region","aria-label":d.ariaLabel||_s.defaultOptions.ariaLabel});return H.useEffect(function(){var b;return c.current=h.ref?h.ref.current:c.current,l.current&&(b=new _s(l.current,kr(kr(kr({},d),c.current&&{scrollableNode:c.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(b):t&&(t.current=b)),function(){b==null||b.unMount(),b=null,typeof t=="function"&&t(null)}},[]),H.createElement("div",kr({"data-simplebar":"init",ref:l},g),H.createElement("div",{className:p.wrapper},H.createElement("div",{className:p.heightAutoObserverWrapperEl},H.createElement("div",{className:p.heightAutoObserverEl})),H.createElement("div",{className:p.mask},H.createElement("div",{className:p.offset},typeof r=="function"?r({scrollableNodeRef:c,scrollableNodeProps:kr(kr({},h),{ref:c}),contentNodeRef:u,contentNodeProps:{className:p.contentEl,ref:u}}):H.createElement("div",kr({},h),H.createElement("div",{className:p.contentEl},r)))),H.createElement("div",{className:p.placeholder})),H.createElement("div",{className:"".concat(p.track," ").concat(p.horizontal)},H.createElement("div",{className:p.scrollbar})),H.createElement("div",{className:"".concat(p.track," ").concat(p.vertical)},H.createElement("div",{className:p.scrollbar})))});Np.displayName="SimpleBar";const Rw=M.forwardRef(({size:e="md",color:t="primary",isInvalid:r=!1,isDisabled:n=!1,isReadOnly:o=!1,className:s,children:l,...c},u)=>{const[d,g]=M.useState(!1),[p,h]=M.useState(!1),b={size:e,color:r?"negative":t,isInvalid:r,isDisabled:n,isReadOnly:o,hasMessage:d,setHasMessage:g,hasArea:p,setHasArea:h};return T.jsx(ww.Provider,{value:b,children:T.jsx("div",{ref:u,"data-qui":"Input",className:ce(uI(),s),...c,children:l})})}),Cw=M.forwardRef(({className:e,children:t,...r},n)=>{const{size:o,color:s,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:d,isInvalid:g}=Ra();return T.jsx("div",{ref:n,"data-qui":"InputGroup",className:ce(dI({size:o,color:s,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:d,isInvalid:g}),e),...r,children:t})}),Iw=M.forwardRef(({className:e,...t},r)=>{const{size:n,color:o,isInvalid:s,isDisabled:l,isReadOnly:c}=Ra(),{isDisabled:u,isReadOnly:d,...g}=t;return T.jsx("input",{...g,ref:r,disabled:l||u,readOnly:d||c||!1,"aria-invalid":s,className:ce(fI({size:n,color:o}),e)})}),qI=M.forwardRef(({className:e,wrapperClassName:t,autoHeight:r,...n},o)=>{const{size:s,color:l,isInvalid:c,isDisabled:u,isReadOnly:d,setHasArea:g}=Ra(),p=M.useRef(null),h=o||p,b=M.useRef(null);M.useEffect(()=>(g(!0),()=>{g(!1)}),[g]);const S=M.useCallback(()=>{if(p.current){const _=p.current;_.style.height="auto",_.style.height=`${_.scrollHeight}px`}},[]),{isDisabled:v,isReadOnly:y,onInput:m,...w}=n,x=_=>{S(),m==null||m(_)};M.useEffect(()=>{S()},[S,n.value]),M.useEffect(()=>{r&&b.current&&b.current.style.removeProperty("height")},[r]);const k=_=>{_.preventDefault();const R=b.current;if(!R)return;const j=_.clientY,I=R.offsetHeight,L=$=>{const D=I+($.clientY-j);D>30&&(R.style.height=D+"px")},W=()=>{document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",W)};document.addEventListener("mousemove",L),document.addEventListener("mouseup",W)};return T.jsxs("div",{ref:b,className:ce("w-full relative",!r&&!n.rows&&"h-30",t),children:[r?T.jsx("textarea",{...w,ref:h,rows:1,className:ce(Am({size:s,color:l}),e),disabled:u||v,onInput:x,readOnly:y||d||!1,"aria-invalid":c,style:{overflow:"hidden"}}):T.jsx(Np,{style:{height:"100%"},children:T.jsx("textarea",{...w,ref:h,rows:1,className:ce(Am({size:s,color:l}),e),disabled:u||v,onInput:x,readOnly:y||d||!1,"aria-invalid":c,style:{height:"auto",overflow:"hidden",width:"100%"}})}),!r&&T.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:k,children:T.jsx(GR,{})})]})}),Pw=M.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:o,...s},l)=>{const{size:c,color:u,isDisabled:d}=Ra(),g=r||d,p=pI({size:c,color:u,isDisabled:g,isAction:e});return T.jsx("div",{ref:l,"data-qui":"InputIcon",className:ce(p,t),style:n,role:e||s.onClick?"button":void 0,tabIndex:(e||s.onClick)&&!g?0:void 0,"aria-disabled":g,...s,children:o})}),GI=M.forwardRef(({icon:e,usePortal:t=!1,className:r,children:n,...o},s)=>{const{size:l,color:c,setHasMessage:u,isDisabled:d}=Ra(),g=M.useRef(null),p=M.useRef("bottom"),[h,b]=M.useState(null);M.useEffect(()=>(u(!0),()=>u(!1)),[u]),M.useEffect(()=>{if(!t||!g.current)return;const y=g.current,m=y.closest('[data-qui="Input"]'),w=m==null?void 0:m.querySelector('[data-qui="InputGroup"]'),x=w||m;if(!x)return;const k=!!(w&&y.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING);p.current=k?"top":"bottom";const _=()=>{const j=x.getBoundingClientRect();b({top:k?j.top:j.bottom,left:j.left,width:j.width})};_();const R=new ResizeObserver(_);return R.observe(x),window.addEventListener("resize",_),window.addEventListener("scroll",_,!0),()=>{R.disconnect(),window.removeEventListener("resize",_),window.removeEventListener("scroll",_,!0)}},[t]);const S=p.current,v=T.jsxs("div",{ref:s,"data-qui":"InputMessage",role:"alert",className:ce(hI({size:l,color:c,isDisabled:d,usePortal:t,portalPlacement:S}),r),...o,children:[e!==void 0&&T.jsx("div",{className:ce(gI({size:l})),children:e}),T.jsx("p",{children:n})]});return t?T.jsxs(T.Fragment,{children:[T.jsx("span",{ref:g,style:{display:"none"}}),h&&nn.createPortal(T.jsx("div",{"data-qui":"InputMessagePortal",style:{position:"fixed",top:S==="top"?void 0:h.top,bottom:S==="top"?`calc(100vh - ${h.top}px)`:void 0,left:h.left,width:h.width,zIndex:50},children:v}),document.body)]}):v});Rw.displayName="InputRoot";Cw.displayName="InputGroup";Iw.displayName="InputField";qI.displayName="InputArea";Pw.displayName="InputIcon";GI.displayName="InputMessage";const ks={Root:Rw,Group:Cw,Field:Iw,Icon:Pw},ha={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"}},ZI=({color:e})=>ce("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",ha[e].container,ha[e].icon),YI=({color:e})=>ce("text-xs font-medium leading-3",ha[e].text),KI=({color:e})=>ce("p-0.5 rounded cursor-pointer",ha[e].button,ha[e].icon),Nw=({label:e,color:t="primary",position:r="up",showCloseButton:n=!1,icon:o,children:s,delay:l=0,trigger:c="hover",className:u,container:d,isHidden:g=!1,usePortal:p=!1})=>{const[h,b]=M.useState(!1),[S,v]=M.useState(!1),[y,m]=M.useState({position:r,transform:""}),w=M.useRef(null),x=M.useRef(null),k=M.useRef(null),_=p||d!=null,R=h&&!g;M.useEffect(()=>{R||v(!1)},[R]);const j=M.useCallback(()=>{if(!w.current||!x.current)return;const P=w.current.getBoundingClientRect(),F=x.current.getBoundingClientRect(),J=window.innerWidth,te=window.innerHeight,Z=window.scrollX,de=window.scrollY,ie=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,J),re=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,te),oe=4;let he=r,fe={position:he,transform:""};const Se=De=>{const{top:gt,left:rr,width:at,height:St}=P,lt=_?gt+de:0,tt=_?rr+Z:0;switch(De){case"up":return{top:`${lt-F.height-oe}px`,left:`${tt+at/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${lt-F.height-oe}px`,left:`${tt}px`,transform:"translateX(0)"};case"up-end":return{top:`${lt-F.height-oe}px`,left:`${tt+at-F.width}px`,transform:"translateX(0)"};case"down":return{top:`${lt+St+oe}px`,left:`${tt+at/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${lt+St+oe}px`,left:`${tt}px`,transform:"translateX(0)"};case"down-end":return{top:`${lt+St+oe}px`,left:`${tt+at-F.width}px`,transform:"translateX(0)"};case"left":return{top:`${lt+St/2}px`,left:`${tt-F.width-oe}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${lt}px`,left:`${tt-F.width-oe}px`,transform:"translateY(0)"};case"left-end":return{top:`${lt+St-F.height}px`,left:`${tt-F.width-oe}px`,transform:"translateY(0)"};case"right":return{top:`${lt+St/2}px`,left:`${tt+at+oe}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${lt}px`,left:`${tt+at+oe}px`,transform:"translateY(0)"};case"right-end":return{top:`${lt+St-F.height}px`,left:`${tt+at+oe}px`,transform:"translateY(0)"};default:return{}}},K={up:{fits:P.top-F.height-oe>=0},"up-start":{fits:P.top-F.height-oe>=0&&P.left+F.width<=J},"up-end":{fits:P.top-F.height-oe>=0&&P.right-F.width>=0},down:{fits:P.bottom+F.height+oe<=te&&P.bottom+F.height+oe<=re},"down-start":{fits:P.bottom+F.height+oe<=te&&P.bottom+F.height+oe<=re&&P.left+F.width<=J},"down-end":{fits:P.bottom+F.height+oe<=te&&P.bottom+F.height+oe<=re&&P.right-F.width>=0},left:{fits:P.left-F.width-oe>=0},"left-start":{fits:P.left-F.width-oe>=0&&P.top+F.height<=te},"left-end":{fits:P.left-F.width-oe>=0&&P.bottom-F.height>=0},right:{fits:P.right+F.width+oe<=J&&P.right+F.width+oe<=ie},"right-start":{fits:P.right+F.width+oe<=J&&P.right+F.width+oe<=ie&&P.top+F.height<=te},"right-end":{fits:P.right+F.width+oe<=J&&P.right+F.width+oe<=ie&&P.bottom-F.height>=0}},je=P.left+P.width/2-F.width/2,me=P.left+P.width/2+F.width/2;if((r==="up"||r==="down")&&(je<0||me>J)&&(K[r].fits=!1),K[r].fits){const De=Se(r);fe={position:r,...De,transform:De.transform||""}}else{const De=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(gt=>K[gt].fits);if(De){he=De;const gt=Se(De);fe={position:he,...gt,transform:gt.transform||""}}else{const gt={up:P.top,"up-start":P.top,"up-end":P.top,down:Math.min(te-P.bottom,re-P.bottom),"down-start":Math.min(te-P.bottom,re-P.bottom),"down-end":Math.min(te-P.bottom,re-P.bottom),left:P.left,"left-start":P.left,"left-end":P.left,right:Math.min(J-P.right,ie-P.right),"right-start":Math.min(J-P.right,ie-P.right),"right-end":Math.min(J-P.right,ie-P.right)},rr=Object.entries(gt).reduce((St,[lt,tt])=>tt>St.space?{position:lt,space:tt}:St,{position:"up",space:0}).position;he=rr;const at=Se(rr);fe={position:he,...at,transform:at.transform||""}}}m(fe)},[r,_]),I=()=>{k.current&&(clearTimeout(k.current),k.current=null)},L=()=>{I(),b(!1)},W=()=>{I(),l===0?b(!1):k.current=setTimeout(()=>b(!1),l)},$=()=>{c==="click"&&(b(!0),I(),k.current=setTimeout(()=>{S||b(!1)},l))},D=P=>{P.stopPropagation(),L()},U=()=>{v(!0),I()},V=()=>{v(!1),h&&W()},N=()=>{c==="hover"&&(I(),b(!0))},X=()=>{c==="hover"&&W()};M.useEffect(()=>{if(!h||g||!w.current)return;const P=w.current;let F=!1,J=!1;const te=new IntersectionObserver(([Z])=>{if(!F){J=Z.isIntersecting,F=!0;return}J&&!Z.isIntersecting&&L(),J=Z.isIntersecting},{threshold:0});return te.observe(P),()=>te.disconnect()},[h,g]),M.useEffect(()=>{if(h){const P=requestAnimationFrame(()=>j());return()=>cancelAnimationFrame(P)}},[h,e,j]),M.useEffect(()=>{if(h){const P=setTimeout(()=>j(),0);return()=>clearTimeout(P)}},[h,j]),M.useEffect(()=>{const P=()=>{h&&j()},F=()=>{h&&j()};return window.addEventListener("resize",P),window.addEventListener("scroll",F,!0),()=>{window.removeEventListener("resize",P),window.removeEventListener("scroll",F,!0),I()}},[h,j]);const ee=d||(typeof document<"u"?document.body:null),Y=h&&!g&&!!e,ge=T.jsxs("div",{ref:x,role:"tooltip",className:ZI({color:t}),style:{position:"absolute",left:y.left??0,top:y.top??0,transform:y.transform,zIndex:1e3,opacity:y.left?1:0,pointerEvents:n?"auto":"none"},onMouseEnter:n?U:void 0,onMouseLeave:n?V:void 0,children:[o&&T.jsx("span",{"data-testid":"tooltip-icon",children:o}),T.jsx("div",{className:YI({color:t}),children:e}),n&&T.jsx("div",{onClick:D,className:KI({color:t}),role:"button",children:T.jsx(Hi,{})})]});return T.jsxs(T.Fragment,{children:[T.jsxs("div",{"data-qui":"Tooltip",ref:w,onClick:$,onMouseEnter:N,onMouseLeave:X,className:ce("relative inline-flex items-center",u),children:[s,Y&&!_&&ge]}),Y&&_&&ee&&nn.createPortal(ge,ee)]})};var Mm;(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"})(Mm||(Mm={}));const XI=Object.freeze({x:0,y:0});var Ti;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ti||(Ti={}));var Dm;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Dm||(Dm={}));var jr;(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"})(jr||(jr={}));jr.Space,jr.Enter,jr.Esc,jr.Space,jr.Enter,jr.Tab;var Lm;(function(e){e[e.RightClick=2]="RightClick"})(Lm||(Lm={}));var zm;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(zm||(zm={}));var $m;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})($m||($m={}));Ti.Backward+"",Ti.Forward+"",Ti.Backward+"",Ti.Forward+"";var Wf;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Wf||(Wf={}));var Vf;(function(e){e.Optimized="optimized"})(Vf||(Vf={}));Wf.WhileDragging,Vf.Optimized;({...XI});var jm;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(jm||(jm={}));jr.Down,jr.Right,jr.Up,jr.Left;const Mw={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"}},JI={primary:{active:{bg:"bg-primary",text:"text-button-text",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-button-text"}},positive:{active:{bg:"bg-positive",text:"text-button-text",border:"border-positive"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-hover",text:"hover:text-body"}},warning:{active:{bg:"bg-warning",text:"text-warning-text",border:"border-warning"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-hover",text:"hover:text-body"}},negative:{active:{bg:"bg-negative",text:"text-button-text",border:"border-negative"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-hover",text:"hover:text-body"}}},QI=(e,t,r,n)=>{const o=JI[e],s=Mw[t],l="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return n?ce(l,s.padding,s.text,s.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):r?ce(l,s.padding,s.text,s.gap,o.active.bg,o.active.text,"shadow-xs"):ce(l,s.padding,s.text,s.gap,o.inactive.bg,o.inactive.text,o.hover.bg,o.hover.text)},eP=(e,t)=>ce("flex items-center justify-center",Mw[e].icon,{"opacity-50":t}),tP=()=>ce("whitespace-nowrap"),Dw=(e,t)=>{const r=ce("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?ce(r,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?ce(r,"border border-transparent bg-tab-inactive-bg text-inactive-text"):ce(r,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},rP=M.createContext(void 0),nP=M.forwardRef(({value:e,label:t,icon:r,disabled:n,children:o,className:s,onClick:l,active:c,onClose:u,closable:d,touched:g,content:p,renderTab:h,...b},S)=>{const v=M.useContext(rP);if(!v)return null;const{activeTab:y,onTabChange:m,variant:w,color:x,size:k,showIcons:_,disabled:R}=v,j=c!==void 0?c:y===e,I=n||R,L=W=>{I||(m(e),l==null||l(W))};return w==="file"?T.jsx("div",{"data-qui":"FileTabItem",className:ce(Dw(j,!1),"cursor-pointer",s),onClick:W=>!I&&L(W),children:o||T.jsx(T.Fragment,{children:T.jsxs("span",{className:"flex items-center gap-2",children:[r,T.jsx("span",{children:t})]})})}):T.jsxs("button",{ref:S,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":j,"aria-disabled":I,className:ce(QI(x,k,j,I||!1),s),onClick:L,disabled:I,...b,children:[_&&r&&T.jsx("span",{className:eP(k,I||!1),children:r}),T.jsx("span",{className:tP(),children:o||t})]})});nP.displayName="TabItem";const oP=M.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:r,...n},o)=>T.jsx("div",{"data-qui":"TabNavContainer",className:Dw(e,t),ref:o,...n,children:r}));oP.displayName="TabNavContainer";var Rt=function(){return Rt=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},Rt.apply(this,arguments)},Fm={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Bm={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Ml={width:"20px",height:"20px",position:"absolute",zIndex:1},iP={top:Rt(Rt({},Fm),{top:"-5px"}),right:Rt(Rt({},Bm),{left:void 0,right:"-5px"}),bottom:Rt(Rt({},Fm),{top:void 0,bottom:"-5px"}),left:Rt(Rt({},Bm),{left:"-5px"}),topRight:Rt(Rt({},Ml),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Rt(Rt({},Ml),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Rt(Rt({},Ml),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Rt(Rt({},Ml),{left:"-10px",top:"-10px",cursor:"nw-resize"})},sP=M.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,o=e.replaceStyles,s=e.className,l=M.useCallback(function(d){t(d,r)},[t,r]),c=M.useCallback(function(d){t(d,r)},[t,r]),u=M.useMemo(function(){return Rt(Rt({position:"absolute",userSelect:"none"},iP[r]),o??{})},[o,r]);return T.jsx("div",{className:s||void 0,style:u,onMouseDown:l,onTouchStart:c,children:n})}),aP=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])},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)}})(),gn=function(){return gn=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},gn.apply(this,arguments)},lP={width:"auto",height:"auto"},Dl=function(e,t,r){return Math.max(Math.min(e,r),t)},Hm=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},vi=function(e,t){return new RegExp(e,"i").test(t)},Ll=function(e){return!!(e.touches&&e.touches.length)},cP=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Wm=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(s,l,c){return Math.abs(l-e)<Math.abs(t[s]-e)?c:s},0),o=Math.abs(t[n]-e);return r===0||o<r?t[n]:e},Fd=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")},zl=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},uP=function(e,t,r,n,o,s,l){return n=zl(n,e.width,t,r),o=zl(o,e.height,t,r),s=zl(s,e.width,t,r),l=zl(l,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof s>"u"?void 0:Number(s),minHeight:typeof l>"u"?void 0:Number(l)}},dP=function(e){return Array.isArray(e)?e:[e,e]},fP=["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"],Vm="__resizable_base__",pP=(function(e){aP(t,e);function t(r){var n,o,s,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(Vm):d.className+=Vm,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=(s=c.propsSize)===null||s===void 0?void 0:s.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||lP},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,s=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:s,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(),g=Number(r.state[c].toString().replace("px","")),p=g/d[c]*100;return"".concat(p,"%")}return Fd(r.state[c])},s=n&&typeof n.width<"u"&&!this.state.isResizing?Fd(n.width):o("width"),l=n&&typeof n.height<"u"&&!this.state.isResizing?Fd(n.height):o("height");return{width:s,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 s={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=o),this.removeBase(r),s},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,s=this.state.direction,l=o&&vi("left",s),c=o&&vi("top",s),u,d;if(this.props.bounds==="parent"){var g=this.parentNode;g&&(u=l?this.resizableRight-this.parentLeft:g.offsetWidth+(this.parentLeft-this.resizableLeft),d=c?this.resizableBottom-this.parentTop:g.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,s=dP(this.props.resizeRatio||1),l=s[0],c=s[1],u=this.state,d=u.direction,g=u.original,p=this.props,h=p.lockAspectRatio,b=p.lockAspectRatioExtraHeight,S=p.lockAspectRatioExtraWidth,v=g.width,y=g.height,m=b||0,w=S||0;return vi("right",d)&&(v=g.width+(r-g.x)*l/o,h&&(y=(v-w)/this.ratio+m)),vi("left",d)&&(v=g.width-(r-g.x)*l/o,h&&(y=(v-w)/this.ratio+m)),vi("bottom",d)&&(y=g.height+(n-g.y)*c/o,h&&(v=(y-m)*this.ratio+w)),vi("top",d)&&(y=g.height-(n-g.y)*c/o,h&&(v=(y-m)*this.ratio+w)),{newWidth:v,newHeight:y}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,o,s){var l=this.props,c=l.lockAspectRatio,u=l.lockAspectRatioExtraHeight,d=l.lockAspectRatioExtraWidth,g=typeof s.width>"u"?10:s.width,p=typeof o.width>"u"||o.width<0?r:o.width,h=typeof s.height>"u"?10:s.height,b=typeof o.height>"u"||o.height<0?n:o.height,S=u||0,v=d||0;if(c){var y=(h-S)*this.ratio+v,m=(b-S)*this.ratio+v,w=(g-v)/this.ratio+S,x=(p-v)/this.ratio+S,k=Math.max(g,y),_=Math.min(p,m),R=Math.max(h,w),j=Math.min(b,x);r=Dl(r,k,_),n=Dl(n,R,j)}else r=Dl(r,g,p),n=Dl(n,h,b);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 s=this.props.bounds.getBoundingClientRect();this.targetLeft=s.left*r,this.targetTop=s.top*r}if(this.resizable){var l=this.resizable.getBoundingClientRect(),c=l.left,u=l.top,d=l.right,g=l.bottom;this.resizableLeft=c*r,this.resizableRight=d*r,this.resizableTop=u*r,this.resizableBottom=g*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var o=0,s=0;if(r.nativeEvent&&cP(r.nativeEvent)?(o=r.nativeEvent.clientX,s=r.nativeEvent.clientY):r.nativeEvent&&Ll(r.nativeEvent)&&(o=r.nativeEvent.touches[0].clientX,s=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 g=this.window.getComputedStyle(d).flexDirection;this.flexDir=g.startsWith("row")?"row":"column",c=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var p={original:{x:o,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:gn(gn({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:c};this.setState(p)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Ll(r))try{r.preventDefault(),r.stopPropagation()}catch{}var o=this.props,s=o.maxWidth,l=o.maxHeight,c=o.minWidth,u=o.minHeight,d=Ll(r)?r.touches[0].clientX:r.clientX,g=Ll(r)?r.touches[0].clientY:r.clientY,p=this.state,h=p.direction,b=p.original,S=p.width,v=p.height,y=this.getParentSize(),m=uP(y,this.window.innerWidth,this.window.innerHeight,s,l,c,u);s=m.maxWidth,l=m.maxHeight,c=m.minWidth,u=m.minHeight;var w=this.calculateNewSizeFromDirection(d,g),x=w.newHeight,k=w.newWidth,_=this.calculateNewMaxFromBoundary(s,l);this.props.snap&&this.props.snap.x&&(k=Wm(k,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(x=Wm(x,this.props.snap.y,this.props.snapGap));var R=this.calculateNewSizeFromAspectRatio(k,x,{width:_.maxWidth,height:_.maxHeight},{width:c,height:u});if(k=R.newWidth,x=R.newHeight,this.props.grid){var j=Hm(k,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),I=Hm(x,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),L=this.props.snapGap||0,W=L===0||Math.abs(j-k)<=L?j:k,$=L===0||Math.abs(I-x)<=L?I:x;k=W,x=$}var D={width:k-b.width,height:x-b.height};if(this.delta=D,S&&typeof S=="string"){if(S.endsWith("%")){var U=k/y.width*100;k="".concat(U,"%")}else if(S.endsWith("vw")){var V=k/this.window.innerWidth*100;k="".concat(V,"vw")}else if(S.endsWith("vh")){var N=k/this.window.innerHeight*100;k="".concat(N,"vh")}}if(v&&typeof v=="string"){if(v.endsWith("%")){var U=x/y.height*100;x="".concat(U,"%")}else if(v.endsWith("vw")){var V=x/this.window.innerWidth*100;x="".concat(V,"vw")}else if(v.endsWith("vh")){var N=x/this.window.innerHeight*100;x="".concat(N,"vh")}}var X={width:this.createSizeForCssProperty(k,"width"),height:this.createSizeForCssProperty(x,"height")};this.flexDir==="row"?X.flexBasis=X.width:this.flexDir==="column"&&(X.flexBasis=X.height);var ee=this.state.width!==X.width,Y=this.state.height!==X.height,ge=this.state.flexBasis!==X.flexBasis,P=ee||Y||ge;P&&nn.flushSync(function(){n.setState(X)}),this.props.onResize&&P&&this.props.onResize(r,h,this.resizable,D)}},t.prototype.onMouseUp=function(r){var n,o,s=this.state,l=s.isResizing,c=s.direction;s.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:gn(gn({},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,s=n.handleStyles,l=n.handleClasses,c=n.handleWrapperStyle,u=n.handleWrapperClass,d=n.handleComponent;if(!o)return null;var g=Object.keys(o).map(function(p){return o[p]!==!1?T.jsx(sP,{direction:p,onResizeStart:r.onResizeStart,replaceStyles:s&&s[p],className:l&&l[p],children:d&&d[p]?d[p]:null},p):null});return T.jsx("div",{className:u,style:c,children:g})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(l,c){return fP.indexOf(c)!==-1||(l[c]=r.props[c]),l},{}),o=gn(gn(gn({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 s=this.props.as||"div";return T.jsxs(s,gn({style:o,className:this.props.className},n,{ref:function(l){l&&(r.resizable=l)},children:[this.state.isResizing&&T.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})(M.PureComponent);const hP={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},gP={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},Lw=({depth:e=0,className:t,borderType:r,disabled:n})=>ce("transition-colors duration-200",{"text-body":!n,"text-inactive-text":n},r?gP[r]:"border-panel-border",hP[e],t),vP=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 s=e.match(/max-h-\[(\d+)px\]/);return s&&(t.maxHeight=parseInt(s[1],10)),t},zw=M.forwardRef(({children:e,width:t,height:r,minWidth:n=10,minHeight:o=10,maxWidth:s,maxHeight:l,defaultWidth:c,defaultHeight:u,defaultSize:d,size:g,grid:p,snap:h,lockAspectRatio:b=!1,enable:S,handleStyles:v={},handleClasses:y={},handleComponent:m={},style:w={},className:x,onResizeStart:k,onResize:_,onResizeStop:R,scale:j=1,bounds:I,snapGap:L,as:W="div",depth:$,disabled:D},U)=>{const V=Lw({depth:$,className:x,disabled:D}),N=vP(x),X=g?{size:g}:t!==void 0||r!==void 0?{size:{width:t??"auto",height:r??"auto"}}:{},ee=d?{defaultSize:d}:c!==void 0||u!==void 0?{defaultSize:{width:c??"auto",height:u??"auto"}}:{},Y=M.useRef(null);return M.useImperativeHandle(U,()=>{var ge;return(ge=Y.current)==null?void 0:ge.resizable}),T.jsx(pP,{"data-qui":"Resizable",ref:Y,...X,...ee,minWidth:n??N.minWidth,minHeight:o??N.minHeight,maxWidth:s??N.maxWidth,maxHeight:l??N.maxHeight,grid:p,snap:h,lockAspectRatio:b,enable:S,handleStyles:v,handleClasses:y,handleComponent:m,style:w,className:ce("relative box-border",V),onResizeStart:k,onResize:_,onResizeStop:R,scale:j,bounds:I,snapGap:L,as:W,children:e})});zw.displayName="Resizable";const $w=({isDragging:e=!1,className:t})=>T.jsx("div",{className:ce("absolute inset-0 flex items-center justify-center transition-colors",{"bg-primary/30":e},t),children:T.jsx("div",{className:ce("h-full w-full transition-all",{"bg-primary":e,"bg-transparent hover:bg-primary/20":!e})})});$w.displayName="Handle";const mi={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"}},$l={primary:{bg:"bg-primary",thumb:"group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"group-hover:bg-negative-light",icon:"text-negative"}},mP=(e,t,r,n,o,s)=>({container:ce("inline-flex items-center",mi[e].gap,s),track:ce("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","border border-input-border rounded-full justify-between",mi[e].track,{[$l[t].bg]:r&&!n&&!o,"bg-input-bg":!r&&!n||o,"bg-panel cursor-not-allowed":n,"cursor-pointer":!n}),thumb:ce("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",mi[e].thumb,r?mi[e].thumbChecked:mi[e].thumbUnchecked,{[$l[t].thumb]:!n,"bg-canvas-subtle":n}),iconLeft:ce("flex items-center justify-center z-10 w-1/2 p-0.5",{[$l[t].icon]:!r&&!n,"text-panel-subtle":n||r}),iconRight:ce("flex items-center justify-center z-10 w-1/2 p-0.5",{[$l[t].icon]:r&&!n,"text-panel-subtle":n||!r}),label:ce("font-medium text-body",mi[e].label,{"cursor-pointer":!n,"cursor-not-allowed text-muted":n})}),jw=M.forwardRef(({label:e,checked:t,defaultChecked:r=!1,disabled:n=!1,size:o="md",color:s="primary",icons:l,onChange:c,className:u,id:d,name:g,...p},h)=>{const[b,S]=M.useState(r),v=t!==void 0,y=v?t:b,m=()=>{const x=!y;v||S(x),c==null||c(x)},w=mP(o,s,y,n,!!l,u);return T.jsxs("div",{"data-qui":"Toggle",className:w.container,children:[e&&T.jsx("label",{htmlFor:d,className:w.label,children:e}),T.jsxs("button",{ref:h,...p,type:"button",role:"switch","aria-checked":y,"aria-label":e,disabled:n,onClick:m,name:g,id:d,className:w.track,children:[l&&T.jsx("span",{className:w.iconLeft,children:l.unchecked}),T.jsx("span",{className:w.thumb,"aria-hidden":"true"}),l&&T.jsx("span",{className:w.iconRight,children:l.checked})]})]})});jw.displayName="Toggle";M.createContext(null);const yo=M.forwardRef(({depth:e=0,className:t,children:r,borderType:n,disabled:o,...s},l)=>{const c=Lw({depth:e,className:t,borderType:n,disabled:o});return T.jsx("div",{"data-qui":"Panel",ref:l,className:c,"aria-disabled":o,...s,children:r})});yo.displayName="Panel";const ga={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"}},fc={primary:{bg:"bg-primary",text:"text-button-text",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-button-text"},positive:{bg:"bg-positive",text:"text-button-text",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-button-text",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-button-text",border:"border-negative",buttonHover:"hover:bg-negative-hover"},grey:{bg:"bg-input-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-input-hover"},dark:{bg:"bg-tab-inactive-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-primary-hover hover:text-button-text"}},bP=(e,t,r,n)=>ce("inline-flex items-center justify-center font-medium border",ga[e].container,fc[t].bg,fc[t].text,fc[t].border,ga[e].text,{"opacity-60 pointer-events-none":r,"cursor-pointer hover:bg-opacity-90 transition-opacity":n&&!r}),yP=(e,t,r)=>ce({[ga[e].icon]:!r,"bg-canvas-default outline-canvas-default text-primary":r&&t!=="white"||r,"bg-primary outline-primary text-button-text":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}),wP=e=>ce(ga[e].text),Fw=(e,t,r)=>ce("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",ga[e].iconButton,fc[t].buttonHover,{"pointer-events-none":r}),Bw=M.createContext(null),Jc=()=>{const e=M.useContext(Bw);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},Mp=M.forwardRef(({size:e="md",color:t="primary",className:r,children:n,disabled:o=!1,onClick:s,...l},c)=>{const u={size:e,color:t,disabled:o},d=!!s;return T.jsx(Bw.Provider,{value:u,children:T.jsx("div",{"data-qui":"Pill",ref:c,onClick:s,className:ce(bP(e,t,o,d),r),...l,children:n})})});Mp.displayName="Pill.Root";const Dp=M.forwardRef(({className:e,children:t,...r},n)=>{const{size:o}=Jc();return T.jsx("span",{ref:n,className:ce(wP(o),e),...r,children:t})});Dp.displayName="Pill.Text";const Lp=M.forwardRef(({className:e,children:t,label:r,position:n,...o},s)=>{const{size:l,color:c,disabled:u}=Jc(),d=!!r,g=T.jsx("span",{ref:s,className:ce(yP(l,c,d),e,{"opacity-60":u}),...o,children:t});return d&&!u?T.jsx(Nw,{label:r||"",position:n||"up",children:g}):g});Lp.displayName="Pill.Icon";const Hw=M.forwardRef(({className:e,children:t,...r},n)=>{const{size:o,color:s,disabled:l}=Jc();return T.jsx("button",{ref:n,type:"button",disabled:l,className:ce(Fw(o,s,l),e),...r,children:t})});Hw.displayName="Pill.Button";const zp=M.forwardRef(({className:e,onClose:t,"aria-label":r="Remove pill",children:n,...o},s)=>{const{size:l,color:c,disabled:u}=Jc();return T.jsx("button",{ref:s,type:"button",disabled:u,className:ce(Fw(l,c,u),e),onClick:t,"aria-label":r,...o,children:n||T.jsx(Hi,{})})});zp.displayName="Pill.Close";const Ww=M.forwardRef(({size:e="md",color:t="primary",label:r,icon:n,onClose:o,closable:s=!1,className:l,children:c,disabled:u=!1,...d},g)=>T.jsxs(Mp,{ref:g,size:e,color:t,className:l,disabled:u,...d,children:[n&&T.jsx(Lp,{children:n}),c||r&&T.jsx(Dp,{children:r}),s&&T.jsx(zp,{onClose:o})]}));Ww.displayName="Pill";Object.assign(Ww,{Root:Mp,Text:Dp,Icon:Lp,Button:Hw,Close:zp});function bi(e,t,r){let n=r.initialDeps??[],o,s=!0;function l(){var c,u,d;let g;r.key&&(c=r.debug)!=null&&c.call(r)&&(g=Date.now());const p=e();if(!(p.length!==n.length||p.some((b,S)=>n[S]!==b)))return o;n=p;let h;if(r.key&&(u=r.debug)!=null&&u.call(r)&&(h=Date.now()),o=t(...p),r.key&&(d=r.debug)!=null&&d.call(r)){const b=Math.round((Date.now()-g)*100)/100,S=Math.round((Date.now()-h)*100)/100,v=S/16,y=(m,w)=>{for(m=String(m);m.length<w;)m=" "+m;return m};console.info(`%c⏱ ${y(S,5)} /${y(b,5)} ms`,`
15
+ font-size: .6rem;
16
+ font-weight: bold;
17
+ color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,r==null?void 0:r.key)}return r!=null&&r.onChange&&!(s&&r.skipInitialOnChange)&&r.onChange(o),s=!1,o}return l.updateDeps=c=>{n=c},l}function Um(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const xP=(e,t)=>Math.abs(e-t)<1.01,SP=(e,t,r)=>{let n;return function(...o){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,o),r)}},qm=e=>{const{offsetWidth:t,offsetHeight:r}=e;return{width:t,height:r}},EP=e=>e,_P=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let o=t;o<=r;o++)n.push(o);return n},kP=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const o=l=>{const{width:c,height:u}=l;t({width:Math.round(c),height:Math.round(u)})};if(o(qm(r)),!n.ResizeObserver)return()=>{};const s=new n.ResizeObserver(l=>{const c=()=>{const u=l[0];if(u!=null&&u.borderBoxSize){const d=u.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(qm(r))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return s.observe(r,{box:"border-box"}),()=>{s.unobserve(r)}},Gm={passive:!0},Zm=typeof window>"u"?!0:"onscrollend"in window,OP=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let o=0;const s=e.options.useScrollendEvent&&Zm?()=>{}:SP(n,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=g=>()=>{const{horizontal:p,isRtl:h}=e.options;o=p?r.scrollLeft*(h&&-1||1):r.scrollTop,s(),t(o,g)},c=l(!0),u=l(!1);r.addEventListener("scroll",c,Gm);const d=e.options.useScrollendEvent&&Zm;return d&&r.addEventListener("scrollend",u,Gm),()=>{r.removeEventListener("scroll",c),d&&r.removeEventListener("scrollend",u)}},TP=(e,t,r)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return e[r.options.horizontal?"offsetWidth":"offsetHeight"]},AP=(e,{adjustments:t=0,behavior:r},n)=>{var o,s;const l=e+t;(s=(o=n.scrollElement)==null?void 0:o.scrollTo)==null||s.call(o,{[n.options.horizontal?"left":"top"]:l,behavior:r})};class RP{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var r,n,o;return((o=(n=(r=this.targetWindow)==null?void 0:r.performance)==null?void 0:n.now)==null?void 0:o.call(n))??Date.now()},this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(o=>{o.forEach(s=>{const l=()=>{const c=s.target,u=this.indexFromElement(c);if(!c.isConnected){this.observer.unobserve(c);return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(c,s,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var o;(o=n())==null||o.disconnect(),r=null},observe:o=>{var s;return(s=n())==null?void 0:s.observe(o,{box:"border-box"})},unobserve:o=>{var s;return(s=n())==null?void 0:s.unobserve(o)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,o])=>{typeof o>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:EP,rangeExtractor:_P,onChange:()=>{},measureElement:TP,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...r}},this.notify=r=>{var n,o;(o=(n=this.options).onChange)==null||o.call(n,this,r)},this.maybeNotify=bi(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=s,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const o=new Map,s=new Map;for(let l=n-1;l>=0;l--){const c=r[l];if(o.has(c.lane))continue;const u=s.get(c.lane);if(u==null||c.end>u.end?s.set(c.lane,c):c.end<u.end&&o.set(c.lane,!0),o.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((l,c)=>l.end===c.end?l.index-c.index:l.end-c.end)[0]:void 0},this.getMeasurementOptions=bi(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(r,n,o,s,l,c)=>(this.prevLanes!==void 0&&this.prevLanes!==c&&(this.lanesChangedFlag=!0),this.prevLanes=c,this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:o,getItemKey:s,enabled:l,lanes:c}),{key:!1}),this.getMeasurements=bi(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:o,getItemKey:s,enabled:l,lanes:c},u)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>r)for(const h of this.laneAssignments.keys())h>=r&&this.laneAssignments.delete(h);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const d=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===r&&(this.lanesSettling=!1);const g=this.measurementsCache.slice(0,d),p=new Array(c).fill(void 0);for(let h=0;h<d;h++){const b=g[h];b&&(p[b.lane]=h)}for(let h=d;h<r;h++){const b=s(h),S=this.laneAssignments.get(h);let v,y;if(S!==void 0&&this.options.lanes>1){v=S;const k=p[v],_=k!==void 0?g[k]:void 0;y=_?_.end+this.options.gap:n+o}else{const k=this.options.lanes===1?g[h-1]:this.getFurthestMeasurement(g,h);y=k?k.end+this.options.gap:n+o,v=k?k.lane:h%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(h,v)}const m=u.get(b),w=typeof m=="number"?m:this.options.estimateSize(h),x=y+w;g[h]={index:h,start:y,size:w,end:x,key:b,lane:v},p[v]=h}return this.measurementsCache=g,g},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=bi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(r,n,o,s)=>this.range=r.length>0&&n>0?CP({measurements:r,outerSize:n,scrollOffset:o,lanes:s}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=bi(()=>{let r=null,n=null;const o=this.calculateRange();return o&&(r=o.startIndex,n=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,r,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,n]},(r,n,o,s,l)=>s===null||l===null?[]:r({startIndex:s,endIndex:l,overscan:n,count:o}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,o=r.getAttribute(n);return o?parseInt(o,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=r=>{var n;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const o=this.scrollState.index??((n=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:n.index);if(o!==void 0&&this.range){const s=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),l=Math.max(0,o-s),c=Math.min(this.options.count-1,o+s);return r>=l&&r<=c}return!0},this.measureElement=r=>{if(!r){this.elementsCache.forEach((l,c)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(c))});return}const n=this.indexFromElement(r),o=this.options.getItemKey(n),s=this.elementsCache.get(o);s!==r&&(s&&this.observer.unobserve(s),this.observer.observe(r),this.elementsCache.set(o,r)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(r,void 0,this))},this.resizeItem=(r,n)=>{var o;const s=this.measurementsCache[r];if(!s)return;const l=this.itemSizeCache.get(s.key)??s.size,c=n-l;c!==0&&(((o=this.scrollState)==null?void 0:o.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,c,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",c),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,n)),this.notify(!1))},this.getVirtualItems=bi(()=>[this.getVirtualIndexes(),this.getMeasurements()],(r,n)=>{const o=[];for(let s=0,l=r.length;s<l;s++){const c=r[s],u=n[c];o.push(u)}return o},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return Um(n[Vw(0,n.length-1,o=>Um(n[o]).start,r)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const r=this.scrollElement.document.documentElement;return this.options.horizontal?r.scrollWidth-this.scrollElement.innerWidth:r.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(r,n,o=0)=>{if(!this.scrollElement)return 0;const s=this.getSize(),l=this.getScrollOffset();n==="auto"&&(n=r>=l+s?"end":"start"),n==="center"?r+=(o-s)/2:n==="end"&&(r-=s);const c=this.getMaxScrollOffset();return Math.max(Math.min(c,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.getSize(),s=this.getScrollOffset(),l=this.measurementsCache[r];if(!l)return;if(n==="auto")if(l.end>=s+o-this.options.scrollPaddingEnd)n="end";else if(l.start<=s+this.options.scrollPaddingStart)n="start";else return[s,n];if(n==="end"&&r===this.options.count-1)return[this.getMaxScrollOffset(),n];const c=n==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,n,l.size),n]},this.scrollToOffset=(r,{align:n="start",behavior:o="auto"}={})=>{const s=this.getOffsetForAlignment(r,n),l=this.now();this.scrollState={index:null,align:n,behavior:o,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.scrollToIndex=(r,{align:n="auto",behavior:o="auto"}={})=>{r=Math.max(0,Math.min(r,this.options.count-1));const s=this.getOffsetForIndex(r,n);if(!s)return;const[l,c]=s,u=this.now();this.scrollState={index:r,align:c,behavior:o,startedAt:u,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.scrollBy=(r,{behavior:n="auto"}={})=>{const o=this.getScrollOffset()+r,s=this.now();this.scrollState={index:null,align:"start",behavior:n,startedAt:s,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let o;if(n.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=((r=n[n.length-1])==null?void 0:r.end)??0;else{const s=Array(this.options.lanes).fill(null);let l=n.length-1;for(;l>=0&&s.some(c=>c===null);){const c=n[l];s[c.lane]===null&&(s[c.lane]=c.end),l--}o=Math.max(...s.filter(c=>c!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:o})=>{this.options.scrollToFn(r,{behavior:o,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const t=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,r=t?t[0]:this.scrollState.lastTargetOffset,n=1,o=r!==this.scrollState.lastTargetOffset;if(!o&&xP(r,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=n){this.scrollState=null;return}}else this.scrollState.stableFrames=0,o&&(this.scrollState.lastTargetOffset=r,this.scrollState.behavior="auto",this._scrollToOffset(r,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Vw=(e,t,r,n)=>{for(;e<=t;){const o=(e+t)/2|0,s=r(o);if(s<n)e=o+1;else if(s>n)t=o-1;else return o}return e>0?e-1:0};function CP({measurements:e,outerSize:t,scrollOffset:r,lanes:n}){const o=e.length-1,s=u=>e[u].start;if(e.length<=n)return{startIndex:0,endIndex:o};let l=Vw(0,o,s,r),c=l;if(n===1)for(;c<o&&e[c].end<r+t;)c++;else if(n>1){const u=Array(n).fill(0);for(;c<o&&u.some(g=>g<r+t);){const g=e[c];u[g.lane]=g.end,c++}const d=Array(n).fill(r+t);for(;l>=0&&d.some(g=>g>=r);){const g=e[l];d[g.lane]=g.start,l--}l=Math.max(0,l-l%n),c=Math.min(o,c+(n-1-c%n))}return{startIndex:l,endIndex:c}}const Ym=typeof document<"u"?H.useLayoutEffect:H.useEffect;function IP({useFlushSync:e=!0,...t}){const r=H.useReducer(()=>({}),{})[1],n={...t,onChange:(s,l)=>{var c;e&&l?nn.flushSync(r):r(),(c=t.onChange)==null||c.call(t,s,l)}},[o]=H.useState(()=>new RP(n));return o.setOptions(n),Ym(()=>o._didMount(),[]),Ym(()=>o._willUpdate()),o}function PP(e){return IP({observeElementRect:kP,observeElementOffset:OP,scrollToFn:AP,...e})}const NP=M.createContext(null),$t=()=>{const e=M.useContext(NP);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},Mt={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-xs h-3.5",placeholder:"placeholder:text-xs text-xs",singleValue:"text-xs",multiValue:"h-3.5 px-0.5 gap-1 text-xxs",multiValueLabel:"text-xxs",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-xxs",noOptionsMessage:"px-2 py-1 text-xxs",loadingMessage:"px-2 py-1 text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-s h-4",placeholder:"placeholder:text-s text-s",singleValue:"text-s",multiValue:"h-4 p-1 gap-1 text-xs",multiValueLabel:"text-xs",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:"py-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-xs",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-sm h-5",placeholder:"placeholder:text-sm text-sm",singleValue:"text-sm",multiValue:"h-5 px-1.5 gap-1.5 text-s",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-s",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},wt={primary:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text 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-input-focus-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:"ring-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-input-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text 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-positive 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-positive-dark",messageBackground:"bg-positive-light",messageBorder:"ring-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-input-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text 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-input-warning-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-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"ring-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-input-bg text-negative",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-negative",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-negative",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-input-error-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:"ring-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},Uw=({menuOpen:e,menuPlacement:t,hasMessage:r,fallback:n})=>{if(!e)return n;const o=t==="top";return r?o?"last:rounded-b":"first:rounded-t":o?"rounded-b":"rounded-t"},MP=({size:e,color:t,isDisabled:r,hasMessage:n,isInvalid:o,isFocused:s,menuPlacement:l})=>{const c=wt[o?"negative":t],u=Uw({menuOpen:!!(s&&l),menuPlacement:l,hasMessage:n,fallback:"only:rounded first:rounded-t last:rounded-b"});return ce("bg-input-bg flex relative transition-all duration-200 ease-in-out items-center",u,c.control,n?["ring-1",c.messageBorder]:["border",r?"border-input-border":s?c.controlFocused:`border-select-border focus-within:${c.controlFocused}`],Mt[e].trigger,{"ring-1":n,[c.controlDisabled]:r})},DP=({size:e,color:t,isDisabled:r,isAction:n})=>{const o=wt[t];return ce("transition-colors duration-200 rounded max-h-full h-fit px-0.5",Mt[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?o.iconAction:o.icon,{"cursor-pointer p-0.5":n&&!r,[o.iconActionHover]:n&&!r,"pointer-events-none":!n})},LP=({size:e,color:t,isDisabled:r,isFocused:n,isInvalid:o,hasMessage:s,hasGroup:l,menuPlacement:c})=>{const u=wt[o?"negative":t],d=Uw({menuOpen:!!(n&&c),menuPlacement:c,hasMessage:s,fallback:"rounded"});return l?ce("flex items-center justify-between flex-1 min-w-0",Mt[e].control,"bg-transparent border-0",{[u.controlDisabled]:r}):ce("flex items-center justify-between",d,Mt[e].control,u.control,s?["ring-1",u.messageBorder]:["border",r?"border-input-border":n?u.controlFocused:`border-select-border
18
+ focus-within:${u.controlFocused}`],{[u.controlDisabled]:r})},zP=({isMulti:e})=>ce("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),$P=({size:e,color:t})=>ce("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 text-input-text",Mt[e].input,wt[t].placeholder),jP=({size:e,color:t})=>ce("select-none truncate",Mt[e].placeholder,wt[t].placeholder),FP=({size:e,color:t,isDisabled:r})=>ce("truncate",Mt[e].singleValue,r?wt[t].singleValueDisabled:wt[t].singleValue),BP=({size:e,color:t,isDisabled:r,isFocused:n})=>ce("inline-flex items-center rounded-xs",Mt[e].multiValue,r?wt[t].multiValueDisabled:wt[t].multiValue,{"border border-white":n&&!r}),HP=({size:e})=>ce("truncate",Mt[e].multiValueLabel),WP=({size:e,color:t,isDisabled:r})=>ce("flex items-center justify-center cursor-pointer transition-colors",Mt[e].multiValueRemove,wt[t].multiValueRemove),qw=({size:e,color:t,isDisabled:r})=>ce("flex items-center justify-center transition-colors rounded",Mt[e].clearIndicator,r?"hidden":[wt[t].clearIndicator,wt[t].clearIndicatorHover]),VP=({size:e,color:t,isDisabled:r})=>ce("flex items-center justify-center transition-colors rounded",Mt[e].dropdownIndicator,r?"text-grey-200":[wt[t].dropdownIndicator,wt[t].dropdownIndicatorHover]),UP=({size:e,placement:t,hasMessage:r,color:n,hasGroup:o})=>{const s=t==="top";return ce("absolute z-50 overflow-hidden border",o?"-left-px -right-px":"w-full",wt[n].menu,{[wt[n].messageBorder]:r},s?"bottom-full rounded-t rounded-b-none border-b-0":"top-full rounded-b border-t-0",Mt[e].menu)},qP=({size:e})=>ce("overflow-y-auto",Mt[e].menuList,wt.primary.menuList),GP=({size:e,color:t,isDisabled:r,isFocused:n,isSelected:o})=>ce("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2 min-w-fit",Mt[e].option,{[wt[t].optionDisabled]:r,[wt[t].optionSelected]:o&&!r,[wt[t].optionFocused]:n&&!o&&!r,[wt[t].option]:!o&&!n&&!r}),ZP=({size:e})=>ce(Mt[e].group),YP=({size:e,color:t})=>ce(Mt[e].groupHeading,wt[t].groupHeading),KP=({size:e})=>ce("text-grey-100",Mt[e].loadingMessage),XP=({size:e})=>ce(Mt[e].noOptionsMessage,wt.primary.noOptionsMessage),Km=e=>{const t=e[0];return e.length>0&&typeof t=="object"&&t!==null&&"options"in t&&Array.isArray(t.options)};function Os(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 Tt(){return Tt=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},Tt.apply(null,arguments)}function Uf(e,t){return Uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Uf(e,t)}function JP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Uf(e,t)}var jl={exports:{}},Bd={exports:{}},Ye={};/** @license React v16.13.1
19
+ * react-is.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Xm;function QP(){if(Xm)return Ye;Xm=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,s=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,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case t:switch(_=_.type,_){case u:case d:case n:case s:case o:case p:return _;default:switch(_=_&&_.$$typeof,_){case c:case g:case S:case b:case l:return _;default:return R}}case r:return R}}}function k(_){return x(_)===d}return Ye.AsyncMode=u,Ye.ConcurrentMode=d,Ye.ContextConsumer=c,Ye.ContextProvider=l,Ye.Element=t,Ye.ForwardRef=g,Ye.Fragment=n,Ye.Lazy=S,Ye.Memo=b,Ye.Portal=r,Ye.Profiler=s,Ye.StrictMode=o,Ye.Suspense=p,Ye.isAsyncMode=function(_){return k(_)||x(_)===u},Ye.isConcurrentMode=k,Ye.isContextConsumer=function(_){return x(_)===c},Ye.isContextProvider=function(_){return x(_)===l},Ye.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Ye.isForwardRef=function(_){return x(_)===g},Ye.isFragment=function(_){return x(_)===n},Ye.isLazy=function(_){return x(_)===S},Ye.isMemo=function(_){return x(_)===b},Ye.isPortal=function(_){return x(_)===r},Ye.isProfiler=function(_){return x(_)===s},Ye.isStrictMode=function(_){return x(_)===o},Ye.isSuspense=function(_){return x(_)===p},Ye.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===d||_===s||_===o||_===p||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===S||_.$$typeof===b||_.$$typeof===l||_.$$typeof===c||_.$$typeof===g||_.$$typeof===y||_.$$typeof===m||_.$$typeof===w||_.$$typeof===v)},Ye.typeOf=x,Ye}var nt={};/** @license React v16.13.1
26
+ * react-is.development.js
27
+ *
28
+ * Copyright (c) Facebook, Inc. and its affiliates.
29
+ *
30
+ * This source code is licensed under the MIT license found in the
31
+ * LICENSE file in the root directory of this source tree.
32
+ */var Jm;function e3(){return Jm||(Jm=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,s=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,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(K){return typeof K=="string"||typeof K=="function"||K===n||K===d||K===s||K===o||K===p||K===h||typeof K=="object"&&K!==null&&(K.$$typeof===S||K.$$typeof===b||K.$$typeof===l||K.$$typeof===c||K.$$typeof===g||K.$$typeof===y||K.$$typeof===m||K.$$typeof===w||K.$$typeof===v)}function k(K){if(typeof K=="object"&&K!==null){var je=K.$$typeof;switch(je){case t:var me=K.type;switch(me){case u:case d:case n:case s:case o:case p:return me;default:var De=me&&me.$$typeof;switch(De){case c:case g:case S:case b:case l:return De;default:return je}}case r:return je}}}var _=u,R=d,j=c,I=l,L=t,W=g,$=n,D=S,U=b,V=r,N=s,X=o,ee=p,Y=!1;function ge(K){return Y||(Y=!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.")),P(K)||k(K)===u}function P(K){return k(K)===d}function F(K){return k(K)===c}function J(K){return k(K)===l}function te(K){return typeof K=="object"&&K!==null&&K.$$typeof===t}function Z(K){return k(K)===g}function de(K){return k(K)===n}function ie(K){return k(K)===S}function re(K){return k(K)===b}function oe(K){return k(K)===r}function he(K){return k(K)===s}function fe(K){return k(K)===o}function Se(K){return k(K)===p}nt.AsyncMode=_,nt.ConcurrentMode=R,nt.ContextConsumer=j,nt.ContextProvider=I,nt.Element=L,nt.ForwardRef=W,nt.Fragment=$,nt.Lazy=D,nt.Memo=U,nt.Portal=V,nt.Profiler=N,nt.StrictMode=X,nt.Suspense=ee,nt.isAsyncMode=ge,nt.isConcurrentMode=P,nt.isContextConsumer=F,nt.isContextProvider=J,nt.isElement=te,nt.isForwardRef=Z,nt.isFragment=de,nt.isLazy=ie,nt.isMemo=re,nt.isPortal=oe,nt.isProfiler=he,nt.isStrictMode=fe,nt.isSuspense=Se,nt.isValidElementType=x,nt.typeOf=k})()),nt}var Qm;function Gw(){return Qm||(Qm=1,process.env.NODE_ENV==="production"?Bd.exports=QP():Bd.exports=e3()),Bd.exports}/*
33
+ object-assign
34
+ (c) Sindre Sorhus
35
+ @license MIT
36
+ */var Hd,eb;function t3(){if(eb)return Hd;eb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){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 u=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(g){d[g]=g}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Hd=o()?Object.assign:function(s,l){for(var c,u=n(s),d,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)t.call(c,p)&&(u[p]=c[p]);if(e){d=e(c);for(var h=0;h<d.length;h++)r.call(c,d[h])&&(u[d[h]]=c[d[h]])}}return u},Hd}var Wd,tb;function $p(){if(tb)return Wd;tb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wd=e,Wd}var rb,nb;function Zw(){return nb||(nb=1,rb=Function.call.bind(Object.prototype.hasOwnProperty)),rb}var Vd,ob;function r3(){if(ob)return Vd;ob=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=$p(),r={},n=Zw();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(s,l,c,u,d){if(process.env.NODE_ENV!=="production"){for(var g in s)if(n(s,g)){var p;try{if(typeof s[g]!="function"){var h=Error((u||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=s[g](l,g,u,c,null,t)}catch(S){p=S}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var b=d?d():"";e("Failed "+c+" type: "+p.message+(b??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Vd=o,Vd}var Ud,ib;function n3(){if(ib)return Ud;ib=1;var e=Gw(),t=t3(),r=$p(),n=Zw(),o=r3(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return Ud=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(P){var F=P&&(d&&P[d]||P[g]);if(typeof F=="function")return F}var h="<<anonymous>>",b={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:_(),instanceOf:R,node:W(),objectOf:I,oneOf:j,oneOfType:L,shape:D,exact:U};function S(P,F){return P===F?P!==0||1/P===1/F:P!==P&&F!==F}function v(P,F){this.message=P,this.data=F&&typeof F=="object"?F:{},this.stack=""}v.prototype=Error.prototype;function y(P){if(process.env.NODE_ENV!=="production")var F={},J=0;function te(de,ie,re,oe,he,fe,Se){if(oe=oe||h,fe=fe||re,Se!==r){if(u){var K=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 K.name="Invariant Violation",K}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var je=oe+":"+re;!F[je]&&J<3&&(s("You are manually calling a React.PropTypes validation function for the `"+fe+"` prop on `"+oe+"`. 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."),F[je]=!0,J++)}}return ie[re]==null?de?ie[re]===null?new v("The "+he+" `"+fe+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new v("The "+he+" `"+fe+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:P(ie,re,oe,he,fe)}var Z=te.bind(null,!1);return Z.isRequired=te.bind(null,!0),Z}function m(P){function F(J,te,Z,de,ie,re){var oe=J[te],he=X(oe);if(he!==P){var fe=ee(oe);return new v("Invalid "+de+" `"+ie+"` of type "+("`"+fe+"` supplied to `"+Z+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return y(F)}function w(){return y(l)}function x(P){function F(J,te,Z,de,ie){if(typeof P!="function")return new v("Property `"+ie+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var re=J[te];if(!Array.isArray(re)){var oe=X(re);return new v("Invalid "+de+" `"+ie+"` of type "+("`"+oe+"` supplied to `"+Z+"`, expected an array."))}for(var he=0;he<re.length;he++){var fe=P(re,he,Z,de,ie+"["+he+"]",r);if(fe instanceof Error)return fe}return null}return y(F)}function k(){function P(F,J,te,Z,de){var ie=F[J];if(!c(ie)){var re=X(ie);return new v("Invalid "+Z+" `"+de+"` of type "+("`"+re+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return y(P)}function _(){function P(F,J,te,Z,de){var ie=F[J];if(!e.isValidElementType(ie)){var re=X(ie);return new v("Invalid "+Z+" `"+de+"` of type "+("`"+re+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return y(P)}function R(P){function F(J,te,Z,de,ie){if(!(J[te]instanceof P)){var re=P.name||h,oe=ge(J[te]);return new v("Invalid "+de+" `"+ie+"` of type "+("`"+oe+"` supplied to `"+Z+"`, expected ")+("instance of `"+re+"`."))}return null}return y(F)}function j(P){if(!Array.isArray(P))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 F(J,te,Z,de,ie){for(var re=J[te],oe=0;oe<P.length;oe++)if(S(re,P[oe]))return null;var he=JSON.stringify(P,function(fe,Se){var K=ee(Se);return K==="symbol"?String(Se):Se});return new v("Invalid "+de+" `"+ie+"` of value `"+String(re)+"` "+("supplied to `"+Z+"`, expected one of "+he+"."))}return y(F)}function I(P){function F(J,te,Z,de,ie){if(typeof P!="function")return new v("Property `"+ie+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var re=J[te],oe=X(re);if(oe!=="object")return new v("Invalid "+de+" `"+ie+"` of type "+("`"+oe+"` supplied to `"+Z+"`, expected an object."));for(var he in re)if(n(re,he)){var fe=P(re,he,Z,de,ie+"."+he,r);if(fe instanceof Error)return fe}return null}return y(F)}function L(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var F=0;F<P.length;F++){var J=P[F];if(typeof J!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(J)+" at index "+F+"."),l}function te(Z,de,ie,re,oe){for(var he=[],fe=0;fe<P.length;fe++){var Se=P[fe],K=Se(Z,de,ie,re,oe,r);if(K==null)return null;K.data&&n(K.data,"expectedType")&&he.push(K.data.expectedType)}var je=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new v("Invalid "+re+" `"+oe+"` supplied to "+("`"+ie+"`"+je+"."))}return y(te)}function W(){function P(F,J,te,Z,de){return V(F[J])?null:new v("Invalid "+Z+" `"+de+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return y(P)}function $(P,F,J,te,Z){return new v((P||"React class")+": "+F+" type `"+J+"."+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function D(P){function F(J,te,Z,de,ie){var re=J[te],oe=X(re);if(oe!=="object")return new v("Invalid "+de+" `"+ie+"` of type `"+oe+"` "+("supplied to `"+Z+"`, expected `object`."));for(var he in P){var fe=P[he];if(typeof fe!="function")return $(Z,de,ie,he,ee(fe));var Se=fe(re,he,Z,de,ie+"."+he,r);if(Se)return Se}return null}return y(F)}function U(P){function F(J,te,Z,de,ie){var re=J[te],oe=X(re);if(oe!=="object")return new v("Invalid "+de+" `"+ie+"` of type `"+oe+"` "+("supplied to `"+Z+"`, expected `object`."));var he=t({},J[te],P);for(var fe in he){var Se=P[fe];if(n(P,fe)&&typeof Se!="function")return $(Z,de,ie,fe,ee(Se));if(!Se)return new v("Invalid "+de+" `"+ie+"` key `"+fe+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(J[te],null," ")+`
37
+ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var K=Se(re,fe,Z,de,ie+"."+fe,r);if(K)return K}return null}return y(F)}function V(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(V);if(P===null||c(P))return!0;var F=p(P);if(F){var J=F.call(P),te;if(F!==P.entries){for(;!(te=J.next()).done;)if(!V(te.value))return!1}else for(;!(te=J.next()).done;){var Z=te.value;if(Z&&!V(Z[1]))return!1}}else return!1;return!0;default:return!1}}function N(P,F){return P==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function X(P){var F=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":N(F,P)?"symbol":F}function ee(P){if(typeof P>"u"||P===null)return""+P;var F=X(P);if(F==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return F}function Y(P){var F=ee(P);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function ge(P){return!P.constructor||!P.constructor.name?h:P.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},Ud}var qd,sb;function o3(){if(sb)return qd;sb=1;var e=$p();function t(){}function r(){}return r.resetWarningCache=t,qd=function(){function n(l,c,u,d,g,p){if(p!==e){var h=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 h.name="Invariant Violation",h}}n.isRequired=n;function o(){return n}var s={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 s.PropTypes=s,s},qd}var ab;function i3(){if(ab)return jl.exports;if(ab=1,process.env.NODE_ENV!=="production"){var e=Gw(),t=!0;jl.exports=n3()(e.isElement,t)}else jl.exports=o3()();return jl.exports}var s3=i3();const pe=bw(s3);var Gd={exports:{}},Ke={};/**
38
+ * @license React
39
+ * react-is.production.min.js
40
+ *
41
+ * Copyright (c) Facebook, Inc. and its affiliates.
42
+ *
43
+ * This source code is licensed under the MIT license found in the
44
+ * LICENSE file in the root directory of this source tree.
45
+ */var lb;function a3(){if(lb)return Ke;lb=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"),s=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"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function v(y){if(typeof y=="object"&&y!==null){var m=y.$$typeof;switch(m){case e:switch(y=y.type,y){case r:case o:case n:case d:case g:return y;default:switch(y=y&&y.$$typeof,y){case c:case l:case u:case h:case p:case s:return y;default:return m}}case t:return m}}}return Ke.ContextConsumer=l,Ke.ContextProvider=s,Ke.Element=e,Ke.ForwardRef=u,Ke.Fragment=r,Ke.Lazy=h,Ke.Memo=p,Ke.Portal=t,Ke.Profiler=o,Ke.StrictMode=n,Ke.Suspense=d,Ke.SuspenseList=g,Ke.isAsyncMode=function(){return!1},Ke.isConcurrentMode=function(){return!1},Ke.isContextConsumer=function(y){return v(y)===l},Ke.isContextProvider=function(y){return v(y)===s},Ke.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Ke.isForwardRef=function(y){return v(y)===u},Ke.isFragment=function(y){return v(y)===r},Ke.isLazy=function(y){return v(y)===h},Ke.isMemo=function(y){return v(y)===p},Ke.isPortal=function(y){return v(y)===t},Ke.isProfiler=function(y){return v(y)===o},Ke.isStrictMode=function(y){return v(y)===n},Ke.isSuspense=function(y){return v(y)===d},Ke.isSuspenseList=function(y){return v(y)===g},Ke.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===d||y===g||y===b||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===p||y.$$typeof===s||y.$$typeof===l||y.$$typeof===u||y.$$typeof===S||y.getModuleId!==void 0)},Ke.typeOf=v,Ke}var ot={};/**
46
+ * @license React
47
+ * react-is.development.js
48
+ *
49
+ * Copyright (c) Facebook, Inc. and its affiliates.
50
+ *
51
+ * This source code is licensed under the MIT license found in the
52
+ * LICENSE file in the root directory of this source tree.
53
+ */var cb;function l3(){return cb||(cb=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"),s=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"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S=!1,v=!1,y=!1,m=!1,w=!1,x;x=Symbol.for("react.module.reference");function k(me){return!!(typeof me=="string"||typeof me=="function"||me===r||me===o||w||me===n||me===d||me===g||m||me===b||S||v||y||typeof me=="object"&&me!==null&&(me.$$typeof===h||me.$$typeof===p||me.$$typeof===s||me.$$typeof===l||me.$$typeof===u||me.$$typeof===x||me.getModuleId!==void 0))}function _(me){if(typeof me=="object"&&me!==null){var De=me.$$typeof;switch(De){case e:var gt=me.type;switch(gt){case r:case o:case n:case d:case g:return gt;default:var rr=gt&&gt.$$typeof;switch(rr){case c:case l:case u:case h:case p:case s:return rr;default:return De}}case t:return De}}}var R=l,j=s,I=e,L=u,W=r,$=h,D=p,U=t,V=o,N=n,X=d,ee=g,Y=!1,ge=!1;function P(me){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function F(me){return ge||(ge=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(me){return _(me)===l}function te(me){return _(me)===s}function Z(me){return typeof me=="object"&&me!==null&&me.$$typeof===e}function de(me){return _(me)===u}function ie(me){return _(me)===r}function re(me){return _(me)===h}function oe(me){return _(me)===p}function he(me){return _(me)===t}function fe(me){return _(me)===o}function Se(me){return _(me)===n}function K(me){return _(me)===d}function je(me){return _(me)===g}ot.ContextConsumer=R,ot.ContextProvider=j,ot.Element=I,ot.ForwardRef=L,ot.Fragment=W,ot.Lazy=$,ot.Memo=D,ot.Portal=U,ot.Profiler=V,ot.StrictMode=N,ot.Suspense=X,ot.SuspenseList=ee,ot.isAsyncMode=P,ot.isConcurrentMode=F,ot.isContextConsumer=J,ot.isContextProvider=te,ot.isElement=Z,ot.isForwardRef=de,ot.isFragment=ie,ot.isLazy=re,ot.isMemo=oe,ot.isPortal=he,ot.isProfiler=fe,ot.isStrictMode=Se,ot.isSuspense=K,ot.isSuspenseList=je,ot.isValidElementType=k,ot.typeOf=_})()),ot}var ub;function c3(){return ub||(ub=1,process.env.NODE_ENV==="production"?Gd.exports=a3():Gd.exports=l3()),Gd.exports}var db=c3();const fb=e=>typeof e=="object"&&e!=null&&e.nodeType===1,pb=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Fl=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return pb(r.overflowY,t)||pb(r.overflowX,t)||(n=>{const o=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.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,s,l,c)=>s<e&&l>t||s>e&&l<t?0:s<=e&&c<=r||l>=t&&c>=r?s-e-n:l>t&&c<r||s<e&&c>r?l-t+o:0,u3=e=>e.parentElement??(e.getRootNode().host||null),d3=(e,t)=>{var r,n,o,s;if(typeof document>"u")return[];const{inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:U=>U!==c;if(!fb(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,p=[];let h=e;for(;fb(h)&&d(h);){if(h=u3(h),h===g){p.push(h);break}h!=null&&h===document.body&&Fl(h)&&!Fl(document.documentElement)||h!=null&&Fl(h,u)&&p.push(h)}const b=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,S=(s=(o=window.visualViewport)==null?void 0:o.height)!=null?s:innerHeight,{scrollX:v,scrollY:y}=window,{height:m,width:w,top:x,right:k,bottom:_,left:R}=e.getBoundingClientRect(),{top:j,right:I,left:L}=(U=>{const V=window.getComputedStyle(U);return{top:parseFloat(V.scrollMarginTop)||0,right:parseFloat(V.scrollMarginRight)||0,bottom:parseFloat(V.scrollMarginBottom)||0,left:parseFloat(V.scrollMarginLeft)||0}})(e);let W=x-j,$=l==="center"?R+w/2-L+I:l==="end"?k+I:R-L;const D=[];for(let U=0;U<p.length;U++){const V=p[U],{height:N,width:X,top:ee,right:Y,bottom:ge,left:P}=V.getBoundingClientRect();if(x>=0&&R>=0&&_<=S&&k<=b&&(V===g&&!Fl(V)||x>=ee&&_<=ge&&R>=P&&k<=Y))return D;const F=getComputedStyle(V),J=parseInt(F.borderLeftWidth,10),te=parseInt(F.borderTopWidth,10),Z=parseInt(F.borderRightWidth,10),de=parseInt(F.borderBottomWidth,10);let ie=0,re=0;const oe="offsetWidth"in V?V.offsetWidth-V.clientWidth-J-Z:0,he="offsetHeight"in V?V.offsetHeight-V.clientHeight-te-de:0,fe="offsetWidth"in V?V.offsetWidth===0?0:X/V.offsetWidth:0,Se="offsetHeight"in V?V.offsetHeight===0?0:N/V.offsetHeight:0;if(g===V)ie=Bl(y,y+S,S,te,de,y+W,y+W+m,m),re=l==="start"?$:l==="center"?$-b/2:l==="end"?$-b:Bl(v,v+b,b,J,Z,v+$,v+$+w,w),ie=Math.max(0,ie+y),re=Math.max(0,re+v);else{ie=Bl(ee,ge,N,te,de+he,W,W+m,m),re=l==="start"?$-P-J:l==="center"?$-(P+X/2)+oe/2:l==="end"?$-Y+Z+oe:Bl(P,Y,X,J,Z+oe,$,$+w,w);const{scrollLeft:K,scrollTop:je}=V;ie=Se===0?0:Math.max(0,Math.min(je+ie/Se,V.scrollHeight-N/Se+he)),re=fe===0?0:Math.max(0,Math.min(K+re/fe,V.scrollWidth-X/fe+oe)),W+=je-ie,$+=K-re}D.push({el:V,top:ie,left:re})}return D};var $i=function(){return $i=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},$i.apply(this,arguments)},f3=0;function hb(e){return typeof e=="function"?e:$n}function $n(){}function Yw(e,t){if(e){var r=d3(e,{boundary:t});r.forEach(function(n){var o=n.el,s=n.top,l=n.left;o.scrollTop=s,o.scrollLeft=l})}}function gb(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function jp(e,t){var r;function n(){r&&clearTimeout(r)}function o(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];n(),r=setTimeout(function(){r=null,e.apply(void 0,l)},t)}return o.cancel=n,o}function dn(){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,s=new Array(o>1?o-1:0),l=1;l<o;l++)s[l-1]=arguments[l];return t.some(function(c){return c&&c.apply(void 0,[n].concat(s)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function vb(){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 p3(){return String(f3++)}function h3(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 mb(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Kw(e){return typeof e.type=="string"}function Xw(e){return e.props}function g3(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var v3=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function Hl(e){e===void 0&&(e={});var t={};return v3.forEach(function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}function m3(e,t){return!e||!t?e:Object.keys(e).reduce(function(r,n){return r[n]=qf(t,n)?t[n]:e[n],r},{})}function qf(e,t){return e[t]!==void 0}function bb(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function b3(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zd(e,t,r,n,o){var s=r.length;if(s===0)return-1;var l=s-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=Nc(c,t<0,r,n,o);return u===-1?e>=s?-1:e:u}function Nc(e,t,r,n,o){o===void 0&&(o=!1);var s=r.length;if(t){for(var l=e;l>=0;l--)if(!n(r[l],l))return l}else for(var c=e;c<s;c++)if(!n(r[c],c))return c;return o?Nc(t?s-1:0,t,r,n):-1}function yb(e,t,r,n){return n===void 0&&(n=!0),r&&t.some(function(o){return o&&(gb(o,e,r)||n&&gb(o,r.document.activeElement,r))})}var Fp=$n;process.env.NODE_ENV!=="production"&&(Fp=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 y3=jp(function(e){Jw(e).textContent=""},500);function Jw(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 Qw(e,t){if(!(!e||!t)){var r=Jw(t);r.textContent=e,y3(t)}}var ex=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,tx=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,rx=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,pc=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,hc=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,nx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,ox=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,ix=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,sx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,ax=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,lx=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,cx=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,ux=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,Gf=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,dx=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,fx=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,px=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,w3=Object.freeze({__proto__:null,blurButton:dx,blurInput:lx,changeInput:cx,clickButton:Gf,clickItem:ax,controlledPropUpdatedSelectedItem:fx,itemMouseEnter:rx,keyDownArrowDown:hc,keyDownArrowUp:pc,keyDownEnd:sx,keyDownEnter:ox,keyDownEscape:nx,keyDownHome:ix,keyDownSpaceButton:ux,mouseUp:tx,touchEnd:px,unknown:ex}),x3=["refKey","ref"],S3=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],E3=["onKeyDown","onBlur","onChange","onInput","onChangeText"],_3=["refKey","ref"],k3=["onMouseMove","onMouseDown","onClick","onPress","index","item"],O3=(function(){var e=(function(t){function r(o){var s;s=t.call(this,o)||this,s.id=s.props.id||"downshift-"+p3(),s.menuId=s.props.menuId||s.id+"-menu",s.labelId=s.props.labelId||s.id+"-label",s.inputId=s.props.inputId||s.id+"-input",s.getItemId=s.props.getItemId||function(w){return s.id+"-item-"+w},s.items=[],s.itemCount=null,s.previousResultCount=0,s.timeoutIds=[],s.internalSetTimeout=function(w,x){var k=setTimeout(function(){s.timeoutIds=s.timeoutIds.filter(function(_){return _!==k}),w()},x);s.timeoutIds.push(k)},s.setItemCount=function(w){s.itemCount=w},s.unsetItemCount=function(){s.itemCount=null},s.isItemDisabled=function(w,x){var k=s.getItemNodeFromIndex(x);return k&&k.hasAttribute("disabled")},s.setHighlightedIndex=function(w,x){w===void 0&&(w=s.props.defaultHighlightedIndex),x===void 0&&(x={}),x=Hl(x),s.internalSetState(Tt({highlightedIndex:w},x))},s.clearSelection=function(w){s.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:s.props.defaultHighlightedIndex,isOpen:s.props.defaultIsOpen},w)},s.selectItem=function(w,x,k){x=Hl(x),s.internalSetState(Tt({isOpen:s.props.defaultIsOpen,highlightedIndex:s.props.defaultHighlightedIndex,selectedItem:w,inputValue:s.props.itemToString(w)},x),k)},s.selectItemAtIndex=function(w,x,k){var _=s.items[w];_!=null&&s.selectItem(_,x,k)},s.selectHighlightedItem=function(w,x){return s.selectItemAtIndex(s.getState().highlightedIndex,w,x)},s.internalSetState=function(w,x){var k,_,R={},j=typeof w=="function";return!j&&w.hasOwnProperty("inputValue")&&s.props.onInputValueChange(w.inputValue,Tt({},s.getStateAndHelpers(),w)),s.setState(function(I){var L;I=s.getState(I);var W=j?w(I):w;W=s.props.stateReducer(I,W),k=W.hasOwnProperty("selectedItem");var $={};return k&&W.selectedItem!==I.selectedItem&&(_=W.selectedItem),(L=W).type||(L.type=ex),Object.keys(W).forEach(function(D){I[D]!==W[D]&&(R[D]=W[D]),D!=="type"&&(W[D],qf(s.props,D)||($[D]=W[D]))}),j&&W.hasOwnProperty("inputValue")&&s.props.onInputValueChange(W.inputValue,Tt({},s.getStateAndHelpers(),W)),$},function(){hb(x)();var I=Object.keys(R).length>1;I&&s.props.onStateChange(R,s.getStateAndHelpers()),k&&s.props.onSelect(w.selectedItem,s.getStateAndHelpers()),_!==void 0&&s.props.onChange(_,s.getStateAndHelpers()),s.props.onUserAction(R,s.getStateAndHelpers())})},s.rootRef=function(w){return s._rootNode=w},s.getRootProps=function(w,x){var k,_=w===void 0?{}:w,R=_.refKey,j=R===void 0?"ref":R,I=_.ref,L=Os(_,x3),W=x===void 0?{}:x,$=W.suppressRefError,D=$===void 0?!1:$;s.getRootProps.called=!0,s.getRootProps.refKey=j,s.getRootProps.suppressRefError=D;var U=s.getState(),V=U.isOpen;return Tt((k={},k[j]=vb(I,s.rootRef),k.role="combobox",k["aria-expanded"]=V,k["aria-haspopup"]="listbox",k["aria-owns"]=V?s.menuId:void 0,k["aria-labelledby"]=s.labelId,k),L)},s.keyDownHandlers={ArrowDown:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var k=w.shiftKey?5:1;this.moveHighlightedIndex(k,{type:hc})}else this.internalSetState({isOpen:!0,type:hc},function(){var _=x.getItemCount();if(_>0){var R=x.getState(),j=R.highlightedIndex,I=Zd(j,1,{length:_},x.isItemDisabled,!0);x.setHighlightedIndex(I,{type:hc})}})},ArrowUp:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var k=w.shiftKey?-5:-1;this.moveHighlightedIndex(k,{type:pc})}else this.internalSetState({isOpen:!0,type:pc},function(){var _=x.getItemCount();if(_>0){var R=x.getState(),j=R.highlightedIndex,I=Zd(j,-1,{length:_},x.isItemDisabled,!0);x.setHighlightedIndex(I,{type:pc})}})},Enter:function(w){if(w.which!==229){var x=this.getState(),k=x.isOpen,_=x.highlightedIndex;if(k&&_!=null){w.preventDefault();var R=this.items[_],j=this.getItemNodeFromIndex(_);if(R==null||j&&j.hasAttribute("disabled"))return;this.selectHighlightedItem({type:ox})}}},Escape:function(w){w.preventDefault(),this.reset(Tt({type:nx},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},s.buttonKeyDownHandlers=Tt({},s.keyDownHandlers,{" ":function(w){w.preventDefault(),this.toggleMenu({type:ux})}}),s.inputKeyDownHandlers=Tt({},s.keyDownHandlers,{Home:function(w){var x=this.getState(),k=x.isOpen;if(k){w.preventDefault();var _=this.getItemCount();if(!(_<=0||!k)){var R=Nc(0,!1,{length:_},this.isItemDisabled);this.setHighlightedIndex(R,{type:ix})}}},End:function(w){var x=this.getState(),k=x.isOpen;if(k){w.preventDefault();var _=this.getItemCount();if(!(_<=0||!k)){var R=Nc(_-1,!0,{length:_},this.isItemDisabled);this.setHighlightedIndex(R,{type:sx})}}}}),s.getToggleButtonProps=function(w){var x=w===void 0?{}:w,k=x.onClick;x.onPress;var _=x.onKeyDown,R=x.onKeyUp,j=x.onBlur,I=Os(x,S3),L=s.getState(),W=L.isOpen,$={onClick:dn(k,s.buttonHandleClick),onKeyDown:dn(_,s.buttonHandleKeyDown),onKeyUp:dn(R,s.buttonHandleKeyUp),onBlur:dn(j,s.buttonHandleBlur)},D=I.disabled?{}:$;return Tt({type:"button",role:"button","aria-label":W?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},D,I)},s.buttonHandleKeyUp=function(w){w.preventDefault()},s.buttonHandleKeyDown=function(w){var x=bb(w);s.buttonKeyDownHandlers[x]&&s.buttonKeyDownHandlers[x].call(s,w)},s.buttonHandleClick=function(w){if(w.preventDefault(),s.props.environment){var x=s.props.environment.document,k=x.body,_=x.activeElement;k&&k===_&&w.target.focus()}process.env.NODE_ENV==="test"?s.toggleMenu({type:Gf}):s.internalSetTimeout(function(){return s.toggleMenu({type:Gf})})},s.buttonHandleBlur=function(w){var x=w.target;s.internalSetTimeout(function(){if(!(s.isMouseDown||!s.props.environment)){var k=s.props.environment.document.activeElement;(k==null||k.id!==s.inputId)&&k!==x&&s.reset({type:dx})}})},s.getLabelProps=function(w){return Tt({htmlFor:s.inputId,id:s.labelId},w)},s.getInputProps=function(w){var x=w===void 0?{}:w,k=x.onKeyDown,_=x.onBlur,R=x.onChange,j=x.onInput;x.onChangeText;var I=Os(x,E3),L,W={};L="onChange";var $=s.getState(),D=$.inputValue,U=$.isOpen,V=$.highlightedIndex;if(!I.disabled){var N;W=(N={},N[L]=dn(R,j,s.inputHandleChange),N.onKeyDown=dn(k,s.inputHandleKeyDown),N.onBlur=dn(_,s.inputHandleBlur),N)}return Tt({"aria-autocomplete":"list","aria-activedescendant":U&&typeof V=="number"&&V>=0?s.getItemId(V):void 0,"aria-controls":U?s.menuId:void 0,"aria-labelledby":I&&I["aria-label"]?void 0:s.labelId,autoComplete:"off",value:D,id:s.inputId},W,I)},s.inputHandleKeyDown=function(w){var x=bb(w);x&&s.inputKeyDownHandlers[x]&&s.inputKeyDownHandlers[x].call(s,w)},s.inputHandleChange=function(w){s.internalSetState({type:cx,isOpen:!0,inputValue:w.target.value,highlightedIndex:s.props.defaultHighlightedIndex})},s.inputHandleBlur=function(){s.internalSetTimeout(function(){var w;if(!(s.isMouseDown||!s.props.environment)){var x=s.props.environment.document.activeElement,k=(x==null||(w=x.dataset)==null?void 0:w.toggle)&&s._rootNode&&s._rootNode.contains(x);k||s.reset({type:lx})}})},s.menuRef=function(w){s._menuNode=w},s.getMenuProps=function(w,x){var k,_=w===void 0?{}:w,R=_.refKey,j=R===void 0?"ref":R,I=_.ref,L=Os(_,_3),W=x===void 0?{}:x,$=W.suppressRefError,D=$===void 0?!1:$;return s.getMenuProps.called=!0,s.getMenuProps.refKey=j,s.getMenuProps.suppressRefError=D,Tt((k={},k[j]=vb(I,s.menuRef),k.role="listbox",k["aria-labelledby"]=L&&L["aria-label"]?void 0:s.labelId,k.id=s.menuId,k),L)},s.getItemProps=function(w){var x,k=w===void 0?{}:w,_=k.onMouseMove,R=k.onMouseDown,j=k.onClick;k.onPress;var I=k.index,L=k.item,W=L===void 0?process.env.NODE_ENV==="production"?void 0:g3("getItemProps","item"):L,$=Os(k,k3);I===void 0?(s.items.push(W),I=s.items.indexOf(W)):s.items[I]=W;var D="onClick",U=j,V=(x={onMouseMove:dn(_,function(){I!==s.getState().highlightedIndex&&(s.setHighlightedIndex(I,{type:rx}),s.avoidScrolling=!0,s.internalSetTimeout(function(){return s.avoidScrolling=!1},250))}),onMouseDown:dn(R,function(X){X.preventDefault()})},x[D]=dn(U,function(){s.selectItemAtIndex(I,{type:ax})}),x),N=$.disabled?{onMouseDown:V.onMouseDown}:V;return Tt({id:s.getItemId(I),role:"option","aria-selected":s.getState().highlightedIndex===I},N,$)},s.clearItems=function(){s.items=[]},s.reset=function(w,x){w===void 0&&(w={}),w=Hl(w),s.internalSetState(function(k){var _=k.selectedItem;return Tt({isOpen:s.props.defaultIsOpen,highlightedIndex:s.props.defaultHighlightedIndex,inputValue:s.props.itemToString(_)},w)},x)},s.toggleMenu=function(w,x){w===void 0&&(w={}),w=Hl(w),s.internalSetState(function(k){var _=k.isOpen;return Tt({isOpen:!_},_&&{highlightedIndex:s.props.defaultHighlightedIndex},w)},function(){var k=s.getState(),_=k.isOpen,R=k.highlightedIndex;_&&s.getItemCount()>0&&typeof R=="number"&&s.setHighlightedIndex(R,w),hb(x)()})},s.openMenu=function(w){s.internalSetState({isOpen:!0},w)},s.closeMenu=function(w){s.internalSetState({isOpen:!1},w)},s.updateStatus=jp(function(){var w;if((w=s.props)!=null&&(w=w.environment)!=null&&w.document){var x=s.getState(),k=s.items[x.highlightedIndex],_=s.getItemCount(),R=s.props.getA11yStatusMessage(Tt({itemToString:s.props.itemToString,previousResultCount:s.previousResultCount,resultCount:_,highlightedItem:k},x));s.previousResultCount=_,Qw(R,s.props.environment.document)}},200);var l=s.props,c=l.defaultHighlightedIndex,u=l.initialHighlightedIndex,d=u===void 0?c:u,g=l.defaultIsOpen,p=l.initialIsOpen,h=p===void 0?g:p,b=l.initialInputValue,S=b===void 0?"":b,v=l.initialSelectedItem,y=v===void 0?null:v,m=s.getState({highlightedIndex:d,isOpen:h,inputValue:S,selectedItem:y});return m.selectedItem!=null&&s.props.initialInputValue===void 0&&(m.inputValue=s.props.itemToString(m.selectedItem)),s.state=m,s}JP(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),m3(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,s){var l=this.getItemCount(),c=this.getState(),u=c.highlightedIndex;if(l>0){var d=Zd(u,o,{length:l},this.isItemDisabled,!0);this.setHighlightedIndex(d,s)}},n.getStateAndHelpers=function(){var o=this.getState(),s=o.highlightedIndex,l=o.inputValue,c=o.selectedItem,u=o.isOpen,d=this.props.itemToString,g=this.id,p=this.getRootProps,h=this.getToggleButtonProps,b=this.getLabelProps,S=this.getMenuProps,v=this.getInputProps,y=this.getItemProps,m=this.openMenu,w=this.closeMenu,x=this.toggleMenu,k=this.selectItem,_=this.selectItemAtIndex,R=this.selectHighlightedItem,j=this.setHighlightedIndex,I=this.clearSelection,L=this.clearItems,W=this.reset,$=this.setItemCount,D=this.unsetItemCount,U=this.internalSetState;return{getRootProps:p,getToggleButtonProps:h,getLabelProps:b,getMenuProps:S,getInputProps:v,getItemProps:y,reset:W,openMenu:m,closeMenu:w,toggleMenu:x,selectItem:k,selectItemAtIndex:_,selectHighlightedItem:R,setHighlightedIndex:j,clearSelection:I,clearItems:L,setItemCount:$,unsetItemCount:D,setState:U,itemToString:d,id:g,highlightedIndex:s,inputValue:l,isOpen:u,selectedItem:c}},n.componentDidMount=function(){var o=this;if(process.env.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&wb(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){o.internalClearTimeouts()};else{var s=function(){o.isMouseDown=!0},l=function(p){o.isMouseDown=!1;var h=yb(p.target,[o._rootNode,o._menuNode],o.props.environment);!h&&o.getState().isOpen&&o.reset({type:tx},function(){return o.props.onOuterClick(o.getStateAndHelpers())})},c=function(){o.isTouchMove=!1},u=function(){o.isTouchMove=!0},d=function(p){var h=yb(p.target,[o._rootNode,o._menuNode],o.props.environment,!1);!o.isTouchMove&&!h&&o.getState().isOpen&&o.reset({type:px},function(){return o.props.onOuterClick(o.getStateAndHelpers())})},g=this.props.environment;g.addEventListener("mousedown",s),g.addEventListener("mouseup",l),g.addEventListener("touchstart",c),g.addEventListener("touchmove",u),g.addEventListener("touchend",d),this.cleanup=function(){o.internalClearTimeouts(),o.updateStatus.cancel(),g.removeEventListener("mousedown",s),g.removeEventListener("mouseup",l),g.removeEventListener("touchstart",c),g.removeEventListener("touchmove",u),g.removeEventListener("touchend",d)}}},n.shouldScroll=function(o,s){var l=this.props.highlightedIndex===void 0?this.getState():this.props,c=l.highlightedIndex,u=s.highlightedIndex===void 0?o:s,d=u.highlightedIndex,g=c&&this.getState().isOpen&&!o.isOpen,p=c!==d;return g||p},n.componentDidUpdate=function(o,s){process.env.NODE_ENV!=="production"&&(Fp(this.state,o,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&wb(this._menuNode,this.getMenuProps)),qf(this.props,"selectedItem")&&this.props.selectedItemChanged(o.selectedItem,this.props.selectedItem)&&this.internalSetState({type:fx,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(s,o)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var o=mb(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 s=mb(o(this.getStateAndHelpers()));if(!s)return null;if(this.getRootProps.called||this.props.suppressRefError)return process.env.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&T3(s,this.getRootProps),s;if(Kw(s))return M.cloneElement(s,this.getRootProps(Xw(s)));if(process.env.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},r})(M.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:h3,itemToString:function(t){return t==null?"":(process.env.NODE_ENV!=="production"&&b3(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:Yw},e.stateChangeTypes=w3,e})();process.env.NODE_ENV!=="production"&&(O3.propTypes={children:pe.func,defaultHighlightedIndex:pe.number,defaultIsOpen:pe.bool,initialHighlightedIndex:pe.number,initialSelectedItem:pe.any,initialInputValue:pe.string,initialIsOpen:pe.bool,getA11yStatusMessage:pe.func,itemToString:pe.func,onChange:pe.func,onSelect:pe.func,onStateChange:pe.func,onInputValueChange:pe.func,onUserAction:pe.func,onOuterClick:pe.func,selectedItemChanged:pe.func,stateReducer:pe.func,itemCount:pe.number,id:pe.string,environment:pe.shape({addEventListener:pe.func.isRequired,removeEventListener:pe.func.isRequired,document:pe.shape({createElement:pe.func.isRequired,getElementById:pe.func.isRequired,activeElement:pe.any.isRequired,body:pe.any.isRequired}).isRequired,Node:pe.func.isRequired}),suppressRefError:pe.bool,scrollIntoView:pe.func,selectedItem:pe.any,isOpen:pe.bool,inputValue:pe.string,highlightedIndex:pe.number,labelId:pe.string,inputId:pe.string,menuId:pe.string,getItemId:pe.func});function wb(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 T3(e,t){var r=t.refKey,n=r!=="ref",o=!Kw(e);o&&!n&&!db.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+'"'),!db.isForwardRef(e)&&!Xw(e)[r]&&console.error('downshift: You must apply the ref prop "'+r+'" from getRootProps onto your root element.')}function A3(e,t){return t.changes}jp(function(e,t){Qw(e,t)},200);var aa={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:A3,scrollIntoView:Yw,environment:typeof window>"u"?void 0:window};process.env.NODE_ENV;process.env.NODE_ENV;function R3(){var e=M.useRef(!0);return M.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}var gc={environment:pe.shape({addEventListener:pe.func.isRequired,removeEventListener:pe.func.isRequired,document:pe.shape({createElement:pe.func.isRequired,getElementById:pe.func.isRequired,activeElement:pe.any.isRequired,body:pe.any.isRequired}).isRequired,Node:pe.func.isRequired}),itemToString:pe.func,itemToKey:pe.func,stateReducer:pe.func},hx=Tt({},gc,{getA11yStatusMessage:pe.func,highlightedIndex:pe.number,defaultHighlightedIndex:pe.number,initialHighlightedIndex:pe.number,isOpen:pe.bool,defaultIsOpen:pe.bool,initialIsOpen:pe.bool,selectedItem:pe.any,initialSelectedItem:pe.any,defaultSelectedItem:pe.any,id:pe.string,labelId:pe.string,menuId:pe.string,getItemId:pe.func,toggleButtonId:pe.string,onSelectedItemChange:pe.func,onHighlightedIndexChange:pe.func,onStateChange:pe.func,onIsOpenChange:pe.func,scrollIntoView:pe.func}),C3=$i($i({},hx),{items:pe.array.isRequired,isItemDisabled:pe.func});$i($i({},aa),{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 I3=Tt({},hx,{items:pe.array.isRequired,isItemDisabled:pe.func,inputValue:pe.string,defaultInputValue:pe.string,initialInputValue:pe.string,inputId:pe.string,onInputValueChange:pe.func});process.env.NODE_ENV;Tt({},aa,{isItemDisabled:function(){return!1}});var P3={stateReducer:gc.stateReducer,itemToKey:gc.itemToKey,environment:gc.environment,selectedItems:pe.array,initialSelectedItems:pe.array,defaultSelectedItems:pe.array,getA11yStatusMessage:pe.func,activeIndex:pe.number,initialActiveIndex:pe.number,defaultActiveIndex:pe.number,onActiveIndexChange:pe.func,onSelectedItemsChange:pe.func,keyNavigationNext:pe.string,keyNavigationPrevious:pe.string};aa.itemToKey,aa.stateReducer,aa.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 N3=M.forwardRef(({className:e,children:t,isFocused:r,isDisabled:n,...o},s)=>{const{size:l,color:c,isDisabled:u,hasMessage:d,hasGroup:g,downshift:p,isInvalid:h,menuPlacement:b}=$t(),S=n??u,v=r??p.isOpen;return T.jsx("div",{ref:s,className:ce(LP({size:l,color:c,isDisabled:S,isFocused:!!v,isInvalid:h&&!p.isOpen,hasMessage:d,hasGroup:g,menuPlacement:p.isOpen?b:void 0}),e),"aria-disabled":S,"aria-invalid":h,role:"combobox",tabIndex:S?-1:0,...o,children:t})}),M3=({className:e,children:t,isMulti:r})=>T.jsx("div",{className:ce(zP({isMulti:r}),e),children:t}),vc=M.forwardRef(({isHidden:e,inputClassName:t,className:r,...n},o)=>{const{size:s,color:l}=$t();return e?T.jsx("input",{ref:o,type:"text",className:r,style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...n}):T.jsx("input",{ref:o,type:"text","data-qui":"SelectSearchInput",className:ce($P({size:s,color:l}),t,e?"":r),...n})}),D3=({className:e,children:t})=>{const{size:r,color:n}=$t();return T.jsx("div",{className:ce(jP({size:r,color:n}),e),children:t})},L3=({className:e,children:t,data:r,isDisabled:n})=>{const{size:o,color:s,getOptionLabel:l}=$t();return T.jsx("div",{className:ce(FP({size:o,color:s,isDisabled:n}),e),children:t||l(r)})},gx=({className:e,children:t,data:r,isDisabled:n,isFocused:o,onRemove:s})=>{const{size:l,color:c,downshift:u,getOptionLabel:d}=$t(),g=()=>{s?s(r):u.removeItem(r)};return T.jsxs("div",{className:ce(BP({size:l,color:c,isDisabled:n,isFocused:o}),e),children:[T.jsx("div",{className:HP({size:l}),children:t||d(r)}),!n&&T.jsx("div",{className:WP({size:l,color:c,isDisabled:!1}),onClick:g,children:T.jsx(Hi,{className:"w-3 h-3"})})]})},vx=({color:e,className:t,children:r,onClick:n,isDisabled:o,...s})=>{const{size:l,color:c,isDisabled:u,downshift:d}=$t(),g=o??u,p=d.selectedItems.length>0;if(g||!p)return null;const h=b=>{b.stopPropagation(),n?n(b):d.clearSelection()};return T.jsx("div",{className:ce(qw({size:l,color:e||c,isDisabled:g}),t),onClick:h,role:"button",tabIndex:0,"aria-label":"Clear selection",...s,children:r||T.jsx(BR,{})})},z3=({className:e,children:t,onClick:r,isDisabled:n,...o})=>{const{size:s,color:l,isDisabled:c,downshift:u}=$t(),d=n??c,g=u.inputValue.length>0&&u.isSearchable;if(d||!g)return null;const p=h=>{d||(h.preventDefault(),h.stopPropagation(),r?r(h):(u.setInputValue(""),u.clearSelection()))};return T.jsx("div",{"data-qui":"SelectIndicator",className:ce(qw({size:s,color:l,isDisabled:d}),"cursor-pointer",e),onClick:p,onMouseDown:h=>{h.preventDefault(),h.stopPropagation()},role:"button",tabIndex:-1,"aria-label":"Clear selection",...o,children:t||T.jsx(Hi,{})})},mx=M.forwardRef(({color:e,className:t,children:r,onClick:n,isDisabled:o,...s},l)=>{const{size:c,color:u,isDisabled:d,downshift:g}=$t(),p=o??d,h=g.isOpen,b=v=>{p||(v.preventDefault(),v.stopPropagation(),n?n(v):g.toggleMenu())},S=v=>{v.preventDefault(),v.stopPropagation()};return T.jsx("div",{ref:l,"data-qui":"SelectIndicator",className:ce(VP({size:c,color:e||u,isDisabled:p}),"cursor-pointer",t),onClick:S,onMouseDown:b,role:"button",tabIndex:-1,"aria-label":h?"Close menu":"Open menu","aria-expanded":h,"aria-disabled":p,...s,children:r||T.jsx(uc,{className:ce("transition-transform duration-200",{"rotate-180":h})})})}),$3=M.forwardRef(({className:e,children:t,placement:r,...n},o)=>{const{size:s,hasMessage:l,color:c,hasGroup:u}=$t();return T.jsx("div",{"data-qui":"SelectMenu",ref:o,className:ce(UP({size:s,placement:r,hasMessage:l,color:c,hasGroup:u}),e),...n,children:t})}),j3=M.forwardRef(({className:e,children:t,maxHeight:r=300,totalHeight:n,...o},s)=>{const{size:l}=$t();return T.jsx(Np,{scrollableNodeProps:{ref:s},className:ce(qP({size:l}),e),style:{maxHeight:r},...o,children:n!==void 0?T.jsx("div",{style:{height:n,position:"relative",width:"100%"},children:t}):t})}),mc=({className:e,children:t,data:r,isDisabled:n,isFocused:o,isSelected:s,innerProps:l,optionClassName:c,...u})=>{const{size:d,color:g,getOptionLabel:p}=$t();return T.jsx("div",{"data-qui":"SelectOption",className:ce(GP({size:d,color:g,isDisabled:n,isFocused:o,isSelected:s}),c,e),...l,...u,children:t??p(r)})},bx=({className:e,children:t,data:r,label:n,renderGroupHeading:o})=>{const{size:s}=$t();return T.jsxs("div",{"data-qui":"SelectOptionGroup",className:ce(ZP({size:s}),e),children:[T.jsx(F3,{children:o?o(r):n||r.label}),t]})},F3=({className:e,children:t})=>{const{size:r,color:n}=$t();return T.jsx("div",{className:ce(YP({size:r,color:n}),e),children:t})},Yd=({className:e,children:t,inputValue:r})=>{const{size:n}=$t();return T.jsx("div",{className:ce(XP({size:n}),e),children:t||`No options found${r?` for "${r}"`:""}`})},B3=M.forwardRef(({className:e,children:t,...r},n)=>{const{size:o,color:s,isDisabled:l,hasMessage:c,isInvalid:u,setHasGroup:d,groupRef:g,menuVisible:p,menuPlacement:h}=$t();return M.useEffect(()=>(d(!0),()=>{d(!1)}),[d]),T.jsx("div",{ref:_i([n,g]),"data-qui":"SelectGroup",className:ce(MP({size:o,color:s,isDisabled:l,hasMessage:c,isInvalid:u,isFocused:p,menuPlacement:p?h:void 0}),e),...r,children:t})}),H3=M.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:o,...s},l)=>{const{size:c,color:u,isDisabled:d}=$t(),g=r||d,p=DP({size:c,color:u,isDisabled:g,isAction:e});return T.jsx("div",{ref:l,"data-qui":"SelectIcon",className:ce(p,t),style:n,role:e||s.onClick?"button":void 0,tabIndex:(e||s.onClick)&&!g?0:void 0,"aria-disabled":g,...s,children:o})}),W3=({isOpen:e,usePortal:t,controlRef:r,selectId:n,children:o})=>{const[s,l]=M.useState(null);return M.useLayoutEffect(()=>{if(t&&e&&r.current){const c=()=>{var u;const d=(u=r.current)==null?void 0:u.closest('[data-qui="SelectGroup"]'),g=d||r.current;if(!g)return;const p=g.getBoundingClientRect();l(d?{top:p.top+window.scrollY+d.clientTop,left:p.left+window.scrollX+d.clientLeft,width:d.clientWidth,height:d.clientHeight}:{top:p.top+window.scrollY,left:p.left+window.scrollX,width:p.width,height:p.height})};return c(),window.addEventListener("resize",c),window.addEventListener("scroll",c,!0),()=>{window.removeEventListener("resize",c),window.removeEventListener("scroll",c,!0)}}},[e,t,r]),e?t&&s?nn.createPortal(T.jsx("div",{"data-qui":"SelectPortal","data-select-id":n,style:{position:"absolute",top:s.top,left:s.left,width:s.width,height:s.height,zIndex:50,pointerEvents:"none"},children:T.jsx("div",{style:{pointerEvents:"auto"},children:o})}),document.body):T.jsx(T.Fragment,{children:o}):null},_i=e=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&"current"in r&&(r.current=t)})},V3=e=>{let t=0,r=window.innerHeight,n=e.parentElement;for(;n&&n!==document.body&&n!==document.documentElement;){const{overflowY:o}=window.getComputedStyle(n);if(o!=="visible"){const s=n.getBoundingClientRect();t=Math.max(t,s.top),r=Math.min(r,s.bottom)}n=n.parentElement}return{top:t,bottom:r}},U3=M.forwardRef(({placeholder:e,noOptionsMessage:t,hideNoOptions:r=!1,loadingMessage:n="Loading...",isClearable:o=!1,isSearchClearable:s=!1,isLoading:l=!1,isRequired:c=!1,hideIndicators:u=!1,hideDropdownIndicator:d=!1,searchPlacement:g="trigger",menuPlacement:p="bottom",hideSelectedOptions:h=!1,onFocus:b,onBlur:S,renderMenuHeader:v,formatOptionLabel:y,renderOption:m,optionClassName:w,renderValue:x,renderGroupHeading:k,inputRef:_,controlShouldRenderValue:R=!0,name:j,id:I,onSelectionComplete:L,"aria-label":W,"aria-labelledby":$,"aria-describedby":D,children:U,usePortal:V=!1,virtualizeThreshold:N=100,className:X,inputClassName:ee,...Y},ge)=>{const{size:P,isInvalid:F,isDisabled:J,hasGroup:te,downshift:Z,options:de=[],getOptionLabel:ie,getOptionValue:re,isOptionDisabled:oe,menuPlacement:he,setMenuPlacement:fe,menuVisible:Se,setMenuVisible:K,inputClassName:je}=$t(),me=ee||je,De=M.useMemo(()=>{if(m)return m;if(y)return({data:_e})=>y(_e)},[m,y]),gt=M.useRef(null),rr=_||gt,at=M.useRef(null),[St,lt]=M.useState(null),tt=M.useRef(null),{isOpen:ft,openMenu:on,selectedItem:Vr,inputValue:nr,highlightedIndex:Gt,getToggleButtonProps:xo,getMenuProps:sn,getInputProps:Tn,getItemProps:So,isMulti:qn,isSearchable:pr,multipleSelection:Yi}=Z,{getDropdownProps:Ki}=Yi;M.useLayoutEffect(()=>{if(!ft)return;if(p==="top"||p==="bottom"){fe(p);return}const _e=at.current;if(!_e)return;const Pe=()=>{const Dt=_e.getBoundingClientRect(),gr=V?{top:0,bottom:window.innerHeight}:V3(_e),vr=gr.bottom-Dt.bottom,Xt=Dt.top-gr.top,an=P==="sm"?22:P==="lg"?36:28,Ur=Math.min((Z.filteredItems.length||1)*an+16,300),ko=St==null?void 0:St.getBoundingClientRect().height,is=ko&&ko>0?ko:Ur,Su=vr>=is;fe(!Su&&Xt>vr?"top":"bottom")};Pe(),window.addEventListener("resize",Pe),window.addEventListener("scroll",Pe,!0);const hr=St&&typeof ResizeObserver<"u"?new ResizeObserver(()=>Pe()):void 0;return St&&(hr==null||hr.observe(St)),()=>{window.removeEventListener("resize",Pe),window.removeEventListener("scroll",Pe,!0),hr==null||hr.disconnect()}},[ft,fe,P,Z.filteredItems.length,p,V,St]),M.useLayoutEffect(()=>{const _e=ft&&!(r&&Z.filteredItems.length===0);return K(_e),()=>K(!1)},[ft,r,Z.filteredItems.length,K]);const or=qn?Z.selectedItems??[]:Vr?[Vr]:[],Eo=or.length>0,Xi=s&&!!nr&&!J&&!u,Jo=o&&(Eo||!!nr)&&!J&&!u,Da=!d&&!u,mu=!Eo&&(!pr||!nr)||!R,La={},Ji={};Object.entries(Y).forEach(([_e,Pe])=>{_e.startsWith("data-")||_e.startsWith("aria-")||_e==="role"?La[_e]=Pe:Ji[_e]=Pe});const Qi=M.useMemo(()=>_i([at,ge]),[ge]),za=sn({},{suppressRefError:!0}),_o=Ki({preventKeyAction:ft}),es={ref:rr,disabled:J,required:c,name:j,id:I,"aria-label":W,"aria-labelledby":$,"aria-describedby":D,"aria-invalid":F,onFocus:b,onBlur:S,...Ji},bu=pr?(Tn==null?void 0:Tn({...es,..._o}))??es:{...es,..._o},{ref:ts,...rs}=bu,ns=M.useMemo(()=>_i([ts]),[ts]),{ref:$a,...Qo}=za,ja=M.useRef($a);ja.current=$a;const os=M.useCallback(_e=>{lt(Pe=>Pe===_e?Pe:_e),_i([ja.current])(_e)},[]),yu=_e=>or.some(Pe=>re(Pe)===re(_e)),Fa=_e=>h?_e.filter(Pe=>!yu(Pe)):_e,wu=_e=>h?_e.map(Pe=>({...Pe,options:Fa(Pe.options)})).filter(Pe=>Pe.options.length>0):_e,Gn=Km(de)?[]:Fa(Z.filteredItems),xu={sm:22,md:28,lg:36}[P]??28,Zn=Gn.length>=N,ei=PP({count:Zn?Gn.length:0,getScrollElement:()=>tt.current,estimateSize:()=>xu,overscan:5});M.useEffect(()=>{Zn&&ft&&Gt>=0&&Gt<Gn.length&&ei.scrollToIndex(Gt,{align:"auto"})},[Gt,Zn,ft]);const{registerOnSelectionComplete:Ba}=$t();M.useEffect(()=>{if(L)return Ba(L)},[L,Ba]);const Ha=pr?{}:xo({disabled:J,..._o,ref:_i([Qi,_o.ref])});return T.jsxs("div",{className:ce({relative:!te,"flex-1 min-w-0":te}),children:[T.jsxs(N3,{"data-qui":"SelectControl",className:X,...pr?{ref:_i([Qi,_o.ref])}:Ha,...La,isFocused:Se,isDisabled:J,onClick:_e=>{_e.defaultPrevented||(pr?on():Z.toggleMenu())},children:[U||T.jsxs(M3,{isMulti:qn,children:[qn&&R&&or.map((_e,Pe)=>T.jsx(gx,{data:_e,index:Pe,isDisabled:J,children:x?x(_e):void 0},re(_e))),!qn&&Eo&&R&&!pr&&T.jsx("div",{className:"flex items-center gap-2",children:T.jsx(L3,{data:or[0],isDisabled:J,children:x?x(or[0]):ie(or[0])})}),pr&&g==="trigger"?T.jsx(vc,{ref:ns,...rs,className:X,inputClassName:me,placeholder:e}):T.jsxs(T.Fragment,{children:[T.jsx(vc,{ref:ns,...rs,className:X,inputClassName:me,isHidden:!0,readOnly:!0,value:or.map(_e=>re(_e)).join(",")}),mu&&T.jsx(D3,{children:e})]})]}),T.jsxs("div",{className:ce("flex items-center size-fit gap-1",{hidden:!Jo&&!Da}),children:[Xi&&T.jsx(z3,{}),Jo&&T.jsx(vx,{}),Da&&T.jsx(mx,{...pr?xo({disabled:J,"aria-label":ft?"Close menu":"Open menu"}):{}})]})]}),!ft&&T.jsx("div",{ref:za.ref,style:{display:"none"},"aria-hidden":"true"}),T.jsx(W3,{isOpen:ft,usePortal:V,controlRef:at,selectId:Z.selectId,children:r&&Z.filteredItems.length===0?T.jsx("div",{...Qo,style:{display:"none"},"aria-hidden":"true"}):T.jsxs($3,{ref:os,...Qo,placement:he,children:[v&&v(Z),pr&&g==="menu"&&T.jsx("div",{className:"p-2",children:T.jsx(vc,{ref:ns,...rs,className:X,inputClassName:me,autoFocus:!0,placeholder:e,onClick:_e=>_e.stopPropagation()})}),T.jsx(j3,{ref:tt,totalHeight:Zn?ei.getTotalSize():void 0,children:l?T.jsx("div",{className:KP({size:P}),children:n}):Z.filteredItems.length===0?T.jsx(Yd,{inputValue:nr,children:typeof t=="function"?t(nr):t}):Km(de)?(()=>{const _e=wu(de);return _e.length===0?T.jsx(Yd,{inputValue:nr,children:typeof t=="function"?t(nr):t}):_e.map((Pe,hr)=>T.jsx(bx,{data:Pe,label:Pe.label,options:Pe.options,renderGroupHeading:k,children:Pe.options.map(Dt=>{const gr=re(Dt),vr=or.some(is=>re(is)===gr),Xt=Z.filteredItems.indexOf(Dt),an=Gt===Xt,Ur=oe(Dt),ko=So({item:Dt,index:Xt});return T.jsx(mc,{...ko,data:Dt,isDisabled:Ur,isFocused:an,isSelected:vr,optionClassName:w,children:De?De({data:Dt,isFocused:an,isSelected:vr,isDisabled:Ur}):void 0},`${gr}-${Xt}`)})},`${Pe.label}-${hr}`))})():Gn.length===0?T.jsx(Yd,{inputValue:nr,children:typeof t=="function"?t(nr):t}):Zn?ei.getVirtualItems().map(_e=>{const Pe=Gn[_e.index],hr=re(Pe),Dt=or.some(Ur=>re(Ur)===hr),gr=Z.filteredItems.indexOf(Pe),vr=Gt===gr,Xt=oe(Pe),an=So({item:Pe,index:gr});return T.jsx("div",{"data-index":_e.index,ref:ei.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${_e.start}px)`},children:T.jsx(mc,{...an,data:Pe,isDisabled:Xt,isFocused:vr,isSelected:Dt,optionClassName:w,children:De?De({data:Pe,isFocused:vr,isSelected:Dt,isDisabled:Xt}):void 0})},_e.key)}):Gn.map(_e=>{const Pe=re(_e),hr=or.some(an=>re(an)===Pe),Dt=Z.filteredItems.indexOf(_e),gr=Gt===Dt,vr=oe(_e),Xt=So({item:_e,index:Dt});return T.jsx(mc,{...Xt,data:_e,isDisabled:vr,isFocused:gr,isSelected:hr,optionClassName:w,children:De?De({data:_e,isFocused:gr,isSelected:hr,isDisabled:vr}):void 0},`${Pe}-${Dt}`)})})]})})]})});B3.displayName="Select.Group";H3.displayName="Select.Icon";vc.displayName="Select.Input";gx.displayName="Select.MultiValue";vx.displayName="Select.ClearIndicator";mx.displayName="Select.DropdownIndicator";mc.displayName="Select.Option";bx.displayName="Select.OptionGroup";const q3=U3;q3.displayName="Select.Field";M.createContext(void 0);const G3=({active:e,disabled:t,error:r,isOpen:n,className:o})=>ce("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":e&&!t,"text-negative":r&&!e&&!t,"bg-primary-hover text-body":n&&!e&&!t,"text-body":!e&&!t&&!r,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},o),Z3=M.forwardRef(({active:e,disabled:t,error:r,isOpen:n,className:o,children:s,as:l="div",...c},u)=>{const d=G3({active:e,disabled:t,error:r,isOpen:n,className:o});return T.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:s})});Z3.displayName="ListItem";var Kd={exports:{}};/*!
54
+ Copyright (c) 2018 Jed Watson.
55
+ Licensed under the MIT License (MIT), see
56
+ http://jedwatson.github.io/classnames
57
+ */var xb;function yx(){return xb||(xb=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=o(s,n(c)))}return s}function n(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=o(l,c));return l}function o(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Kd)),Kd.exports}var Y3=yx();const dt=tw(Y3);function Fo(){return Fo=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},Fo.apply(this,arguments)}const K3=["children","options"],Sb=["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"}),Eb={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},X3=["style","script","pre"],J3=["src","href","data","formAction","srcDoc","action"],Q3=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,eN=/\n{2,}$/,_b=/^(\s*>[\s\S]*?)(?=\n\n|$)/,tN=/^ *> ?/gm,rN=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,nN=/^ {2,}\n/,oN=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,kb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ob=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,iN=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,sN=/^(?:\n *)*\n/,aN=/\r\n?/g,lN=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,cN=/^\[\^([^\]]+)]/,uN=/\f/g,dN=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,fN=/^\s*?\[(x|\s)\]/,Tb=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ab=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Rb=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Xd=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,pN=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Cb=/^<!--[\s\S]*?(?:-->)/,hN=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Jd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,gN=/^\{.*\}$/,vN=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,mN=/^<([^ >]+[:@\/][^ >]+)>/,bN=/-([a-z])?/gi,Ib=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,yN=/^[^\n]+(?: \n|\n{2,})/,wN=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,xN=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,SN=/^\[([^\]]*)\] ?\[([^\]]*)\]/,EN=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,_N=/\t/g,kN=/(^ *\||\| *$)/g,ON=/^ *:-+: *$/,TN=/^ *:-+ *$/,AN=/^ *-+: *$/,Qc=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,eu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",RN=RegExp(`^([*_])\\1${Qc(1)}${eu}\\1\\1(?!\\1)`),CN=RegExp(`^([*_])${Qc(0)}${eu}\\1(?!\\1)`),IN=RegExp(`^(==)${Qc(0)}${eu}\\1`),PN=RegExp(`^(~~)${Qc(0)}${eu}\\1`),NN=/^(:[a-zA-Z0-9-_]+:)/,MN=/^\\([^0-9A-Za-z\s])/,DN=/\\([^0-9A-Za-z\s])/g,LN=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,zN=/^\n+/,$N=/^([ \t]*)/,jN=/(?:^|\n)( *)$/,Bp="(?:\\d+\\.)",Hp="(?:[*+-])";function wx(e){return"( *)("+(e===1?Bp:Hp)+") +"}const xx=wx(1),Sx=wx(2);function Ex(e){return RegExp("^"+(e===1?xx:Sx))}const FN=Ex(1),BN=Ex(2);function _x(e){return RegExp("^"+(e===1?xx:Sx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Bp:Hp)+" )[^\\n]*)*(\\n|$)","gm")}const HN=_x(1),WN=_x(2);function kx(e){const t=e===1?Bp:Hp;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Ox=kx(1),Tx=kx(2);function Pb(e,t){const r=t===1,n=r?Ox:Tx,o=r?HN:WN,s=r?FN:BN;return{t:l=>s.test(l),o:ji(function(l,c){const u=jN.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,g=l[0].replace(eN,`
58
+ `).match(o);let p=!1;return{items:g.map(function(h,b){const S=s.exec(h)[0].length,v=RegExp("^ {1,"+S+"}","gm"),y=h.replace(v,"").replace(s,""),m=b===g.length-1,w=y.indexOf(`
7
59
 
8
- `)!==-1||v&&d;d=S;const E=f.inline,R=f.list;let T;f.list=!0,S?(f.inline=!1,T=Lo(w)+`
60
+ `)!==-1||m&&p;p=w;const x=u.inline,k=u.list;let _;u.list=!0,w?(u.inline=!1,_=la(y)+`
9
61
 
10
- `):(f.inline=!0,T=Lo(w));const C=l(T,f);return f.inline=E,f.list=R,C}),ordered:r,start:p}},l:(u,l,f)=>e(u.ordered?"ol":"ul",{key:f.key,start:u.type==="20"?u.start:void 0},u.items.map(function(p,m){return e("li",{key:m},l(p,f))}))}}const MR=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),DR=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function cg(e){return typeof e=="string"}function Lo(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function ga(e,t){return e.startsWith(t)}function NR(e,t,r){if(Array.isArray(r)){for(let i=0;i<r.length;i++)if(ga(e,r[i]))return!0;return!1}return r(e,t)}function eo(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 FR(e){return bR.test(e)?"right":vR.test(e)?"center":yR.test(e)?"left":null}function fg(e,t,r,i){const s=r.inTable;r.inTable=!0;let a=[[]],u="";function l(){if(!u)return;const f=a[a.length-1];f.push.apply(f,t(u,r)),u=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,p,m)=>{f.trim()==="|"&&(l(),i)?p!==0&&p!==m.length-1&&a.push([]):u+=f}),l(),r.inTable=s,a}function jR(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(mR,"").split("|").map(FR):[],s=e[3]?(function(u,l,f){return u.trim().split(`
11
- `).map(function(p){return fg(p,l,f,!0)})})(e[3],t,r):[],a=fg(e[1],t,r,!!s.length);return r.inline=!1,s.length?{align:i,cells:s,header:a,type:"25"}:{children:a,type:"21"}}function dg(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function $i(e){return e.inline=1,e}function zn(e){return $i(function(t,r){return r.inline?e.exec(t):null})}function yn(e){return $i(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Yr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Vs(e){return $i(function(t){return e.exec(t)})}const zR=/(javascript|vbscript|data(?!:image)):/i;function BR(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(zR.test(t))return null}catch{return null}return e}function Or(e){return e&&e.replace(OR,"$1")}function ma(e,t,r){const i=r.inline||!1,s=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=i,r.simple=s,a}function WR(e,t,r){const i=r.inline||!1,s=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=i,r.simple=s,a}function HR(e,t,r){const i=r.inline||!1;r.inline=!1;const s=e(t,r);return r.inline=i,s}const Dl=(e,t,r)=>({children:ma(t,e[2],r)});function Nl(){return{}}function Fl(){return null}function UR(...e){return e.filter(Boolean).join(" ")}function jl(e,t,r){let i=e;const s=t.split(".");for(;s.length&&(i=i[s[0]],i!==void 0);)s.shift();return i||r}function qR(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Un({},eg,t.namedCodesToUnicode):eg;const r=t.slugify||eo,i=t.sanitizer||BR,s=t.createElement||$.createElement,a=[tg,rg,ng,t.enforceAtxHeadings?og:ig,sg,ug,Uv,qv],u=[...a,cR,Ll,ag,Ml];function l(v,S){for(let E=0;E<v.length;E++)if(v[E].test(S))return!0;return!1}function f(v,S,...E){const R=jl(t.overrides,v+".props",{});return s((function(T,C){const W=jl(C,T);return W?typeof W=="function"||typeof W=="object"&&"render"in W?W:jl(C,T+".component",T):T})(v,t.overrides),Un({},S,R,{className:UR(S==null?void 0:S.className,R.className)||void 0}),...E)}function p(v){v=v.replace(rR,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=hR.test(v)===!1);const E=h(x(S?v:Lo(v).replace(RR,"")+`
62
+ `):(u.inline=!0,_=la(y));const R=c(_,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,g){return e("li",{key:g},c(d,u))}))}}const VN=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),UN=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Nb(e){return typeof e=="string"}function la(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function bc(e,t){return e.startsWith(t)}function qN(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(bc(e,r[n]))return!0;return!1}return r(e,t)}function Ts(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 GN(e){return AN.test(e)?"right":ON.test(e)?"center":TN.test(e)?"left":null}function Mb(e,t,r,n){const o=r.inTable;r.inTable=!0;let s=[[]],l="";function c(){if(!l)return;const u=s[s.length-1];u.push.apply(u,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((u,d,g)=>{u.trim()==="|"&&(c(),n)?d!==0&&d!==g.length-1&&s.push([]):l+=u}),c(),r.inTable=o,s}function ZN(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(kN,"").split("|").map(GN):[],o=e[3]?(function(l,c,u){return l.trim().split(`
63
+ `).map(function(d){return Mb(d,c,u,!0)})})(e[3],t,r):[],s=Mb(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:s,type:"25"}:{children:s,type:"21"}}function Db(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function ji(e){return e.inline=1,e}function Lo(e){return ji(function(t,r){return r.inline?e.exec(t):null})}function lo(e){return ji(function(t,r){return r.inline||r.simple?e.exec(t):null})}function zn(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Wl(e){return ji(function(t){return e.exec(t)})}const YN=/(javascript|vbscript|data(?!:image)):/i;function KN(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(YN.test(t))return null}catch{return null}return e}function fn(e){return e&&e.replace(DN,"$1")}function yc(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;const s=e(t,r);return r.inline=n,r.simple=o,s}function XN(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;const s=e(t,r);return r.inline=n,r.simple=o,s}function JN(e,t,r){const n=r.inline||!1;r.inline=!1;const o=e(t,r);return r.inline=n,o}const Qd=(e,t,r)=>({children:yc(t,e[2],r)});function ef(){return{}}function tf(){return null}function QN(...e){return e.filter(Boolean).join(" ")}function rf(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 e4(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Fo({},Eb,t.namedCodesToUnicode):Eb;const r=t.slugify||Ts,n=t.sanitizer||KN,o=t.createElement||H.createElement,s=[_b,kb,Ob,t.enforceAtxHeadings?Ab:Tb,Rb,Ib,Ox,Tx],l=[...s,yN,Xd,Cb,Jd];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=rf(t.overrides,m+".props",{});return o((function(_,R){const j=rf(R,_);return j?typeof j=="function"||typeof j=="object"&&"render"in j?j:rf(R,_+".component",_):_})(m,t.overrides),Fo({},w,k,{className:QN(w==null?void 0:w.className,k.className)||void 0}),...x)}function d(m){m=m.replace(dN,"");let w=!1;t.forceInline?w=!0:t.forceBlock||(w=EN.test(m)===!1);const x=v(S(w?m:la(m).replace(zN,"")+`
12
64
 
13
- `,{inline:S}));for(;cg(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 T;if(E.length>1||t.forceWrapper)T=E;else{if(E.length===1)return T=E[0],typeof T=="string"?f("span",{key:"outer"},T):T;T=null}return s(R,{key:"outer"},T)}function m(v,S){if(!S||!S.trim())return null;const E=S.match(UA);return E?E.reduce(function(R,T){const C=T.indexOf("=");if(C!==-1){const W=(function(j){return j.indexOf("-")!==-1&&j.match(oR)===null&&(j=j.replace(lR,function(D,H){return H.toUpperCase()})),j})(T.slice(0,C)).trim(),N=(function(j){const D=j[0];return(D==='"'||D==="'")&&j.length>=2&&j[j.length-1]===D?j.slice(1,-1):j})(T.slice(C+1).trim()),F=Qh[W]||W;if(F==="ref")return R;const q=R[F]=(function(j,D,H,G){return D==="style"?(function(k){const Q=[];let J="",re=!1,ce=!1,Z="";if(!k)return Q;for(let ne=0;ne<k.length;ne++){const ue=k[ne];if(ue!=='"'&&ue!=="'"||re||(ce?ue===Z&&(ce=!1,Z=""):(ce=!0,Z=ue)),ue==="("&&J.endsWith("url")?re=!0:ue===")"&&re&&(re=!1),ue!==";"||ce||re)J+=ue;else{const ie=J.trim();if(ie){const he=ie.indexOf(":");if(he>0){const fe=ie.slice(0,he).trim(),ve=ie.slice(he+1).trim();Q.push([fe,ve])}}J=""}}const te=J.trim();if(te){const ne=te.indexOf(":");if(ne>0){const ue=te.slice(0,ne).trim(),ie=te.slice(ne+1).trim();Q.push([ue,ie])}}return Q})(H).reduce(function(k,[Q,J]){return k[Q.replace(/(-[a-z])/g,re=>re[1].toUpperCase())]=G(J,j,Q),k},{}):HA.indexOf(D)!==-1?G(Or(H),j,D):(H.match(sR)&&(H=Or(H.slice(1,H.length-1))),H==="true"||H!=="false"&&H)})(v,W,N,i);typeof q=="string"&&(Ll.test(q)||Ml.test(q))&&(R[F]=p(q.trim()))}else T!=="style"&&(R[Qh[T]||T]=!0);return R},{}):null}const d=[],g={},y={0:{t:[">"],o:Yr(tg),i:1,u(v,S,E){const[,R,T]=v[0].replace(GA,"").match(ZA);return{alert:R,children:S(T,E)}},l(v,S,E){const R={key:E.key};return v.alert&&(R.className="markdown-alert-"+r(v.alert.toLowerCase(),eo),v.children.unshift({attrs:{},children:[{type:"27",text:v.alert}],noInnerParse:!0,type:"11",tag:"header"})),f("blockquote",R,S(v.children,E))}},1:{t:[" "],o:Vs(VA),i:1,u:Nl,l:(v,S,E)=>f("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:Yr(KA),i:1,u:Nl,l:(v,S,E)=>f("hr",{key:E.key})},3:{t:[" "],o:Yr(ng),i:0,u:v=>({lang:void 0,text:Or(Lo(v[0].replace(/^ {4}/gm,"")))}),l:(v,S,E)=>f("pre",{key:E.key},f("code",Un({},v.attrs,{className:v.lang?"lang-"+v.lang:""}),v.text))},4:{t:["```","~~~"],o:Yr(rg),i:0,u:v=>({attrs:m("code",v[3]||""),lang:v[2]||void 0,text:v[4],type:"3"})},5:{t:["`"],o:yn(YA),i:3,u:v=>({text:Or(v[2])}),l:(v,S,E)=>f("code",{key:E.key},v.text)},6:{t:["[^"],o:Yr(QA),i:0,u:v=>(d.push({footnote:v[2],identifier:v[1]}),{}),l:Fl},7:{t:["[^"],o:zn(eR),i:1,u:v=>({target:"#"+r(v[1],eo),text:v[1]}),l:(v,S,E)=>f("a",{key:E.key,href:i(v.target,"a","href")},f("sup",{key:E.key},v.text))},8:{t:["[ ]","[x]"],o:zn(nR),i:1,u:v=>({completed:v[1].toLowerCase()==="x"}),l:(v,S,E)=>f("input",{checked:v.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Yr(t.enforceAtxHeadings?og:ig),i:1,u:(v,S,E)=>({children:ma(S,v[2],E),id:r(v[2],eo),level:v[1].length}),l:(v,S,E)=>f("h"+v.level,{id:v.id,key:E.key},S(v.children,E))},10:{t:v=>{const S=v.indexOf(`
14
- `);return S>0&&S<v.length-1&&(v[S+1]==="="||v[S+1]==="-")},o:Yr(sg),i:1,u:(v,S,E)=>({children:ma(S,v[1],E),level:v[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Vs(Ll),i:1,u(v,S,E){const[,R]=v[3].match(PR),T=RegExp("^"+R,"gm"),C=v[3].replace(T,""),W=l(u,C)?HR:ma,N=v[1].toLowerCase(),F=WA.indexOf(N)!==-1,q=(F?N:v[1]).trim(),j={attrs:m(q,v[2]),noInnerParse:F,tag:q};if(E.inAnchor=E.inAnchor||N==="a",F)j.text=v[3];else{const D=E.inHTML;E.inHTML=!0,j.children=W(S,C,E),E.inHTML=D}return E.inAnchor=!1,j},l:(v,S,E)=>f(v.tag,Un({key:E.key},v.attrs),v.text||(v.children?S(v.children,E):""))},13:{t:["<"],o:Vs(Ml),i:1,u(v){const S=v[1].trim();return{attrs:m(S,v[2]||""),tag:S}},l:(v,S,E)=>f(v.tag,Un({},v.attrs,{key:E.key}))},12:{t:["<!--"],o:Vs(ag),i:1,u:()=>({}),l:Fl},14:{t:["!["],o:yn(DR),i:1,u:v=>({alt:Or(v[1]),target:Or(v[2]),title:Or(v[3])}),l:(v,S,E)=>f("img",{key:E.key,alt:v.alt||void 0,title:v.title||void 0,src:i(v.target,"img","src")})},15:{t:["["],o:zn(MR),i:3,u:(v,S,E)=>({children:WR(S,v[1],E),target:Or(v[2]),title:Or(v[3])}),l:(v,S,E)=>f("a",{key:E.key,href:i(v.target,"a","href"),title:v.title},S(v.children,E))},16:{t:["<"],o:zn(uR),i:0,u(v){let S=v[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:(v,S)=>!S.inAnchor&&!t.disableAutoLink&&(ga(v,"http://")||ga(v,"https://")),o:zn(aR),i:0,u:v=>({children:[{text:v[1],type:"27"}],target:v[1],title:void 0,type:"15"})},20:lg(f,1),33:lg(f,2),19:{t:[`
15
- `],o:Yr(XA),i:3,u:Nl,l:()=>`
16
- `},21:{o:$i(function(v,S){if(S.inline||S.simple||S.inHTML&&v.indexOf(`
65
+ `,{inline:w}));for(;Nb(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 _;if(x.length>1||t.forceWrapper)_=x;else{if(x.length===1)return _=x[0],typeof _=="string"?u("span",{key:"outer"},_):_;_=null}return o(k,{key:"outer"},_)}function g(m,w){if(!w||!w.trim())return null;const x=w.match(Q3);return x?x.reduce(function(k,_){const R=_.indexOf("=");if(R!==-1){const j=(function($){return $.indexOf("-")!==-1&&$.match(hN)===null&&($=$.replace(bN,function(D,U){return U.toUpperCase()})),$})(_.slice(0,R)).trim(),I=(function($){const D=$[0];return(D==='"'||D==="'")&&$.length>=2&&$[$.length-1]===D?$.slice(1,-1):$})(_.slice(R+1).trim()),L=Sb[j]||j;if(L==="ref")return k;const W=k[L]=(function($,D,U,V){return D==="style"?(function(N){const X=[];let ee="",Y=!1,ge=!1,P="";if(!N)return X;for(let J=0;J<N.length;J++){const te=N[J];if(te!=='"'&&te!=="'"||Y||(ge?te===P&&(ge=!1,P=""):(ge=!0,P=te)),te==="("&&ee.endsWith("url")?Y=!0:te===")"&&Y&&(Y=!1),te!==";"||ge||Y)ee+=te;else{const Z=ee.trim();if(Z){const de=Z.indexOf(":");if(de>0){const ie=Z.slice(0,de).trim(),re=Z.slice(de+1).trim();X.push([ie,re])}}ee=""}}const F=ee.trim();if(F){const J=F.indexOf(":");if(J>0){const te=F.slice(0,J).trim(),Z=F.slice(J+1).trim();X.push([te,Z])}}return X})(U).reduce(function(N,[X,ee]){return N[X.replace(/(-[a-z])/g,Y=>Y[1].toUpperCase())]=V(ee,$,X),N},{}):J3.indexOf(D)!==-1?V(fn(U),$,D):(U.match(gN)&&(U=fn(U.slice(1,U.length-1))),U==="true"||U!=="false"&&U)})(m,j,I,n);typeof W=="string"&&(Xd.test(W)||Jd.test(W))&&(k[L]=d(W.trim()))}else _!=="style"&&(k[Sb[_]||_]=!0);return k},{}):null}const p=[],h={},b={0:{t:[">"],o:zn(_b),i:1,u(m,w,x){const[,k,_]=m[0].replace(tN,"").match(rN);return{alert:k,children:w(_,x)}},l(m,w,x){const k={key:x.key};return m.alert&&(k.className="markdown-alert-"+r(m.alert.toLowerCase(),Ts),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:Wl(nN),i:1,u:ef,l:(m,w,x)=>u("br",{key:x.key})},2:{t:["--","__","**","- ","* ","_ "],o:zn(oN),i:1,u:ef,l:(m,w,x)=>u("hr",{key:x.key})},3:{t:[" "],o:zn(Ob),i:0,u:m=>({lang:void 0,text:fn(la(m[0].replace(/^ {4}/gm,"")))}),l:(m,w,x)=>u("pre",{key:x.key},u("code",Fo({},m.attrs,{className:m.lang?"lang-"+m.lang:""}),m.text))},4:{t:["```","~~~"],o:zn(kb),i:0,u:m=>({attrs:g("code",m[3]||""),lang:m[2]||void 0,text:m[4],type:"3"})},5:{t:["`"],o:lo(iN),i:3,u:m=>({text:fn(m[2])}),l:(m,w,x)=>u("code",{key:x.key},m.text)},6:{t:["[^"],o:zn(lN),i:0,u:m=>(p.push({footnote:m[2],identifier:m[1]}),{}),l:tf},7:{t:["[^"],o:Lo(cN),i:1,u:m=>({target:"#"+r(m[1],Ts),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:Lo(fN),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:zn(t.enforceAtxHeadings?Ab:Tb),i:1,u:(m,w,x)=>({children:yc(w,m[2],x),id:r(m[2],Ts),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(`
66
+ `);return w>0&&w<m.length-1&&(m[w+1]==="="||m[w+1]==="-")},o:zn(Rb),i:0,u:(m,w,x)=>({children:yc(w,m[1],x),level:m[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Wl(Xd),i:1,u(m,w,x){const[,k]=m[3].match($N),_=RegExp("^"+k,"gm"),R=m[3].replace(_,""),j=c(l,R)?JN:yc,I=m[1].toLowerCase(),L=X3.indexOf(I)!==-1,W=(L?I:m[1]).trim(),$={attrs:g(W,m[2]),noInnerParse:L,tag:W};if(x.inAnchor=x.inAnchor||I==="a",L)$.text=m[3];else{const D=x.inHTML;x.inHTML=!0,$.children=j(w,R,x),x.inHTML=D}return x.inAnchor=!1,$},l:(m,w,x)=>u(m.tag,Fo({key:x.key},m.attrs),m.text||(m.children?w(m.children,x):""))},13:{t:["<"],o:Wl(Jd),i:1,u(m){const w=m[1].trim();return{attrs:g(w,m[2]||""),tag:w}},l:(m,w,x)=>u(m.tag,Fo({},m.attrs,{key:x.key}))},12:{t:["<!--"],o:Wl(Cb),i:1,u:()=>({}),l:tf},14:{t:["!["],o:lo(UN),i:1,u:m=>({alt:fn(m[1]),target:fn(m[2]),title:fn(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:Lo(VN),i:3,u:(m,w,x)=>({children:XN(w,m[1],x),target:fn(m[2]),title:fn(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:Lo(mN),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&&(bc(m,"http://")||bc(m,"https://")),o:Lo(vN),i:0,u:m=>({children:[{text:m[1],type:"27"}],target:m[1],title:void 0,type:"15"})},20:Pb(u,1),33:Pb(u,2),19:{t:[`
67
+ `],o:zn(sN),i:3,u:ef,l:()=>`
68
+ `},21:{o:ji(function(m,w){if(w.inline||w.simple||w.inHTML&&m.indexOf(`
17
69
 
18
- `)===-1&&S.prevCapture.indexOf(`
70
+ `)===-1&&w.prevCapture.indexOf(`
19
71
 
20
- `)===-1)return null;let E="",R=0;for(;;){const C=v.indexOf(`
21
- `,R),W=v.slice(R,C===-1?void 0:C+1);if(l(a,W)||(E+=W,C===-1||!W.trim()))break;R=C+1}const T=Lo(E);return T===""?null:[E,,T]}),i:3,u:Dl,l:(v,S,E)=>f("p",{key:E.key},S(v.children,E))},22:{t:["["],o:zn(fR),i:0,u:v=>(g[v[1]]={target:v[2],title:v[4]},{}),l:Fl},23:{t:["!["],o:yn(dR),i:0,u:v=>({alt:v[1]?Or(v[1]):void 0,ref:v[2]}),l:(v,S,E)=>g[v.ref]?f("img",{key:E.key,alt:v.alt,src:i(g[v.ref].target,"img","src"),title:g[v.ref].title}):null},24:{t:v=>v[0]==="["&&v.indexOf("](")===-1,o:zn(pR),i:0,u:(v,S,E)=>({children:S(v[1],E),fallbackChildren:v[0],ref:v[2]}),l:(v,S,E)=>g[v.ref]?f("a",{key:E.key,href:i(g[v.ref].target,"a","href"),title:g[v.ref].title},S(v.children,E)):f("span",{key:E.key},v.fallbackChildren)},25:{t:["|"],o:Yr(ug),i:1,u:jR,l(v,S,E){const R=v;return f("table",{key:E.key},f("thead",null,f("tr",null,R.header.map(function(T,C){return f("th",{key:C,style:dg(R,C)},S(T,E))}))),f("tbody",null,R.cells.map(function(T,C){return f("tr",{key:C},T.map(function(W,N){return f("td",{key:N,style:dg(R,N)},S(W,E))}))})))}},27:{o:$i(function(v,S){let E;return ga(v,":")&&(E=_R.exec(v)),E||AR.exec(v)}),i:4,u(v){const S=v[0];return{text:S.indexOf("&")===-1?S:S.replace(iR,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:v=>v.text},28:{t:["**","__"],o:yn(wR),i:2,u:(v,S,E)=>({children:S(v[2],E)}),l:(v,S,E)=>f("strong",{key:E.key},S(v.children,E))},29:{t:v=>{const S=v[0];return(S==="*"||S==="_")&&v[1]!==S},o:yn(xR),i:3,u:(v,S,E)=>({children:S(v[2],E)}),l:(v,S,E)=>f("em",{key:E.key},S(v.children,E))},30:{t:["\\"],o:yn(TR),i:1,u:v=>({text:v[1],type:"27"})},31:{t:["=="],o:yn(SR),i:3,u:Dl,l:(v,S,E)=>f("mark",{key:E.key},S(v.children,E))},32:{t:["~~"],o:yn(ER),i:3,u:Dl,l:(v,S,E)=>f("del",{key:E.key},S(v.children,E))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const x=(function(v){var S=Object.keys(v);function E(R,T){var C=[];if(T.prevCapture=T.prevCapture||"",R.trim())for(;R;)for(var W=0;W<S.length;){var N=S[W],F=v[N];if(!F.t||NR(R,T,F.t)){var q=F.o(R,T);if(q&&q[0]){R=R.substring(q[0].length);var j=F.u(q,E,T);T.prevCapture+=q[0],j.type||(j.type=N),C.push(j);break}W++}else W++}return T.prevCapture="",C}return S.sort(function(R,T){return v[R].i-v[T].i||(R<T?-1:1)}),function(R,T){return E((function(C){return C.replace(JA,`
22
- `).replace(tR,"").replace(gR," ")})(R),T)}})(y),h=(function(v,S){return function E(R,T={}){if(Array.isArray(R)){const C=T.key,W=[];let N=!1;for(let F=0;F<R.length;F++){T.key=F;const q=E(R[F],T),j=cg(q);j&&N?W[W.length-1]+=q:q!==null&&W.push(q),N=j}return T.key=C,W}return(function(C,W,N){const F=v[C.type].l;return S?S(()=>F(C,W,N),C,W,N):F(C,W,N)})(R,E,T)}})(y,t.renderRule),w=p(e);return d.length?f("div",null,w,f("footer",{key:"footer"},d.map(function(v){return f("div",{id:r(v.identifier,eo),key:v.identifier},v.identifier,h(x(v.footnote,{inline:!0})))}))):w}const Oa=e=>{let{children:t,options:r}=e,i=(function(s,a){if(s==null)return{};var u,l,f={},p=Object.keys(s);for(l=0;l<p.length;l++)a.indexOf(u=p[l])>=0||(f[u]=s[u]);return f})(e,BA);return $.cloneElement(qR(t??"",r),i)},pg=({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 I.jsx(t,{className:Be("flex-none size-6",r)});switch(e){case"error":case"danger":return I.jsx(Qe.FdSanityCheckInfo,{className:Be("flex-none size-6",r)});case"info":return I.jsx(I.Fragment,{children:I.jsx(Qe.FdInfoBold,{className:Be("flex-none size-6",r)})});case"warning":return I.jsx(I.Fragment,{children:I.jsx(Qe.FdWarningDanger,{className:Be("flex-none size-6",r)})});case"message":return I.jsx(I.Fragment,{children:I.jsx(Qe.FdInfoBold,{className:Be("flex-none size-6",r)})});default:return null}},Gv=({id:e,onClose:t,kind:r,message:i,markdown:s,customIcon:a})=>{const u=({className:l}={})=>I.jsx("button",{onClick:t,className:Be("flex justify-center p-1",l),children:I.jsx(Qe.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return I.jsx("div",{className:Be("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof i=="string"?I.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[I.jsx("div",{className:"pt-1",children:I.jsx(pg,{kind:r,customIcon:a})}),I.jsx("div",{className:"flex items-center gap-1 prose",children:s?I.jsx(Oa,{children:i}):I.jsx(I.Fragment,{children:i})}),u()]}):I.jsxs("div",{className:"flex items-start",children:[I.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(l=>l.messages.length>0).map(l=>I.jsxs(I.Fragment,{children:[l.title&&I.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[I.jsx(pg,{kind:r,customIcon:a}),I.jsxs("span",{children:[l.title," :"]})]}),I.jsx("ul",{className:Be("list-disc",{"px-12":l.title,"px-6":!l.title}),children:l.messages.map(f=>I.jsx("li",{children:s?I.jsx(Oa,{children:f}):I.jsx(I.Fragment,{children:f})}))})]}))}),u({className:"absolute top-1 right-1"})]})},e)},Zv=({children:e,size:t,className:r,...i})=>I.jsx("div",{style:{"--width":`${t||24}px`},className:Be("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var zl={},to={},Ks={},hg;function Vv(){if(hg)return Ks;hg=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.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 Ks}var yi={},ro={},no={},gg;function GR(){if(gg)return no;gg=1,Object.defineProperty(no,"__esModule",{value:!0}),no.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 no.default=e,no}var mg;function qa(){if(mg)return ro;mg=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=t(GR());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){return typeof s=="string"&&e.default.test(s)}var i=r;return ro.default=i,ro}var vg;function Ga(){if(vg)return yi;vg=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.default=void 0,yi.unsafeStringify=i;var e=t(qa());function t(u){return u&&u.__esModule?u:{default:u}}const r=[];for(let u=0;u<256;++u)r.push((u+256).toString(16).slice(1));function i(u,l=0){return r[u[l+0]]+r[u[l+1]]+r[u[l+2]]+r[u[l+3]]+"-"+r[u[l+4]]+r[u[l+5]]+"-"+r[u[l+6]]+r[u[l+7]]+"-"+r[u[l+8]]+r[u[l+9]]+"-"+r[u[l+10]]+r[u[l+11]]+r[u[l+12]]+r[u[l+13]]+r[u[l+14]]+r[u[l+15]]}function s(u,l=0){const f=i(u,l);if(!(0,e.default)(f))throw TypeError("Stringified UUID is invalid");return f}var a=s;return yi.default=a,yi}var yg;function ZR(){if(yg)return to;yg=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var e=r(Vv()),t=Ga();function r(p){return p&&p.__esModule?p:{default:p}}let i,s,a=0,u=0;function l(p,m,d){let g=m&&d||0;const y=m||new Array(16);p=p||{};let x=p.node||i,h=p.clockseq!==void 0?p.clockseq:s;if(x==null||h==null){const T=p.random||(p.rng||e.default)();x==null&&(x=i=[T[0]|1,T[1],T[2],T[3],T[4],T[5]]),h==null&&(h=s=(T[6]<<8|T[7])&16383)}let w=p.msecs!==void 0?p.msecs:Date.now(),v=p.nsecs!==void 0?p.nsecs:u+1;const S=w-a+(v-u)/1e4;if(S<0&&p.clockseq===void 0&&(h=h+1&16383),(S<0||w>a)&&p.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=w,u=v,s=h,w+=122192928e5;const E=((w&268435455)*1e4+v)%4294967296;y[g++]=E>>>24&255,y[g++]=E>>>16&255,y[g++]=E>>>8&255,y[g++]=E&255;const R=w/4294967296*1e4&268435455;y[g++]=R>>>8&255,y[g++]=R&255,y[g++]=R>>>24&15|16,y[g++]=R>>>16&255,y[g++]=h>>>8|128,y[g++]=h&255;for(let T=0;T<6;++T)y[g+T]=x[T];return m||(0,t.unsafeStringify)(y)}var f=l;return to.default=f,to}var io={},bn={},oo={},bg;function Kv(){if(bg)return oo;bg=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;var e=t(qa());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");let a;const u=new Uint8Array(16);return u[0]=(a=parseInt(s.slice(0,8),16))>>>24,u[1]=a>>>16&255,u[2]=a>>>8&255,u[3]=a&255,u[4]=(a=parseInt(s.slice(9,13),16))>>>8,u[5]=a&255,u[6]=(a=parseInt(s.slice(14,18),16))>>>8,u[7]=a&255,u[8]=(a=parseInt(s.slice(19,23),16))>>>8,u[9]=a&255,u[10]=(a=parseInt(s.slice(24,36),16))/1099511627776&255,u[11]=a/4294967296&255,u[12]=a>>>24&255,u[13]=a>>>16&255,u[14]=a>>>8&255,u[15]=a&255,u}var i=r;return oo.default=i,oo}var wg;function Yv(){if(wg)return bn;wg=1,Object.defineProperty(bn,"__esModule",{value:!0}),bn.URL=bn.DNS=void 0,bn.default=u;var e=Ga(),t=r(Kv());function r(l){return l&&l.__esModule?l:{default:l}}function i(l){l=unescape(encodeURIComponent(l));const f=[];for(let p=0;p<l.length;++p)f.push(l.charCodeAt(p));return f}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";bn.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";bn.URL=a;function u(l,f,p){function m(d,g,y,x){var h;if(typeof d=="string"&&(d=i(d)),typeof g=="string"&&(g=(0,t.default)(g)),((h=g)===null||h===void 0?void 0:h.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let w=new Uint8Array(16+d.length);if(w.set(g),w.set(d,g.length),w=p(w),w[6]=w[6]&15|f,w[8]=w[8]&63|128,y){x=x||0;for(let v=0;v<16;++v)y[x+v]=w[v];return y}return(0,e.unsafeStringify)(w)}try{m.name=l}catch{}return m.DNS=s,m.URL=a,m}return bn}var so={},xg;function VR(){if(xg)return so;xg=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;function e(y){if(typeof y=="string"){const x=unescape(encodeURIComponent(y));y=new Uint8Array(x.length);for(let h=0;h<x.length;++h)y[h]=x.charCodeAt(h)}return t(i(s(y),y.length*8))}function t(y){const x=[],h=y.length*32,w="0123456789abcdef";for(let v=0;v<h;v+=8){const S=y[v>>5]>>>v%32&255,E=parseInt(w.charAt(S>>>4&15)+w.charAt(S&15),16);x.push(E)}return x}function r(y){return(y+64>>>9<<4)+14+1}function i(y,x){y[x>>5]|=128<<x%32,y[r(x)-1]=x;let h=1732584193,w=-271733879,v=-1732584194,S=271733878;for(let E=0;E<y.length;E+=16){const R=h,T=w,C=v,W=S;h=f(h,w,v,S,y[E],7,-680876936),S=f(S,h,w,v,y[E+1],12,-389564586),v=f(v,S,h,w,y[E+2],17,606105819),w=f(w,v,S,h,y[E+3],22,-1044525330),h=f(h,w,v,S,y[E+4],7,-176418897),S=f(S,h,w,v,y[E+5],12,1200080426),v=f(v,S,h,w,y[E+6],17,-1473231341),w=f(w,v,S,h,y[E+7],22,-45705983),h=f(h,w,v,S,y[E+8],7,1770035416),S=f(S,h,w,v,y[E+9],12,-1958414417),v=f(v,S,h,w,y[E+10],17,-42063),w=f(w,v,S,h,y[E+11],22,-1990404162),h=f(h,w,v,S,y[E+12],7,1804603682),S=f(S,h,w,v,y[E+13],12,-40341101),v=f(v,S,h,w,y[E+14],17,-1502002290),w=f(w,v,S,h,y[E+15],22,1236535329),h=p(h,w,v,S,y[E+1],5,-165796510),S=p(S,h,w,v,y[E+6],9,-1069501632),v=p(v,S,h,w,y[E+11],14,643717713),w=p(w,v,S,h,y[E],20,-373897302),h=p(h,w,v,S,y[E+5],5,-701558691),S=p(S,h,w,v,y[E+10],9,38016083),v=p(v,S,h,w,y[E+15],14,-660478335),w=p(w,v,S,h,y[E+4],20,-405537848),h=p(h,w,v,S,y[E+9],5,568446438),S=p(S,h,w,v,y[E+14],9,-1019803690),v=p(v,S,h,w,y[E+3],14,-187363961),w=p(w,v,S,h,y[E+8],20,1163531501),h=p(h,w,v,S,y[E+13],5,-1444681467),S=p(S,h,w,v,y[E+2],9,-51403784),v=p(v,S,h,w,y[E+7],14,1735328473),w=p(w,v,S,h,y[E+12],20,-1926607734),h=m(h,w,v,S,y[E+5],4,-378558),S=m(S,h,w,v,y[E+8],11,-2022574463),v=m(v,S,h,w,y[E+11],16,1839030562),w=m(w,v,S,h,y[E+14],23,-35309556),h=m(h,w,v,S,y[E+1],4,-1530992060),S=m(S,h,w,v,y[E+4],11,1272893353),v=m(v,S,h,w,y[E+7],16,-155497632),w=m(w,v,S,h,y[E+10],23,-1094730640),h=m(h,w,v,S,y[E+13],4,681279174),S=m(S,h,w,v,y[E],11,-358537222),v=m(v,S,h,w,y[E+3],16,-722521979),w=m(w,v,S,h,y[E+6],23,76029189),h=m(h,w,v,S,y[E+9],4,-640364487),S=m(S,h,w,v,y[E+12],11,-421815835),v=m(v,S,h,w,y[E+15],16,530742520),w=m(w,v,S,h,y[E+2],23,-995338651),h=d(h,w,v,S,y[E],6,-198630844),S=d(S,h,w,v,y[E+7],10,1126891415),v=d(v,S,h,w,y[E+14],15,-1416354905),w=d(w,v,S,h,y[E+5],21,-57434055),h=d(h,w,v,S,y[E+12],6,1700485571),S=d(S,h,w,v,y[E+3],10,-1894986606),v=d(v,S,h,w,y[E+10],15,-1051523),w=d(w,v,S,h,y[E+1],21,-2054922799),h=d(h,w,v,S,y[E+8],6,1873313359),S=d(S,h,w,v,y[E+15],10,-30611744),v=d(v,S,h,w,y[E+6],15,-1560198380),w=d(w,v,S,h,y[E+13],21,1309151649),h=d(h,w,v,S,y[E+4],6,-145523070),S=d(S,h,w,v,y[E+11],10,-1120210379),v=d(v,S,h,w,y[E+2],15,718787259),w=d(w,v,S,h,y[E+9],21,-343485551),h=a(h,R),w=a(w,T),v=a(v,C),S=a(S,W)}return[h,w,v,S]}function s(y){if(y.length===0)return[];const x=y.length*8,h=new Uint32Array(r(x));for(let w=0;w<x;w+=8)h[w>>5]|=(y[w/8]&255)<<w%32;return h}function a(y,x){const h=(y&65535)+(x&65535);return(y>>16)+(x>>16)+(h>>16)<<16|h&65535}function u(y,x){return y<<x|y>>>32-x}function l(y,x,h,w,v,S){return a(u(a(a(x,y),a(w,S)),v),h)}function f(y,x,h,w,v,S,E){return l(x&h|~x&w,y,x,v,S,E)}function p(y,x,h,w,v,S,E){return l(x&w|h&~w,y,x,v,S,E)}function m(y,x,h,w,v,S,E){return l(x^h^w,y,x,v,S,E)}function d(y,x,h,w,v,S,E){return l(h^(x|~w),y,x,v,S,E)}var g=e;return so.default=g,so}var Sg;function KR(){if(Sg)return io;Sg=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e=r(Yv()),t=r(VR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v3",48,t.default);return io.default=s,io}var ao={},uo={},Eg;function YR(){if(Eg)return uo;Eg=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return uo.default=t,uo}var _g;function XR(){if(_g)return ao;_g=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=i(YR()),t=i(Vv()),r=Ga();function i(u){return u&&u.__esModule?u:{default:u}}function s(u,l,f){if(e.default.randomUUID&&!l&&!u)return e.default.randomUUID();u=u||{};const p=u.random||(u.rng||t.default)();if(p[6]=p[6]&15|64,p[8]=p[8]&63|128,l){f=f||0;for(let m=0;m<16;++m)l[f+m]=p[m];return l}return(0,r.unsafeStringify)(p)}var a=s;return ao.default=a,ao}var lo={},co={},Tg;function JR(){if(Tg)return co;Tg=1,Object.defineProperty(co,"__esModule",{value:!0}),co.default=void 0;function e(s,a,u,l){switch(s){case 0:return a&u^~a&l;case 1:return a^u^l;case 2:return a&u^a&l^u&l;case 3:return a^u^l}}function t(s,a){return s<<a|s>>>32-a}function r(s){const a=[1518500249,1859775393,2400959708,3395469782],u=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){const m=unescape(encodeURIComponent(s));s=[];for(let d=0;d<m.length;++d)s.push(m.charCodeAt(d))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);const l=s.length/4+2,f=Math.ceil(l/16),p=new Array(f);for(let m=0;m<f;++m){const d=new Uint32Array(16);for(let g=0;g<16;++g)d[g]=s[m*64+g*4]<<24|s[m*64+g*4+1]<<16|s[m*64+g*4+2]<<8|s[m*64+g*4+3];p[m]=d}p[f-1][14]=(s.length-1)*8/Math.pow(2,32),p[f-1][14]=Math.floor(p[f-1][14]),p[f-1][15]=(s.length-1)*8&4294967295;for(let m=0;m<f;++m){const d=new Uint32Array(80);for(let v=0;v<16;++v)d[v]=p[m][v];for(let v=16;v<80;++v)d[v]=t(d[v-3]^d[v-8]^d[v-14]^d[v-16],1);let g=u[0],y=u[1],x=u[2],h=u[3],w=u[4];for(let v=0;v<80;++v){const S=Math.floor(v/20),E=t(g,5)+e(S,y,x,h)+w+a[S]+d[v]>>>0;w=h,h=x,x=t(y,30)>>>0,y=g,g=E}u[0]=u[0]+g>>>0,u[1]=u[1]+y>>>0,u[2]=u[2]+x>>>0,u[3]=u[3]+h>>>0,u[4]=u[4]+w>>>0}return[u[0]>>24&255,u[0]>>16&255,u[0]>>8&255,u[0]&255,u[1]>>24&255,u[1]>>16&255,u[1]>>8&255,u[1]&255,u[2]>>24&255,u[2]>>16&255,u[2]>>8&255,u[2]&255,u[3]>>24&255,u[3]>>16&255,u[3]>>8&255,u[3]&255,u[4]>>24&255,u[4]>>16&255,u[4]>>8&255,u[4]&255]}var i=r;return co.default=i,co}var Og;function QR(){if(Og)return lo;Og=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.default=void 0;var e=r(Yv()),t=r(JR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v5",80,t.default);return lo.default=s,lo}var fo={},Ag;function eP(){if(Ag)return fo;Ag=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=void 0;var e="00000000-0000-0000-0000-000000000000";return fo.default=e,fo}var po={},Rg;function tP(){if(Rg)return po;Rg=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=void 0;var e=t(qa());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");return parseInt(s.slice(14,15),16)}var i=r;return po.default=i,po}var Pg;function rP(){return Pg||(Pg=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 p.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 s.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return u.default}});var t=m(ZR()),r=m(KR()),i=m(XR()),s=m(QR()),a=m(eP()),u=m(tP()),l=m(qa()),f=m(Ga()),p=m(Kv());function m(d){return d&&d.__esModule?d:{default:d}}})(zl)),zl}var Bl,Cg;function nP(){if(Cg)return Bl;Cg=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,s,a={},u=this.srcAlphabet.length,l=this.dstAlphabet.length,f=t.length,p=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++)a[r]=this.srcAlphabet.indexOf(t[r]);do{for(i=0,s=0,r=0;r<f;r++)i=i*u+a[r],i>=l?(a[s++]=parseInt(i/l,10),i=i%l):s>0&&(a[s++]=0);f=s,p=this.dstAlphabet.slice(i,i+1).concat(p)}while(s!==0);return p},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},Bl=e,Bl}var Wl,kg;function iP(){if(kg)return Wl;kg=1;var e=nP();function t(r,i){var s=new e(r,i);return function(a){return s.convert(a)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",Wl=t,Wl}var Hl,Ig;function oP(){if(Ig)return Hl;Ig=1;const{v4:e,validate:t}=rP(),r=iP(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const u=(p,m,d)=>{const g=m(p.toLowerCase().replace(/-/g,""));return!d||!d.consistentLength?g:g.padStart(d.shortIdLength,d.paddingChar)},l=(p,m)=>{const g=m(p).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("-")},f=p=>Math.ceil(Math.log(2**128)/Math.log(p));return Hl=(()=>{const p=(m,d)=>{const g=m||i.flickrBase58,y={...s,...d};if([...new Set(Array.from(g))].length!==g.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=f(g.length),h={shortIdLength:x,consistentLength:y.consistentLength,paddingChar:g[0]},w=r(r.HEX,g),v=r(g,r.HEX),S=()=>u(e(),w,h),R={alphabet:g,fromUUID:T=>u(T,w,h),maxLength:x,generate:S,new:S,toUUID:T=>l(T,v),uuid:e,validate:(T,C=!1)=>{if(!T||typeof T!="string")return!1;const W=y.consistentLength?T.length===x:T.length<=x,N=T.split("").every(F=>g.includes(F));return C===!1?W&&N:W&&N&&t(l(T,v))}};return Object.freeze(R),R};return p.constants=i,p.uuid=e,p.generate=()=>(a||(a=p(i.flickrBase58).generate),a()),p})(),Hl}var On=oP();const Xv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${On.generate()}`;return I.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[I.jsx("defs",{children:I.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:I.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:s})})}),i?I.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):I.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},Jv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?I.jsx("div",{className:"flex h-6 w-5 items-center",onClick:s=>r&&r(s),children:(()=>{switch(i){case"arrow":return I.jsx(Qe.FdDown,{className:Be(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?I.jsx(Qe.FdDown,{}):I.jsx(Qe.FdRight,{});default:return I.jsx(Qe.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):I.jsx("div",{className:"flex h-6 w-3 items-center"}),ff=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:s,searchQuery:a,renderNode:u,onNodeClick:l})=>{var y;const{key:f,children:p}=e,m=M.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),d=u&&typeof u=="function"?u(e,t,m,s,a):uP(e,t,m,l);return!((y=e.options)!=null&&y.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?I.jsxs(I.Fragment,{children:[I.jsx("div",{className:"flex items-center space-x-2",children:d},f),aP(p||[],t,a,r,i,m.expanded,s,l,u)]}):null},sP=function(e,t){var u;const{title:r,icon:i,subtitle:s}=e;let a=null;return i&&(a=I.jsx(Zv,{children:i})),I.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(u=e.options)==null?void 0:u.draggable,onClick:()=>{t&&t(e)},children:[a,I.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),s&&I.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:s})]})},aP=function(e,t,r,i,s,a,u,l,f){var p,m;return e.length&&a?(["dataclass-attribute","datasource-attribute","method"].includes(((p=e[0].data)==null?void 0:p.nodeType)||((m=e[0].data)==null?void 0:m.type))?e:e.sort((d,g)=>ab(d.title,g.title))).map(d=>I.jsx(ff,{actions:u,node:d,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:s,onNodeClick:l,renderNode:f},d.key)):null},uP=function(e,t,r,i){return I.jsxs(I.Fragment,{children:[I.jsx(Xv,{showLines:!0,depth:t}),I.jsx(Jv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),sP(e,i)]})},Ys=e=>t=>e===t,lP=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:s,searchQuery:a,expandedKeys:u,expandCondition:l="always",encapsulated:f,className:p}){const[m,d]=M.useState(()=>({expandedKeys:u||[],selectedKeys:[]}));M.useEffect(()=>{l==="when-collapsed"&&m.expandedKeys.length>0||d({...m,expandedKeys:u||m.expandedKeys})},[u]);const g=M.useCallback(v=>{if(!v)return;const S=m.expandedKeys.findIndex(Ys(v.key));let E=[];S===-1?(E=[...m.expandedKeys,v.key],d(()=>({...m,expandedKeys:E})),s&&s(E)):(E=m.expandedKeys.filter(R=>R!==v.key),d(()=>({...m,expandedKeys:E})),s&&s(E))},[m]),y=M.useCallback(v=>{var E;if(!((E=v==null?void 0:v.options)!=null&&E.selectable))return;m.selectedKeys.findIndex(Ys(v.key))===-1&&d({...m,selectedKeys:[...m.selectedKeys,v.key]})},[m]),x=M.useCallback(v=>{var E;if(!((E=v==null?void 0:v.options)!=null&&E.selectable))return;m.selectedKeys.findIndex(Ys(v.key))===-1&&d({...m,selectedKeys:[v.key]})},[m]),h=M.useCallback(v=>{var E;if(!((E=v==null?void 0:v.options)!=null&&E.selectable)){d({...m,selectedKeys:[]});return}m.selectedKeys.findIndex(Ys(v.key))!==-1&&d({...m,selectedKeys:m.selectedKeys.filter(R=>R!==v.key)})},[m]),w=M.useMemo(()=>({expand:g,select:y,selectSingle:x,deselect:h}),[h,g,y,x]);return I.jsx("div",{className:Be("fd-tree",p,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(v=>I.jsx(ff,{node:v,searchQuery:a||"",depth:0,expandedKeys:m.expandedKeys,selectedKeys:m.selectedKeys,actions:w,renderNode:r,onNodeClick:i},v.key))})};function va(e){return e.of&&e.children?I.jsx(I.Fragment,{children:e.children}):null}function rt(){return rt=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},rt.apply(null,arguments)}function cP(e){for(var t=0,r,i=0,s=e.length;s>=4;++i,s-=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(s){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 fP={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 Qv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var dP=/[A-Z]|^ms/g,pP=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ey=function(t){return t.charCodeAt(1)===45},$g=function(t){return t!=null&&typeof t!="boolean"},Ul=Qv(function(e){return ey(e)?e:e.replace(dP,"-$&").toLowerCase()}),Lg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(pP,function(i,s,a){return Ir={name:s,styles:a,next:Ir},s})}return fP[t]!==1&&!ey(t)&&typeof r=="number"&&r!==0?r+"px":r};function jo(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 s=r;if(s.anim===1)return Ir={name:s.name,styles:s.styles,next:Ir},s.name;var a=r;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Ir={name:u.name,styles:u.styles,next:Ir},u=u.next;var l=a.styles+";";return l}return hP(e,t,r)}case"function":{if(e!==void 0){var f=Ir,p=r(e);return Ir=f,jo(e,t,p)}break}}var m=r;if(t==null)return m;var d=t[m];return d!==void 0?d:m}function hP(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=jo(e,t,r[s])+";";else for(var a in r){var u=r[a];if(typeof u!="object"){var l=u;t!=null&&t[l]!==void 0?i+=a+"{"+t[l]+"}":$g(l)&&(i+=Ul(a)+":"+Lg(a,l)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var f=0;f<u.length;f++)$g(u[f])&&(i+=Ul(a)+":"+Lg(a,u[f])+";");else{var p=jo(e,t,u);switch(a){case"animation":case"animationName":{i+=Ul(a)+":"+p+";";break}default:i+=a+"{"+p+"}"}}}return i}var Mg=/label:\s*([^\s;{]+)\s*(;|$)/g,Ir;function gP(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,s="";Ir=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=jo(r,t,a);else{var u=a;s+=u[0]}for(var l=1;l<e.length;l++)if(s+=jo(r,t,e[l]),i){var f=a;s+=f[l]}Mg.lastIndex=0;for(var p="",m;(m=Mg.exec(s))!==null;)p+="-"+m[1];var d=cP(s)+p;return{name:d,styles:s,next:Ir}}var mP=function(t){return t()},vP=$.useInsertionEffect?$.useInsertionEffect:!1,yP=vP||mP,bP=!0;function wP(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var ty=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||bP===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},xP=function(t,r,i){ty(t,r,i);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+s:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},SP=/^((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)-.*))$/,EP=Qv(function(e){return SP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),_P=EP,TP=function(t){return t!=="theme"},Dg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?_P:TP},Ng=function(t,r,i){var s;if(r){var a=r.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(u){return t.__emotion_forwardProp(u)&&a(u)}:a}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},OP=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return ty(r,i,s),yP(function(){return xP(r,i,s)}),null},AP=function e(t,r){var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,a,u;r!==void 0&&(a=r.label,u=r.target);var l=Ng(t,r,i),f=l||Dg(s),p=!f("as");return function(){var m=arguments,d=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),m[0]==null||m[0].raw===void 0)d.push.apply(d,m);else{var g=m[0];d.push(g[0]);for(var y=m.length,x=1;x<y;x++)d.push(m[x],g[x])}var h=Sc.withEmotionCache(function(w,v,S){var E=p&&w.as||s,R="",T=[],C=w;if(w.theme==null){C={};for(var W in w)C[W]=w[W];C.theme=$.useContext(Sc.ThemeContext)}typeof w.className=="string"?R=wP(v.registered,T,w.className):w.className!=null&&(R=w.className+" ");var N=gP(d.concat(T),v.registered,C);R+=v.key+"-"+N.name,u!==void 0&&(R+=" "+u);var F=p&&l===void 0?Dg(E):f,q={};for(var j in w)p&&j==="as"||F(j)&&(q[j]=w[j]);return q.className=R,S&&(q.ref=S),$.createElement($.Fragment,null,$.createElement(OP,{cache:v,serialized:N,isStringTag:typeof E=="string"}),$.createElement(E,q))});return h.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+u}}),h.withComponent=function(w,v){var S=e(w,rt({},r,v,{shouldForwardProp:Ng(h,v,!0)}));return S.apply(void 0,d)},h}},RP=["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"],Aa=AP.bind(null);RP.forEach(function(e){Aa[e]=Aa(e)});var PP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bi=new WeakMap,Xs=new WeakMap,Js={},ql=0,ry=function(e){return e&&(e.host||ry(e.parentNode))},CP=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=ry(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})},kP=function(e,t,r,i){var s=CP(t,Array.isArray(e)?e:[e]);Js[r]||(Js[r]=new WeakMap);var a=Js[r],u=[],l=new Set,f=new Set(s),p=function(d){!d||l.has(d)||(l.add(d),p(d.parentNode))};s.forEach(p);var m=function(d){!d||f.has(d)||Array.prototype.forEach.call(d.children,function(g){if(l.has(g))m(g);else try{var y=g.getAttribute(i),x=y!==null&&y!=="false",h=(bi.get(g)||0)+1,w=(a.get(g)||0)+1;bi.set(g,h),a.set(g,w),u.push(g),h===1&&x&&Xs.set(g,!0),w===1&&g.setAttribute(r,"true"),x||g.setAttribute(i,"true")}catch(v){console.error("aria-hidden: cannot operate on ",g,v)}})};return m(t),l.clear(),ql++,function(){u.forEach(function(d){var g=bi.get(d)-1,y=a.get(d)-1;bi.set(d,g),a.set(d,y),g||(Xs.has(d)||d.removeAttribute(i),Xs.delete(d)),y||d.removeAttribute(r)}),ql--,ql||(bi=new WeakMap,bi=new WeakMap,Xs=new WeakMap,Js={})}},IP=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=PP(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),kP(i,s,r,"aria-hidden")):function(){return null}},Tc=function(e,t){return Tc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},Tc(e,t)};function Za(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Tc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var $r=function(){return $r=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},$r.apply(this,arguments)};function ny(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 s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r}function Oc(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 Ac(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],u;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return a}function Ra(e,t,r){if(r||arguments.length===2)for(var i=0,s=t.length,a;i<s;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var ya="right-scroll-bar-position",ba="width-before-scroll-bar",$P="with-scroll-bars-hidden",LP="--removed-body-scroll-bar-size";function Gl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function MP(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=t,r.facade}var DP=typeof window<"u"?$.useLayoutEffect:$.useEffect,Fg=new WeakMap;function NP(e,t){var r=MP(null,function(i){return e.forEach(function(s){return Gl(s,i)})});return DP(function(){var i=Fg.get(r);if(i){var s=new Set(i),a=new Set(e),u=r.current;s.forEach(function(l){a.has(l)||Gl(l,null)}),a.forEach(function(l){s.has(l)||Gl(l,u)})}Fg.set(r,e)},[e]),r}function FP(e){return e}function jP(e,t){t===void 0&&(t=FP);var r=[],i=!1,s={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(a){var u=t(a,i);return r.push(u),function(){r=r.filter(function(l){return l!==u})}},assignSyncMedium:function(a){for(i=!0;r.length;){var u=r;r=[],u.forEach(a)}r={push:function(l){return a(l)},filter:function(){return r}}},assignMedium:function(a){i=!0;var u=[];if(r.length){var l=r;r=[],l.forEach(a),u=r}var f=function(){var m=u;u=[],m.forEach(a)},p=function(){return Promise.resolve().then(f)};p(),r={push:function(m){u.push(m),p()},filter:function(m){return u=u.filter(m),r}}}};return s}function zP(e){e===void 0&&(e={});var t=jP(null);return t.options=$r({async:!0,ssr:!1},e),t}var iy=function(e){var t=e.sideCar,r=ny(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,$r({},r))};iy.isSideCarExport=!0;function BP(e,t){return e.useMedium(t),iy}var oy=zP(),Zl=function(){},Va=$.forwardRef(function(e,t){var r=$.useRef(null),i=$.useState({onScrollCapture:Zl,onWheelCapture:Zl,onTouchMoveCapture:Zl}),s=i[0],a=i[1],u=e.forwardProps,l=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,d=e.shards,g=e.sideCar,y=e.noRelative,x=e.noIsolation,h=e.inert,w=e.allowPinchZoom,v=e.as,S=v===void 0?"div":v,E=e.gapMode,R=ny(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=g,C=NP([r,t]),W=$r($r({},R),s);return $.createElement($.Fragment,null,m&&$.createElement(T,{sideCar:oy,removeScrollBar:p,shards:d,noRelative:y,noIsolation:x,inert:h,setCallbacks:a,allowPinchZoom:!!w,lockRef:r,gapMode:E}),u?$.cloneElement($.Children.only(l),$r($r({},W),{ref:C})):$.createElement(S,$r({},W,{className:f,ref:C}),l))});Va.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Va.classNames={fullWidth:ba,zeroRight:ya};var WP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function HP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=WP();return t&&e.setAttribute("nonce",t),e}function UP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var GP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=HP())&&(UP(t,r),qP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ZP=function(){var e=GP();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},sy=function(){var e=ZP(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},VP={left:0,top:0,right:0,gap:0},Vl=function(e){return parseInt(e||"",10)||0},KP=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Vl(r),Vl(i),Vl(s)]},YP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return VP;var t=KP(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])}},XP=sy(),Ti="data-scroll-locked",JP=function(e,t,r,i){var s=e.left,a=e.top,u=e.right,l=e.gap;return r===void 0&&(r="margin"),`
23
- .`.concat($P,` {
24
- overflow: hidden `).concat(i,`;
25
- padding-right: `).concat(l,"px ").concat(i,`;
72
+ `)===-1)return null;let x="",k=0;for(;;){const R=m.indexOf(`
73
+ `,k),j=m.slice(k,R===-1?void 0:R+1);if(c(s,j)||(x+=j,R===-1||!j.trim()))break;k=R+1}const _=la(x);return _===""?null:[x,,_]}),i:3,u:Qd,l:(m,w,x)=>u("p",{key:x.key},w(m.children,x))},22:{t:["["],o:Lo(wN),i:0,u:m=>(h[m[1]]={target:m[2],title:m[4]},{}),l:tf},23:{t:["!["],o:lo(xN),i:0,u:m=>({alt:m[1]?fn(m[1]):void 0,ref:m[2]}),l:(m,w,x)=>h[m.ref]?u("img",{key:x.key,alt:m.alt,src:n(h[m.ref].target,"img","src"),title:h[m.ref].title}):null},24:{t:m=>m[0]==="["&&m.indexOf("](")===-1,o:Lo(SN),i:0,u:(m,w,x)=>({children:w(m[1],x),fallbackChildren:m[0],ref:m[2]}),l:(m,w,x)=>h[m.ref]?u("a",{key:x.key,href:n(h[m.ref].target,"a","href"),title:h[m.ref].title},w(m.children,x)):u("span",{key:x.key},m.fallbackChildren)},25:{t:["|"],o:zn(Ib),i:1,u:ZN,l(m,w,x){const k=m;return u("table",{key:x.key},u("thead",null,u("tr",null,k.header.map(function(_,R){return u("th",{key:R,style:Db(k,R)},w(_,x))}))),u("tbody",null,k.cells.map(function(_,R){return u("tr",{key:R},_.map(function(j,I){return u("td",{key:I,style:Db(k,I)},w(j,x))}))})))}},27:{o:ji(function(m,w){let x;return bc(m,":")&&(x=NN.exec(m)),x||LN.exec(m)}),i:4,u(m){const w=m[0];return{text:w.indexOf("&")===-1?w:w.replace(pN,(x,k)=>t.namedCodesToUnicode[k]||x)}},l:m=>m.text},28:{t:["**","__"],o:lo(RN),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:lo(CN),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:lo(MN),i:1,u:m=>({text:m[1],type:"27"})},31:{t:["=="],o:lo(IN),i:3,u:Qd,l:(m,w,x)=>u("mark",{key:x.key},w(m.children,x))},32:{t:["~~"],o:lo(PN),i:3,u:Qd,l:(m,w,x)=>u("del",{key:x.key},w(m.children,x))}};t.disableParsingRawHTML===!0&&(delete b[11],delete b[13]);const S=(function(m){var w=Object.keys(m);function x(k,_){var R=[];if(_.prevCapture=_.prevCapture||"",k.trim())for(;k;)for(var j=0;j<w.length;){var I=w[j],L=m[I];if(!L.t||qN(k,_,L.t)){var W=L.o(k,_);if(W&&W[0]){k=k.substring(W[0].length);var $=L.u(W,x,_);_.prevCapture+=W[0],$.type||($.type=I),R.push($);break}j++}else j++}return _.prevCapture="",R}return w.sort(function(k,_){return m[k].i-m[_].i||(k<_?-1:1)}),function(k,_){return x((function(R){return R.replace(aN,`
74
+ `).replace(uN,"").replace(_N," ")})(k),_)}})(b),v=(function(m,w){return function x(k,_={}){if(Array.isArray(k)){const R=_.key,j=[];let I=!1;for(let L=0;L<k.length;L++){_.key=L;const W=x(k[L],_),$=Nb(W);$&&I?j[j.length-1]+=W:W!==null&&j.push(W),I=$}return _.key=R,j}return(function(R,j,I){const L=m[R.type].l;return w?w(()=>L(R,j,I),R,j,I):L(R,j,I)})(k,x,_)}})(b,t.renderRule),y=d(e);return p.length?u("div",null,y,u("footer",{key:"footer"},p.map(function(m){return u("div",{id:r(m.identifier,Ts),key:m.identifier},m.identifier,v(S(m.footnote,{inline:!0})))}))):y}const Mc=e=>{let{children:t="",options:r}=e,n=(function(o,s){if(o==null)return{};var l,c,u={},d=Object.keys(o);for(c=0;c<d.length;c++)s.indexOf(l=d[c])>=0||(u[l]=o[l]);return u})(e,K3);return H.cloneElement(e4(t,r),n)},Lb=({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 T.jsx(t,{className:dt("flex-none size-6",r)});switch(e){case"error":case"danger":return T.jsx(KR,{className:dt("flex-none size-6",r)});case"info":return T.jsx(T.Fragment,{children:T.jsx(Bf,{className:dt("flex-none size-6",r)})});case"warning":return T.jsx(T.Fragment,{children:T.jsx(Cp,{className:dt("flex-none size-6",r)})});case"message":return T.jsx(T.Fragment,{children:T.jsx(Bf,{className:dt("flex-none size-6",r)})});default:return null}},Ax=({id:e,onClose:t,kind:r,message:n,markdown:o,customIcon:s})=>{const l=({className:c}={})=>T.jsx("button",{onClick:t,className:dt("flex justify-center p-1",c),children:T.jsx(Hi,{className:"size-4 font-thin stroke-current"})});return T.jsx("div",{className:dt("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof n=="string"?T.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[T.jsx("div",{className:"pt-1",children:T.jsx(Lb,{kind:r,customIcon:s})}),T.jsx("div",{className:"flex items-center gap-1 prose",children:o?T.jsx(Mc,{children:n}):T.jsx(T.Fragment,{children:n})}),l()]}):T.jsxs("div",{className:"flex items-start",children:[T.jsx("div",{className:"flex flex-col gap-2 justify-between",children:n.filter(c=>c.messages.length>0).map(c=>T.jsxs(T.Fragment,{children:[c.title&&T.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[T.jsx(Lb,{kind:r,customIcon:s}),T.jsxs("span",{children:[c.title," :"]})]}),T.jsx("ul",{className:dt("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(u=>T.jsx("li",{children:o?T.jsx(Mc,{children:u}):T.jsx(T.Fragment,{children:u})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},Rx=({children:e,size:t,className:r,...n})=>T.jsx("div",{style:{"--width":`${t||24}px`},className:dt("h-6 flex items-center pr-1 w-[--width]",r),...n,children:e});var nf={},As={},Vl={},zb;function Cx(){if(zb)return Vl;zb=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.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 Vl}var yi={},Rs={},Cs={},$b;function t4(){if($b)return Cs;$b=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.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 Cs.default=e,Cs}var jb;function tu(){if(jb)return Rs;jb=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=void 0;var e=t(t4());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 Rs.default=n,Rs}var Fb;function ru(){if(Fb)return yi;Fb=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.default=void 0,yi.unsafeStringify=n;var e=t(tu());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 s=o;return yi.default=s,yi}var Bb;function r4(){if(Bb)return As;Bb=1,Object.defineProperty(As,"__esModule",{value:!0}),As.default=void 0;var e=r(Cx()),t=ru();function r(d){return d&&d.__esModule?d:{default:d}}let n,o,s=0,l=0;function c(d,g,p){let h=g&&p||0;const b=g||new Array(16);d=d||{};let S=d.node||n,v=d.clockseq!==void 0?d.clockseq:o;if(S==null||v==null){const _=d.random||(d.rng||e.default)();S==null&&(S=n=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),v==null&&(v=o=(_[6]<<8|_[7])&16383)}let y=d.msecs!==void 0?d.msecs:Date.now(),m=d.nsecs!==void 0?d.nsecs:l+1;const w=y-s+(m-l)/1e4;if(w<0&&d.clockseq===void 0&&(v=v+1&16383),(w<0||y>s)&&d.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=y,l=m,o=v,y+=122192928e5;const x=((y&268435455)*1e4+m)%4294967296;b[h++]=x>>>24&255,b[h++]=x>>>16&255,b[h++]=x>>>8&255,b[h++]=x&255;const k=y/4294967296*1e4&268435455;b[h++]=k>>>8&255,b[h++]=k&255,b[h++]=k>>>24&15|16,b[h++]=k>>>16&255,b[h++]=v>>>8|128,b[h++]=v&255;for(let _=0;_<6;++_)b[h+_]=S[_];return g||(0,t.unsafeStringify)(b)}var u=c;return As.default=u,As}var Is={},co={},Ps={},Hb;function Ix(){if(Hb)return Ps;Hb=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.default=void 0;var e=t(tu());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){if(!(0,e.default)(o))throw TypeError("Invalid UUID");let s;const l=new Uint8Array(16);return l[0]=(s=parseInt(o.slice(0,8),16))>>>24,l[1]=s>>>16&255,l[2]=s>>>8&255,l[3]=s&255,l[4]=(s=parseInt(o.slice(9,13),16))>>>8,l[5]=s&255,l[6]=(s=parseInt(o.slice(14,18),16))>>>8,l[7]=s&255,l[8]=(s=parseInt(o.slice(19,23),16))>>>8,l[9]=s&255,l[10]=(s=parseInt(o.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 n=r;return Ps.default=n,Ps}var Wb;function Px(){if(Wb)return co;Wb=1,Object.defineProperty(co,"__esModule",{value:!0}),co.URL=co.DNS=void 0,co.default=l;var e=ru(),t=r(Ix());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";co.DNS=o;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";co.URL=s;function l(c,u,d){function g(p,h,b,S){var v;if(typeof p=="string"&&(p=n(p)),typeof h=="string"&&(h=(0,t.default)(h)),((v=h)===null||v===void 0?void 0:v.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let y=new Uint8Array(16+p.length);if(y.set(h),y.set(p,h.length),y=d(y),y[6]=y[6]&15|u,y[8]=y[8]&63|128,b){S=S||0;for(let m=0;m<16;++m)b[S+m]=y[m];return b}return(0,e.unsafeStringify)(y)}try{g.name=c}catch{}return g.DNS=o,g.URL=s,g}return co}var Ns={},Vb;function n4(){if(Vb)return Ns;Vb=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.default=void 0;function e(b){if(typeof b=="string"){const S=unescape(encodeURIComponent(b));b=new Uint8Array(S.length);for(let v=0;v<S.length;++v)b[v]=S.charCodeAt(v)}return t(n(o(b),b.length*8))}function t(b){const S=[],v=b.length*32,y="0123456789abcdef";for(let m=0;m<v;m+=8){const w=b[m>>5]>>>m%32&255,x=parseInt(y.charAt(w>>>4&15)+y.charAt(w&15),16);S.push(x)}return S}function r(b){return(b+64>>>9<<4)+14+1}function n(b,S){b[S>>5]|=128<<S%32,b[r(S)-1]=S;let v=1732584193,y=-271733879,m=-1732584194,w=271733878;for(let x=0;x<b.length;x+=16){const k=v,_=y,R=m,j=w;v=u(v,y,m,w,b[x],7,-680876936),w=u(w,v,y,m,b[x+1],12,-389564586),m=u(m,w,v,y,b[x+2],17,606105819),y=u(y,m,w,v,b[x+3],22,-1044525330),v=u(v,y,m,w,b[x+4],7,-176418897),w=u(w,v,y,m,b[x+5],12,1200080426),m=u(m,w,v,y,b[x+6],17,-1473231341),y=u(y,m,w,v,b[x+7],22,-45705983),v=u(v,y,m,w,b[x+8],7,1770035416),w=u(w,v,y,m,b[x+9],12,-1958414417),m=u(m,w,v,y,b[x+10],17,-42063),y=u(y,m,w,v,b[x+11],22,-1990404162),v=u(v,y,m,w,b[x+12],7,1804603682),w=u(w,v,y,m,b[x+13],12,-40341101),m=u(m,w,v,y,b[x+14],17,-1502002290),y=u(y,m,w,v,b[x+15],22,1236535329),v=d(v,y,m,w,b[x+1],5,-165796510),w=d(w,v,y,m,b[x+6],9,-1069501632),m=d(m,w,v,y,b[x+11],14,643717713),y=d(y,m,w,v,b[x],20,-373897302),v=d(v,y,m,w,b[x+5],5,-701558691),w=d(w,v,y,m,b[x+10],9,38016083),m=d(m,w,v,y,b[x+15],14,-660478335),y=d(y,m,w,v,b[x+4],20,-405537848),v=d(v,y,m,w,b[x+9],5,568446438),w=d(w,v,y,m,b[x+14],9,-1019803690),m=d(m,w,v,y,b[x+3],14,-187363961),y=d(y,m,w,v,b[x+8],20,1163531501),v=d(v,y,m,w,b[x+13],5,-1444681467),w=d(w,v,y,m,b[x+2],9,-51403784),m=d(m,w,v,y,b[x+7],14,1735328473),y=d(y,m,w,v,b[x+12],20,-1926607734),v=g(v,y,m,w,b[x+5],4,-378558),w=g(w,v,y,m,b[x+8],11,-2022574463),m=g(m,w,v,y,b[x+11],16,1839030562),y=g(y,m,w,v,b[x+14],23,-35309556),v=g(v,y,m,w,b[x+1],4,-1530992060),w=g(w,v,y,m,b[x+4],11,1272893353),m=g(m,w,v,y,b[x+7],16,-155497632),y=g(y,m,w,v,b[x+10],23,-1094730640),v=g(v,y,m,w,b[x+13],4,681279174),w=g(w,v,y,m,b[x],11,-358537222),m=g(m,w,v,y,b[x+3],16,-722521979),y=g(y,m,w,v,b[x+6],23,76029189),v=g(v,y,m,w,b[x+9],4,-640364487),w=g(w,v,y,m,b[x+12],11,-421815835),m=g(m,w,v,y,b[x+15],16,530742520),y=g(y,m,w,v,b[x+2],23,-995338651),v=p(v,y,m,w,b[x],6,-198630844),w=p(w,v,y,m,b[x+7],10,1126891415),m=p(m,w,v,y,b[x+14],15,-1416354905),y=p(y,m,w,v,b[x+5],21,-57434055),v=p(v,y,m,w,b[x+12],6,1700485571),w=p(w,v,y,m,b[x+3],10,-1894986606),m=p(m,w,v,y,b[x+10],15,-1051523),y=p(y,m,w,v,b[x+1],21,-2054922799),v=p(v,y,m,w,b[x+8],6,1873313359),w=p(w,v,y,m,b[x+15],10,-30611744),m=p(m,w,v,y,b[x+6],15,-1560198380),y=p(y,m,w,v,b[x+13],21,1309151649),v=p(v,y,m,w,b[x+4],6,-145523070),w=p(w,v,y,m,b[x+11],10,-1120210379),m=p(m,w,v,y,b[x+2],15,718787259),y=p(y,m,w,v,b[x+9],21,-343485551),v=s(v,k),y=s(y,_),m=s(m,R),w=s(w,j)}return[v,y,m,w]}function o(b){if(b.length===0)return[];const S=b.length*8,v=new Uint32Array(r(S));for(let y=0;y<S;y+=8)v[y>>5]|=(b[y/8]&255)<<y%32;return v}function s(b,S){const v=(b&65535)+(S&65535);return(b>>16)+(S>>16)+(v>>16)<<16|v&65535}function l(b,S){return b<<S|b>>>32-S}function c(b,S,v,y,m,w){return s(l(s(s(S,b),s(y,w)),m),v)}function u(b,S,v,y,m,w,x){return c(S&v|~S&y,b,S,m,w,x)}function d(b,S,v,y,m,w,x){return c(S&y|v&~y,b,S,m,w,x)}function g(b,S,v,y,m,w,x){return c(S^v^y,b,S,m,w,x)}function p(b,S,v,y,m,w,x){return c(v^(S|~y),b,S,m,w,x)}var h=e;return Ns.default=h,Ns}var Ub;function o4(){if(Ub)return Is;Ub=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.default=void 0;var e=r(Px()),t=r(n4());function r(s){return s&&s.__esModule?s:{default:s}}var o=(0,e.default)("v3",48,t.default);return Is.default=o,Is}var Ms={},Ds={},qb;function i4(){if(qb)return Ds;qb=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Ds.default=t,Ds}var Gb;function s4(){if(Gb)return Ms;Gb=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.default=void 0;var e=n(i4()),t=n(Cx()),r=ru();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 g=0;g<16;++g)c[u+g]=d[g];return c}return(0,r.unsafeStringify)(d)}var s=o;return Ms.default=s,Ms}var Ls={},zs={},Zb;function a4(){if(Zb)return zs;Zb=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=void 0;function e(o,s,l,c){switch(o){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(o,s){return o<<s|o>>>32-s}function r(o){const s=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof o=="string"){const g=unescape(encodeURIComponent(o));o=[];for(let p=0;p<g.length;++p)o.push(g.charCodeAt(p))}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 g=0;g<u;++g){const p=new Uint32Array(16);for(let h=0;h<16;++h)p[h]=o[g*64+h*4]<<24|o[g*64+h*4+1]<<16|o[g*64+h*4+2]<<8|o[g*64+h*4+3];d[g]=p}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 g=0;g<u;++g){const p=new Uint32Array(80);for(let m=0;m<16;++m)p[m]=d[g][m];for(let m=16;m<80;++m)p[m]=t(p[m-3]^p[m-8]^p[m-14]^p[m-16],1);let h=l[0],b=l[1],S=l[2],v=l[3],y=l[4];for(let m=0;m<80;++m){const w=Math.floor(m/20),x=t(h,5)+e(w,b,S,v)+y+s[w]+p[m]>>>0;y=v,v=S,S=t(b,30)>>>0,b=h,h=x}l[0]=l[0]+h>>>0,l[1]=l[1]+b>>>0,l[2]=l[2]+S>>>0,l[3]=l[3]+v>>>0,l[4]=l[4]+y>>>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 zs.default=n,zs}var Yb;function l4(){if(Yb)return Ls;Yb=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.default=void 0;var e=r(Px()),t=r(a4());function r(s){return s&&s.__esModule?s:{default:s}}var o=(0,e.default)("v5",80,t.default);return Ls.default=o,Ls}var $s={},Kb;function c4(){if(Kb)return $s;Kb=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var e="00000000-0000-0000-0000-000000000000";return $s.default=e,$s}var js={},Xb;function u4(){if(Xb)return js;Xb=1,Object.defineProperty(js,"__esModule",{value:!0}),js.default=void 0;var e=t(tu());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 js.default=n,js}var Jb;function d4(){return Jb||(Jb=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 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=g(r4()),r=g(o4()),n=g(s4()),o=g(l4()),s=g(c4()),l=g(u4()),c=g(tu()),u=g(ru()),d=g(Ix());function g(p){return p&&p.__esModule?p:{default:p}}})(nf)),nf}var of,Qb;function f4(){if(Qb)return of;Qb=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,s={},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++)s[r]=this.srcAlphabet.indexOf(t[r]);do{for(n=0,o=0,r=0;r<u;r++)n=n*l+s[r],n>=c?(s[o++]=parseInt(n/c,10),n=n%c):o>0&&(s[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},of=e,of}var sf,e0;function p4(){if(e0)return sf;e0=1;var e=f4();function t(r,n){var o=new e(r,n);return function(s){return o.convert(s)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",sf=t,sf}var af,t0;function h4(){if(t0)return af;t0=1;const{v4:e,validate:t}=d4(),r=p4(),n={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},o={consistentLength:!0};let s;const l=(d,g,p)=>{const h=g(d.toLowerCase().replace(/-/g,""));return!p||!p.consistentLength?h:h.padStart(p.shortIdLength,p.paddingChar)},c=(d,g)=>{const h=g(d).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[h[1],h[2],h[3],h[4],h[5]].join("-")},u=d=>Math.ceil(Math.log(2**128)/Math.log(d));return af=(()=>{const d=(g,p)=>{const h=g||n.flickrBase58,b={...o,...p};if([...new Set(Array.from(h))].length!==h.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const S=u(h.length),v={shortIdLength:S,consistentLength:b.consistentLength,paddingChar:h[0]},y=r(r.HEX,h),m=r(h,r.HEX),w=()=>l(e(),y,v),k={alphabet:h,fromUUID:_=>l(_,y,v),maxLength:S,generate:w,new:w,toUUID:_=>c(_,m),uuid:e,validate:(_,R=!1)=>{if(!_||typeof _!="string")return!1;const j=b.consistentLength?_.length===S:_.length<=S,I=_.split("").every(L=>h.includes(L));return R===!1?j&&I:j&&I&&t(c(_,m))}};return Object.freeze(k),k};return d.constants=n,d.uuid=e,d.generate=()=>(s||(s=d(n.flickrBase58).generate),s()),d})(),af}var mo=h4();const Nx=({depth:e,height:t=24,width:r=11,showLines:n=!0,stroke:o})=>{const s=`indent_line_${mo.generate()}`;return T.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[T.jsx("defs",{children:T.jsx("pattern",{id:s,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:T.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,className:o?`stroke-[${o}]`:"stroke-body"})})}),n?T.jsx("rect",{fill:`url(#${s})`,x:"0",y:"0",width:`${11*e}`,height:t}):T.jsx("rect",{fill:n?`url(#${s})`:"",x:"0",y:"0",width:0,height:t})]})},Mx=({show:e,expanded:t,onClick:r,variant:n="arrow"})=>e?T.jsx("div",{className:"flex h-6 w-5 items-center",onClick:o=>r&&r(o),children:(()=>{switch(n){case"arrow":return T.jsx(uc,{className:dt(["h-3 w-3 transform transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?T.jsx(uc,{}):T.jsx(ZR,{});default:return T.jsx(uc,{className:"h-3 w-3 transform transition ease-in-out"})}})()}):T.jsx("div",{className:"flex h-6 w-3 items-center"}),Wp=({node:e,depth:t,expandedKeys:r,selectedKeys:n,actions:o,searchQuery:s,renderNode:l,onNodeClick:c})=>{var b;const{key:u,children:d}=e,g=M.useMemo(()=>({expanded:r.includes(e.key),selected:n.includes(e.key)}),[r,e.key,n]),p=l&&typeof l=="function"?l(e,t,g,o,s):m4(e,t,g,c);return!((b=e.options)!=null&&b.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"flex items-center gap-x-2",children:p},u),v4(d||[],t,s,r,n,g.expanded,o,c,l)]}):null},g4=function(e,t){var l;const{title:r,icon:n,subtitle:o}=e;let s=null;return n&&(s=T.jsx(Rx,{children:n})),T.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,T.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),o&&T.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-muted",children:o})]})},v4=function(e,t,r,n,o,s,l,c,u){var d,g;return e.length&&s?(["dataclass-attribute","datasource-attribute","method"].includes(((d=e[0].data)==null?void 0:d.nodeType)||((g=e[0].data)==null?void 0:g.type))?e:e.sort((p,h)=>PS(p.title,h.title))).map(p=>T.jsx(Wp,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:n,selectedKeys:o,onNodeClick:c,renderNode:u},p.key)):null},m4=function(e,t,r,n){return T.jsxs(T.Fragment,{children:[T.jsx(Nx,{showLines:!0,depth:t}),T.jsx(Mx,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),g4(e,n)]})},Ul=e=>t=>e===t,b4=function({treeData:t,renderNode:r,onNodeClick:n,onExpandNode:o,searchQuery:s,expandedKeys:l,expandCondition:c="always",encapsulated:u,className:d}){const[g,p]=M.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));M.useEffect(()=>{c==="when-collapsed"&&g.expandedKeys.length>0||p({...g,expandedKeys:l||g.expandedKeys})},[l]);const h=M.useCallback(m=>{if(!m)return;const w=g.expandedKeys.findIndex(Ul(m.key));let x=[];w===-1?(x=[...g.expandedKeys,m.key],p(()=>({...g,expandedKeys:x})),o&&o(x)):(x=g.expandedKeys.filter(k=>k!==m.key),p(()=>({...g,expandedKeys:x})),o&&o(x))},[g]),b=M.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;g.selectedKeys.findIndex(Ul(m.key))===-1&&p({...g,selectedKeys:[...g.selectedKeys,m.key]})},[g]),S=M.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;g.selectedKeys.findIndex(Ul(m.key))===-1&&p({...g,selectedKeys:[m.key]})},[g]),v=M.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable)){p({...g,selectedKeys:[]});return}g.selectedKeys.findIndex(Ul(m.key))!==-1&&p({...g,selectedKeys:g.selectedKeys.filter(k=>k!==m.key)})},[g]),y=M.useMemo(()=>({expand:h,select:b,selectSingle:S,deselect:v}),[v,h,b,S]);return T.jsx(yo,{depth:u?0:1,borderType:"light",className:dt("fd-tree",d,{"pl-2 mb-1 rounded border p-1":u}),children:t.map(m=>T.jsx(Wp,{node:m,searchQuery:s||"",depth:0,expandedKeys:g.expandedKeys,selectedKeys:g.selectedKeys,actions:y,renderNode:r,onNodeClick:n},m.key))})};function wc(e){return e.of&&e.children?T.jsx(T.Fragment,{children:e.children}):null}function jt(){return jt=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},jt.apply(null,arguments)}function y4(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 w4={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 Dx(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var x4=/[A-Z]|^ms/g,S4=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Lx=function(t){return t.charCodeAt(1)===45},r0=function(t){return t!=null&&typeof t!="boolean"},lf=Dx(function(e){return Lx(e)?e:e.replace(x4,"-$&").toLowerCase()}),n0=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(S4,function(n,o,s){return yn={name:o,styles:s,next:yn},o})}return w4[t]!==1&&!Lx(t)&&typeof r=="number"&&r!==0?r+"px":r};function va(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 yn={name:o.name,styles:o.styles,next:yn},o.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)yn={name:l.name,styles:l.styles,next:yn},l=l.next;var c=s.styles+";";return c}return E4(e,t,r)}case"function":{if(e!==void 0){var u=yn,d=r(e);return yn=u,va(e,t,d)}break}}var g=r;if(t==null)return g;var p=t[g];return p!==void 0?p:g}function E4(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=va(e,t,r[o])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?n+=s+"{"+t[c]+"}":r0(c)&&(n+=lf(s)+":"+n0(s,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++)r0(l[u])&&(n+=lf(s)+":"+n0(s,l[u])+";");else{var d=va(e,t,l);switch(s){case"animation":case"animationName":{n+=lf(s)+":"+d+";";break}default:n+=s+"{"+d+"}"}}}return n}var o0=/label:\s*([^\s;{]+)\s*(;|$)/g,yn;function _4(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="";yn=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,o+=va(r,t,s);else{var l=s;o+=l[0]}for(var c=1;c<e.length;c++)if(o+=va(r,t,e[c]),n){var u=s;o+=u[c]}o0.lastIndex=0;for(var d="",g;(g=o0.exec(o))!==null;)d+="-"+g[1];var p=y4(o)+d;return{name:p,styles:o,next:yn}}var k4=function(t){return t()},O4=H.useInsertionEffect?H.useInsertionEffect:!1,T4=O4||k4,A4=!0;function R4(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var zx=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||A4===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},C4=function(t,r,n){zx(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}},I4=/^((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)-.*))$/,P4=Dx(function(e){return I4.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),N4=P4,M4=function(t){return t!=="theme"},i0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?N4:M4},s0=function(t,r,n){var o;if(r){var s=r.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},D4=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return zx(r,n,o),T4(function(){return C4(r,n,o)}),null},L4=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var c=s0(t,r,n),u=c||i0(o),d=!u("as");return function(){var g=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),g[0]==null||g[0].raw===void 0)p.push.apply(p,g);else{var h=g[0];p.push(h[0]);for(var b=g.length,S=1;S<b;S++)p.push(g[S],h[S])}var v=$f.withEmotionCache(function(y,m,w){var x=d&&y.as||o,k="",_=[],R=y;if(y.theme==null){R={};for(var j in y)R[j]=y[j];R.theme=H.useContext($f.ThemeContext)}typeof y.className=="string"?k=R4(m.registered,_,y.className):y.className!=null&&(k=y.className+" ");var I=_4(p.concat(_),m.registered,R);k+=m.key+"-"+I.name,l!==void 0&&(k+=" "+l);var L=d&&c===void 0?i0(x):u,W={};for(var $ in y)d&&$==="as"||L($)&&(W[$]=y[$]);return W.className=k,w&&(W.ref=w),H.createElement(H.Fragment,null,H.createElement(D4,{cache:m,serialized:I,isStringTag:typeof x=="string"}),H.createElement(x,W))});return v.displayName=s!==void 0?s:"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=p,v.__emotion_forwardProp=c,Object.defineProperty(v,"toString",{value:function(){return"."+l}}),v.withComponent=function(y,m){var w=e(y,jt({},r,m,{shouldForwardProp:s0(v,m,!0)}));return w.apply(void 0,p)},v}},z4=["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"],Dc=L4.bind(null);z4.forEach(function(e){Dc[e]=Dc(e)});var $4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},wi=new WeakMap,ql=new WeakMap,Gl={},cf=0,$x=function(e){return e&&(e.host||$x(e.parentNode))},j4=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=$x(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})},F4=function(e,t,r,n){var o=j4(t,Array.isArray(e)?e:[e]);Gl[r]||(Gl[r]=new WeakMap);var s=Gl[r],l=[],c=new Set,u=new Set(o),d=function(p){!p||c.has(p)||(c.add(p),d(p.parentNode))};o.forEach(d);var g=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(h){if(c.has(h))g(h);else try{var b=h.getAttribute(n),S=b!==null&&b!=="false",v=(wi.get(h)||0)+1,y=(s.get(h)||0)+1;wi.set(h,v),s.set(h,y),l.push(h),v===1&&S&&ql.set(h,!0),y===1&&h.setAttribute(r,"true"),S||h.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return g(t),c.clear(),cf++,function(){l.forEach(function(p){var h=wi.get(p)-1,b=s.get(p)-1;wi.set(p,h),s.set(p,b),h||(ql.has(p)||p.removeAttribute(n),ql.delete(p)),b||p.removeAttribute(r)}),cf--,cf||(wi=new WeakMap,wi=new WeakMap,ql=new WeakMap,Gl={})}},B4=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=$4(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),F4(n,o,r,"aria-hidden")):function(){return null}},Zf=function(e,t){return Zf=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])},Zf(e,t)};function nu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Zf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var wn=function(){return wn=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},wn.apply(this,arguments)};function jx(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 Yf(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 Kf(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,s=[],l;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)s.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 s}function Lc(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var xc="right-scroll-bar-position",Sc="width-before-scroll-bar",H4="with-scroll-bars-hidden",W4="--removed-body-scroll-bar-size";function uf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function V4(e,t){var r=M.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 U4=typeof window<"u"?H.useLayoutEffect:H.useEffect,a0=new WeakMap;function q4(e,t){var r=V4(null,function(n){return e.forEach(function(o){return uf(o,n)})});return U4(function(){var n=a0.get(r);if(n){var o=new Set(n),s=new Set(e),l=r.current;o.forEach(function(c){s.has(c)||uf(c,null)}),s.forEach(function(c){o.has(c)||uf(c,l)})}a0.set(r,e)},[e]),r}function G4(e){return e}function Z4(e,t){t===void 0&&(t=G4);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(s){var l=t(s,n);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(n=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(c){return s(c)},filter:function(){return r}}},assignMedium:function(s){n=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(s),l=r}var u=function(){var g=l;l=[],g.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),r={push:function(g){l.push(g),d()},filter:function(g){return l=l.filter(g),r}}}};return o}function Y4(e){e===void 0&&(e={});var t=Z4(null);return t.options=wn({async:!0,ssr:!1},e),t}var Fx=function(e){var t=e.sideCar,r=jx(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 H.createElement(n,wn({},r))};Fx.isSideCarExport=!0;function K4(e,t){return e.useMedium(t),Fx}var Bx=Y4(),df=function(){},ou=H.forwardRef(function(e,t){var r=H.useRef(null),n=H.useState({onScrollCapture:df,onWheelCapture:df,onTouchMoveCapture:df}),o=n[0],s=n[1],l=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,g=e.enabled,p=e.shards,h=e.sideCar,b=e.noRelative,S=e.noIsolation,v=e.inert,y=e.allowPinchZoom,m=e.as,w=m===void 0?"div":m,x=e.gapMode,k=jx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,R=q4([r,t]),j=wn(wn({},k),o);return H.createElement(H.Fragment,null,g&&H.createElement(_,{sideCar:Bx,removeScrollBar:d,shards:p,noRelative:b,noIsolation:S,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:r,gapMode:x}),l?H.cloneElement(H.Children.only(c),wn(wn({},j),{ref:R})):H.createElement(w,wn({},j,{className:u,ref:R}),c))});ou.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ou.classNames={fullWidth:Sc,zeroRight:xc};var X4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function J4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=X4();return t&&e.setAttribute("nonce",t),e}function Q4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function eM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tM=function(){var e=0,t=null;return{add:function(r){e==0&&(t=J4())&&(Q4(t,r),eM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rM=function(){var e=tM();return function(t,r){H.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Hx=function(){var e=rM(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},nM={left:0,top:0,right:0,gap:0},ff=function(e){return parseInt(e||"",10)||0},oM=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[ff(r),ff(n),ff(o)]},iM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nM;var t=oM(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])}},sM=Hx(),Ci="data-scroll-locked",aM=function(e,t,r,n){var o=e.left,s=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
75
+ .`.concat(H4,` {
76
+ overflow: hidden `).concat(n,`;
77
+ padding-right: `).concat(c,"px ").concat(n,`;
26
78
  }
27
- body[`).concat(Ti,`] {
28
- overflow: hidden `).concat(i,`;
79
+ body[`).concat(Ci,`] {
80
+ overflow: hidden `).concat(n,`;
29
81
  overscroll-behavior: contain;
30
- `).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
31
- padding-left: `.concat(s,`px;
32
- padding-top: `).concat(a,`px;
33
- padding-right: `).concat(u,`px;
82
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
83
+ padding-left: `.concat(o,`px;
84
+ padding-top: `).concat(s,`px;
85
+ padding-right: `).concat(l,`px;
34
86
  margin-left:0;
35
87
  margin-top:0;
36
- margin-right: `).concat(l,"px ").concat(i,`;
37
- `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(i,";")].filter(Boolean).join(""),`
88
+ margin-right: `).concat(c,"px ").concat(n,`;
89
+ `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),`
38
90
  }
39
91
 
40
- .`).concat(ya,` {
41
- right: `).concat(l,"px ").concat(i,`;
92
+ .`).concat(xc,` {
93
+ right: `).concat(c,"px ").concat(n,`;
42
94
  }
43
95
 
44
- .`).concat(ba,` {
45
- margin-right: `).concat(l,"px ").concat(i,`;
96
+ .`).concat(Sc,` {
97
+ margin-right: `).concat(c,"px ").concat(n,`;
46
98
  }
47
99
 
48
- .`).concat(ya," .").concat(ya,` {
49
- right: 0 `).concat(i,`;
100
+ .`).concat(xc," .").concat(xc,` {
101
+ right: 0 `).concat(n,`;
50
102
  }
51
103
 
52
- .`).concat(ba," .").concat(ba,` {
53
- margin-right: 0 `).concat(i,`;
104
+ .`).concat(Sc," .").concat(Sc,` {
105
+ margin-right: 0 `).concat(n,`;
54
106
  }
55
107
 
56
- body[`).concat(Ti,`] {
57
- `).concat(LP,": ").concat(l,`px;
108
+ body[`).concat(Ci,`] {
109
+ `).concat(W4,": ").concat(c,`px;
58
110
  }
59
- `)},jg=function(){var e=parseInt(document.body.getAttribute(Ti)||"0",10);return isFinite(e)?e:0},QP=function(){$.useEffect(function(){return document.body.setAttribute(Ti,(jg()+1).toString()),function(){var e=jg()-1;e<=0?document.body.removeAttribute(Ti):document.body.setAttribute(Ti,e.toString())}},[])},eC=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;QP();var a=$.useMemo(function(){return YP(s)},[s]);return $.createElement(XP,{styles:JP(a,!t,s,r?"":"!important")})},Rc=!1;if(typeof window<"u")try{var Qs=Object.defineProperty({},"passive",{get:function(){return Rc=!0,!0}});window.addEventListener("test",Qs,Qs),window.removeEventListener("test",Qs,Qs)}catch{Rc=!1}var wi=Rc?{passive:!1}:!1,tC=function(e){return e.tagName==="TEXTAREA"},ay=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!tC(e)&&r[t]==="visible")},rC=function(e){return ay(e,"overflowY")},nC=function(e){return ay(e,"overflowX")},zg=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=uy(e,i);if(s){var a=ly(e,i),u=a[1],l=a[2];if(u>l)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},iC=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},oC=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},uy=function(e,t){return e==="v"?rC(t):nC(t)},ly=function(e,t){return e==="v"?iC(t):oC(t)},sC=function(e,t){return e==="h"&&t==="rtl"?-1:1},aC=function(e,t,r,i,s){var a=sC(e,window.getComputedStyle(t).direction),u=a*i,l=r.target,f=t.contains(l),p=!1,m=u>0,d=0,g=0;do{if(!l)break;var y=ly(e,l),x=y[0],h=y[1],w=y[2],v=h-w-a*x;(x||v)&&uy(e,l)&&(d+=v,g+=x);var S=l.parentNode;l=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!f&&l!==document.body||f&&(t.contains(l)||t===l));return(m&&Math.abs(d)<1||!m&&Math.abs(g)<1)&&(p=!0),p},ea=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bg=function(e){return[e.deltaX,e.deltaY]},Wg=function(e){return e&&"current"in e?e.current:e},uC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},lC=function(e){return`
111
+ `)},l0=function(){var e=parseInt(document.body.getAttribute(Ci)||"0",10);return isFinite(e)?e:0},lM=function(){H.useEffect(function(){return document.body.setAttribute(Ci,(l0()+1).toString()),function(){var e=l0()-1;e<=0?document.body.removeAttribute(Ci):document.body.setAttribute(Ci,e.toString())}},[])},cM=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;lM();var s=H.useMemo(function(){return iM(o)},[o]);return H.createElement(sM,{styles:aM(s,!t,o,r?"":"!important")})},Xf=!1;if(typeof window<"u")try{var Zl=Object.defineProperty({},"passive",{get:function(){return Xf=!0,!0}});window.addEventListener("test",Zl,Zl),window.removeEventListener("test",Zl,Zl)}catch{Xf=!1}var xi=Xf?{passive:!1}:!1,uM=function(e){return e.tagName==="TEXTAREA"},Wx=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!uM(e)&&r[t]==="visible")},dM=function(e){return Wx(e,"overflowY")},fM=function(e){return Wx(e,"overflowX")},c0=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Vx(e,n);if(o){var s=Ux(e,n),l=s[1],c=s[2];if(l>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},pM=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},hM=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Vx=function(e,t){return e==="v"?dM(t):fM(t)},Ux=function(e,t){return e==="v"?pM(t):hM(t)},gM=function(e,t){return e==="h"&&t==="rtl"?-1:1},vM=function(e,t,r,n,o){var s=gM(e,window.getComputedStyle(t).direction),l=s*n,c=r.target,u=t.contains(c),d=!1,g=l>0,p=0,h=0;do{if(!c)break;var b=Ux(e,c),S=b[0],v=b[1],y=b[2],m=v-y-s*S;(S||m)&&Vx(e,c)&&(p+=m,h+=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(g&&Math.abs(p)<1||!g&&Math.abs(h)<1)&&(d=!0),d},Yl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},u0=function(e){return[e.deltaX,e.deltaY]},d0=function(e){return e&&"current"in e?e.current:e},mM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bM=function(e){return`
60
112
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
113
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},cC=0,xi=[];function fC(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),s=$.useState(cC++)[0],a=$.useState(sy)[0],u=$.useRef(e);$.useEffect(function(){u.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var h=Ra([e.lockRef.current],(e.shards||[]).map(Wg),!0).filter(Boolean);return h.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var l=$.useCallback(function(h,w){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!u.current.allowPinchZoom;var v=ea(h),S=r.current,E="deltaX"in h?h.deltaX:S[0]-v[0],R="deltaY"in h?h.deltaY:S[1]-v[1],T,C=h.target,W=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in h&&W==="h"&&C.type==="range")return!1;var N=window.getSelection(),F=N&&N.anchorNode,q=F?F===C||F.contains(C):!1;if(q)return!1;var j=zg(W,C);if(!j)return!0;if(j?T=W:(T=W==="v"?"h":"v",j=zg(W,C)),!j)return!1;if(!i.current&&"changedTouches"in h&&(E||R)&&(i.current=T),!T)return!0;var D=i.current||T;return aC(D,w,h,D==="h"?E:R)},[]),f=$.useCallback(function(h){var w=h;if(!(!xi.length||xi[xi.length-1]!==a)){var v="deltaY"in w?Bg(w):ea(w),S=t.current.filter(function(T){return T.name===w.type&&(T.target===w.target||w.target===T.shadowParent)&&uC(T.delta,v)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(u.current.shards||[]).map(Wg).filter(Boolean).filter(function(T){return T.contains(w.target)}),R=E.length>0?l(w,E[0]):!u.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),p=$.useCallback(function(h,w,v,S){var E={name:h,delta:w,target:v,should:S,shadowParent:dC(v)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),m=$.useCallback(function(h){r.current=ea(h),i.current=void 0},[]),d=$.useCallback(function(h){p(h.type,Bg(h),h.target,l(h,e.lockRef.current))},[]),g=$.useCallback(function(h){p(h.type,ea(h),h.target,l(h,e.lockRef.current))},[]);$.useEffect(function(){return xi.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:g}),document.addEventListener("wheel",f,wi),document.addEventListener("touchmove",f,wi),document.addEventListener("touchstart",m,wi),function(){xi=xi.filter(function(h){return h!==a}),document.removeEventListener("wheel",f,wi),document.removeEventListener("touchmove",f,wi),document.removeEventListener("touchstart",m,wi)}},[]);var y=e.removeScrollBar,x=e.inert;return $.createElement($.Fragment,null,x?$.createElement(a,{styles:lC(s)}):null,y?$.createElement(eC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const pC=BP(oy,fC);var cy=$.forwardRef(function(e,t){return $.createElement(Va,$r({},e,{ref:t,sideCar:pC}))});cy.classNames=Va.classNames;const hC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},gC=$.useId||(()=>{});let mC=0;function fy(e){const[t,r]=$.useState(gC());return hC((()=>{r((i=>i??String(mC++)))}),[e]),t?`radix-${t}`:""}function dy(...e){return t=>e.forEach((r=>(function(i,s){typeof i=="function"?i(s):i!=null&&(i.current=s)})(r,t)))}function Rn(...e){return $.useCallback(dy(...e),e)}const py=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.Children.toArray(r).some(Hg)?$.createElement($.Fragment,null,$.Children.map(r,(s=>Hg(s)?$.createElement(Pc,rt({},i,{ref:t}),s.props.children):s))):$.createElement(Pc,rt({},i,{ref:t}),r)}));py.displayName="Slot";const Pc=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.isValidElement(r)?$.cloneElement(r,{...vC(i,r.props),ref:dy(t,r.ref)}):$.Children.count(r)>1?$.Children.only(null):null}));Pc.displayName="SlotClone";const hy=({children:e})=>$.createElement($.Fragment,null,e);function Hg(e){return $.isValidElement(e)&&e.type===hy}function vC(e,t){const r={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?r[i]=(...u)=>{a==null||a(...u),s==null||s(...u)}:i==="style"?r[i]={...s,...a}:i==="className"&&(r[i]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}const Pn=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:$.forwardRef(((r,i)=>{const{asChild:s,...a}=r,u=s?py:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(u,rt({},a,{ref:i}))}))})),{}),Ug=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},df=e=>{const{present:t,children:r}=e,i=(function(u){const[l,f]=$.useState(),p=$.useRef({}),m=$.useRef(u),d=$.useRef("none"),g=u?"mounted":"unmounted",[y,x]=(function(h,w){return $.useReducer(((v,S)=>{const E=w[v][S];return E??v}),h)})(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect((()=>{const h=ta(p.current);d.current=y==="mounted"?h:"none"}),[y]),Ug((()=>{const h=p.current,w=m.current;if(w!==u){const v=d.current,S=ta(h);u?x("MOUNT"):S==="none"||(h==null?void 0:h.display)==="none"?x("UNMOUNT"):x(w&&v!==S?"ANIMATION_OUT":"UNMOUNT"),m.current=u}}),[u,x]),Ug((()=>{if(l){const h=v=>{const S=ta(p.current).includes(v.animationName);v.target===l&&S&&x("ANIMATION_END")},w=v=>{v.target===l&&(d.current=ta(p.current))};return l.addEventListener("animationstart",w),l.addEventListener("animationcancel",h),l.addEventListener("animationend",h),()=>{l.removeEventListener("animationstart",w),l.removeEventListener("animationcancel",h),l.removeEventListener("animationend",h)}}x("ANIMATION_END")}),[l,x]),{isPresent:["mounted","unmountSuspended"].includes(y),ref:$.useCallback((h=>{h&&(p.current=getComputedStyle(h)),f(h)}),[])}})(t),s=typeof r=="function"?r({present:i.isPresent}):$.Children.only(r),a=Rn(i.ref,s.ref);return typeof r=="function"||i.isPresent?$.cloneElement(s,{ref:a}):null};function ta(e){return(e==null?void 0:e.animationName)||"none"}df.displayName="Presence";let Kl=0;function yC(){$.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:qg()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:qg()),Kl++,()=>{Kl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),Kl--}}),[])}function qg(){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 bC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},pf=$.forwardRef(((e,t)=>{var r,i;const{containerRef:s,style:a,...u}=e,l=(r=s==null?void 0:s.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,f]=$.useState({});return bC((()=>{f({})}),[]),l?Qn.createPortal($.createElement(Pn.div,rt({"data-radix-portal":""},u,{ref:t,style:l===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),l):null}));function Yn(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},wC=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...u}=e,[l,f]=$.useState(null),p=Yn(s),m=Yn(a),d=$.useRef(null),g=Rn(t,(h=>f(h))),y=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect((()=>{if(i){let h=function(v){if(y.paused||!l)return;const S=v.target;l.contains(S)?d.current=S:Bn(d.current,{select:!0})},w=function(v){!y.paused&&l&&(l.contains(v.relatedTarget)||Bn(d.current,{select:!0}))};return document.addEventListener("focusin",h),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w)}}}),[i,l,y.paused]),$.useEffect((()=>{if(l){Kg.add(y);const w=document.activeElement;if(!l.contains(w)){const v=new Event("focusScope.autoFocusOnMount",Gg);l.addEventListener("focusScope.autoFocusOnMount",p),l.dispatchEvent(v),v.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const T of S)if(Bn(T,{select:E}),document.activeElement!==R)return})((h=Zg(l),h.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===w&&Bn(l))}return()=>{l.removeEventListener("focusScope.autoFocusOnMount",p),setTimeout((()=>{const v=new Event("focusScope.autoFocusOnUnmount",Gg);l.addEventListener("focusScope.autoFocusOnUnmount",m),l.dispatchEvent(v),v.defaultPrevented||Bn(w??document.body,{select:!0}),l.removeEventListener("focusScope.autoFocusOnUnmount",m),Kg.remove(y)}),0)}}var h}),[l,p,m,y]);const x=$.useCallback((h=>{if(!r&&!i||y.paused)return;const w=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(w&&v){const S=h.currentTarget,[E,R]=(function(T){const C=Zg(T),W=Vg(C,T),N=Vg(C.reverse(),T);return[W,N]})(S);E&&R?h.shiftKey||v!==R?h.shiftKey&&v===E&&(h.preventDefault(),r&&Bn(R,{select:!0})):(h.preventDefault(),r&&Bn(E,{select:!0})):v===S&&h.preventDefault()}}),[r,i,y.paused]);return $.createElement(Pn.div,rt({tabIndex:-1},u,{ref:g,onKeyDown:x}))}));function Zg(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?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(!xC(r,{upTo:t}))return r}function xC(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 Bn(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 Kg=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Yg(e,t),e.unshift(t)},remove(t){var r;e=Yg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function Yg(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function gy(e){const t=Yn(e);$.useEffect((()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const SC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let Xg,ra=0;function EC({disabled:e}){const t=$.useRef(!1);SC((()=>{if(e){let r=function(){ra--,ra===0&&(document.body.style.pointerEvents=Xg)},i=function(s){t.current=s.pointerType!=="mouse"};return ra===0&&(Xg=document.body.style.pointerEvents),document.body.style.pointerEvents="none",ra++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}}),[e])}function Zt(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 _C=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),TC=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:u,onDismiss:l,...f}=e,p=$.useContext(_C),[m,d]=$.useState(null),[,g]=$.useState({}),y=Rn(t,(C=>d(C))),x=Array.from(p.layers),[h]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(h),v=m?x.indexOf(m):-1,S=p.layersWithOutsidePointerEventsDisabled.size>0,E=v>=w,R=(function(C){const W=Yn(C),N=$.useRef(!1);return $.useEffect((()=>{const F=j=>{j.target&&!N.current&&Qg("dismissableLayer.pointerDownOutside",W,{originalEvent:j}),N.current=!1},q=window.setTimeout((()=>{document.addEventListener("pointerdown",F)}),0);return()=>{window.clearTimeout(q),document.removeEventListener("pointerdown",F)}}),[W]),{onPointerDownCapture:()=>N.current=!0}})((C=>{const W=C.target,N=[...p.branches].some((F=>F.contains(W)));E&&!N&&(s==null||s(C),u==null||u(C),C.defaultPrevented||l==null||l())})),T=(function(C){const W=Yn(C),N=$.useRef(!1);return $.useEffect((()=>{const F=q=>{q.target&&!N.current&&Qg("dismissableLayer.focusOutside",W,{originalEvent:q})};return document.addEventListener("focusin",F),()=>document.removeEventListener("focusin",F)}),[W]),{onFocusCapture:()=>N.current=!0,onBlurCapture:()=>N.current=!1}})((C=>{const W=C.target;[...p.branches].some((N=>N.contains(W)))||(a==null||a(C),u==null||u(C),C.defaultPrevented||l==null||l())}));return gy((C=>{v===p.layers.size-1&&(i==null||i(C),C.defaultPrevented||l==null||l())})),EC({disabled:r}),$.useEffect((()=>{m&&(r&&p.layersWithOutsidePointerEventsDisabled.add(m),p.layers.add(m),Jg())}),[m,r,p]),$.useEffect((()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),Jg())}),[m,p]),$.useEffect((()=>{const C=()=>g({});return document.addEventListener("dismissableLayer.update",C),()=>document.removeEventListener("dismissableLayer.update",C)}),[]),$.createElement(Pn.div,rt({},f,{ref:y,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:Zt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Zt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Zt(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function Jg(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Qg(e,t,r){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(s)}function em(e){const[t,r]=$.useState(void 0);return $.useEffect((()=>{if(e){const i=new ResizeObserver((s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let u,l;if("borderBoxSize"in a){const f=a.borderBoxSize,p=Array.isArray(f)?f[0]:f;u=p.inlineSize,l=p.blockSize}else{const f=e.getBoundingClientRect();u=f.width,l=f.height}r({width:u,height:l})}));return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)}),[e]),t}function OC(e,t){const r=Wn.get(e);return r===void 0?(Wn.set(e,{rect:{},callbacks:[t]}),Wn.size===1&&(Cc=requestAnimationFrame(my))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=Wn.get(e);if(i===void 0)return;const s=i.callbacks.indexOf(t);s>-1&&i.callbacks.splice(s,1),i.callbacks.length===0&&(Wn.delete(e),Wn.size===0&&cancelAnimationFrame(Cc))}}let Cc;const Wn=new Map;function my(){const e=[];Wn.forEach(((t,r)=>{const i=r.getBoundingClientRect();var s,a;s=t.rect,a=i,(s.width!==a.width||s.height!==a.height||s.top!==a.top||s.right!==a.right||s.bottom!==a.bottom||s.left!==a.left)&&(t.rect=i,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),Cc=requestAnimationFrame(my)}function vy(e){const[t,r]=$.useState();return $.useEffect((()=>{if(e){const i=OC(e,r);return()=>{r(void 0),i()}}}),[e]),t}function hf(e,t=[]){let r=[];const i=()=>{const s=r.map((a=>$.createContext(a)));return function(a){const u=(a==null?void 0:a[e])||s;return $.useMemo((()=>({[`__scope${e}`]:{...a,[e]:u}})),[a,u])}};return i.scopeName=e,[function(s,a){const u=$.createContext(a),l=r.length;function f(p){const{scope:m,children:d,...g}=p,y=(m==null?void 0:m[e][l])||u,x=$.useMemo((()=>g),Object.values(g));return $.createElement(y.Provider,{value:x},d)}return r=[...r,a],f.displayName=s+"Provider",[f,function(p,m){const d=(m==null?void 0:m[e][l])||u,g=$.useContext(d);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}]},AC(i,...t)]}function AC(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map((s=>({useScope:s(),scopeName:s.scopeName})));return function(s){const a=i.reduce(((u,{useScope:l,scopeName:f})=>({...u,...l(s)[`__scope${f}`]})),{});return $.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function RC({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:s,sideOffset:a=0,align:u,alignOffset:l=0,shouldAvoidCollisions:f=!0,collisionBoundariesRect:p,collisionTolerance:m=0}){if(!e||!t||!p)return{popperStyles:PC,arrowStyles:Yl};const d=(function(W,N,F=0,q=0,j){const D=j?j.height:0,H=tm(N,W,"x"),G=tm(N,W,"y"),k=G.before-F-D,Q=G.after+F+D,J=H.before-F-D,re=H.after+F+D;return{top:{start:{x:H.start+q,y:k},center:{x:H.center,y:k},end:{x:H.end-q,y:k}},right:{start:{x:re,y:G.start+q},center:{x:re,y:G.center},end:{x:re,y:G.end-q}},bottom:{start:{x:H.start+q,y:Q},center:{x:H.center,y:Q},end:{x:H.end-q,y:Q}},left:{start:{x:J,y:G.start+q},center:{x:J,y:G.center},end:{x:J,y:G.end-q}}}})(t,e,a,l,r),g=d[s][u];if(f===!1){const W=rm(g);let N=Yl;return r&&(N=im({popperSize:t,arrowSize:r,arrowOffset:i,side:s,align:u})),{popperStyles:{...W,"--radix-popper-transform-origin":nm(t,s,u,i,r)},arrowStyles:N,placedSide:s,placedAlign:u}}const y=DOMRect.fromRect({...t,...g}),x=(h=p,w=m,DOMRect.fromRect({width:h.width-2*w,height:h.height-2*w,x:h.left+w,y:h.top+w}));var h,w;const v=sm(y,x),S=d[om(s)][u],E=(function(W,N,F){const q=om(W);return N[W]&&!F[q]?q:W})(s,v,sm(DOMRect.fromRect({...t,...S}),x)),R=(function(W,N,F,q,j){const D=F==="top"||F==="bottom",H=D?"left":"top",G=D?"right":"bottom",k=D?"width":"height",Q=N[k]>W[k];return(q==="start"||q==="center")&&(j[H]&&Q||j[G]&&!Q)?"end":(q==="end"||q==="center")&&(j[G]&&Q||j[H]&&!Q)?"start":q})(t,e,s,u,v),T=rm(d[E][R]);let C=Yl;return r&&(C=im({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...T,"--radix-popper-transform-origin":nm(t,E,R,i,r)},arrowStyles:C,placedSide:E,placedAlign:R}}function tm(e,t,r){const i=e[r==="x"?"left":"top"],s=r==="x"?"width":"height",a=e[s],u=t[s];return{before:i-u,start:i,center:i+(a-u)/2,end:i+a-u,after:i+a}}function rm(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 nm(e,t,r,i,s){const a=t==="top"||t==="bottom",u=s?s.width:0,l=s?s.height:0,f=u/2+i;let p="",m="";return a?(p={start:`${f}px`,center:"center",end:e.width-f+"px"}[r],m=t==="top"?`${e.height+l}px`:-l+"px"):(p=t==="left"?`${e.width+l}px`:-l+"px",m={start:`${f}px`,center:"center",end:e.height-f+"px"}[r]),`${p} ${m}`}const PC={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Yl={position:"absolute",opacity:0};function im({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:s}){const a=(e.width-t.width)/2,u=(e.height-t.width)/2,l={top:0,right:90,bottom:180,left:-90}[i],f=Math.max(t.width,t.height),p={width:`${f}px`,height:`${f}px`,transform:`rotate(${l}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:CC(i,s)};return i!=="top"&&i!=="bottom"||(s==="start"&&(p.left=`${r}px`),s==="center"&&(p.left=`${a}px`),s==="end"&&(p.right=`${r}px`)),i!=="left"&&i!=="right"||(s==="start"&&(p.top=`${r}px`),s==="center"&&(p.top=`${u}px`),s==="end"&&(p.bottom=`${r}px`)),p}function CC(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function om(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function sm(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[yy,Ka]=hf("Popper"),[kC,by]=yy("Popper"),IC=e=>{const{__scopePopper:t,children:r}=e,[i,s]=$.useState(null);return $.createElement(kC,{scope:t,anchor:i,onAnchorChange:s},r)},$C=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...s}=e,a=by("PopperAnchor",r),u=$.useRef(null),l=Rn(t,u);return $.useEffect((()=>{a.onAnchorChange((i==null?void 0:i.current)||u.current)})),i?null:$.createElement(Pn.div,rt({},s,{ref:l}))})),[LC,AF]=yy("PopperContent"),MC=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:s,align:a="center",alignOffset:u,collisionTolerance:l,avoidCollisions:f=!0,...p}=e,m=by("PopperContent",r),[d,g]=$.useState(),y=vy(m.anchor),[x,h]=$.useState(null),w=em(x),[v,S]=$.useState(null),E=em(v),R=Rn(t,(D=>h(D))),T=(function(){const[D,H]=$.useState(void 0);return $.useEffect((()=>{let G;function k(){H({width:window.innerWidth,height:window.innerHeight})}function Q(){window.clearTimeout(G),G=window.setTimeout(k,100)}return k(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)}),[]),D})(),C=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:W,arrowStyles:N,placedSide:F,placedAlign:q}=RC({anchorRect:y,popperSize:w,arrowSize:E,arrowOffset:d,side:i,sideOffset:s,align:a,alignOffset:u,shouldAvoidCollisions:f,collisionBoundariesRect:C,collisionTolerance:l}),j=F!==void 0;return $.createElement("div",{style:W,"data-radix-popper-content-wrapper":""},$.createElement(LC,{scope:r,arrowStyles:N,onArrowChange:S,onArrowOffsetChange:g},$.createElement(Pn.div,rt({"data-side":F,"data-align":q},p,{style:{...p.style,animation:j?void 0:"none"},ref:R}))))})),wy=IC,xy=$C,Sy=MC;function Ey({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,s]=(function({defaultProp:f,onChange:p}){const m=$.useState(f),[d]=m,g=$.useRef(d),y=Yn(p);return $.useEffect((()=>{g.current!==d&&(y(d),g.current=d)}),[d,g,y]),m})({defaultProp:t,onChange:r}),a=e!==void 0,u=a?e:i,l=Yn(r);return[u,$.useCallback((f=>{if(a){const p=f,m=typeof f=="function"?p(e):f;m!==e&&l(m)}else s(f)}),[a,e,s,l])]}const[DC]=hf("Popover",[Ka]),gf=Ka(),[NC,Ko]=DC("Popover"),FC=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:s,onOpenChange:a,modal:u=!1}=e,l=gf(t),f=$.useRef(null),[p,m]=$.useState(!1),[d=!1,g]=Ey({prop:i,defaultProp:s,onChange:a});return $.createElement(wy,l,$.createElement(NC,{scope:t,contentId:fy(),triggerRef:f,open:d,onOpenChange:g,onOpenToggle:$.useCallback((()=>g((y=>!y))),[g]),hasCustomAnchor:p,onCustomAnchorAdd:$.useCallback((()=>m(!0)),[]),onCustomAnchorRemove:$.useCallback((()=>m(!1)),[]),modal:u},r))},jC=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,s=Ko("PopoverTrigger",r),a=gf(r),u=Rn(t,s.triggerRef),l=$.createElement(Pn.button,rt({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Ty(s.open)},i,{ref:u,onClick:Zt(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?l:$.createElement(xy,rt({asChild:!0},a),l)})),zC=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Ko("PopoverContent",e.__scopePopover);return $.createElement(df,{present:r||s.open},s.modal?$.createElement(BC,rt({},i,{ref:t})):$.createElement(WC,rt({},i,{ref:t})))})),BC=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...s}=e,a=Ko("PopoverContent",e.__scopePopover),u=$.useRef(null),l=Rn(t,u),f=$.useRef(!1);$.useEffect((()=>{const m=u.current;if(m)return IP(m)}),[]);const p=i?pf:$.Fragment;return $.createElement(p,null,$.createElement(cy,{allowPinchZoom:r},$.createElement(_y,rt({},s,{ref:l,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Zt(e.onCloseAutoFocus,(m=>{var d;m.preventDefault(),f.current||(d=a.triggerRef.current)===null||d===void 0||d.focus()})),onPointerDownOutside:Zt(e.onPointerDownOutside,(m=>{const d=m.detail.originalEvent,g=d.button===0&&d.ctrlKey===!0,y=d.button===2||g;f.current=y}),{checkForDefaultPrevented:!1}),onFocusOutside:Zt(e.onFocusOutside,(m=>m.preventDefault()),{checkForDefaultPrevented:!1})}))))})),WC=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,s=Ko("PopoverContent",e.__scopePopover),a=$.useRef(!1),u=r?pf:$.Fragment;return $.createElement(u,null,$.createElement(_y,rt({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var f,p;(f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,l),l.defaultPrevented||(a.current||(p=s.triggerRef.current)===null||p===void 0||p.focus(),l.preventDefault()),a.current=!1},onInteractOutside:l=>{var f,p;(f=e.onInteractOutside)===null||f===void 0||f.call(e,l),l.defaultPrevented||(a.current=!0);const m=l.target;!((p=s.triggerRef.current)===null||p===void 0)&&p.contains(m)&&l.preventDefault()}})))})),_y=$.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:u,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,...d}=e,g=Ko("PopoverContent",r),y=gf(r);return yC(),$.createElement(wC,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a},$.createElement(TC,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:m,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>g.onOpenChange(!1)},$.createElement(Sy,rt({"data-state":Ty(g.open),role:"dialog",id:g.contentId},y,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Ty(e){return e?"open":"closed"}const HC=FC,UC=jC,qC=zC;var wa=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(wa||{}),Xl={},ho={},na={},ia={},oa={exports:{}},sa={exports:{}},Fe={};/** @license React v16.13.1
114
+ `)},yM=0,Si=[];function wM(e){var t=H.useRef([]),r=H.useRef([0,0]),n=H.useRef(),o=H.useState(yM++)[0],s=H.useState(Hx)[0],l=H.useRef(e);H.useEffect(function(){l.current=e},[e]),H.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Lc([e.lockRef.current],(e.shards||[]).map(d0),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=H.useCallback(function(v,y){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var m=Yl(v),w=r.current,x="deltaX"in v?v.deltaX:w[0]-m[0],k="deltaY"in v?v.deltaY:w[1]-m[1],_,R=v.target,j=Math.abs(x)>Math.abs(k)?"h":"v";if("touches"in v&&j==="h"&&R.type==="range")return!1;var I=window.getSelection(),L=I&&I.anchorNode,W=L?L===R||L.contains(R):!1;if(W)return!1;var $=c0(j,R);if(!$)return!0;if($?_=j:(_=j==="v"?"h":"v",$=c0(j,R)),!$)return!1;if(!n.current&&"changedTouches"in v&&(x||k)&&(n.current=_),!_)return!0;var D=n.current||_;return vM(D,y,v,D==="h"?x:k)},[]),u=H.useCallback(function(v){var y=v;if(!(!Si.length||Si[Si.length-1]!==s)){var m="deltaY"in y?u0(y):Yl(y),w=t.current.filter(function(_){return _.name===y.type&&(_.target===y.target||y.target===_.shadowParent)&&mM(_.delta,m)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var x=(l.current.shards||[]).map(d0).filter(Boolean).filter(function(_){return _.contains(y.target)}),k=x.length>0?c(y,x[0]):!l.current.noIsolation;k&&y.cancelable&&y.preventDefault()}}},[]),d=H.useCallback(function(v,y,m,w){var x={name:v,delta:y,target:m,should:w,shadowParent:xM(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(k){return k!==x})},1)},[]),g=H.useCallback(function(v){r.current=Yl(v),n.current=void 0},[]),p=H.useCallback(function(v){d(v.type,u0(v),v.target,c(v,e.lockRef.current))},[]),h=H.useCallback(function(v){d(v.type,Yl(v),v.target,c(v,e.lockRef.current))},[]);H.useEffect(function(){return Si.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,xi),document.addEventListener("touchmove",u,xi),document.addEventListener("touchstart",g,xi),function(){Si=Si.filter(function(v){return v!==s}),document.removeEventListener("wheel",u,xi),document.removeEventListener("touchmove",u,xi),document.removeEventListener("touchstart",g,xi)}},[]);var b=e.removeScrollBar,S=e.inert;return H.createElement(H.Fragment,null,S?H.createElement(s,{styles:bM(o)}):null,b?H.createElement(cM,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function xM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const SM=K4(Bx,wM);var qx=H.forwardRef(function(e,t){return H.createElement(ou,wn({},e,{ref:t,sideCar:SM}))});qx.classNames=ou.classNames;const EM=globalThis!=null&&globalThis.document?H.useLayoutEffect:()=>{},_M=H.useId||(()=>{});let kM=0;function OM(e){const[t,r]=H.useState(_M());return EM((()=>{r((n=>n??String(kM++)))}),[e]),e||(t?`radix-${t}`:"")}function Gx(...e){return t=>e.forEach((r=>(function(n,o){typeof n=="function"?n(o):n!=null&&(n.current=o)})(r,t)))}function Ko(...e){return H.useCallback(Gx(...e),e)}const Zx=H.forwardRef(((e,t)=>{const{children:r,...n}=e;return H.Children.toArray(r).some(f0)?H.createElement(H.Fragment,null,H.Children.map(r,(o=>f0(o)?H.createElement(Jf,jt({},n,{ref:t}),o.props.children):o))):H.createElement(Jf,jt({},n,{ref:t}),r)}));Zx.displayName="Slot";const Jf=H.forwardRef(((e,t)=>{const{children:r,...n}=e;return H.isValidElement(r)?H.cloneElement(r,{...AM(n,r.props),ref:Gx(t,r.ref)}):H.Children.count(r)>1?H.Children.only(null):null}));Jf.displayName="SlotClone";const TM=({children:e})=>H.createElement(H.Fragment,null,e);function f0(e){return H.isValidElement(e)&&e.type===TM}function AM(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?r[n]=(...l)=>{s==null||s(...l),o==null||o(...l)}:n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}const qi=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:H.forwardRef(((r,n)=>{const{asChild:o,...s}=r,l=o?Zx:t;return H.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),H.createElement(l,jt({},s,{ref:n}))}))})),{}),p0=globalThis!=null&&globalThis.document?H.useLayoutEffect:()=>{},Yx=e=>{const{present:t,children:r}=e,n=(function(l){const[c,u]=H.useState(),d=H.useRef({}),g=H.useRef(l),p=H.useRef("none"),h=l?"mounted":"unmounted",[b,S]=(function(v,y){return H.useReducer(((m,w)=>{const x=y[m][w];return x??m}),v)})(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return H.useEffect((()=>{const v=Kl(d.current);p.current=b==="mounted"?v:"none"}),[b]),p0((()=>{const v=d.current,y=g.current;if(y!==l){const m=p.current,w=Kl(v);l?S("MOUNT"):w==="none"||(v==null?void 0:v.display)==="none"?S("UNMOUNT"):S(y&&m!==w?"ANIMATION_OUT":"UNMOUNT"),g.current=l}}),[l,S]),p0((()=>{if(c){const v=m=>{const w=Kl(d.current).includes(m.animationName);m.target===c&&w&&S("ANIMATION_END")},y=m=>{m.target===c&&(p.current=Kl(d.current))};return c.addEventListener("animationstart",y),c.addEventListener("animationcancel",v),c.addEventListener("animationend",v),()=>{c.removeEventListener("animationstart",y),c.removeEventListener("animationcancel",v),c.removeEventListener("animationend",v)}}S("ANIMATION_END")}),[c,S]),{isPresent:["mounted","unmountSuspended"].includes(b),ref:H.useCallback((v=>{v&&(d.current=getComputedStyle(v)),u(v)}),[])}})(t),o=typeof r=="function"?r({present:n.isPresent}):H.Children.only(r),s=Ko(n.ref,o.ref);return typeof r=="function"||n.isPresent?H.cloneElement(o,{ref:s}):null};function Kl(e){return(e==null?void 0:e.animationName)||"none"}Yx.displayName="Presence";let pf=0;function RM(){H.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:h0()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:h0()),pf++,()=>{pf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((n=>n.remove())),pf--}}),[])}function h0(){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 CM=globalThis!=null&&globalThis.document?H.useLayoutEffect:()=>{},Kx=H.forwardRef(((e,t)=>{var r,n;const{containerRef:o,style:s,...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]=H.useState({});return CM((()=>{u({})}),[]),c?nn.createPortal(H.createElement(qi.div,jt({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),c):null}));function Go(e){const t=H.useRef(e);return H.useEffect((()=>{t.current=e})),H.useMemo((()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)}),[])}const g0={bubbles:!1,cancelable:!0},IM=H.forwardRef(((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...l}=e,[c,u]=H.useState(null),d=Go(o),g=Go(s),p=H.useRef(null),h=Ko(t,(v=>u(v))),b=H.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;H.useEffect((()=>{if(n){let v=function(m){if(b.paused||!c)return;const w=m.target;c.contains(w)?p.current=w:zo(p.current,{select:!0})},y=function(m){!b.paused&&c&&(c.contains(m.relatedTarget)||zo(p.current,{select:!0}))};return document.addEventListener("focusin",v),document.addEventListener("focusout",y),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y)}}}),[n,c,b.paused]),H.useEffect((()=>{if(c){b0.add(b);const y=document.activeElement;if(!c.contains(y)){const m=new Event("focusScope.autoFocusOnMount",g0);c.addEventListener("focusScope.autoFocusOnMount",d),c.dispatchEvent(m),m.defaultPrevented||((function(w,{select:x=!1}={}){const k=document.activeElement;for(const _ of w)if(zo(_,{select:x}),document.activeElement!==k)return})((v=v0(c),v.filter((w=>w.tagName!=="A"))),{select:!0}),document.activeElement===y&&zo(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",d),setTimeout((()=>{const m=new Event("focusScope.autoFocusOnUnmount",g0);c.addEventListener("focusScope.autoFocusOnUnmount",g),c.dispatchEvent(m),m.defaultPrevented||zo(y??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",g),b0.remove(b)}),0)}}var v}),[c,d,g,b]);const S=H.useCallback((v=>{if(!r&&!n||b.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(y&&m){const w=v.currentTarget,[x,k]=(function(_){const R=v0(_),j=m0(R,_),I=m0(R.reverse(),_);return[j,I]})(w);x&&k?v.shiftKey||m!==k?v.shiftKey&&m===x&&(v.preventDefault(),r&&zo(k,{select:!0})):(v.preventDefault(),r&&zo(x,{select:!0})):m===w&&v.preventDefault()}}),[r,n,b.paused]);return H.createElement(qi.div,jt({tabIndex:-1},l,{ref:h,onKeyDown:S}))}));function v0(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 m0(e,t){for(const r of e)if(!PM(r,{upTo:t}))return r}function PM(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 zo(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 b0=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=y0(e,t),e.unshift(t)},remove(t){var r;e=y0(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function y0(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function NM(e){const t=Go(e);H.useEffect((()=>{const r=n=>{n.key==="Escape"&&t(n)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const MM=globalThis!=null&&globalThis.document?H.useLayoutEffect:()=>{};let w0,Xl=0;function DM({disabled:e}){const t=H.useRef(!1);MM((()=>{if(e){let r=function(){Xl--,Xl===0&&(document.body.style.pointerEvents=w0)},n=function(o){t.current=o.pointerType!=="mouse"};return Xl===0&&(w0=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Xl++,document.addEventListener("pointerup",n),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",n)}}}),[e])}function Uo(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 LM=H.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zM=H.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=e,d=H.useContext(LM),[g,p]=H.useState(null),[,h]=H.useState({}),b=Ko(t,(R=>p(R))),S=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=S.indexOf(v),m=g?S.indexOf(g):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,x=m>=y,k=(function(R){const j=Go(R),I=H.useRef(!1);return H.useEffect((()=>{const L=$=>{$.target&&!I.current&&S0("dismissableLayer.pointerDownOutside",j,{originalEvent:$}),I.current=!1},W=window.setTimeout((()=>{document.addEventListener("pointerdown",L)}),0);return()=>{window.clearTimeout(W),document.removeEventListener("pointerdown",L)}}),[j]),{onPointerDownCapture:()=>I.current=!0}})((R=>{const j=R.target,I=[...d.branches].some((L=>L.contains(j)));x&&!I&&(o==null||o(R),l==null||l(R),R.defaultPrevented||c==null||c())})),_=(function(R){const j=Go(R),I=H.useRef(!1);return H.useEffect((()=>{const L=W=>{W.target&&!I.current&&S0("dismissableLayer.focusOutside",j,{originalEvent:W})};return document.addEventListener("focusin",L),()=>document.removeEventListener("focusin",L)}),[j]),{onFocusCapture:()=>I.current=!0,onBlurCapture:()=>I.current=!1}})((R=>{const j=R.target;[...d.branches].some((I=>I.contains(j)))||(s==null||s(R),l==null||l(R),R.defaultPrevented||c==null||c())}));return NM((R=>{m===d.layers.size-1&&(n==null||n(R),R.defaultPrevented||c==null||c())})),DM({disabled:r}),H.useEffect((()=>{g&&(r&&d.layersWithOutsidePointerEventsDisabled.add(g),d.layers.add(g),x0())}),[g,r,d]),H.useEffect((()=>()=>{g&&(d.layers.delete(g),d.layersWithOutsidePointerEventsDisabled.delete(g),x0())}),[g,d]),H.useEffect((()=>{const R=()=>h({});return document.addEventListener("dismissableLayer.update",R),()=>document.removeEventListener("dismissableLayer.update",R)}),[]),H.createElement(qi.div,jt({},u,{ref:b,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Uo(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Uo(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Uo(e.onPointerDownCapture,k.onPointerDownCapture)}))}));function x0(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function S0(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 E0(e){const[t,r]=H.useState(void 0);return H.useEffect((()=>{if(e){const n=new ResizeObserver((o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let l,c;if("borderBoxSize"in s){const u=s.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 $M(e,t){const r=$o.get(e);return r===void 0?($o.set(e,{rect:{},callbacks:[t]}),$o.size===1&&(Qf=requestAnimationFrame(Xx))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=$o.get(e);if(n===void 0)return;const o=n.callbacks.indexOf(t);o>-1&&n.callbacks.splice(o,1),n.callbacks.length===0&&($o.delete(e),$o.size===0&&cancelAnimationFrame(Qf))}}let Qf;const $o=new Map;function Xx(){const e=[];$o.forEach(((t,r)=>{const n=r.getBoundingClientRect();var o,s;o=t.rect,s=n,(o.width!==s.width||o.height!==s.height||o.top!==s.top||o.right!==s.right||o.bottom!==s.bottom||o.left!==s.left)&&(t.rect=n,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),Qf=requestAnimationFrame(Xx)}function jM(e){const[t,r]=H.useState();return H.useEffect((()=>{if(e){const n=$M(e,r);return()=>{r(void 0),n()}}}),[e]),t}function Jx(e,t=[]){let r=[];const n=()=>{const o=r.map((s=>H.createContext(s)));return function(s){const l=(s==null?void 0:s[e])||o;return H.useMemo((()=>({[`__scope${e}`]:{...s,[e]:l}})),[s,l])}};return n.scopeName=e,[function(o,s){const l=H.createContext(s),c=r.length;function u(d){const{scope:g,children:p,...h}=d,b=(g==null?void 0:g[e][c])||l,S=H.useMemo((()=>h),Object.values(h));return H.createElement(b.Provider,{value:S},p)}return r=[...r,s],u.displayName=o+"Provider",[u,function(d,g){const p=(g==null?void 0:g[e][c])||l,h=H.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}]},FM(n,...t)]}function FM(...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 s=n.reduce(((l,{useScope:c,scopeName:u})=>({...l,...c(o)[`__scope${u}`]})),{});return H.useMemo((()=>({[`__scope${t.scopeName}`]:s})),[s])}};return r.scopeName=t.scopeName,r}function BM({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:n=0,side:o,sideOffset:s=0,align:l,alignOffset:c=0,shouldAvoidCollisions:u=!0,collisionBoundariesRect:d,collisionTolerance:g=0}){if(!e||!t||!d)return{popperStyles:HM,arrowStyles:hf};const p=(function(j,I,L=0,W=0,$){const D=$?$.height:0,U=_0(I,j,"x"),V=_0(I,j,"y"),N=V.before-L-D,X=V.after+L+D,ee=U.before-L-D,Y=U.after+L+D;return{top:{start:{x:U.start+W,y:N},center:{x:U.center,y:N},end:{x:U.end-W,y:N}},right:{start:{x:Y,y:V.start+W},center:{x:Y,y:V.center},end:{x:Y,y:V.end-W}},bottom:{start:{x:U.start+W,y:X},center:{x:U.center,y:X},end:{x:U.end-W,y:X}},left:{start:{x:ee,y:V.start+W},center:{x:ee,y:V.center},end:{x:ee,y:V.end-W}}}})(t,e,s,c,r),h=p[o][l];if(u===!1){const j=k0(h);let I=hf;return r&&(I=T0({popperSize:t,arrowSize:r,arrowOffset:n,side:o,align:l})),{popperStyles:{...j,"--radix-popper-transform-origin":O0(t,o,l,n,r)},arrowStyles:I,placedSide:o,placedAlign:l}}const b=DOMRect.fromRect({...t,...h}),S=(v=d,y=g,DOMRect.fromRect({width:v.width-2*y,height:v.height-2*y,x:v.left+y,y:v.top+y}));var v,y;const m=R0(b,S),w=p[A0(o)][l],x=(function(j,I,L){const W=A0(j);return I[j]&&!L[W]?W:j})(o,m,R0(DOMRect.fromRect({...t,...w}),S)),k=(function(j,I,L,W,$){const D=L==="top"||L==="bottom",U=D?"left":"top",V=D?"right":"bottom",N=D?"width":"height",X=I[N]>j[N];return(W==="start"||W==="center")&&($[U]&&X||$[V]&&!X)?"end":(W==="end"||W==="center")&&($[V]&&X||$[U]&&!X)?"start":W})(t,e,o,l,m),_=k0(p[x][k]);let R=hf;return r&&(R=T0({popperSize:t,arrowSize:r,arrowOffset:n,side:x,align:k})),{popperStyles:{..._,"--radix-popper-transform-origin":O0(t,x,k,n,r)},arrowStyles:R,placedSide:x,placedAlign:k}}function _0(e,t,r){const n=e[r==="x"?"left":"top"],o=r==="x"?"width":"height",s=e[o],l=t[o];return{before:n-l,start:n,center:n+(s-l)/2,end:n+s-l,after:n+s}}function k0(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 O0(e,t,r,n,o){const s=t==="top"||t==="bottom",l=o?o.width:0,c=o?o.height:0,u=l/2+n;let d="",g="";return s?(d={start:`${u}px`,center:"center",end:e.width-u+"px"}[r],g=t==="top"?`${e.height+c}px`:-c+"px"):(d=t==="left"?`${e.width+c}px`:-c+"px",g={start:`${u}px`,center:"center",end:e.height-u+"px"}[r]),`${d} ${g}`}const HM={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},hf={position:"absolute",opacity:0};function T0({popperSize:e,arrowSize:t,arrowOffset:r,side:n,align:o}){const s=(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:WM(n,o)};return n!=="top"&&n!=="bottom"||(o==="start"&&(d.left=`${r}px`),o==="center"&&(d.left=`${s}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 WM(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function A0(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function R0(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Qx,e1]=Jx("Popper"),[VM,t1]=Qx("Popper"),UM=e=>{const{__scopePopper:t,children:r}=e,[n,o]=H.useState(null);return H.createElement(VM,{scope:t,anchor:n,onAnchorChange:o},r)},qM=H.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=t1("PopperAnchor",r),l=H.useRef(null),c=Ko(t,l);return H.useEffect((()=>{s.onAnchorChange((n==null?void 0:n.current)||l.current)})),n?null:H.createElement(qi.div,jt({},o,{ref:c}))})),[GM,aF]=Qx("PopperContent"),ZM=H.forwardRef(((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o,align:s="center",alignOffset:l,collisionTolerance:c,avoidCollisions:u=!0,...d}=e,g=t1("PopperContent",r),[p,h]=H.useState(),b=jM(g.anchor),[S,v]=H.useState(null),y=E0(S),[m,w]=H.useState(null),x=E0(m),k=Ko(t,(D=>v(D))),_=(function(){const[D,U]=H.useState(void 0);return H.useEffect((()=>{let V;function N(){U({width:window.innerWidth,height:window.innerHeight})}function X(){window.clearTimeout(V),V=window.setTimeout(N,100)}return N(),window.addEventListener("resize",X),()=>window.removeEventListener("resize",X)}),[]),D})(),R=_?DOMRect.fromRect({..._,x:0,y:0}):void 0,{popperStyles:j,arrowStyles:I,placedSide:L,placedAlign:W}=BM({anchorRect:b,popperSize:y,arrowSize:x,arrowOffset:p,side:n,sideOffset:o,align:s,alignOffset:l,shouldAvoidCollisions:u,collisionBoundariesRect:R,collisionTolerance:c}),$=L!==void 0;return H.createElement("div",{style:j,"data-radix-popper-content-wrapper":""},H.createElement(GM,{scope:r,arrowStyles:I,onArrowChange:w,onArrowOffsetChange:h},H.createElement(qi.div,jt({"data-side":L,"data-align":W},d,{style:{...d.style,animation:$?void 0:"none"},ref:k}))))})),YM=UM,KM=qM,XM=ZM;function JM({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[n,o]=(function({defaultProp:u,onChange:d}){const g=H.useState(u),[p]=g,h=H.useRef(p),b=Go(d);return H.useEffect((()=>{h.current!==p&&(b(p),h.current=p)}),[p,h,b]),g})({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:n,c=Go(r);return[l,H.useCallback((u=>{if(s){const d=u,g=typeof u=="function"?d(e):u;g!==e&&c(g)}else o(u)}),[s,e,o,c])]}const[QM]=Jx("Popover",[e1]),Vp=e1(),[eD,Ca]=QM("Popover"),tD=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:l=!1}=e,c=Vp(t),u=H.useRef(null),[d,g]=H.useState(!1),[p=!1,h]=JM({prop:n,defaultProp:o,onChange:s});return H.createElement(YM,c,H.createElement(eD,{scope:t,contentId:OM(),triggerRef:u,open:p,onOpenChange:h,onOpenToggle:H.useCallback((()=>h((b=>!b))),[h]),hasCustomAnchor:d,onCustomAnchorAdd:H.useCallback((()=>g(!0)),[]),onCustomAnchorRemove:H.useCallback((()=>g(!1)),[]),modal:l},r))},rD=H.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,o=Ca("PopoverTrigger",r),s=Vp(r),l=Ko(t,o.triggerRef),c=H.createElement(qi.button,jt({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":n1(o.open)},n,{ref:l,onClick:Uo(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?c:H.createElement(KM,jt({asChild:!0},s),c)})),nD=H.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,o=Ca("PopoverContent",e.__scopePopover);return H.createElement(Yx,{present:r||o.open},o.modal?H.createElement(oD,jt({},n,{ref:t})):H.createElement(iD,jt({},n,{ref:t})))})),oD=H.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:n=!0,...o}=e,s=Ca("PopoverContent",e.__scopePopover),l=H.useRef(null),c=Ko(t,l),u=H.useRef(!1);H.useEffect((()=>{const g=l.current;if(g)return B4(g)}),[]);const d=n?Kx:H.Fragment;return H.createElement(d,null,H.createElement(qx,{allowPinchZoom:r},H.createElement(r1,jt({},o,{ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Uo(e.onCloseAutoFocus,(g=>{var p;g.preventDefault(),u.current||(p=s.triggerRef.current)===null||p===void 0||p.focus()})),onPointerDownOutside:Uo(e.onPointerDownOutside,(g=>{const p=g.detail.originalEvent,h=p.button===0&&p.ctrlKey===!0,b=p.button===2||h;u.current=b}),{checkForDefaultPrevented:!1}),onFocusOutside:Uo(e.onFocusOutside,(g=>g.preventDefault()),{checkForDefaultPrevented:!1})}))))})),iD=H.forwardRef(((e,t)=>{const{portalled:r=!0,...n}=e,o=Ca("PopoverContent",e.__scopePopover),s=H.useRef(!1),l=r?Kx:H.Fragment;return H.createElement(l,null,H.createElement(r1,jt({},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||(s.current||(d=o.triggerRef.current)===null||d===void 0||d.focus(),c.preventDefault()),s.current=!1},onInteractOutside:c=>{var u,d;(u=e.onInteractOutside)===null||u===void 0||u.call(e,c),c.defaultPrevented||(s.current=!0);const g=c.target;!((d=o.triggerRef.current)===null||d===void 0)&&d.contains(g)&&c.preventDefault()}})))})),r1=H.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:g,...p}=e,h=Ca("PopoverContent",r),b=Vp(r);return RM(),H.createElement(IM,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s},H.createElement(zM,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1)},H.createElement(XM,jt({"data-state":n1(h.open),role:"dialog",id:h.contentId},b,p,{ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function n1(e){return e?"open":"closed"}const sD=tD,aD=rD,lD=nD;var Ec=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ec||{}),gf={},Fs={},Jl={},Ql={},ec={exports:{}},tc={exports:{}},Xe={};/** @license React v16.13.1
63
115
  * react-is.production.min.js
64
116
  *
65
117
  * Copyright (c) Facebook, Inc. and its affiliates.
66
118
  *
67
119
  * This source code is licensed under the MIT license found in the
68
120
  * LICENSE file in the root directory of this source tree.
69
- */var am;function GC(){if(am)return Fe;am=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,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(T){if(typeof T=="object"&&T!==null){var C=T.$$typeof;switch(C){case t:switch(T=T.type,T){case f:case p:case i:case a:case s:case d:return T;default:switch(T=T&&T.$$typeof,T){case l:case m:case x:case y:case u:return T;default:return C}}case r:return C}}}function R(T){return E(T)===p}return Fe.AsyncMode=f,Fe.ConcurrentMode=p,Fe.ContextConsumer=l,Fe.ContextProvider=u,Fe.Element=t,Fe.ForwardRef=m,Fe.Fragment=i,Fe.Lazy=x,Fe.Memo=y,Fe.Portal=r,Fe.Profiler=a,Fe.StrictMode=s,Fe.Suspense=d,Fe.isAsyncMode=function(T){return R(T)||E(T)===f},Fe.isConcurrentMode=R,Fe.isContextConsumer=function(T){return E(T)===l},Fe.isContextProvider=function(T){return E(T)===u},Fe.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Fe.isForwardRef=function(T){return E(T)===m},Fe.isFragment=function(T){return E(T)===i},Fe.isLazy=function(T){return E(T)===x},Fe.isMemo=function(T){return E(T)===y},Fe.isPortal=function(T){return E(T)===r},Fe.isProfiler=function(T){return E(T)===a},Fe.isStrictMode=function(T){return E(T)===s},Fe.isSuspense=function(T){return E(T)===d},Fe.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===i||T===p||T===a||T===s||T===d||T===g||typeof T=="object"&&T!==null&&(T.$$typeof===x||T.$$typeof===y||T.$$typeof===u||T.$$typeof===l||T.$$typeof===m||T.$$typeof===w||T.$$typeof===v||T.$$typeof===S||T.$$typeof===h)},Fe.typeOf=E,Fe}var je={};/** @license React v16.13.1
121
+ */var C0;function cD(){if(C0)return Xe;C0=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,s=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,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case t:switch(_=_.type,_){case u:case d:case n:case s:case o:case p:return _;default:switch(_=_&&_.$$typeof,_){case c:case g:case S:case b:case l:return _;default:return R}}case r:return R}}}function k(_){return x(_)===d}return Xe.AsyncMode=u,Xe.ConcurrentMode=d,Xe.ContextConsumer=c,Xe.ContextProvider=l,Xe.Element=t,Xe.ForwardRef=g,Xe.Fragment=n,Xe.Lazy=S,Xe.Memo=b,Xe.Portal=r,Xe.Profiler=s,Xe.StrictMode=o,Xe.Suspense=p,Xe.isAsyncMode=function(_){return k(_)||x(_)===u},Xe.isConcurrentMode=k,Xe.isContextConsumer=function(_){return x(_)===c},Xe.isContextProvider=function(_){return x(_)===l},Xe.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Xe.isForwardRef=function(_){return x(_)===g},Xe.isFragment=function(_){return x(_)===n},Xe.isLazy=function(_){return x(_)===S},Xe.isMemo=function(_){return x(_)===b},Xe.isPortal=function(_){return x(_)===r},Xe.isProfiler=function(_){return x(_)===s},Xe.isStrictMode=function(_){return x(_)===o},Xe.isSuspense=function(_){return x(_)===p},Xe.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===d||_===s||_===o||_===p||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===S||_.$$typeof===b||_.$$typeof===l||_.$$typeof===c||_.$$typeof===g||_.$$typeof===y||_.$$typeof===m||_.$$typeof===w||_.$$typeof===v)},Xe.typeOf=x,Xe}var Je={};/** @license React v16.13.1
70
122
  * react-is.development.js
71
123
  *
72
124
  * Copyright (c) Facebook, Inc. and its affiliates.
73
125
  *
74
126
  * This source code is licensed under the MIT license found in the
75
127
  * LICENSE file in the root directory of this source tree.
76
- */var um;function ZC(){return um||(um=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,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(oe){return typeof oe=="string"||typeof oe=="function"||oe===i||oe===p||oe===a||oe===s||oe===d||oe===g||typeof oe=="object"&&oe!==null&&(oe.$$typeof===x||oe.$$typeof===y||oe.$$typeof===u||oe.$$typeof===l||oe.$$typeof===m||oe.$$typeof===w||oe.$$typeof===v||oe.$$typeof===S||oe.$$typeof===h)}function R(oe){if(typeof oe=="object"&&oe!==null){var dt=oe.$$typeof;switch(dt){case t:var zr=oe.type;switch(zr){case f:case p:case i:case a:case s:case d:return zr;default:var St=zr&&zr.$$typeof;switch(St){case l:case m:case x:case y:case u:return St;default:return dt}}case r:return dt}}}var T=f,C=p,W=l,N=u,F=t,q=m,j=i,D=x,H=y,G=r,k=a,Q=s,J=d,re=!1;function ce(oe){return re||(re=!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(oe)||R(oe)===f}function Z(oe){return R(oe)===p}function te(oe){return R(oe)===l}function ne(oe){return R(oe)===u}function ue(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===t}function ie(oe){return R(oe)===m}function he(oe){return R(oe)===i}function fe(oe){return R(oe)===x}function ve(oe){return R(oe)===y}function xe(oe){return R(oe)===r}function Oe(oe){return R(oe)===a}function _e(oe){return R(oe)===s}function at(oe){return R(oe)===d}je.AsyncMode=T,je.ConcurrentMode=C,je.ContextConsumer=W,je.ContextProvider=N,je.Element=F,je.ForwardRef=q,je.Fragment=j,je.Lazy=D,je.Memo=H,je.Portal=G,je.Profiler=k,je.StrictMode=Q,je.Suspense=J,je.isAsyncMode=ce,je.isConcurrentMode=Z,je.isContextConsumer=te,je.isContextProvider=ne,je.isElement=ue,je.isForwardRef=ie,je.isFragment=he,je.isLazy=fe,je.isMemo=ve,je.isPortal=xe,je.isProfiler=Oe,je.isStrictMode=_e,je.isSuspense=at,je.isValidElementType=E,je.typeOf=R})()),je}var lm;function Oy(){return lm||(lm=1,process.env.NODE_ENV==="production"?sa.exports=GC():sa.exports=ZC()),sa.exports}/*
128
+ */var I0;function uD(){return I0||(I0=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,s=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,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(K){return typeof K=="string"||typeof K=="function"||K===n||K===d||K===s||K===o||K===p||K===h||typeof K=="object"&&K!==null&&(K.$$typeof===S||K.$$typeof===b||K.$$typeof===l||K.$$typeof===c||K.$$typeof===g||K.$$typeof===y||K.$$typeof===m||K.$$typeof===w||K.$$typeof===v)}function k(K){if(typeof K=="object"&&K!==null){var je=K.$$typeof;switch(je){case t:var me=K.type;switch(me){case u:case d:case n:case s:case o:case p:return me;default:var De=me&&me.$$typeof;switch(De){case c:case g:case S:case b:case l:return De;default:return je}}case r:return je}}}var _=u,R=d,j=c,I=l,L=t,W=g,$=n,D=S,U=b,V=r,N=s,X=o,ee=p,Y=!1;function ge(K){return Y||(Y=!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.")),P(K)||k(K)===u}function P(K){return k(K)===d}function F(K){return k(K)===c}function J(K){return k(K)===l}function te(K){return typeof K=="object"&&K!==null&&K.$$typeof===t}function Z(K){return k(K)===g}function de(K){return k(K)===n}function ie(K){return k(K)===S}function re(K){return k(K)===b}function oe(K){return k(K)===r}function he(K){return k(K)===s}function fe(K){return k(K)===o}function Se(K){return k(K)===p}Je.AsyncMode=_,Je.ConcurrentMode=R,Je.ContextConsumer=j,Je.ContextProvider=I,Je.Element=L,Je.ForwardRef=W,Je.Fragment=$,Je.Lazy=D,Je.Memo=U,Je.Portal=V,Je.Profiler=N,Je.StrictMode=X,Je.Suspense=ee,Je.isAsyncMode=ge,Je.isConcurrentMode=P,Je.isContextConsumer=F,Je.isContextProvider=J,Je.isElement=te,Je.isForwardRef=Z,Je.isFragment=de,Je.isLazy=ie,Je.isMemo=re,Je.isPortal=oe,Je.isProfiler=he,Je.isStrictMode=fe,Je.isSuspense=Se,Je.isValidElementType=x,Je.typeOf=k})()),Je}var P0;function o1(){return P0||(P0=1,process.env.NODE_ENV==="production"?tc.exports=cD():tc.exports=uD()),tc.exports}/*
77
129
  object-assign
78
130
  (c) Sindre Sorhus
79
131
  @license MIT
80
- */var Jl,cm;function VC(){if(cm)return Jl;cm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var u={},l=0;l<10;l++)u["_"+String.fromCharCode(l)]=l;var f=Object.getOwnPropertyNames(u).map(function(m){return u[m]});if(f.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(m){p[m]=m}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Jl=s()?Object.assign:function(a,u){for(var l,f=i(a),p,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var d in l)t.call(l,d)&&(f[d]=l[d]);if(e){p=e(l);for(var g=0;g<p.length;g++)r.call(l,p[g])&&(f[p[g]]=l[p[g]])}}return f},Jl}var Ql,fm;function mf(){if(fm)return Ql;fm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ql=e,Ql}var ec,dm;function Ay(){return dm||(dm=1,ec=Function.call.bind(Object.prototype.hasOwnProperty)),ec}var tc,pm;function KC(){if(pm)return tc;pm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=mf(),r={},i=Ay();e=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function s(a,u,l,f,p){if(process.env.NODE_ENV!=="production"){for(var m in a)if(i(a,m)){var d;try{if(typeof a[m]!="function"){var g=Error((f||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}d=a[m](u,m,f,l,null,t)}catch(x){d=x}if(d&&!(d instanceof Error)&&e((f||"React class")+": type specification of "+l+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var y=p?p():"";e("Failed "+l+" type: "+d.message+(y??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},tc=s,tc}var rc,hm;function YC(){if(hm)return rc;hm=1;var e=Oy(),t=VC(),r=mf(),i=Ay(),s=KC(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var f="Warning: "+l;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function u(){return null}return rc=function(l,f){var p=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function d(Z){var te=Z&&(p&&Z[p]||Z[m]);if(typeof te=="function")return te}var g="<<anonymous>>",y={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:S(),arrayOf:E,element:R(),elementType:T(),instanceOf:C,node:q(),objectOf:N,oneOf:W,oneOfType:F,shape:D,exact:H};function x(Z,te){return Z===te?Z!==0||1/Z===1/te:Z!==Z&&te!==te}function h(Z,te){this.message=Z,this.data=te&&typeof te=="object"?te:{},this.stack=""}h.prototype=Error.prototype;function w(Z){if(process.env.NODE_ENV!=="production")var te={},ne=0;function ue(he,fe,ve,xe,Oe,_e,at){if(xe=xe||g,_e=_e||ve,at!==r){if(f){var oe=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 oe.name="Invariant Violation",oe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var dt=xe+":"+ve;!te[dt]&&ne<3&&(a("You are manually calling a React.PropTypes validation function for the `"+_e+"` prop on `"+xe+"`. 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."),te[dt]=!0,ne++)}}return fe[ve]==null?he?fe[ve]===null?new h("The "+Oe+" `"+_e+"` is marked as required "+("in `"+xe+"`, but its value is `null`.")):new h("The "+Oe+" `"+_e+"` is marked as required in "+("`"+xe+"`, but its value is `undefined`.")):null:Z(fe,ve,xe,Oe,_e)}var ie=ue.bind(null,!1);return ie.isRequired=ue.bind(null,!0),ie}function v(Z){function te(ne,ue,ie,he,fe,ve){var xe=ne[ue],Oe=Q(xe);if(Oe!==Z){var _e=J(xe);return new h("Invalid "+he+" `"+fe+"` of type "+("`"+_e+"` supplied to `"+ie+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return w(te)}function S(){return w(u)}function E(Z){function te(ne,ue,ie,he,fe){if(typeof Z!="function")return new h("Property `"+fe+"` of component `"+ie+"` has invalid PropType notation inside arrayOf.");var ve=ne[ue];if(!Array.isArray(ve)){var xe=Q(ve);return new h("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected an array."))}for(var Oe=0;Oe<ve.length;Oe++){var _e=Z(ve,Oe,ie,he,fe+"["+Oe+"]",r);if(_e instanceof Error)return _e}return null}return w(te)}function R(){function Z(te,ne,ue,ie,he){var fe=te[ne];if(!l(fe)){var ve=Q(fe);return new h("Invalid "+ie+" `"+he+"` of type "+("`"+ve+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return w(Z)}function T(){function Z(te,ne,ue,ie,he){var fe=te[ne];if(!e.isValidElementType(fe)){var ve=Q(fe);return new h("Invalid "+ie+" `"+he+"` of type "+("`"+ve+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return w(Z)}function C(Z){function te(ne,ue,ie,he,fe){if(!(ne[ue]instanceof Z)){var ve=Z.name||g,xe=ce(ne[ue]);return new h("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected ")+("instance of `"+ve+"`."))}return null}return w(te)}function W(Z){if(!Array.isArray(Z))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.")),u;function te(ne,ue,ie,he,fe){for(var ve=ne[ue],xe=0;xe<Z.length;xe++)if(x(ve,Z[xe]))return null;var Oe=JSON.stringify(Z,function(at,oe){var dt=J(oe);return dt==="symbol"?String(oe):oe});return new h("Invalid "+he+" `"+fe+"` of value `"+String(ve)+"` "+("supplied to `"+ie+"`, expected one of "+Oe+"."))}return w(te)}function N(Z){function te(ne,ue,ie,he,fe){if(typeof Z!="function")return new h("Property `"+fe+"` of component `"+ie+"` has invalid PropType notation inside objectOf.");var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new h("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected an object."));for(var Oe in ve)if(i(ve,Oe)){var _e=Z(ve,Oe,ie,he,fe+"."+Oe,r);if(_e instanceof Error)return _e}return null}return w(te)}function F(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var te=0;te<Z.length;te++){var ne=Z[te];if(typeof ne!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(ne)+" at index "+te+"."),u}function ue(ie,he,fe,ve,xe){for(var Oe=[],_e=0;_e<Z.length;_e++){var at=Z[_e],oe=at(ie,he,fe,ve,xe,r);if(oe==null)return null;oe.data&&i(oe.data,"expectedType")&&Oe.push(oe.data.expectedType)}var dt=Oe.length>0?", expected one of type ["+Oe.join(", ")+"]":"";return new h("Invalid "+ve+" `"+xe+"` supplied to "+("`"+fe+"`"+dt+"."))}return w(ue)}function q(){function Z(te,ne,ue,ie,he){return G(te[ne])?null:new h("Invalid "+ie+" `"+he+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(Z)}function j(Z,te,ne,ue,ie){return new h((Z||"React class")+": "+te+" type `"+ne+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ie+"`.")}function D(Z){function te(ne,ue,ie,he,fe){var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new h("Invalid "+he+" `"+fe+"` of type `"+xe+"` "+("supplied to `"+ie+"`, expected `object`."));for(var Oe in Z){var _e=Z[Oe];if(typeof _e!="function")return j(ie,he,fe,Oe,J(_e));var at=_e(ve,Oe,ie,he,fe+"."+Oe,r);if(at)return at}return null}return w(te)}function H(Z){function te(ne,ue,ie,he,fe){var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new h("Invalid "+he+" `"+fe+"` of type `"+xe+"` "+("supplied to `"+ie+"`, expected `object`."));var Oe=t({},ne[ue],Z);for(var _e in Oe){var at=Z[_e];if(i(Z,_e)&&typeof at!="function")return j(ie,he,fe,_e,J(at));if(!at)return new h("Invalid "+he+" `"+fe+"` key `"+_e+"` supplied to `"+ie+"`.\nBad object: "+JSON.stringify(ne[ue],null," ")+`
81
- Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var oe=at(ve,_e,ie,he,fe+"."+_e,r);if(oe)return oe}return null}return w(te)}function G(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(G);if(Z===null||l(Z))return!0;var te=d(Z);if(te){var ne=te.call(Z),ue;if(te!==Z.entries){for(;!(ue=ne.next()).done;)if(!G(ue.value))return!1}else for(;!(ue=ne.next()).done;){var ie=ue.value;if(ie&&!G(ie[1]))return!1}}else return!1;return!0;default:return!1}}function k(Z,te){return Z==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function Q(Z){var te=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":k(te,Z)?"symbol":te}function J(Z){if(typeof Z>"u"||Z===null)return""+Z;var te=Q(Z);if(te==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return te}function re(Z){var te=J(Z);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function ce(Z){return!Z.constructor||!Z.constructor.name?g:Z.constructor.name}return y.checkPropTypes=s,y.resetWarningCache=s.resetWarningCache,y.PropTypes=y,y},rc}var nc,gm;function XC(){if(gm)return nc;gm=1;var e=mf();function t(){}function r(){}return r.resetWarningCache=t,nc=function(){function i(u,l,f,p,m,d){if(d!==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}}i.isRequired=i;function s(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},nc}var mm;function JC(){if(mm)return oa.exports;if(mm=1,process.env.NODE_ENV!=="production"){var e=Oy(),t=!0;oa.exports=YC()(e.isElement,t)}else oa.exports=XC()();return oa.exports}var vm;function QC(){return vm||(vm=1,(function(e){(function(t,r){r(e,M,JC())})(ia,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var s=u(r),a=u(i);function u(S){return S&&S.__esModule?S:{default:S}}var l=Object.assign||function(S){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var T in R)Object.prototype.hasOwnProperty.call(R,T)&&(S[T]=R[T])}return S};function f(S,E){var R={};for(var T in S)E.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(S,T)&&(R[T]=S[T]);return R}function p(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 T=0;T<R.length;T++){var C=R[T];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(E,C.key,C)}}return function(E,R,T){return R&&S(E.prototype,R),T&&S(E,T),E}})();function d(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 g(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 y=!1;function x(S){y=S}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function h(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return y?S:S.capture}function w(S){if("touches"in S){var E=S.touches[0],R=E.pageX,T=E.pageY;return{x:R,y:T}}var C=S.screenX,W=S.screenY;return{x:C,y:W}}var v=(function(S){g(E,S);function E(){var R;p(this,E);for(var T=arguments.length,C=Array(T),W=0;W<T;W++)C[W]=arguments[W];var N=d(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(C)));return N._handleSwipeStart=N._handleSwipeStart.bind(N),N._handleSwipeMove=N._handleSwipeMove.bind(N),N._handleSwipeEnd=N._handleSwipeEnd.bind(N),N._onMouseDown=N._onMouseDown.bind(N),N._onMouseMove=N._onMouseMove.bind(N),N._onMouseUp=N._onMouseUp.bind(N),N._setSwiperRef=N._setSwiperRef.bind(N),N}return m(E,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,h({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,h({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(T){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(T))}},{key:"_onMouseMove",value:function(T){this.mouseDown&&this._handleSwipeMove(T)}},{key:"_onMouseUp",value:function(T){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(T)}},{key:"_handleSwipeStart",value:function(T){var C=w(T),W=C.x,N=C.y;this.moveStart={x:W,y:N},this.props.onSwipeStart(T)}},{key:"_handleSwipeMove",value:function(T){if(this.moveStart){var C=w(T),W=C.x,N=C.y,F=W-this.moveStart.x,q=N-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:F,y:q},T);j&&T.cancelable&&T.preventDefault(),this.movePosition={deltaX:F,deltaY:q}}}},{key:"_handleSwipeEnd",value:function(T){this.props.onSwipeEnd(T);var C=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-C?this.props.onSwipeLeft(1,T):this.movePosition.deltaX>C&&this.props.onSwipeRight(1,T),this.movePosition.deltaY<-C?this.props.onSwipeUp(1,T):this.movePosition.deltaY>C&&this.props.onSwipeDown(1,T)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(T){this.swiper=T,this.props.innerRef(T)}},{key:"render",value:function(){var T=this.props;T.tagName;var C=T.className,W=T.style,N=T.children;T.allowMouseEvents,T.onSwipeUp,T.onSwipeDown,T.onSwipeLeft,T.onSwipeRight,T.onSwipeStart,T.onSwipeMove,T.onSwipeEnd,T.innerRef,T.tolerance;var F=f(T,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return s.default.createElement(this.props.tagName,l({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:C,style:W},F),N)}}]),E})(r.Component);v.displayName="ReactSwipe",v.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},v.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=v})})(ia)),ia}var ym;function Ry(){return ym||(ym=1,(function(e){(function(t,r){r(e,QC())})(na,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=s(r);function s(a){return a&&a.__esModule?a:{default:a}}t.default=i.default})})(na)),na}var go={},bm;function Py(){if(bm)return go;bm=1,Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var e=t(Nv());function t(s){return s&&s.__esModule?s:{default:s}}function r(s,a,u){return a in s?Object.defineProperty(s,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[a]=u,s}var i={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,u){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":u==="horizontal","axis-vertical":u!=="horizontal"})},SLIDER:function(a,u){return(0,e.default)({thumbs:!a,slider:a,animated:!u})},ITEM:function(a,u,l){return(0,e.default)({thumb:!a,slide:a,selected:u,previous:l})},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 go.default=i,go}var mo={},vo={},wm;function ek(){if(wm)return vo;wm=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,s=getComputedStyle(r);return i+=parseInt(s.marginLeft)+parseInt(s.marginRight),i};return vo.outerWidth=e,vo}var yo={},xm;function vf(){if(xm)return yo;xm=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=void 0;var e=function(r,i,s){var a=r===0?r:r+i,u=s==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",f="("+u.join(",")+")";return l+f};return yo.default=e,yo}var bo={},Sm;function Cy(){if(Sm)return bo;Sm=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=void 0;var e=function(){return window};return bo.default=e,bo}var Em;function ky(){if(Em)return mo;Em=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.default=void 0;var e=f(M),t=u(Py()),r=ek(),i=u(vf()),s=u(Ry()),a=u(Cy());function u(N){return N&&N.__esModule?N:{default:N}}function l(){if(typeof WeakMap!="function")return null;var N=new WeakMap;return l=function(){return N},N}function f(N){if(N&&N.__esModule)return N;if(N===null||p(N)!=="object"&&typeof N!="function")return{default:N};var F=l();if(F&&F.has(N))return F.get(N);var q={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in N)if(Object.prototype.hasOwnProperty.call(N,D)){var H=j?Object.getOwnPropertyDescriptor(N,D):null;H&&(H.get||H.set)?Object.defineProperty(q,D,H):q[D]=N[D]}return q.default=N,F&&F.set(N,q),q}function p(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(q){return typeof q}:p=function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},p(N)}function m(){return m=Object.assign||function(N){for(var F=1;F<arguments.length;F++){var q=arguments[F];for(var j in q)Object.prototype.hasOwnProperty.call(q,j)&&(N[j]=q[j])}return N},m.apply(this,arguments)}function d(N,F){if(!(N instanceof F))throw new TypeError("Cannot call a class as a function")}function g(N,F){for(var q=0;q<F.length;q++){var j=F[q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(N,j.key,j)}}function y(N,F,q){return F&&g(N.prototype,F),N}function x(N,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(F&&F.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),F&&h(N,F)}function h(N,F){return h=Object.setPrototypeOf||function(j,D){return j.__proto__=D,j},h(N,F)}function w(N){var F=E();return function(){var j=R(N),D;if(F){var H=R(this).constructor;D=Reflect.construct(j,arguments,H)}else D=j.apply(this,arguments);return v(this,D)}}function v(N,F){return F&&(p(F)==="object"||typeof F=="function")?F:S(N)}function S(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}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(N){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(q){return q.__proto__||Object.getPrototypeOf(q)},R(N)}function T(N,F,q){return F in N?Object.defineProperty(N,F,{value:q,enumerable:!0,configurable:!0,writable:!0}):N[F]=q,N}var C=function(F){return F.hasOwnProperty("key")},W=(function(N){x(q,N);var F=w(q);function q(j){var D;return d(this,q),D=F.call(this,j),T(S(D),"itemsWrapperRef",void 0),T(S(D),"itemsListRef",void 0),T(S(D),"thumbsRef",void 0),T(S(D),"setItemsWrapperRef",function(H){D.itemsWrapperRef=H}),T(S(D),"setItemsListRef",function(H){D.itemsListRef=H}),T(S(D),"setThumbsRef",function(H,G){D.thumbsRef||(D.thumbsRef=[]),D.thumbsRef[G]=H}),T(S(D),"updateSizes",function(){if(!(!D.props.children||!D.itemsWrapperRef||!D.thumbsRef)){var H=e.Children.count(D.props.children),G=D.itemsWrapperRef.clientWidth,k=D.props.thumbWidth?D.props.thumbWidth:(0,r.outerWidth)(D.thumbsRef[0]),Q=Math.floor(G/k),J=Q<H,re=J?H-Q:0;D.setState(function(ce,Z){return{itemSize:k,visibleItems:Q,firstItem:J?D.getFirstItem(Z.selectedItem):0,lastPosition:re,showArrows:J}})}}),T(S(D),"handleClickItem",function(H,G,k){if(!C(k)||k.key==="Enter"){var Q=D.props.onSelectItem;typeof Q=="function"&&Q(H,G)}}),T(S(D),"onSwipeStart",function(){D.setState({swiping:!0})}),T(S(D),"onSwipeEnd",function(){D.setState({swiping:!1})}),T(S(D),"onSwipeMove",function(H){var G=H.x;if(!D.state.itemSize||!D.itemsWrapperRef||!D.state.visibleItems)return!1;var k=0,Q=e.Children.count(D.props.children),J=-(D.state.firstItem*100)/D.state.visibleItems,re=Math.max(Q-D.state.visibleItems,0),ce=-re*100/D.state.visibleItems;J===k&&G>0&&(G=0),J===ce&&G<0&&(G=0);var Z=D.itemsWrapperRef.clientWidth,te=J+100/(Z/G);return D.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ne){D.itemsListRef.style[ne]=(0,i.default)(te,"%",D.props.axis)}),!0}),T(S(D),"slideRight",function(H){D.moveTo(D.state.firstItem-(typeof H=="number"?H:1))}),T(S(D),"slideLeft",function(H){D.moveTo(D.state.firstItem+(typeof H=="number"?H:1))}),T(S(D),"moveTo",function(H){H=H<0?0:H,H=H>=D.state.lastPosition?D.state.lastPosition:H,D.setState({firstItem:H})}),D.state={selectedItem:j.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},D}return y(q,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(D){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==D.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(D){var H=D;return D>=this.state.lastPosition&&(H=this.state.lastPosition),D<this.state.firstItem+this.state.visibleItems&&(H=this.state.firstItem),D<this.state.firstItem&&(H=D),H}},{key:"renderItems",value:function(){var D=this;return this.props.children.map(function(H,G){var k=t.default.ITEM(!1,G===D.state.selectedItem),Q={key:G,ref:function(re){return D.setThumbsRef(re,G)},className:k,onClick:D.handleClickItem.bind(D,G,D.props.children[G]),onKeyDown:D.handleClickItem.bind(D,G,D.props.children[G]),"aria-label":"".concat(D.props.labels.item," ").concat(G+1),style:{width:D.props.thumbWidth}};return e.default.createElement("li",m({},Q,{role:"button",tabIndex:0}),H)})}},{key:"render",value:function(){var D=this;if(!this.props.children)return null;var H=e.Children.count(this.props.children)>1,G=this.state.showArrows&&this.state.firstItem>0,k=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,Q={},J=-this.state.firstItem*(this.state.itemSize||0),re=(0,i.default)(J,"px",this.props.axis),ce=this.props.transitionTime+"ms";return Q={WebkitTransform:re,MozTransform:re,MsTransform:re,OTransform:re,transform:re,msTransform:re,WebkitTransitionDuration:ce,MozTransitionDuration:ce,MsTransitionDuration:ce,OTransitionDuration:ce,transitionDuration:ce,msTransitionDuration:ce},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(!G),onClick:function(){return D.slideRight()},"aria-label":this.props.labels.leftArrow}),H?e.default.createElement(s.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:Q,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(te){return D.setItemsListRef(te)},style:Q},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!k),onClick:function(){return D.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),q})(e.Component);return mo.default=W,T(W,"displayName","Thumbs"),T(W,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),mo}var wo={},_m;function tk(){if(_m)return wo;_m=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=void 0;var e=function(){return document};return wo.default=e,wo}var Gt={},Tm;function Iy(){if(Tm)return Gt;Tm=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.setPosition=Gt.getPosition=Gt.isKeyboardEvent=Gt.defaultStatusFormatter=Gt.noop=void 0;var e=M,t=r(vf());function r(f){return f&&f.__esModule?f:{default:f}}var i=function(){};Gt.noop=i;var s=function(p,m){return"".concat(p," of ").concat(m)};Gt.defaultStatusFormatter=s;var a=function(p){return p?p.hasOwnProperty("key"):!1};Gt.isKeyboardEvent=a;var u=function(p,m){if(m.infiniteLoop&&++p,p===0)return 0;var d=e.Children.count(m.children);if(m.centerMode&&m.axis==="horizontal"){var g=-p*m.centerSlidePercentage,y=d-1;return p&&(p!==y||m.infiniteLoop)?g+=(100-m.centerSlidePercentage)/2:p===y&&(g+=100-m.centerSlidePercentage),g}return-p*100};Gt.getPosition=u;var l=function(p,m){var d={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(g){d[g]=(0,t.default)(p,"%",m)}),d};return Gt.setPosition=l,Gt}var mr={},Om;function rk(){if(Om)return mr;Om=1,Object.defineProperty(mr,"__esModule",{value:!0}),mr.fadeAnimationHandler=mr.slideStopSwipingHandler=mr.slideSwipeAnimationHandler=mr.slideAnimationHandler=void 0;var e=M,t=i(vf()),r=Iy();function i(d){return d&&d.__esModule?d:{default:d}}function s(d,g){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(d);g&&(x=x.filter(function(h){return Object.getOwnPropertyDescriptor(d,h).enumerable})),y.push.apply(y,x)}return y}function a(d){for(var g=1;g<arguments.length;g++){var y=arguments[g]!=null?arguments[g]:{};g%2?s(Object(y),!0).forEach(function(x){u(d,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(y)):s(Object(y)).forEach(function(x){Object.defineProperty(d,x,Object.getOwnPropertyDescriptor(y,x))})}return d}function u(d,g,y){return g in d?Object.defineProperty(d,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):d[g]=y,d}var l=function(g,y){var x={},h=y.selectedItem,w=h,v=e.Children.count(g.children)-1,S=g.infiniteLoop&&(h<0||h>v);if(S)return w<0?g.centerMode&&g.centerSlidePercentage&&g.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(v+2)*g.centerSlidePercentage-(100-g.centerSlidePercentage)/2,g.axis):x.itemListStyle=(0,r.setPosition)(-(v+2)*100,g.axis):w>v&&(x.itemListStyle=(0,r.setPosition)(0,g.axis)),x;var E=(0,r.getPosition)(h,g),R=(0,t.default)(E,"%",g.axis),T=g.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},y.swiping||(x.itemListStyle=a(a({},x.itemListStyle),{},{WebkitTransitionDuration:T,MozTransitionDuration:T,OTransitionDuration:T,transitionDuration:T,msTransitionDuration:T})),x};mr.slideAnimationHandler=l;var f=function(g,y,x,h){var w={},v=y.axis==="horizontal",S=e.Children.count(y.children),E=0,R=(0,r.getPosition)(x.selectedItem,y),T=y.infiniteLoop?(0,r.getPosition)(S-1,y)-100:(0,r.getPosition)(S-1,y),C=v?g.x:g.y,W=C;R===E&&C>0&&(W=0),R===T&&C<0&&(W=0);var N=R+100/(x.itemSize/W),F=Math.abs(C)>y.swipeScrollTolerance;return y.infiniteLoop&&F&&(x.selectedItem===0&&N>-100?N-=S*100:x.selectedItem===S-1&&N<-S*100&&(N+=S*100)),(!y.preventMovementUntilSwipeScrollTolerance||F||x.swipeMovementStarted)&&(x.swipeMovementStarted||h({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(N,y.axis)),F&&!x.cancelClick&&h({cancelClick:!0}),w};mr.slideSwipeAnimationHandler=f;var p=function(g,y){var x=(0,r.getPosition)(y.selectedItem,g),h=(0,r.setPosition)(x,g.axis);return{itemListStyle:h}};mr.slideStopSwipingHandler=p;var m=function(g,y){var x=g.transitionTime+"ms",h="ease-in-out",w={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:h,msTransitionTimingFunction:h,MozTransitionTimingFunction:h,WebkitTransitionTimingFunction:h,OTransitionTimingFunction:h};return y.swiping||(w=a(a({},w),{},{WebkitTransitionDuration:x,MozTransitionDuration:x,OTransitionDuration:x,transitionDuration:x,msTransitionDuration:x})),{slideStyle:w,selectedStyle:a(a({},w),{},{opacity:1,position:"relative"}),prevStyle:a({},w)}};return mr.fadeAnimationHandler=m,mr}var Am;function nk(){if(Am)return ho;Am=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.default=void 0;var e=m(M),t=f(Ry()),r=f(Py()),i=f(ky()),s=f(tk()),a=f(Cy()),u=Iy(),l=rk();function f(j){return j&&j.__esModule?j:{default:j}}function p(){if(typeof WeakMap!="function")return null;var j=new WeakMap;return p=function(){return j},j}function m(j){if(j&&j.__esModule)return j;if(j===null||d(j)!=="object"&&typeof j!="function")return{default:j};var D=p();if(D&&D.has(j))return D.get(j);var H={},G=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in j)if(Object.prototype.hasOwnProperty.call(j,k)){var Q=G?Object.getOwnPropertyDescriptor(j,k):null;Q&&(Q.get||Q.set)?Object.defineProperty(H,k,Q):H[k]=j[k]}return H.default=j,D&&D.set(j,H),H}function d(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(H){return typeof H}:d=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},d(j)}function g(){return g=Object.assign||function(j){for(var D=1;D<arguments.length;D++){var H=arguments[D];for(var G in H)Object.prototype.hasOwnProperty.call(H,G)&&(j[G]=H[G])}return j},g.apply(this,arguments)}function y(j,D){var H=Object.keys(j);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(j);D&&(G=G.filter(function(k){return Object.getOwnPropertyDescriptor(j,k).enumerable})),H.push.apply(H,G)}return H}function x(j){for(var D=1;D<arguments.length;D++){var H=arguments[D]!=null?arguments[D]:{};D%2?y(Object(H),!0).forEach(function(G){F(j,G,H[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(H)):y(Object(H)).forEach(function(G){Object.defineProperty(j,G,Object.getOwnPropertyDescriptor(H,G))})}return j}function h(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")}function w(j,D){for(var H=0;H<D.length;H++){var G=D[H];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(j,G.key,G)}}function v(j,D,H){return D&&w(j.prototype,D),j}function S(j,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(D&&D.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),D&&E(j,D)}function E(j,D){return E=Object.setPrototypeOf||function(G,k){return G.__proto__=k,G},E(j,D)}function R(j){var D=W();return function(){var G=N(j),k;if(D){var Q=N(this).constructor;k=Reflect.construct(G,arguments,Q)}else k=G.apply(this,arguments);return T(this,k)}}function T(j,D){return D&&(d(D)==="object"||typeof D=="function")?D:C(j)}function C(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function W(){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 N(j){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},N(j)}function F(j,D,H){return D in j?Object.defineProperty(j,D,{value:H,enumerable:!0,configurable:!0,writable:!0}):j[D]=H,j}var q=(function(j){S(H,j);var D=R(H);function H(G){var k;h(this,H),k=D.call(this,G),F(C(k),"thumbsRef",void 0),F(C(k),"carouselWrapperRef",void 0),F(C(k),"listRef",void 0),F(C(k),"itemsRef",void 0),F(C(k),"timer",void 0),F(C(k),"animationHandler",void 0),F(C(k),"setThumbsRef",function(J){k.thumbsRef=J}),F(C(k),"setCarouselWrapperRef",function(J){k.carouselWrapperRef=J}),F(C(k),"setListRef",function(J){k.listRef=J}),F(C(k),"setItemsRef",function(J,re){k.itemsRef||(k.itemsRef=[]),k.itemsRef[re]=J}),F(C(k),"autoPlay",function(){e.Children.count(k.props.children)<=1||(k.clearAutoPlay(),k.props.autoPlay&&(k.timer=setTimeout(function(){k.increment()},k.props.interval)))}),F(C(k),"clearAutoPlay",function(){k.timer&&clearTimeout(k.timer)}),F(C(k),"resetAutoPlay",function(){k.clearAutoPlay(),k.autoPlay()}),F(C(k),"stopOnHover",function(){k.setState({isMouseEntered:!0},k.clearAutoPlay)}),F(C(k),"startOnLeave",function(){k.setState({isMouseEntered:!1},k.autoPlay)}),F(C(k),"isFocusWithinTheCarousel",function(){return k.carouselWrapperRef?!!((0,s.default)().activeElement===k.carouselWrapperRef||k.carouselWrapperRef.contains((0,s.default)().activeElement)):!1}),F(C(k),"navigateWithKeyboard",function(J){if(k.isFocusWithinTheCarousel()){var re=k.props.axis,ce=re==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},te=ce?Z.ArrowRight:Z.ArrowDown,ne=ce?Z.ArrowLeft:Z.ArrowUp;te===J.keyCode?k.increment():ne===J.keyCode&&k.decrement()}}),F(C(k),"updateSizes",function(){if(!(!k.state.initialized||!k.itemsRef||k.itemsRef.length===0)){var J=k.props.axis==="horizontal",re=k.itemsRef[0];if(re){var ce=J?re.clientWidth:re.clientHeight;k.setState({itemSize:ce}),k.thumbsRef&&k.thumbsRef.updateSizes()}}}),F(C(k),"setMountState",function(){k.setState({hasMount:!0}),k.updateSizes()}),F(C(k),"handleClickItem",function(J,re){if(e.Children.count(k.props.children)!==0){if(k.state.cancelClick){k.setState({cancelClick:!1});return}k.props.onClickItem(J,re),J!==k.state.selectedItem&&k.setState({selectedItem:J})}}),F(C(k),"handleOnChange",function(J,re){e.Children.count(k.props.children)<=1||k.props.onChange(J,re)}),F(C(k),"handleClickThumb",function(J,re){k.props.onClickThumb(J,re),k.moveTo(J)}),F(C(k),"onSwipeStart",function(J){k.setState({swiping:!0}),k.props.onSwipeStart(J)}),F(C(k),"onSwipeEnd",function(J){k.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),k.props.onSwipeEnd(J),k.clearAutoPlay(),k.state.autoPlay&&k.autoPlay()}),F(C(k),"onSwipeMove",function(J,re){k.props.onSwipeMove(re);var ce=k.props.swipeAnimationHandler(J,k.props,k.state,k.setState.bind(C(k)));return k.setState(x({},ce)),!!Object.keys(ce).length}),F(C(k),"decrement",function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;k.moveTo(k.state.selectedItem-(typeof J=="number"?J:1))}),F(C(k),"increment",function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;k.moveTo(k.state.selectedItem+(typeof J=="number"?J:1))}),F(C(k),"moveTo",function(J){if(typeof J=="number"){var re=e.Children.count(k.props.children)-1;J<0&&(J=k.props.infiniteLoop?re:0),J>re&&(J=k.props.infiniteLoop?0:re),k.selectItem({selectedItem:J}),k.state.autoPlay&&k.state.isMouseEntered===!1&&k.resetAutoPlay()}}),F(C(k),"onClickNext",function(){k.increment(1)}),F(C(k),"onClickPrev",function(){k.decrement(1)}),F(C(k),"onSwipeForward",function(){k.increment(1),k.props.emulateTouch&&k.setState({cancelClick:!0})}),F(C(k),"onSwipeBackwards",function(){k.decrement(1),k.props.emulateTouch&&k.setState({cancelClick:!0})}),F(C(k),"changeItem",function(J){return function(re){(!(0,u.isKeyboardEvent)(re)||re.key==="Enter")&&k.moveTo(J)}}),F(C(k),"selectItem",function(J){k.setState(x({previousItem:k.state.selectedItem},J),function(){k.setState(k.animationHandler(k.props,k.state))}),k.handleOnChange(J.selectedItem,e.Children.toArray(k.props.children)[J.selectedItem])}),F(C(k),"getInitialImage",function(){var J=k.props.selectedItem,re=k.itemsRef&&k.itemsRef[J],ce=re&&re.getElementsByTagName("img")||[];return ce[0]}),F(C(k),"getVariableItemHeight",function(J){var re=k.itemsRef&&k.itemsRef[J];if(k.state.hasMount&&re&&re.children.length){var ce=re.children[0].getElementsByTagName("img")||[];if(ce.length>0){var Z=ce[0];if(!Z.complete){var te=function ie(){k.forceUpdate(),Z.removeEventListener("load",ie)};Z.addEventListener("load",te)}}var ne=ce[0]||re.children[0],ue=ne.clientHeight;return ue>0?ue:null}return null});var Q={initialized:!1,previousItem:G.selectedItem,selectedItem:G.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:G.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return k.animationHandler=typeof G.animationHandler=="function"&&G.animationHandler||G.animationHandler==="fade"&&l.fadeAnimationHandler||l.slideAnimationHandler,k.state=x(x({},Q),k.animationHandler(G,Q)),k}return v(H,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(k,Q){!k.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!k.autoFocus&&this.props.autoFocus&&this.forceFocus(),Q.swiping&&!this.state.swiping&&this.setState(x({},this.props.stopSwipingHandler(this.props,this.state))),(k.selectedItem!==this.props.selectedItem||k.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),k.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 k=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 Q=k.getInitialImage();Q&&!Q.complete?Q.addEventListener("load",k.setMountState):k.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var k=this.carouselWrapperRef;this.props.stopOnHover&&k&&(k.addEventListener("mouseenter",this.stopOnHover),k.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var k=this.carouselWrapperRef;this.props.stopOnHover&&k&&(k.removeEventListener("mouseenter",this.stopOnHover),k.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,s.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var k=this.getInitialImage();k&&k.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var k;(k=this.carouselWrapperRef)===null||k===void 0||k.focus()}},{key:"renderItems",value:function(k){var Q=this;return this.props.children?e.Children.map(this.props.children,function(J,re){var ce=re===Q.state.selectedItem,Z=re===Q.state.previousItem,te=ce&&Q.state.selectedStyle||Z&&Q.state.prevStyle||Q.state.slideStyle||{};Q.props.centerMode&&Q.props.axis==="horizontal"&&(te=x(x({},te),{},{minWidth:Q.props.centerSlidePercentage+"%"})),Q.state.swiping&&Q.state.swipeMovementStarted&&(te=x(x({},te),{},{pointerEvents:"none"}));var ne={ref:function(ie){return Q.setItemsRef(ie,re)},key:"itemKey"+re+(k?"clone":""),className:r.default.ITEM(!0,re===Q.state.selectedItem,re===Q.state.previousItem),onClick:Q.handleClickItem.bind(Q,re,J),style:te};return e.default.createElement("li",ne,Q.props.renderItem(J,{isSelected:re===Q.state.selectedItem,isPrevious:re===Q.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var k=this,Q=this.props,J=Q.showIndicators,re=Q.labels,ce=Q.renderIndicator,Z=Q.children;return J?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,function(te,ne){return ce&&ce(k.changeItem(ne),ne===k.state.selectedItem,ne,re.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 k=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var Q=this.props.swipeable&&e.Children.count(this.props.children)>1,J=this.props.axis==="horizontal",re=this.props.showArrows&&e.Children.count(this.props.children)>1,ce=re&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,Z=re&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,te=this.renderItems(!0),ne=te.shift(),ue=te.pop(),ie={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},he={};if(J){if(ie.onSwipeLeft=this.onSwipeForward,ie.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);he.height=fe||"auto"}}else ie.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ie.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ie.style=x(x({},ie.style),{},{height:this.state.itemSize}),he.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,ce,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:he},Q?e.default.createElement(t.default,g({tagName:"ul",innerRef:this.setListRef},ie,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ne):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(xe){return k.setListRef(xe)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ne)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),H})(e.default.Component);return ho.default=q,F(q,"displayName","Carousel"),F(q,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:u.noop,onClickThumb:u.noop,onChange:u.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(D,H,G){return e.default.createElement("button",{type:"button","aria-label":G,className:r.default.ARROW_PREV(!H),onClick:D})},renderArrowNext:function(D,H,G){return e.default.createElement("button",{type:"button","aria-label":G,className:r.default.ARROW_NEXT(!H),onClick:D})},renderIndicator:function(D,H,G,k){return e.default.createElement("li",{className:r.default.DOT(H),onClick:D,onKeyDown:D,value:G,key:G,role:"button",tabIndex:0,"aria-label":"".concat(k," ").concat(G+1)})},renderItem:function(D){return D},renderThumbs:function(D){var H=e.Children.map(D,function(G){var k=G;if(G.type!=="img"&&(k=e.Children.toArray(G.props.children).find(function(Q){return Q.type==="img"})),!!k)return k});return H.filter(function(G){return G}).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"),[]):H},statusFormatter:u.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:l.slideSwipeAnimationHandler,stopSwipingHandler:l.slideStopSwipingHandler}),ho}var Rm={},Pm;function ik(){return Pm||(Pm=1),Rm}var Cm;function ok(){return Cm||(Cm=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=s(nk()),r=ik(),i=s(ky());function s(a){return a&&a.__esModule?a:{default:a}}})(Xl)),Xl}var sk=ok();const ak=({tip:e})=>I.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:$y(e,!0)}),uk=({pages:e})=>I.jsx("div",{className:"min-h-[10rem] w-96",children:I.jsx(sk.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>I.jsx(ak,{tip:t},t.key))})}),lk=({body:e,isInsideCarousel:t})=>I.jsx("article",{className:Be(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:I.jsx(Oa,{children:e,options:{overrides:{a:{component:({children:r,...i})=>I.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,I.jsx(Qe.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),ck=({video:e,body:t,title:r,isInsideCarousel:i})=>I.jsxs("div",{className:Be([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[I.jsx("div",{className:Be([{"mr-1":!i,"mb-1":i}]),children:I.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})}),I.jsx("article",{className:Be(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:I.jsx(Oa,{children:t||"",options:{overrides:{a:{component:({children:s,...a})=>I.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[s,I.jsx(Qe.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),$y=(e,t)=>{switch(e.type){case wa.TEXT:return I.jsx(lk,{body:e.body,isInsideCarousel:t});case wa.VIDEO:return I.jsx(ck,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case wa.CAROUSEL:return I.jsx(uk,{pages:e.pages})}},Ly=M.createContext(void 0);function km(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const fk=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:s},a]=M.useState({tips:{},show:!0});M.useEffect(()=>{const l=new AbortController;try{fetch(`${r}/tips.json`,{signal:l.signal}).then(f=>f.json()).then(f=>{const p=f.reduce((m,d)=>km(f,d.key).length>1?{...m,[d.key]:{type:"carousel",pages:km(f,d.key)}}:{...m,[d.key]:d},{});a(m=>({...m,tips:p}))})}catch{}return()=>{l.abort()}},[]);const u=()=>{a(l=>({...l,show:!s}))};return I.jsx(Ly.Provider,{value:{tips:i,toggleTips:u,show:s,enabled:t},children:e})},My=e=>{const t=M.useContext(Ly);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}},dk=Aa(UC)`
132
+ */var vf,N0;function dD(){if(N0)return vf;N0=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){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 u=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(g){d[g]=g}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return vf=o()?Object.assign:function(s,l){for(var c,u=n(s),d,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)t.call(c,p)&&(u[p]=c[p]);if(e){d=e(c);for(var h=0;h<d.length;h++)r.call(c,d[h])&&(u[d[h]]=c[d[h]])}}return u},vf}var mf,M0;function Up(){if(M0)return mf;M0=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return mf=e,mf}var bf,D0;function i1(){return D0||(D0=1,bf=Function.call.bind(Object.prototype.hasOwnProperty)),bf}var yf,L0;function fD(){if(L0)return yf;L0=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Up(),r={},n=i1();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(s,l,c,u,d){if(process.env.NODE_ENV!=="production"){for(var g in s)if(n(s,g)){var p;try{if(typeof s[g]!="function"){var h=Error((u||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=s[g](l,g,u,c,null,t)}catch(S){p=S}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var b=d?d():"";e("Failed "+c+" type: "+p.message+(b??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},yf=o,yf}var wf,z0;function pD(){if(z0)return wf;z0=1;var e=o1(),t=dD(),r=Up(),n=i1(),o=fD(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return wf=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(P){var F=P&&(d&&P[d]||P[g]);if(typeof F=="function")return F}var h="<<anonymous>>",b={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:_(),instanceOf:R,node:W(),objectOf:I,oneOf:j,oneOfType:L,shape:D,exact:U};function S(P,F){return P===F?P!==0||1/P===1/F:P!==P&&F!==F}function v(P,F){this.message=P,this.data=F&&typeof F=="object"?F:{},this.stack=""}v.prototype=Error.prototype;function y(P){if(process.env.NODE_ENV!=="production")var F={},J=0;function te(de,ie,re,oe,he,fe,Se){if(oe=oe||h,fe=fe||re,Se!==r){if(u){var K=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 K.name="Invariant Violation",K}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var je=oe+":"+re;!F[je]&&J<3&&(s("You are manually calling a React.PropTypes validation function for the `"+fe+"` prop on `"+oe+"`. 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."),F[je]=!0,J++)}}return ie[re]==null?de?ie[re]===null?new v("The "+he+" `"+fe+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new v("The "+he+" `"+fe+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:P(ie,re,oe,he,fe)}var Z=te.bind(null,!1);return Z.isRequired=te.bind(null,!0),Z}function m(P){function F(J,te,Z,de,ie,re){var oe=J[te],he=X(oe);if(he!==P){var fe=ee(oe);return new v("Invalid "+de+" `"+ie+"` of type "+("`"+fe+"` supplied to `"+Z+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return y(F)}function w(){return y(l)}function x(P){function F(J,te,Z,de,ie){if(typeof P!="function")return new v("Property `"+ie+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var re=J[te];if(!Array.isArray(re)){var oe=X(re);return new v("Invalid "+de+" `"+ie+"` of type "+("`"+oe+"` supplied to `"+Z+"`, expected an array."))}for(var he=0;he<re.length;he++){var fe=P(re,he,Z,de,ie+"["+he+"]",r);if(fe instanceof Error)return fe}return null}return y(F)}function k(){function P(F,J,te,Z,de){var ie=F[J];if(!c(ie)){var re=X(ie);return new v("Invalid "+Z+" `"+de+"` of type "+("`"+re+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return y(P)}function _(){function P(F,J,te,Z,de){var ie=F[J];if(!e.isValidElementType(ie)){var re=X(ie);return new v("Invalid "+Z+" `"+de+"` of type "+("`"+re+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return y(P)}function R(P){function F(J,te,Z,de,ie){if(!(J[te]instanceof P)){var re=P.name||h,oe=ge(J[te]);return new v("Invalid "+de+" `"+ie+"` of type "+("`"+oe+"` supplied to `"+Z+"`, expected ")+("instance of `"+re+"`."))}return null}return y(F)}function j(P){if(!Array.isArray(P))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 F(J,te,Z,de,ie){for(var re=J[te],oe=0;oe<P.length;oe++)if(S(re,P[oe]))return null;var he=JSON.stringify(P,function(Se,K){var je=ee(K);return je==="symbol"?String(K):K});return new v("Invalid "+de+" `"+ie+"` of value `"+String(re)+"` "+("supplied to `"+Z+"`, expected one of "+he+"."))}return y(F)}function I(P){function F(J,te,Z,de,ie){if(typeof P!="function")return new v("Property `"+ie+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var re=J[te],oe=X(re);if(oe!=="object")return new v("Invalid "+de+" `"+ie+"` of type "+("`"+oe+"` supplied to `"+Z+"`, expected an object."));for(var he in re)if(n(re,he)){var fe=P(re,he,Z,de,ie+"."+he,r);if(fe instanceof Error)return fe}return null}return y(F)}function L(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var F=0;F<P.length;F++){var J=P[F];if(typeof J!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(J)+" at index "+F+"."),l}function te(Z,de,ie,re,oe){for(var he=[],fe=0;fe<P.length;fe++){var Se=P[fe],K=Se(Z,de,ie,re,oe,r);if(K==null)return null;K.data&&n(K.data,"expectedType")&&he.push(K.data.expectedType)}var je=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new v("Invalid "+re+" `"+oe+"` supplied to "+("`"+ie+"`"+je+"."))}return y(te)}function W(){function P(F,J,te,Z,de){return V(F[J])?null:new v("Invalid "+Z+" `"+de+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return y(P)}function $(P,F,J,te,Z){return new v((P||"React class")+": "+F+" type `"+J+"."+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function D(P){function F(J,te,Z,de,ie){var re=J[te],oe=X(re);if(oe!=="object")return new v("Invalid "+de+" `"+ie+"` of type `"+oe+"` "+("supplied to `"+Z+"`, expected `object`."));for(var he in P){var fe=P[he];if(typeof fe!="function")return $(Z,de,ie,he,ee(fe));var Se=fe(re,he,Z,de,ie+"."+he,r);if(Se)return Se}return null}return y(F)}function U(P){function F(J,te,Z,de,ie){var re=J[te],oe=X(re);if(oe!=="object")return new v("Invalid "+de+" `"+ie+"` of type `"+oe+"` "+("supplied to `"+Z+"`, expected `object`."));var he=t({},J[te],P);for(var fe in he){var Se=P[fe];if(n(P,fe)&&typeof Se!="function")return $(Z,de,ie,fe,ee(Se));if(!Se)return new v("Invalid "+de+" `"+ie+"` key `"+fe+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(J[te],null," ")+`
133
+ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var K=Se(re,fe,Z,de,ie+"."+fe,r);if(K)return K}return null}return y(F)}function V(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(V);if(P===null||c(P))return!0;var F=p(P);if(F){var J=F.call(P),te;if(F!==P.entries){for(;!(te=J.next()).done;)if(!V(te.value))return!1}else for(;!(te=J.next()).done;){var Z=te.value;if(Z&&!V(Z[1]))return!1}}else return!1;return!0;default:return!1}}function N(P,F){return P==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function X(P){var F=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":N(F,P)?"symbol":F}function ee(P){if(typeof P>"u"||P===null)return""+P;var F=X(P);if(F==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return F}function Y(P){var F=ee(P);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function ge(P){return!P.constructor||!P.constructor.name?h:P.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},wf}var xf,$0;function hD(){if($0)return xf;$0=1;var e=Up();function t(){}function r(){}return r.resetWarningCache=t,xf=function(){function n(l,c,u,d,g,p){if(p!==e){var h=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 h.name="Invariant Violation",h}}n.isRequired=n;function o(){return n}var s={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 s.PropTypes=s,s},xf}var j0;function gD(){if(j0)return ec.exports;if(j0=1,process.env.NODE_ENV!=="production"){var e=o1(),t=!0;ec.exports=pD()(e.isElement,t)}else ec.exports=hD()();return ec.exports}var F0;function vD(){return F0||(F0=1,(function(e){(function(t,r){r(e,M,gD())})(Ql,function(t,r,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=S;var o=l(r),s=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 _ in k)Object.prototype.hasOwnProperty.call(k,_)&&(w[_]=k[_])}return w};function u(w,x){var k={};for(var _ in w)x.indexOf(_)>=0||Object.prototype.hasOwnProperty.call(w,_)&&(k[_]=w[_]);return k}function d(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}var g=(function(){function w(x,k){for(var _=0;_<k.length;_++){var R=k[_];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(x,R.key,R)}}return function(x,k,_){return k&&w(x.prototype,k),_&&w(x,_),x}})();function p(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 h(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 b=!1;function S(w){b=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 b?w:w.capture}function y(w){if("touches"in w){var x=w.touches[0],k=x.pageX,_=x.pageY;return{x:k,y:_}}var R=w.screenX,j=w.screenY;return{x:R,y:j}}var m=(function(w){h(x,w);function x(){var k;d(this,x);for(var _=arguments.length,R=Array(_),j=0;j<_;j++)R[j]=arguments[j];var I=p(this,(k=x.__proto__||Object.getPrototypeOf(x)).call.apply(k,[this].concat(R)));return I._handleSwipeStart=I._handleSwipeStart.bind(I),I._handleSwipeMove=I._handleSwipeMove.bind(I),I._handleSwipeEnd=I._handleSwipeEnd.bind(I),I._onMouseDown=I._onMouseDown.bind(I),I._onMouseMove=I._onMouseMove.bind(I),I._onMouseUp=I._onMouseUp.bind(I),I._setSwiperRef=I._setSwiperRef.bind(I),I}return g(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(_){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(_))}},{key:"_onMouseMove",value:function(_){this.mouseDown&&this._handleSwipeMove(_)}},{key:"_onMouseUp",value:function(_){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(_)}},{key:"_handleSwipeStart",value:function(_){var R=y(_),j=R.x,I=R.y;this.moveStart={x:j,y:I},this.props.onSwipeStart(_)}},{key:"_handleSwipeMove",value:function(_){if(this.moveStart){var R=y(_),j=R.x,I=R.y,L=j-this.moveStart.x,W=I-this.moveStart.y;this.moving=!0;var $=this.props.onSwipeMove({x:L,y:W},_);$&&_.cancelable&&_.preventDefault(),this.movePosition={deltaX:L,deltaY:W}}}},{key:"_handleSwipeEnd",value:function(_){this.props.onSwipeEnd(_);var R=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-R?this.props.onSwipeLeft(1,_):this.movePosition.deltaX>R&&this.props.onSwipeRight(1,_),this.movePosition.deltaY<-R?this.props.onSwipeUp(1,_):this.movePosition.deltaY>R&&this.props.onSwipeDown(1,_)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(_){this.swiper=_,this.props.innerRef(_)}},{key:"render",value:function(){var _=this.props;_.tagName;var R=_.className,j=_.style,I=_.children;_.allowMouseEvents,_.onSwipeUp,_.onSwipeDown,_.onSwipeLeft,_.onSwipeRight,_.onSwipeStart,_.onSwipeMove,_.onSwipeEnd,_.innerRef,_.tolerance;var L=u(_,["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:j},L),I)}}]),x})(r.Component);m.displayName="ReactSwipe",m.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},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})})(Ql)),Ql}var B0;function s1(){return B0||(B0=1,(function(e){(function(t,r){r(e,vD())})(Jl,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=o(r);function o(s){return s&&s.__esModule?s:{default:s}}t.default=n.default})})(Jl)),Jl}var Bs={},H0;function a1(){if(H0)return Bs;H0=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=void 0;var e=t(yx());function t(o){return o&&o.__esModule?o:{default:o}}function r(o,s,l){return s in o?Object.defineProperty(o,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[s]=l,o}var n={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 Bs.default=n,Bs}var Hs={},Ws={},W0;function mD(){if(W0)return Ws;W0=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.outerWidth=void 0;var e=function(r){var n=r.offsetWidth,o=getComputedStyle(r);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight),n};return Ws.outerWidth=e,Ws}var Vs={},V0;function qp(){if(V0)return Vs;V0=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.default=void 0;var e=function(r,n,o){var s=r===0?r:r+n,l=o==="horizontal"?[s,0,0]:[0,s,0],c="translate3d",u="("+l.join(",")+")";return c+u};return Vs.default=e,Vs}var Us={},U0;function l1(){if(U0)return Us;U0=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.default=void 0;var e=function(){return window};return Us.default=e,Us}var q0;function c1(){if(q0)return Hs;q0=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var e=u(M),t=l(a1()),r=mD(),n=l(qp()),o=l(s1()),s=l(l1());function l(I){return I&&I.__esModule?I:{default:I}}function c(){if(typeof WeakMap!="function")return null;var I=new WeakMap;return c=function(){return I},I}function u(I){if(I&&I.__esModule)return I;if(I===null||d(I)!=="object"&&typeof I!="function")return{default:I};var L=c();if(L&&L.has(I))return L.get(I);var W={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in I)if(Object.prototype.hasOwnProperty.call(I,D)){var U=$?Object.getOwnPropertyDescriptor(I,D):null;U&&(U.get||U.set)?Object.defineProperty(W,D,U):W[D]=I[D]}return W.default=I,L&&L.set(I,W),W}function d(I){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(W){return typeof W}:d=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},d(I)}function g(){return g=Object.assign||function(I){for(var L=1;L<arguments.length;L++){var W=arguments[L];for(var $ in W)Object.prototype.hasOwnProperty.call(W,$)&&(I[$]=W[$])}return I},g.apply(this,arguments)}function p(I,L){if(!(I instanceof L))throw new TypeError("Cannot call a class as a function")}function h(I,L){for(var W=0;W<L.length;W++){var $=L[W];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(I,$.key,$)}}function b(I,L,W){return L&&h(I.prototype,L),I}function S(I,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(L&&L.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),L&&v(I,L)}function v(I,L){return v=Object.setPrototypeOf||function($,D){return $.__proto__=D,$},v(I,L)}function y(I){var L=x();return function(){var $=k(I),D;if(L){var U=k(this).constructor;D=Reflect.construct($,arguments,U)}else D=$.apply(this,arguments);return m(this,D)}}function m(I,L){return L&&(d(L)==="object"||typeof L=="function")?L:w(I)}function w(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}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(I){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)},k(I)}function _(I,L,W){return L in I?Object.defineProperty(I,L,{value:W,enumerable:!0,configurable:!0,writable:!0}):I[L]=W,I}var R=function(L){return L.hasOwnProperty("key")},j=(function(I){S(W,I);var L=y(W);function W($){var D;return p(this,W),D=L.call(this,$),_(w(D),"itemsWrapperRef",void 0),_(w(D),"itemsListRef",void 0),_(w(D),"thumbsRef",void 0),_(w(D),"setItemsWrapperRef",function(U){D.itemsWrapperRef=U}),_(w(D),"setItemsListRef",function(U){D.itemsListRef=U}),_(w(D),"setThumbsRef",function(U,V){D.thumbsRef||(D.thumbsRef=[]),D.thumbsRef[V]=U}),_(w(D),"updateSizes",function(){if(!(!D.props.children||!D.itemsWrapperRef||!D.thumbsRef)){var U=e.Children.count(D.props.children),V=D.itemsWrapperRef.clientWidth,N=D.props.thumbWidth?D.props.thumbWidth:(0,r.outerWidth)(D.thumbsRef[0]),X=Math.floor(V/N),ee=X<U,Y=ee?U-X:0;D.setState(function(ge,P){return{itemSize:N,visibleItems:X,firstItem:ee?D.getFirstItem(P.selectedItem):0,lastPosition:Y,showArrows:ee}})}}),_(w(D),"handleClickItem",function(U,V,N){if(!R(N)||N.key==="Enter"){var X=D.props.onSelectItem;typeof X=="function"&&X(U,V)}}),_(w(D),"onSwipeStart",function(){D.setState({swiping:!0})}),_(w(D),"onSwipeEnd",function(){D.setState({swiping:!1})}),_(w(D),"onSwipeMove",function(U){var V=U.x;if(!D.state.itemSize||!D.itemsWrapperRef||!D.state.visibleItems)return!1;var N=0,X=e.Children.count(D.props.children),ee=-(D.state.firstItem*100)/D.state.visibleItems,Y=Math.max(X-D.state.visibleItems,0),ge=-Y*100/D.state.visibleItems;ee===N&&V>0&&(V=0),ee===ge&&V<0&&(V=0);var P=D.itemsWrapperRef.clientWidth,F=ee+100/(P/V);return D.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(J){D.itemsListRef.style[J]=(0,n.default)(F,"%",D.props.axis)}),!0}),_(w(D),"slideRight",function(U){D.moveTo(D.state.firstItem-(typeof U=="number"?U:1))}),_(w(D),"slideLeft",function(U){D.moveTo(D.state.firstItem+(typeof U=="number"?U:1))}),_(w(D),"moveTo",function(U){U=U<0?0:U,U=U>=D.state.lastPosition?D.state.lastPosition:U,D.setState({firstItem:U})}),D.state={selectedItem:$.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},D}return b(W,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(D){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==D.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(D){var U=D;return D>=this.state.lastPosition&&(U=this.state.lastPosition),D<this.state.firstItem+this.state.visibleItems&&(U=this.state.firstItem),D<this.state.firstItem&&(U=D),U}},{key:"renderItems",value:function(){var D=this;return this.props.children.map(function(U,V){var N=t.default.ITEM(!1,V===D.state.selectedItem),X={key:V,ref:function(Y){return D.setThumbsRef(Y,V)},className:N,onClick:D.handleClickItem.bind(D,V,D.props.children[V]),onKeyDown:D.handleClickItem.bind(D,V,D.props.children[V]),"aria-label":"".concat(D.props.labels.item," ").concat(V+1),style:{width:D.props.thumbWidth}};return e.default.createElement("li",g({},X,{role:"button",tabIndex:0}),U)})}},{key:"render",value:function(){var D=this;if(!this.props.children)return null;var U=e.Children.count(this.props.children)>1,V=this.state.showArrows&&this.state.firstItem>0,N=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,X={},ee=-this.state.firstItem*(this.state.itemSize||0),Y=(0,n.default)(ee,"px",this.props.axis),ge=this.props.transitionTime+"ms";return X={WebkitTransform:Y,MozTransform:Y,MsTransform:Y,OTransform:Y,transform:Y,msTransform:Y,WebkitTransitionDuration:ge,MozTransitionDuration:ge,MsTransitionDuration:ge,OTransitionDuration:ge,transitionDuration:ge,msTransitionDuration:ge},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(!V),onClick:function(){return D.slideRight()},"aria-label":this.props.labels.leftArrow}),U?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:X,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(F){return D.setItemsListRef(F)},style:X},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!N),onClick:function(){return D.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),W})(e.Component);return Hs.default=j,_(j,"displayName","Thumbs"),_(j,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),Hs}var qs={},G0;function bD(){if(G0)return qs;G0=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var e=function(){return document};return qs.default=e,qs}var _r={},Z0;function u1(){if(Z0)return _r;Z0=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.setPosition=_r.getPosition=_r.isKeyboardEvent=_r.defaultStatusFormatter=_r.noop=void 0;var e=M,t=r(qp());function r(u){return u&&u.__esModule?u:{default:u}}var n=function(){};_r.noop=n;var o=function(d,g){return"".concat(d," of ").concat(g)};_r.defaultStatusFormatter=o;var s=function(d){return d?d.hasOwnProperty("key"):!1};_r.isKeyboardEvent=s;var l=function(d,g){if(g.infiniteLoop&&++d,d===0)return 0;var p=e.Children.count(g.children);if(g.centerMode&&g.axis==="horizontal"){var h=-d*g.centerSlidePercentage,b=p-1;return d&&(d!==b||g.infiniteLoop)?h+=(100-g.centerSlidePercentage)/2:d===b&&(h+=100-g.centerSlidePercentage),h}return-d*100};_r.getPosition=l;var c=function(d,g){var p={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(h){p[h]=(0,t.default)(d,"%",g)}),p};return _r.setPosition=c,_r}var Xr={},Y0;function yD(){if(Y0)return Xr;Y0=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.fadeAnimationHandler=Xr.slideStopSwipingHandler=Xr.slideSwipeAnimationHandler=Xr.slideAnimationHandler=void 0;var e=M,t=n(qp()),r=u1();function n(p){return p&&p.__esModule?p:{default:p}}function o(p,h){var b=Object.keys(p);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(p);h&&(S=S.filter(function(v){return Object.getOwnPropertyDescriptor(p,v).enumerable})),b.push.apply(b,S)}return b}function s(p){for(var h=1;h<arguments.length;h++){var b=arguments[h]!=null?arguments[h]:{};h%2?o(Object(b),!0).forEach(function(S){l(p,S,b[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(b)):o(Object(b)).forEach(function(S){Object.defineProperty(p,S,Object.getOwnPropertyDescriptor(b,S))})}return p}function l(p,h,b){return h in p?Object.defineProperty(p,h,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[h]=b,p}var c=function(h,b){var S={},v=b.selectedItem,y=v,m=e.Children.count(h.children)-1,w=h.infiniteLoop&&(v<0||v>m);if(w)return y<0?h.centerMode&&h.centerSlidePercentage&&h.axis==="horizontal"?S.itemListStyle=(0,r.setPosition)(-(m+2)*h.centerSlidePercentage-(100-h.centerSlidePercentage)/2,h.axis):S.itemListStyle=(0,r.setPosition)(-(m+2)*100,h.axis):y>m&&(S.itemListStyle=(0,r.setPosition)(0,h.axis)),S;var x=(0,r.getPosition)(v,h),k=(0,t.default)(x,"%",h.axis),_=h.transitionTime+"ms";return S.itemListStyle={WebkitTransform:k,msTransform:k,OTransform:k,transform:k},b.swiping||(S.itemListStyle=s(s({},S.itemListStyle),{},{WebkitTransitionDuration:_,MozTransitionDuration:_,OTransitionDuration:_,transitionDuration:_,msTransitionDuration:_})),S};Xr.slideAnimationHandler=c;var u=function(h,b,S,v){var y={},m=b.axis==="horizontal",w=e.Children.count(b.children),x=0,k=(0,r.getPosition)(S.selectedItem,b),_=b.infiniteLoop?(0,r.getPosition)(w-1,b)-100:(0,r.getPosition)(w-1,b),R=m?h.x:h.y,j=R;k===x&&R>0&&(j=0),k===_&&R<0&&(j=0);var I=k+100/(S.itemSize/j),L=Math.abs(R)>b.swipeScrollTolerance;return b.infiniteLoop&&L&&(S.selectedItem===0&&I>-100?I-=w*100:S.selectedItem===w-1&&I<-w*100&&(I+=w*100)),(!b.preventMovementUntilSwipeScrollTolerance||L||S.swipeMovementStarted)&&(S.swipeMovementStarted||v({swipeMovementStarted:!0}),y.itemListStyle=(0,r.setPosition)(I,b.axis)),L&&!S.cancelClick&&v({cancelClick:!0}),y};Xr.slideSwipeAnimationHandler=u;var d=function(h,b){var S=(0,r.getPosition)(b.selectedItem,h),v=(0,r.setPosition)(S,h.axis);return{itemListStyle:v}};Xr.slideStopSwipingHandler=d;var g=function(h,b){var S=h.transitionTime+"ms",v="ease-in-out",y={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 b.swiping||(y=s(s({},y),{},{WebkitTransitionDuration:S,MozTransitionDuration:S,OTransitionDuration:S,transitionDuration:S,msTransitionDuration:S})),{slideStyle:y,selectedStyle:s(s({},y),{},{opacity:1,position:"relative"}),prevStyle:s({},y)}};return Xr.fadeAnimationHandler=g,Xr}var K0;function wD(){if(K0)return Fs;K0=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.default=void 0;var e=g(M),t=u(s1()),r=u(a1()),n=u(c1()),o=u(bD()),s=u(l1()),l=u1(),c=yD();function u($){return $&&$.__esModule?$:{default:$}}function d(){if(typeof WeakMap!="function")return null;var $=new WeakMap;return d=function(){return $},$}function g($){if($&&$.__esModule)return $;if($===null||p($)!=="object"&&typeof $!="function")return{default:$};var D=d();if(D&&D.has($))return D.get($);var U={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var N in $)if(Object.prototype.hasOwnProperty.call($,N)){var X=V?Object.getOwnPropertyDescriptor($,N):null;X&&(X.get||X.set)?Object.defineProperty(U,N,X):U[N]=$[N]}return U.default=$,D&&D.set($,U),U}function p($){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(U){return typeof U}:p=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},p($)}function h(){return h=Object.assign||function($){for(var D=1;D<arguments.length;D++){var U=arguments[D];for(var V in U)Object.prototype.hasOwnProperty.call(U,V)&&($[V]=U[V])}return $},h.apply(this,arguments)}function b($,D){var U=Object.keys($);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols($);D&&(V=V.filter(function(N){return Object.getOwnPropertyDescriptor($,N).enumerable})),U.push.apply(U,V)}return U}function S($){for(var D=1;D<arguments.length;D++){var U=arguments[D]!=null?arguments[D]:{};D%2?b(Object(U),!0).forEach(function(V){L($,V,U[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(U)):b(Object(U)).forEach(function(V){Object.defineProperty($,V,Object.getOwnPropertyDescriptor(U,V))})}return $}function v($,D){if(!($ instanceof D))throw new TypeError("Cannot call a class as a function")}function y($,D){for(var U=0;U<D.length;U++){var V=D[U];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty($,V.key,V)}}function m($,D,U){return D&&y($.prototype,D),$}function w($,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(D&&D.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),D&&x($,D)}function x($,D){return x=Object.setPrototypeOf||function(V,N){return V.__proto__=N,V},x($,D)}function k($){var D=j();return function(){var V=I($),N;if(D){var X=I(this).constructor;N=Reflect.construct(V,arguments,X)}else N=V.apply(this,arguments);return _(this,N)}}function _($,D){return D&&(p(D)==="object"||typeof D=="function")?D:R($)}function R($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function j(){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 I($){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},I($)}function L($,D,U){return D in $?Object.defineProperty($,D,{value:U,enumerable:!0,configurable:!0,writable:!0}):$[D]=U,$}var W=(function($){w(U,$);var D=k(U);function U(V){var N;v(this,U),N=D.call(this,V),L(R(N),"thumbsRef",void 0),L(R(N),"carouselWrapperRef",void 0),L(R(N),"listRef",void 0),L(R(N),"itemsRef",void 0),L(R(N),"timer",void 0),L(R(N),"animationHandler",void 0),L(R(N),"setThumbsRef",function(ee){N.thumbsRef=ee}),L(R(N),"setCarouselWrapperRef",function(ee){N.carouselWrapperRef=ee}),L(R(N),"setListRef",function(ee){N.listRef=ee}),L(R(N),"setItemsRef",function(ee,Y){N.itemsRef||(N.itemsRef=[]),N.itemsRef[Y]=ee}),L(R(N),"autoPlay",function(){e.Children.count(N.props.children)<=1||(N.clearAutoPlay(),N.props.autoPlay&&(N.timer=setTimeout(function(){N.increment()},N.props.interval)))}),L(R(N),"clearAutoPlay",function(){N.timer&&clearTimeout(N.timer)}),L(R(N),"resetAutoPlay",function(){N.clearAutoPlay(),N.autoPlay()}),L(R(N),"stopOnHover",function(){N.setState({isMouseEntered:!0},N.clearAutoPlay)}),L(R(N),"startOnLeave",function(){N.setState({isMouseEntered:!1},N.autoPlay)}),L(R(N),"isFocusWithinTheCarousel",function(){return N.carouselWrapperRef?!!((0,o.default)().activeElement===N.carouselWrapperRef||N.carouselWrapperRef.contains((0,o.default)().activeElement)):!1}),L(R(N),"navigateWithKeyboard",function(ee){if(N.isFocusWithinTheCarousel()){var Y=N.props.axis,ge=Y==="horizontal",P={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},F=ge?P.ArrowRight:P.ArrowDown,J=ge?P.ArrowLeft:P.ArrowUp;F===ee.keyCode?N.increment():J===ee.keyCode&&N.decrement()}}),L(R(N),"updateSizes",function(){if(!(!N.state.initialized||!N.itemsRef||N.itemsRef.length===0)){var ee=N.props.axis==="horizontal",Y=N.itemsRef[0];if(Y){var ge=ee?Y.clientWidth:Y.clientHeight;N.setState({itemSize:ge}),N.thumbsRef&&N.thumbsRef.updateSizes()}}}),L(R(N),"setMountState",function(){N.setState({hasMount:!0}),N.updateSizes()}),L(R(N),"handleClickItem",function(ee,Y){if(e.Children.count(N.props.children)!==0){if(N.state.cancelClick){N.setState({cancelClick:!1});return}N.props.onClickItem(ee,Y),ee!==N.state.selectedItem&&N.setState({selectedItem:ee})}}),L(R(N),"handleOnChange",function(ee,Y){e.Children.count(N.props.children)<=1||N.props.onChange(ee,Y)}),L(R(N),"handleClickThumb",function(ee,Y){N.props.onClickThumb(ee,Y),N.moveTo(ee)}),L(R(N),"onSwipeStart",function(ee){N.setState({swiping:!0}),N.props.onSwipeStart(ee)}),L(R(N),"onSwipeEnd",function(ee){N.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),N.props.onSwipeEnd(ee),N.clearAutoPlay(),N.state.autoPlay&&N.autoPlay()}),L(R(N),"onSwipeMove",function(ee,Y){N.props.onSwipeMove(Y);var ge=N.props.swipeAnimationHandler(ee,N.props,N.state,N.setState.bind(R(N)));return N.setState(S({},ge)),!!Object.keys(ge).length}),L(R(N),"decrement",function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;N.moveTo(N.state.selectedItem-(typeof ee=="number"?ee:1))}),L(R(N),"increment",function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;N.moveTo(N.state.selectedItem+(typeof ee=="number"?ee:1))}),L(R(N),"moveTo",function(ee){if(typeof ee=="number"){var Y=e.Children.count(N.props.children)-1;ee<0&&(ee=N.props.infiniteLoop?Y:0),ee>Y&&(ee=N.props.infiniteLoop?0:Y),N.selectItem({selectedItem:ee}),N.state.autoPlay&&N.state.isMouseEntered===!1&&N.resetAutoPlay()}}),L(R(N),"onClickNext",function(){N.increment(1)}),L(R(N),"onClickPrev",function(){N.decrement(1)}),L(R(N),"onSwipeForward",function(){N.increment(1),N.props.emulateTouch&&N.setState({cancelClick:!0})}),L(R(N),"onSwipeBackwards",function(){N.decrement(1),N.props.emulateTouch&&N.setState({cancelClick:!0})}),L(R(N),"changeItem",function(ee){return function(Y){(!(0,l.isKeyboardEvent)(Y)||Y.key==="Enter")&&N.moveTo(ee)}}),L(R(N),"selectItem",function(ee){N.setState(S({previousItem:N.state.selectedItem},ee),function(){N.setState(N.animationHandler(N.props,N.state))}),N.handleOnChange(ee.selectedItem,e.Children.toArray(N.props.children)[ee.selectedItem])}),L(R(N),"getInitialImage",function(){var ee=N.props.selectedItem,Y=N.itemsRef&&N.itemsRef[ee],ge=Y&&Y.getElementsByTagName("img")||[];return ge[0]}),L(R(N),"getVariableItemHeight",function(ee){var Y=N.itemsRef&&N.itemsRef[ee];if(N.state.hasMount&&Y&&Y.children.length){var ge=Y.children[0].getElementsByTagName("img")||[];if(ge.length>0){var P=ge[0];if(!P.complete){var F=function Z(){N.forceUpdate(),P.removeEventListener("load",Z)};P.addEventListener("load",F)}}var J=ge[0]||Y.children[0],te=J.clientHeight;return te>0?te:null}return null});var X={initialized:!1,previousItem:V.selectedItem,selectedItem:V.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:V.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return N.animationHandler=typeof V.animationHandler=="function"&&V.animationHandler||V.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,N.state=S(S({},X),N.animationHandler(V,X)),N}return m(U,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(N,X){!N.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!N.autoFocus&&this.props.autoFocus&&this.forceFocus(),X.swiping&&!this.state.swiping&&this.setState(S({},this.props.stopSwipingHandler(this.props,this.state))),(N.selectedItem!==this.props.selectedItem||N.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),N.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 N=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 X=N.getInitialImage();X&&!X.complete?X.addEventListener("load",N.setMountState):N.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var N=this.carouselWrapperRef;this.props.stopOnHover&&N&&(N.addEventListener("mouseenter",this.stopOnHover),N.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var N=this.carouselWrapperRef;this.props.stopOnHover&&N&&(N.removeEventListener("mouseenter",this.stopOnHover),N.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,o.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var N=this.getInitialImage();N&&N.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,o.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var N;(N=this.carouselWrapperRef)===null||N===void 0||N.focus()}},{key:"renderItems",value:function(N){var X=this;return this.props.children?e.Children.map(this.props.children,function(ee,Y){var ge=Y===X.state.selectedItem,P=Y===X.state.previousItem,F=ge&&X.state.selectedStyle||P&&X.state.prevStyle||X.state.slideStyle||{};X.props.centerMode&&X.props.axis==="horizontal"&&(F=S(S({},F),{},{minWidth:X.props.centerSlidePercentage+"%"})),X.state.swiping&&X.state.swipeMovementStarted&&(F=S(S({},F),{},{pointerEvents:"none"}));var J={ref:function(Z){return X.setItemsRef(Z,Y)},key:"itemKey"+Y+(N?"clone":""),className:r.default.ITEM(!0,Y===X.state.selectedItem,Y===X.state.previousItem),onClick:X.handleClickItem.bind(X,Y,ee),style:F};return e.default.createElement("li",J,X.props.renderItem(ee,{isSelected:Y===X.state.selectedItem,isPrevious:Y===X.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var N=this,X=this.props,ee=X.showIndicators,Y=X.labels,ge=X.renderIndicator,P=X.children;return ee?e.default.createElement("ul",{className:"control-dots"},e.Children.map(P,function(F,J){return ge&&ge(N.changeItem(J),J===N.state.selectedItem,J,Y.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 N=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var X=this.props.swipeable&&e.Children.count(this.props.children)>1,ee=this.props.axis==="horizontal",Y=this.props.showArrows&&e.Children.count(this.props.children)>1,ge=Y&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,P=Y&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,F=this.renderItems(!0),J=F.shift(),te=F.pop(),Z={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},de={};if(ee){if(Z.onSwipeLeft=this.onSwipeForward,Z.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var ie=this.getVariableItemHeight(this.state.selectedItem);de.height=ie||"auto"}}else Z.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,Z.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,Z.style=S(S({},Z.style),{},{height:this.state.itemSize}),de.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,ge,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:de},X?e.default.createElement(t.default,h({tagName:"ul",innerRef:this.setListRef},Z,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&te,this.renderItems(),this.props.infiniteLoop&&J):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(oe){return N.setListRef(oe)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&te,this.renderItems(),this.props.infiniteLoop&&J)),this.props.renderArrowNext(this.onClickNext,P,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),U})(e.default.Component);return Fs.default=W,L(W,"displayName","Carousel"),L(W,"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(D,U,V){return e.default.createElement("button",{type:"button","aria-label":V,className:r.default.ARROW_PREV(!U),onClick:D})},renderArrowNext:function(D,U,V){return e.default.createElement("button",{type:"button","aria-label":V,className:r.default.ARROW_NEXT(!U),onClick:D})},renderIndicator:function(D,U,V,N){return e.default.createElement("li",{className:r.default.DOT(U),onClick:D,onKeyDown:D,value:V,key:V,role:"button",tabIndex:0,"aria-label":"".concat(N," ").concat(V+1)})},renderItem:function(D){return D},renderThumbs:function(D){var U=e.Children.map(D,function(V){var N=V;if(V.type!=="img"&&(N=e.Children.toArray(V.props.children).find(function(X){return X.type==="img"})),!!N)return N});return U.filter(function(V){return V}).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"),[]):U},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}),Fs}var X0={},J0;function xD(){return J0||(J0=1),X0}var Q0;function SD(){return Q0||(Q0=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(wD()),r=xD(),n=o(c1());function o(s){return s&&s.__esModule?s:{default:s}}})(gf)),gf}var ED=SD();const _D=({tip:e})=>T.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:d1(e,!0)}),kD=({pages:e})=>T.jsx("div",{className:"min-h-[10rem] w-96",children:T.jsx(ED.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>T.jsx(_D,{tip:t},t.key))})}),OD=({body:e,isInsideCarousel:t})=>T.jsx("article",{className:dt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-muted",{"w-60":!t}]),children:T.jsx(Mc,{children:e,options:{overrides:{a:{component:({children:r,...n})=>T.jsxs("a",{...n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary",children:[r,T.jsx(ow,{className:"ml-1 mt-px h-4 w-4"})]})},strong:{component:({children:r,...n})=>T.jsx("span",{...n,className:"font-semibold text-body",children:r})}}}})}),TD=({video:e,body:t,title:r,isInsideCarousel:n})=>T.jsxs("div",{className:dt([{"flex flex-row":!n,"flex max-h-[10rem] flex-col overflow-y-auto":n}]),children:[T.jsx("div",{className:dt([{"mr-1":!n,"mb-1":n}]),children:T.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})}),T.jsx("article",{className:dt(["prose prose-sm p-1 text-left text-xs text-muted",{"w-60 overflow-auto":!n,"-mt-6":n}]),children:T.jsx(Mc,{children:t||"",options:{overrides:{a:{component:({children:o,...s})=>T.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[o,T.jsx(ow,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),d1=(e,t)=>{switch(e.type){case Ec.TEXT:return T.jsx(OD,{body:e.body,isInsideCarousel:t});case Ec.VIDEO:return T.jsx(TD,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case Ec.CAROUSEL:return T.jsx(kD,{pages:e.pages})}},f1=M.createContext(void 0);function ey(e,t){const r=[];return e.forEach(n=>{n.key===t&&r.push(n)}),r}const AD=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:n,show:o},s]=M.useState({tips:{},show:!0});M.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(u=>u.json()).then(u=>{const d=u.reduce((g,p)=>ey(u,p.key).length>1?{...g,[p.key]:{type:"carousel",pages:ey(u,p.key)}}:{...g,[p.key]:p},{});s(g=>({...g,tips:d}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{s(c=>({...c,show:!o}))};return T.jsx(f1.Provider,{value:{tips:n,toggleTips:l,show:o,enabled:t},children:e})},p1=e=>{const t=M.useContext(f1);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}},RD=Dc(aD)`
82
134
  &[data-state='open'] > * {
83
135
  display: block !important;
84
136
  }
85
- `,Dy=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:s,enabled:a}=My(e),[u,l]=M.useState(!1),f=M.useRef(null);return M.useEffect(()=>{if(f.current){const p=new IntersectionObserver(m=>{m[0].isIntersecting||l(!1)});return p.observe(f.current),()=>{f.current&&p.unobserve(f.current)}}},[]),s&&a?I.jsxs(HC,{open:u,onOpenChange:l,children:[I.jsx(dk,{ref:f,className:Be("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:p=>p.stopPropagation(),children:I.jsx("span",{className:Be("group-hover:block",{hidden:!r}),children:I.jsx(Qe.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),I.jsx(qC,{side:t,sideOffset:5,onClick:p=>p.stopPropagation(),children:I.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:$y(s)})})]}):null};var pk=Object.defineProperty,hk=(e,t,r)=>t in e?pk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ic=(e,t,r)=>(hk(e,typeof t!="symbol"?t+"":t,r),r);let gk=class{constructor(){ic(this,"current",this.detect()),ic(this,"handoffState","pending"),ic(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"}},Oi=new gk,Fr=(e,t)=>{Oi.isServer?M.useEffect(e,t):M.useLayoutEffect(e,t)};function Ai(e){let t=M.useRef(e);return Fr(()=>{t.current=e},[e]),t}let Ot=function(e){let t=Ai(e);return M.useCallback((...r)=>t.current(...r),[t])};function mk(e,t,r){let[i,s]=M.useState(r),a=e!==void 0,u=M.useRef(a),l=M.useRef(!1),f=M.useRef(!1);return a&&!u.current&&!l.current?(l.current=!0,u.current=a,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.")):!a&&u.current&&!f.current&&(f.current=!0,u.current=a,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.")),[a?e:i,Ot(p=>(a||s(p),t==null?void 0:t(p)))]}function vk(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Yo(){let e=[],t={addEventListener(r,i,s,a){return r.addEventListener(i,s,a),t.add(()=>r.removeEventListener(i,s,a))},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 vk(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(r,i,s){let a=r.style.getPropertyValue(i);return Object.assign(r.style,{[i]:s}),this.add(()=>{Object.assign(r.style,{[i]:a})})},group(r){let i=Yo();return r(i),this.add(()=>i.dispose())},add(r){return e.push(r),()=>{let i=e.indexOf(r);if(i>=0)for(let s of e.splice(i,1))s()}},dispose(){for(let r of e.splice(0))r()}};return t}function yf(){let[e]=M.useState(Yo);return M.useEffect(()=>()=>e.dispose(),[e]),e}function yk(){let e=typeof document>"u";return"useSyncExternalStore"in $?(t=>t.useSyncExternalStore)($)(()=>()=>{},()=>!1,()=>!e):!1}function bf(){let e=yk(),[t,r]=$.useState(Oi.isHandoffComplete);return t&&Oi.isHandoffComplete===!1&&r(!1),$.useEffect(()=>{t!==!0&&r(!0)},[t]),$.useEffect(()=>Oi.handoff(),[]),e?!1:t}var Im;let wf=(Im=M.useId)!=null?Im:function(){let e=bf(),[t,r]=M.useState(e?()=>Oi.nextId():null);return Fr(()=>{t===null&&r(Oi.nextId())},[t]),t!=null?""+t:void 0};function Lr(e,t,...r){if(e in t){let s=t[e];return typeof s=="function"?s(...r):s}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Lr),i}function $m(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 bk(e,t){let[r,i]=M.useState(()=>$m(e));return Fr(()=>{i($m(e))},[e.type,e.as]),Fr(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let wk=Symbol();function Xo(...e){let t=M.useRef(e);M.useEffect(()=>{t.current=e},[e]);let r=Ot(i=>{for(let s of t.current)s!=null&&(typeof s=="function"?s(i):s.current=i)});return e.every(i=>i==null||(i==null?void 0:i[wk]))?void 0:r}function Pa(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Ny=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ny||{}),_n=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_n||{});function ei({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:s,visible:a=!0,name:u,mergeRefs:l}){l=l??xk;let f=Fy(t,e);if(a)return aa(f,r,i,u,l);let p=s??0;if(p&2){let{static:m=!1,...d}=f;if(m)return aa(d,r,i,u,l)}if(p&1){let{unmount:m=!0,...d}=f;return Lr(m?0:1,{0(){return null},1(){return aa({...d,hidden:!0,style:{display:"none"}},r,i,u,l)}})}return aa(f,r,i,u,l)}function aa(e,t={},r,i,s){let{as:a=r,children:u,refName:l="ref",...f}=oc(e,["unmount","static"]),p=e.ref!==void 0?{[l]:e.ref}:{},m=typeof u=="function"?u(t):u;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t));let d={};if(t){let g=!1,y=[];for(let[x,h]of Object.entries(t))typeof h=="boolean"&&(g=!0),h===!0&&y.push(x);g&&(d["data-headlessui-state"]=y.join(" "))}if(a===M.Fragment&&Object.keys(kc(f)).length>0){if(!M.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(h=>` - ${h}`).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(h=>` - ${h}`).join(`
87
- `)].join(`
88
- `));let g=m.props,y=typeof(g==null?void 0:g.className)=="function"?(...h)=>Pa(g==null?void 0:g.className(...h),f.className):Pa(g==null?void 0:g.className,f.className),x=y?{className:y}:{};return M.cloneElement(m,Object.assign({},Fy(m.props,kc(oc(f,["ref"]))),d,p,{ref:s(m.ref,p.ref)},x))}return M.createElement(a,Object.assign({},oc(f,["ref"]),a!==M.Fragment&&p,a!==M.Fragment&&d),m)}function xk(...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 Fy(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let s in i)s.startsWith("on")&&typeof i[s]=="function"?(r[s]!=null||(r[s]=[]),r[s].push(i[s])):t[s]=i[s];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](s,...a){let u=r[i];for(let l of u){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;l(s,...a)}}});return t}function ti(e){var t;return Object.assign(M.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function kc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function oc(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let Sk="div";var jy=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(jy||{});function Ek(e,t){var r;let{features:i=1,...s}=e,a={ref:t,"aria-hidden":(i&2)===2?!0:(r=s["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 ei({ourProps:a,theirProps:s,slot:{},defaultTag:Sk,name:"Hidden"})}let _k=ti(Ek),xf=M.createContext(null);xf.displayName="OpenClosedContext";var Jr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Jr||{});function zy(){return M.useContext(xf)}function Tk({value:e,children:t}){return M.createElement(xf.Provider,{value:e},t)}function Ok(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&&Ak(r)?!1:i}function Ak(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function Rk(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let s of i.elements)if(s!==e&&(s.tagName==="INPUT"&&s.type==="submit"||s.tagName==="BUTTON"&&s.type==="submit"||s.nodeName==="INPUT"&&s.type==="image")){s.click();return}(r=i.requestSubmit)==null||r.call(i)}}var Ic=(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))(Ic||{});function Sf(){let e=M.useRef(!1);return Fr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let By=M.createContext(null);function Wy(){let e=M.useContext(By);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,Wy),t}return e}function Pk(){let[e,t]=M.useState([]);return[e.length>0?e.join(" "):void 0,M.useMemo(()=>function(r){let i=Ot(a=>(t(u=>[...u,a]),()=>t(u=>{let l=u.slice(),f=l.indexOf(a);return f!==-1&&l.splice(f,1),l}))),s=M.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return M.createElement(By.Provider,{value:s},r.children)},[t])]}let Ck="p";function kk(e,t){let r=wf(),{id:i=`headlessui-description-${r}`,...s}=e,a=Wy(),u=Xo(t);Fr(()=>a.register(i),[i,a.register]);let l={ref:u,...a.props,id:i};return ei({ourProps:l,theirProps:s,slot:a.slot||{},defaultTag:Ck,name:a.name||"Description"})}let Ik=ti(kk),$k=Object.assign(Ik,{}),Hy=M.createContext(null);function Uy(){let e=M.useContext(Hy);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,Uy),t}return e}function Lk(){let[e,t]=M.useState([]);return[e.length>0?e.join(" "):void 0,M.useMemo(()=>function(r){let i=Ot(a=>(t(u=>[...u,a]),()=>t(u=>{let l=u.slice(),f=l.indexOf(a);return f!==-1&&l.splice(f,1),l}))),s=M.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return M.createElement(Hy.Provider,{value:s},r.children)},[t])]}let Mk="label";function Dk(e,t){let r=wf(),{id:i=`headlessui-label-${r}`,passive:s=!1,...a}=e,u=Uy(),l=Xo(t);Fr(()=>u.register(i),[i,u.register]);let f={ref:l,...u.props,id:i};return s&&("onClick"in f&&(delete f.htmlFor,delete f.onClick),"onClick"in a&&delete a.onClick),ei({ourProps:f,theirProps:a,slot:u.slot||{},defaultTag:Mk,name:u.name||"Label"})}let Nk=ti(Dk),Fk=Object.assign(Nk,{});function jk(e=0){let[t,r]=M.useState(e),i=Sf(),s=M.useCallback(f=>{i.current&&r(p=>p|f)},[t,i]),a=M.useCallback(f=>!!(t&f),[t]),u=M.useCallback(f=>{i.current&&r(p=>p&~f)},[r,i]),l=M.useCallback(f=>{i.current&&r(p=>p^f)},[r]);return{flags:t,addFlag:s,hasFlag:a,removeFlag:u,toggleFlag:l}}let Ef=M.createContext(null);Ef.displayName="GroupContext";let zk=M.Fragment;function Bk(e){var t;let[r,i]=M.useState(null),[s,a]=Lk(),[u,l]=Pk(),f=M.useMemo(()=>({switch:r,setSwitch:i,labelledby:s,describedby:u}),[r,i,s,u]),p={},m=e;return M.createElement(l,{name:"Switch.Description"},M.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=f.switch)==null?void 0:t.id,onClick(d){r&&(d.currentTarget.tagName==="LABEL"&&d.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},M.createElement(Ef.Provider,{value:f},ei({ourProps:p,theirProps:m,defaultTag:zk,name:"Switch.Group"}))))}let Wk="button";function Hk(e,t){var r;let i=wf(),{id:s=`headlessui-switch-${i}`,checked:a,defaultChecked:u=!1,onChange:l,disabled:f=!1,name:p,value:m,form:d,...g}=e,y=M.useContext(Ef),x=M.useRef(null),h=Xo(x,t,y===null?null:y.setSwitch),[w,v]=mk(a,l,u),S=Ot(()=>v==null?void 0:v(!w)),E=Ot(F=>{if(Ok(F.currentTarget))return F.preventDefault();F.preventDefault(),S()}),R=Ot(F=>{F.key===Ic.Space?(F.preventDefault(),S()):F.key===Ic.Enter&&Rk(F.currentTarget)}),T=Ot(F=>F.preventDefault()),C=M.useMemo(()=>({checked:w}),[w]),W={id:s,ref:h,role:"switch",type:bk(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":w,"aria-labelledby":y==null?void 0:y.labelledby,"aria-describedby":y==null?void 0:y.describedby,disabled:f,onClick:E,onKeyUp:R,onKeyPress:T},N=yf();return M.useEffect(()=>{var F;let q=(F=x.current)==null?void 0:F.closest("form");q&&u!==void 0&&N.addEventListener(q,"reset",()=>{v(u)})},[x,v]),M.createElement(M.Fragment,null,p!=null&&w&&M.createElement(_k,{features:jy.Hidden,...kc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:f,form:d,checked:w,name:p,value:m})}),ei({ourProps:W,theirProps:g,slot:C,defaultTag:Wk,name:"Switch"}))}let Uk=ti(Hk),qk=Bk,Gk=Object.assign(Uk,{Group:qk,Label:Fk,Description:$k});function Zk(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function sc(e,...t){e&&t.length>0&&e.classList.add(...t)}function ac(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Vk(e,t){let r=Yo();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:s}=getComputedStyle(e),[a,u]=[i,s].map(f=>{let[p=0]=f.split(",").filter(Boolean).map(m=>m.includes("ms")?parseFloat(m):parseFloat(m)*1e3).sort((m,d)=>d-m);return p}),l=a+u;if(l!==0){r.group(p=>{p.setTimeout(()=>{t(),p.dispose()},l),p.addEventListener(e,"transitionrun",m=>{m.target===m.currentTarget&&p.dispose()})});let f=r.addEventListener(e,"transitionend",p=>{p.target===p.currentTarget&&(t(),f())})}else t();return r.add(()=>t()),r.dispose}function Kk(e,t,r,i){let s=r?"enter":"leave",a=Yo(),u=i!==void 0?Zk(i):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let l=Lr(s,{enter:()=>t.enter,leave:()=>t.leave}),f=Lr(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),p=Lr(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ac(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),sc(e,...t.base,...l,...p),a.nextFrame(()=>{ac(e,...t.base,...l,...p),sc(e,...t.base,...l,...f),Vk(e,()=>(ac(e,...t.base,...l),sc(e,...t.base,...t.entered),u()))}),a.dispose}function Yk({immediate:e,container:t,direction:r,classes:i,onStart:s,onStop:a}){let u=Sf(),l=yf(),f=Ai(r);Fr(()=>{e&&(f.current="enter")},[e]),Fr(()=>{let p=Yo();l.add(p.dispose);let m=t.current;if(m&&f.current!=="idle"&&u.current)return p.dispose(),s.current(f.current),p.add(Kk(m,i.current,f.current==="enter",()=>{p.dispose(),a.current(f.current)})),p.dispose},[r])}function wn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ya=M.createContext(null);Ya.displayName="TransitionContext";var Xk=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Xk||{});function Jk(){let e=M.useContext(Ya);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Qk(){let e=M.useContext(Xa);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Xa=M.createContext(null);Xa.displayName="NestingContext";function Ja(e){return"children"in e?Ja(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function qy(e,t){let r=Ai(e),i=M.useRef([]),s=Sf(),a=yf(),u=Ot((y,x=_n.Hidden)=>{let h=i.current.findIndex(({el:w})=>w===y);h!==-1&&(Lr(x,{[_n.Unmount](){i.current.splice(h,1)},[_n.Hidden](){i.current[h].state="hidden"}}),a.microTask(()=>{var w;!Ja(i)&&s.current&&((w=r.current)==null||w.call(r))}))}),l=Ot(y=>{let x=i.current.find(({el:h})=>h===y);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:y,state:"visible"}),()=>u(y,_n.Unmount)}),f=M.useRef([]),p=M.useRef(Promise.resolve()),m=M.useRef({enter:[],leave:[],idle:[]}),d=Ot((y,x,h)=>{f.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([w])=>w!==y)),t==null||t.chains.current[x].push([y,new Promise(w=>{f.current.push(w)})]),t==null||t.chains.current[x].push([y,new Promise(w=>{Promise.all(m.current[x].map(([v,S])=>S)).then(()=>w())})]),x==="enter"?p.current=p.current.then(()=>t==null?void 0:t.wait.current).then(()=>h(x)):h(x)}),g=Ot((y,x,h)=>{Promise.all(m.current[x].splice(0).map(([w,v])=>v)).then(()=>{var w;(w=f.current.shift())==null||w()}).then(()=>h(x))});return M.useMemo(()=>({children:i,register:l,unregister:u,onStart:d,onStop:g,wait:p,chains:m}),[l,u,i,d,g,m,p])}function eI(){}let tI=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Lm(e){var t;let r={};for(let i of tI)r[i]=(t=e[i])!=null?t:eI;return r}function rI(e){let t=M.useRef(Lm(e));return M.useEffect(()=>{t.current=Lm(e)},[e]),t}let nI="div",Gy=Ny.RenderStrategy;function iI(e,t){var r,i;let{beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:l,enter:f,enterFrom:p,enterTo:m,entered:d,leave:g,leaveFrom:y,leaveTo:x,...h}=e,w=M.useRef(null),v=Xo(w,t),S=(r=h.unmount)==null||r?_n.Unmount:_n.Hidden,{show:E,appear:R,initial:T}=Jk(),[C,W]=M.useState(E?"visible":"hidden"),N=Qk(),{register:F,unregister:q}=N;M.useEffect(()=>F(w),[F,w]),M.useEffect(()=>{if(S===_n.Hidden&&w.current){if(E&&C!=="visible"){W("visible");return}return Lr(C,{hidden:()=>q(w),visible:()=>F(w)})}},[C,w,F,q,E,S]);let j=Ai({base:wn(h.className),enter:wn(f),enterFrom:wn(p),enterTo:wn(m),entered:wn(d),leave:wn(g),leaveFrom:wn(y),leaveTo:wn(x)}),D=rI({beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:l}),H=bf();M.useEffect(()=>{if(H&&C==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,C,H]);let G=T&&!R,k=R&&E&&T,Q=!H||G?"idle":E?"enter":"leave",J=jk(0),re=Ot(ie=>Lr(ie,{enter:()=>{J.addFlag(Jr.Opening),D.current.beforeEnter()},leave:()=>{J.addFlag(Jr.Closing),D.current.beforeLeave()},idle:()=>{}})),ce=Ot(ie=>Lr(ie,{enter:()=>{J.removeFlag(Jr.Opening),D.current.afterEnter()},leave:()=>{J.removeFlag(Jr.Closing),D.current.afterLeave()},idle:()=>{}})),Z=qy(()=>{W("hidden"),q(w)},N),te=M.useRef(!1);Yk({immediate:k,container:w,classes:j,direction:Q,onStart:Ai(ie=>{te.current=!0,Z.onStart(w,ie,re)}),onStop:Ai(ie=>{te.current=!1,Z.onStop(w,ie,ce),ie==="leave"&&!Ja(Z)&&(W("hidden"),q(w))})});let ne=h,ue={ref:v};return k?ne={...ne,className:Pa(h.className,...j.current.enter,...j.current.enterFrom)}:te.current&&(ne.className=Pa(h.className,(i=w.current)==null?void 0:i.className),ne.className===""&&delete ne.className),M.createElement(Xa.Provider,{value:Z},M.createElement(Tk,{value:Lr(C,{visible:Jr.Open,hidden:Jr.Closed})|J.flags},ei({ourProps:ue,theirProps:ne,defaultTag:nI,features:Gy,visible:C==="visible",name:"Transition.Child"})))}function oI(e,t){let{show:r,appear:i=!1,unmount:s=!0,...a}=e,u=M.useRef(null),l=Xo(u,t);bf();let f=zy();if(r===void 0&&f!==null&&(r=(f&Jr.Open)===Jr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,m]=M.useState(r?"visible":"hidden"),d=qy(()=>{m("hidden")}),[g,y]=M.useState(!0),x=M.useRef([r]);Fr(()=>{g!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),y(!1))},[x,r]);let h=M.useMemo(()=>({show:r,appear:i,initial:g}),[r,i,g]);M.useEffect(()=>{if(r)m("visible");else if(!Ja(d))m("hidden");else{let E=u.current;if(!E)return;let R=E.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&m("hidden")}},[r,d]);let w={unmount:s},v=Ot(()=>{var E;g&&y(!1),(E=e.beforeEnter)==null||E.call(e)}),S=Ot(()=>{var E;g&&y(!1),(E=e.beforeLeave)==null||E.call(e)});return M.createElement(Xa.Provider,{value:d},M.createElement(Ya.Provider,{value:h},ei({ourProps:{...w,as:M.Fragment,children:M.createElement(Zy,{ref:l,...w,...a,beforeEnter:v,beforeLeave:S})},theirProps:{},defaultTag:M.Fragment,features:Gy,visible:p==="visible",name:"Transition"})))}function sI(e,t){let r=M.useContext(Ya)!==null,i=zy()!==null;return M.createElement(M.Fragment,null,!r&&i?M.createElement($c,{ref:t,...e}):M.createElement(Zy,{ref:t,...e}))}let $c=ti(oI),Zy=ti(iI),aI=ti(sI),Ca=Object.assign($c,{Child:aI,Root:$c});const uc={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"}},Vy=M.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto",...s},a)=>{const u=l=>{e(l)};return I.jsx("div",{className:Be("flex items-center",i),children:I.jsx(Gk,{as:"span",ref:a,checked:t,onChange:u,onKeyDown:l=>{l.key==="Enter"&&u(!t)},...s,className:`${t?"bg-primary-dark":"bg-grey-200"}
89
- relative inline-flex shrink-0 ${uc[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:I.jsx("span",{"aria-hidden":"true",className:`${t?uc[r].translate:"translate-x-0"}
90
- pointer-events-none inline-block ${uc[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})});function _f(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ri=_f();function Ky(e){ri=e}var Mo={exec:()=>null};function $e(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(s,a)=>{let u=typeof a=="string"?a:a.source;return u=u.replace(Ct.caret,"$1"),r=r.replace(s,u),i},getRegex:()=>new RegExp(r,t)};return i}var uI=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ct={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")},lI=/^(?:[ \t]*(?:\n|$))+/,cI=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,fI=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Jo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,dI=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Tf=/(?:[*+-]|\d{1,9}[.)])/,Yy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Xy=$e(Yy).replace(/bull/g,Tf).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(),pI=$e(Yy).replace(/bull/g,Tf).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(),Of=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,hI=/^[^\n]+/,Af=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,gI=$e(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Af).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),mI=$e(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Tf).getRegex(),Qa="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",Rf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,vI=$e("^ {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",Rf).replace("tag",Qa).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Jy=$e(Of).replace("hr",Jo).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",Qa).getRegex(),yI=$e(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Jy).getRegex(),Pf={blockquote:yI,code:cI,def:gI,fences:fI,heading:dI,hr:Jo,html:vI,lheading:Xy,list:mI,newline:lI,paragraph:Jy,table:Mo,text:hI},Mm=$e("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Jo).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",Qa).getRegex(),bI={...Pf,lheading:pI,table:Mm,paragraph:$e(Of).replace("hr",Jo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Mm).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",Qa).getRegex()},wI={...Pf,html:$e(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Rf).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:Mo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:$e(Of).replace("hr",Jo).replace("heading",` *#{1,6} *[^
91
- ]`).replace("lheading",Xy).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},xI=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,SI=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Qy=/^( {2,}|\\)\n(?!\s*$)/,EI=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,eu=/[\p{P}\p{S}]/u,Cf=/[\s\p{P}\p{S}]/u,e0=/[^\s\p{P}\p{S}]/u,_I=$e(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Cf).getRegex(),t0=/(?!~)[\p{P}\p{S}]/u,TI=/(?!~)[\s\p{P}\p{S}]/u,OI=/(?:[^\s\p{P}\p{S}]|~)/u,AI=$e(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",uI?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),r0=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,RI=$e(r0,"u").replace(/punct/g,eu).getRegex(),PI=$e(r0,"u").replace(/punct/g,t0).getRegex(),n0="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",CI=$e(n0,"gu").replace(/notPunctSpace/g,e0).replace(/punctSpace/g,Cf).replace(/punct/g,eu).getRegex(),kI=$e(n0,"gu").replace(/notPunctSpace/g,OI).replace(/punctSpace/g,TI).replace(/punct/g,t0).getRegex(),II=$e("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,e0).replace(/punctSpace/g,Cf).replace(/punct/g,eu).getRegex(),$I=$e(/\\(punct)/,"gu").replace(/punct/g,eu).getRegex(),LI=$e(/^<(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(),MI=$e(Rf).replace("(?:-->|$)","-->").getRegex(),DI=$e("^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",MI).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ka=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,NI=$e(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ka).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),i0=$e(/^!?\[(label)\]\[(ref)\]/).replace("label",ka).replace("ref",Af).getRegex(),o0=$e(/^!?\[(ref)\](?:\[\])?/).replace("ref",Af).getRegex(),FI=$e("reflink|nolink(?!\\()","g").replace("reflink",i0).replace("nolink",o0).getRegex(),Dm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,kf={_backpedal:Mo,anyPunctuation:$I,autolink:LI,blockSkip:AI,br:Qy,code:SI,del:Mo,emStrongLDelim:RI,emStrongRDelimAst:CI,emStrongRDelimUnd:II,escape:xI,link:NI,nolink:o0,punctuation:_I,reflink:i0,reflinkSearch:FI,tag:DI,text:EI,url:Mo},jI={...kf,link:$e(/^!?\[(label)\]\((.*?)\)/).replace("label",ka).getRegex(),reflink:$e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ka).getRegex()},Lc={...kf,emStrongRDelimAst:kI,emStrongLDelim:PI,url:$e(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Dm).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:$e(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Dm).getRegex()},zI={...Lc,br:$e(Qy).replace("{2,}","*").getRegex(),text:$e(Lc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ua={normal:Pf,gfm:bI,pedantic:wI},xo={normal:kf,gfm:Lc,breaks:zI,pedantic:jI},BI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Nm=e=>BI[e];function Rr(e,t){if(t){if(Ct.escapeTest.test(e))return e.replace(Ct.escapeReplace,Nm)}else if(Ct.escapeTestNoEncode.test(e))return e.replace(Ct.escapeReplaceNoEncode,Nm);return e}function Fm(e){try{e=encodeURI(e).replace(Ct.percentDecode,"%")}catch{return null}return e}function jm(e,t){var a;let r=e.replace(Ct.findPipe,(u,l,f)=>{let p=!1,m=l;for(;--m>=0&&f[m]==="\\";)p=!p;return p?"|":" |"}),i=r.split(Ct.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((a=i.at(-1))!=null&&a.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(Ct.slashPipe,"|");return i}function So(e,t,r){let i=e.length;if(i===0)return"";let s=0;for(;s<i&&e.charAt(i-s-1)===t;)s++;return e.slice(0,i-s)}function WI(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 zm(e,t,r,i,s){let a=t.href,u=t.title||null,l=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:u,text:l,tokens:i.inlineTokens(l)};return i.state.inLink=!1,f}function HI(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
92
- `).map(a=>{let u=a.match(r.other.beginningSpace);if(u===null)return a;let[l]=u;return l.length>=s.length?a.slice(s.length):a}).join(`
93
- `)}var Ia=class{constructor(t){ye(this,"options");ye(this,"rules");ye(this,"lexer");this.options=t||ri}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:So(i,`
94
- `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=HI(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:s}}}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 s=So(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.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:So(r[0],`
95
- `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=So(r[0],`
137
+ `,h1=({tipKey:e,side:t="right",alwaysOn:r,asButton:n=!1})=>{const{tip:o,enabled:s}=p1(e),[l,c]=M.useState(!1),u=M.useRef(null);return M.useEffect(()=>{if(u.current){const d=new IntersectionObserver(g=>{g[0].isIntersecting||c(!1)});return d.observe(u.current),()=>{u.current&&d.unobserve(u.current)}}},[]),o&&s?T.jsxs(sD,{open:l,onOpenChange:c,children:[T.jsx(RD,{ref:u,className:dt("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":n}),onClick:d=>d.stopPropagation(),children:T.jsx("span",{className:dt("group-hover:flex",{hidden:!r}),children:T.jsx(jR,{className:"h-4 w-4 text-yellow-300"})})}),T.jsx(lD,{side:t,sideOffset:5,onClick:d=>d.stopPropagation(),children:T.jsx(yo,{depth:3,borderType:"light",className:"relative rounded border p-2 text-xs shadow-2xl",children:d1(o)})})]}):null};function Gp(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Xo=Gp();function g1(e){Xo=e}var ca={exec:()=>null};function qe(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(o,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(tr.caret,"$1"),r=r.replace(o,l),n},getRegex:()=>new RegExp(r,t)};return n}var tr={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")},CD=/^(?:[ \t]*(?:\n|$))+/,ID=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,PD=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ia=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ND=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Zp=/(?:[*+-]|\d{1,9}[.)])/,v1=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,m1=qe(v1).replace(/bull/g,Zp).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(),MD=qe(v1).replace(/bull/g,Zp).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(),Yp=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,DD=/^[^\n]+/,Kp=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,LD=qe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Kp).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),zD=qe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Zp).getRegex(),iu="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",Xp=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$D=qe("^ {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",Xp).replace("tag",iu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),b1=qe(Yp).replace("hr",Ia).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",iu).getRegex(),jD=qe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",b1).getRegex(),Jp={blockquote:jD,code:ID,def:LD,fences:PD,heading:ND,hr:Ia,html:$D,lheading:m1,list:zD,newline:CD,paragraph:b1,table:ca,text:DD},ty=qe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ia).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",iu).getRegex(),FD={...Jp,lheading:MD,table:ty,paragraph:qe(Yp).replace("hr",Ia).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ty).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",iu).getRegex()},BD={...Jp,html:qe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Xp).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:ca,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:qe(Yp).replace("hr",Ia).replace("heading",` *#{1,6} *[^
138
+ ]`).replace("lheading",m1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},HD=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,WD=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,y1=/^( {2,}|\\)\n(?!\s*$)/,VD=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,su=/[\p{P}\p{S}]/u,Qp=/[\s\p{P}\p{S}]/u,w1=/[^\s\p{P}\p{S}]/u,UD=qe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Qp).getRegex(),x1=/(?!~)[\p{P}\p{S}]/u,qD=/(?!~)[\s\p{P}\p{S}]/u,GD=/(?:[^\s\p{P}\p{S}]|~)/u,ZD=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,S1=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,YD=qe(S1,"u").replace(/punct/g,su).getRegex(),KD=qe(S1,"u").replace(/punct/g,x1).getRegex(),E1="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",XD=qe(E1,"gu").replace(/notPunctSpace/g,w1).replace(/punctSpace/g,Qp).replace(/punct/g,su).getRegex(),JD=qe(E1,"gu").replace(/notPunctSpace/g,GD).replace(/punctSpace/g,qD).replace(/punct/g,x1).getRegex(),QD=qe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,w1).replace(/punctSpace/g,Qp).replace(/punct/g,su).getRegex(),eL=qe(/\\(punct)/,"gu").replace(/punct/g,su).getRegex(),tL=qe(/^<(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(),rL=qe(Xp).replace("(?:-->|$)","-->").getRegex(),nL=qe("^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",rL).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),zc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,oL=qe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",zc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),_1=qe(/^!?\[(label)\]\[(ref)\]/).replace("label",zc).replace("ref",Kp).getRegex(),k1=qe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Kp).getRegex(),iL=qe("reflink|nolink(?!\\()","g").replace("reflink",_1).replace("nolink",k1).getRegex(),ry=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,eh={_backpedal:ca,anyPunctuation:eL,autolink:tL,blockSkip:ZD,br:y1,code:WD,del:ca,emStrongLDelim:YD,emStrongRDelimAst:XD,emStrongRDelimUnd:QD,escape:HD,link:oL,nolink:k1,punctuation:UD,reflink:_1,reflinkSearch:iL,tag:nL,text:VD,url:ca},sL={...eh,link:qe(/^!?\[(label)\]\((.*?)\)/).replace("label",zc).getRegex(),reflink:qe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",zc).getRegex()},ep={...eh,emStrongRDelimAst:JD,emStrongLDelim:KD,url:qe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ry).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:qe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ry).getRegex()},aL={...ep,br:qe(y1).replace("{2,}","*").getRegex(),text:qe(ep.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},rc={normal:Jp,gfm:FD,pedantic:BD},Gs={normal:eh,gfm:ep,breaks:aL,pedantic:sL},lL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ny=e=>lL[e];function hn(e,t){if(t){if(tr.escapeTest.test(e))return e.replace(tr.escapeReplace,ny)}else if(tr.escapeTestNoEncode.test(e))return e.replace(tr.escapeReplaceNoEncode,ny);return e}function oy(e){try{e=encodeURI(e).replace(tr.percentDecode,"%")}catch{return null}return e}function iy(e,t){var s;let r=e.replace(tr.findPipe,(l,c,u)=>{let d=!1,g=c;for(;--g>=0&&u[g]==="\\";)d=!d;return d?"|":" |"}),n=r.split(tr.splitPipe),o=0;if(n[0].trim()||n.shift(),n.length>0&&!((s=n.at(-1))!=null&&s.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(tr.slashPipe,"|");return n}function Zs(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 cL(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 sy(e,t,r,n,o){let s=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:s,title:l,text:c,tokens:n.inlineTokens(c)};return n.state.inLink=!1,u}function uL(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let o=n[1];return t.split(`
139
+ `).map(s=>{let l=s.match(r.other.beginningSpace);if(l===null)return s;let[c]=l;return c.length>=o.length?s.slice(o.length):s}).join(`
140
+ `)}var $c=class{constructor(t){Ae(this,"options");Ae(this,"rules");Ae(this,"lexer");this.options=t||Xo}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:Zs(n,`
141
+ `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],o=uL(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=Zs(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:Zs(r[0],`
142
+ `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=Zs(r[0],`
96
143
  `).split(`
97
- `),s="",a="",u=[];for(;i.length>0;){let l=!1,f=[],p;for(p=0;p<i.length;p++)if(this.rules.other.blockquoteStart.test(i[p]))f.push(i[p]),l=!0;else if(!l)f.push(i[p]);else break;i=i.slice(p);let m=f.join(`
98
- `),d=m.replace(this.rules.other.blockquoteSetextReplace,`
99
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
100
- ${m}`:m,a=a?`${a}
101
- ${d}`:d;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,u,!0),this.lexer.state.top=g,i.length===0)break;let y=u.at(-1);if((y==null?void 0:y.type)==="code")break;if((y==null?void 0:y.type)==="blockquote"){let x=y,h=x.raw+`
102
- `+i.join(`
103
- `),w=this.blockquote(h);u[u.length-1]=w,s=s.substring(0,s.length-x.raw.length)+w.raw,a=a.substring(0,a.length-x.text.length)+w.text;break}else if((y==null?void 0:y.type)==="list"){let x=y,h=x.raw+`
104
- `+i.join(`
105
- `),w=this.list(h);u[u.length-1]=w,s=s.substring(0,s.length-y.raw.length)+w.raw,a=a.substring(0,a.length-x.raw.length)+w.raw,i=h.substring(u.at(-1).raw.length).split(`
106
- `);continue}}return{type:"blockquote",raw:s,tokens:u,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),s=i.length>1,a={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let u=this.rules.other.listItemRegex(i),l=!1;for(;t;){let p=!1,m="",d="";if(!(r=u.exec(t))||this.rules.block.hr.test(t))break;m=r[0],t=t.substring(m.length);let g=r[2].split(`
107
- `,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),y=t.split(`
108
- `,1)[0],x=!g.trim(),h=0;if(this.options.pedantic?(h=2,d=g.trimStart()):x?h=r[1].length+1:(h=r[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,d=g.slice(h),h+=r[1].length),x&&this.rules.other.blankLine.test(y)&&(m+=y+`
109
- `,t=t.substring(y.length+1),p=!0),!p){let S=this.rules.other.nextBulletRegex(h),E=this.rules.other.hrRegex(h),R=this.rules.other.fencesBeginRegex(h),T=this.rules.other.headingBeginRegex(h),C=this.rules.other.htmlBeginRegex(h);for(;t;){let W=t.split(`
110
- `,1)[0],N;if(y=W,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),N=y):N=y.replace(this.rules.other.tabCharGlobal," "),R.test(y)||T.test(y)||C.test(y)||S.test(y)||E.test(y))break;if(N.search(this.rules.other.nonSpaceChar)>=h||!y.trim())d+=`
111
- `+N.slice(h);else{if(x||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(g)||T.test(g)||E.test(g))break;d+=`
112
- `+y}!x&&!y.trim()&&(x=!0),m+=W+`
113
- `,t=t.substring(W.length+1),g=N.slice(h)}}a.loose||(l?a.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(l=!0));let w=null,v;this.options.gfm&&(w=this.rules.other.listIsTask.exec(d),w&&(v=w[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:m,task:!!w,checked:v,loose:!1,text:d,tokens:[]}),a.raw+=m}let f=a.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let p=0;p<a.items.length;p++)if(this.lexer.state.top=!1,a.items[p].tokens=this.lexer.blockTokens(a.items[p].text,[]),!a.loose){let m=a.items[p].tokens.filter(g=>g.type==="space"),d=m.length>0&&m.some(g=>this.rules.other.anyLine.test(g.raw));a.loose=d}if(a.loose)for(let p=0;p<a.items.length;p++)a.items[p].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 i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=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:i,raw:r[0],href:s,title:a}}}table(t){var l;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=jm(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(l=r[3])!=null&&l.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
114
- `):[],u={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?u.align.push("right"):this.rules.other.tableAlignCenter.test(f)?u.align.push("center"):this.rules.other.tableAlignLeft.test(f)?u.align.push("left"):u.align.push(null);for(let f=0;f<i.length;f++)u.header.push({text:i[f],tokens:this.lexer.inline(i[f]),header:!0,align:u.align[f]});for(let f of a)u.rows.push(jm(f,u.header.length).map((p,m)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:u.align[m]})));return u}}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 u=So(i.slice(0,-1),"\\");if((i.length-u.length)%2===0)return}else{let u=WI(r[2],"()");if(u===-2)return;if(u>-1){let l=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,l).trim(),r[3]=""}}let s=r[2],a="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(s);u&&(s=u[1],a=u[3])}else a=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),zm(r,{href:s&&s.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 i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[s.toLowerCase()];if(!a){let u=i[0].charAt(0);return{type:"text",raw:u,text:u}}return zm(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...s[0]].length-1,u,l,f=a,p=0,m=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,r=r.slice(-1*t.length+a);(s=m.exec(r))!=null;){if(u=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!u)continue;if(l=[...u].length,s[3]||s[4]){f+=l;continue}else if((s[5]||s[6])&&a%3&&!((a+l)%3)){p+=l;continue}if(f-=l,f>0)continue;l=Math.min(l,l+f+p);let d=[...s[0]][0].length,g=t.slice(0,a+s.index+d+l);if(Math.min(a,l)%2){let x=g.slice(1,-1);return{type:"em",raw:g,text:x,tokens:this.lexer.inlineTokens(x)}}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 i=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&a&&(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,s;return r[2]==="@"?(i=r[1],s="mailto:"+i):(i=r[1],s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let s,a;if(r[2]==="@")s=r[0],a="mailto:"+s;else{let u;do u=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(u!==r[0]);s=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:s,href:a,tokens:[{type:"text",raw:s,text:s}]}}}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}}}},vr=class Mc{constructor(t){ye(this,"tokens");ye(this,"options");ye(this,"state");ye(this,"tokenizer");ye(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ri,this.options.tokenizer=this.options.tokenizer||new Ia,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:Ct,block:ua.normal,inline:xo.normal};this.options.pedantic?(r.block=ua.pedantic,r.inline=xo.pedantic):this.options.gfm&&(r.block=ua.gfm,this.options.breaks?r.inline=xo.breaks:r.inline=xo.gfm),this.tokenizer.rules=r}static get rules(){return{block:ua,inline:xo}}static lex(t,r){return new Mc(r).lex(t)}static lexInline(t,r){return new Mc(r).inlineTokens(t)}lex(t){t=t.replace(Ct.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 s,a,u;for(this.options.pedantic&&(t=t.replace(Ct.tabCharGlobal," ").replace(Ct.spaceLine,""));t;){let l;if((a=(s=this.options.extensions)==null?void 0:s.block)!=null&&a.some(p=>(l=p.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);let p=r.at(-1);l.raw.length===1&&p!==void 0?p.raw+=`
117
- `:r.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
144
+ `),o="",s="",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 g=u.join(`
145
+ `),p=g.replace(this.rules.other.blockquoteSetextReplace,`
146
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
147
+ ${g}`:g,s=s?`${s}
148
+ ${p}`:p;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,l,!0),this.lexer.state.top=h,n.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 S=b,v=S.raw+`
149
+ `+n.join(`
150
+ `),y=this.blockquote(v);l[l.length-1]=y,o=o.substring(0,o.length-S.raw.length)+y.raw,s=s.substring(0,s.length-S.text.length)+y.text;break}else if((b==null?void 0:b.type)==="list"){let S=b,v=S.raw+`
151
+ `+n.join(`
152
+ `),y=this.list(v);l[l.length-1]=y,o=o.substring(0,o.length-b.raw.length)+y.raw,s=s.substring(0,s.length-S.raw.length)+y.raw,n=v.substring(l.at(-1).raw.length).split(`
153
+ `);continue}}return{type:"blockquote",raw:o,tokens:l,text:s}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),o=n.length>1,s={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,g="",p="";if(!(r=l.exec(t))||this.rules.block.hr.test(t))break;g=r[0],t=t.substring(g.length);let h=r[2].split(`
154
+ `,1)[0].replace(this.rules.other.listReplaceTabs,w=>" ".repeat(3*w.length)),b=t.split(`
155
+ `,1)[0],S=!h.trim(),v=0;if(this.options.pedantic?(v=2,p=h.trimStart()):S?v=r[1].length+1:(v=r[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,p=h.slice(v),v+=r[1].length),S&&this.rules.other.blankLine.test(b)&&(g+=b+`
156
+ `,t=t.substring(b.length+1),d=!0),!d){let w=this.rules.other.nextBulletRegex(v),x=this.rules.other.hrRegex(v),k=this.rules.other.fencesBeginRegex(v),_=this.rules.other.headingBeginRegex(v),R=this.rules.other.htmlBeginRegex(v);for(;t;){let j=t.split(`
157
+ `,1)[0],I;if(b=j,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),I=b):I=b.replace(this.rules.other.tabCharGlobal," "),k.test(b)||_.test(b)||R.test(b)||w.test(b)||x.test(b))break;if(I.search(this.rules.other.nonSpaceChar)>=v||!b.trim())p+=`
158
+ `+I.slice(v);else{if(S||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(h)||_.test(h)||x.test(h))break;p+=`
159
+ `+b}!S&&!b.trim()&&(S=!0),g+=j+`
160
+ `,t=t.substring(j.length+1),h=I.slice(v)}}s.loose||(c?s.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(c=!0));let y=null,m;this.options.gfm&&(y=this.rules.other.listIsTask.exec(p),y&&(m=y[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:g,task:!!y,checked:m,loose:!1,text:p,tokens:[]}),s.raw+=g}let u=s.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let d=0;d<s.items.length;d++)if(this.lexer.state.top=!1,s.items[d].tokens=this.lexer.blockTokens(s.items[d].text,[]),!s.loose){let g=s.items[d].tokens.filter(h=>h.type==="space"),p=g.length>0&&g.some(h=>this.rules.other.anyLine.test(h.raw));s.loose=p}if(s.loose)for(let d=0;d<s.items.length;d++)s.items[d].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 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"):"",s=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:s}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=iy(r[1]),o=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
161
+ `):[],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 s)l.rows.push(iy(u,l.header.length).map((d,g)=>({text:d,tokens:this.lexer.inline(d),header:!1,align:l.align[g]})));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)===`
162
+ `?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=Zs(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=cL(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],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(o);l&&(o=l[1],s=l[3])}else s=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)),sy(r,{href:o&&o.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 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," "),s=r[o.toLowerCase()];if(!s){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return sy(n,s,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 s=[...o[0]].length-1,l,c,u=s,d=0,g=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,r=r.slice(-1*t.length+s);(o=g.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])&&s%3&&!((s+c)%3)){d+=c;continue}if(u-=c,u>0)continue;c=Math.min(c,c+u+d);let p=[...o[0]][0].length,h=t.slice(0,s+o.index+p+c);if(Math.min(s,c)%2){let S=h.slice(1,-1);return{type:"em",raw:h,text:S,tokens:this.lexer.inlineTokens(S)}}let b=h.slice(2,-2);return{type:"strong",raw:h,text:b,tokens:this.lexer.inlineTokens(b)}}}}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),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return o&&s&&(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,s;if(r[2]==="@")o=r[0],s="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."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:o,href:s,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}}}},Jr=class tp{constructor(t){Ae(this,"tokens");Ae(this,"options");Ae(this,"state");Ae(this,"tokenizer");Ae(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Xo,this.options.tokenizer=this.options.tokenizer||new $c,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:tr,block:rc.normal,inline:Gs.normal};this.options.pedantic?(r.block=rc.pedantic,r.inline=Gs.pedantic):this.options.gfm&&(r.block=rc.gfm,this.options.breaks?r.inline=Gs.breaks:r.inline=Gs.gfm),this.tokenizer.rules=r}static get rules(){return{block:rc,inline:Gs}}static lex(t,r){return new tp(r).lex(t)}static lexInline(t,r){return new tp(r).inlineTokens(t)}lex(t){t=t.replace(tr.carriageReturn,`
163
+ `),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,s,l;for(this.options.pedantic&&(t=t.replace(tr.tabCharGlobal," ").replace(tr.spaceLine,""));t;){let c;if((s=(o=this.options.extensions)==null?void 0:o.block)!=null&&s.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+=`
164
+ `: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(`
118
165
  `)?"":`
119
- `)+l.raw,p.text+=`
120
- `+l.text,this.inlineQueue.at(-1).src=p.text):r.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
166
+ `)+c.raw,d.text+=`
167
+ `+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(`
121
168
  `)?"":`
122
- `)+l.raw,p.text+=`
123
- `+l.raw,this.inlineQueue.at(-1).src=p.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},r.push(l));continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),r.push(l);continue}let f=t;if((u=this.options.extensions)!=null&&u.startBlock){let p=1/0,m=t.slice(1),d;this.options.extensions.startBlock.forEach(g=>{d=g.call({lexer:this},m),typeof d=="number"&&d>=0&&(p=Math.min(p,d))}),p<1/0&&p>=0&&(f=t.substring(0,p+1))}if(this.state.top&&(l=this.tokenizer.paragraph(f))){let p=r.at(-1);i&&(p==null?void 0:p.type)==="paragraph"?(p.raw+=(p.raw.endsWith(`
169
+ `)+c.raw,d.text+=`
170
+ `+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,g=t.slice(1),p;this.options.extensions.startBlock.forEach(h=>{p=h.call({lexer:this},g),typeof p=="number"&&p>=0&&(d=Math.min(d,p))}),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(`
124
171
  `)?"":`
125
- `)+l.raw,p.text+=`
126
- `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(l),i=f.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
172
+ `)+c.raw,d.text+=`
173
+ `+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(`
127
174
  `)?"":`
128
- `)+l.raw,p.text+=`
129
- `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(l);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var f,p,m,d,g;let i=t,s=null;if(this.tokens.links){let y=Object.keys(this.tokens.links);if(y.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)y.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=s[2]?s[2].length:0,i=i.slice(0,s.index+a)+"["+"a".repeat(s[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((p=(f=this.options.hooks)==null?void 0:f.emStrongMask)==null?void 0:p.call({lexer:this},i))??i;let u=!1,l="";for(;t;){u||(l=""),u=!1;let y;if((d=(m=this.options.extensions)==null?void 0:m.inline)!=null&&d.some(h=>(y=h.call({lexer:this},t,r))?(t=t.substring(y.raw.length),r.push(y),!0):!1))continue;if(y=this.tokenizer.escape(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.tag(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.link(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(y.raw.length);let h=r.at(-1);y.type==="text"&&(h==null?void 0:h.type)==="text"?(h.raw+=y.raw,h.text+=y.text):r.push(y);continue}if(y=this.tokenizer.emStrong(t,i,l)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.codespan(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.br(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.del(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.autolink(t)){t=t.substring(y.raw.length),r.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(t))){t=t.substring(y.raw.length),r.push(y);continue}let x=t;if((g=this.options.extensions)!=null&&g.startInline){let h=1/0,w=t.slice(1),v;this.options.extensions.startInline.forEach(S=>{v=S.call({lexer:this},w),typeof v=="number"&&v>=0&&(h=Math.min(h,v))}),h<1/0&&h>=0&&(x=t.substring(0,h+1))}if(y=this.tokenizer.inlineText(x)){t=t.substring(y.raw.length),y.raw.slice(-1)!=="_"&&(l=y.raw.slice(-1)),u=!0;let h=r.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=y.raw,h.text+=y.text):r.push(y);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},$a=class{constructor(t){ye(this,"options");ye(this,"parser");this.options=t||ri}space(t){return""}code({text:t,lang:r,escaped:i}){var u;let s=(u=(r||"").match(Ct.notSpaceStart))==null?void 0:u[0],a=t.replace(Ct.endingNewline,"")+`
130
- `;return s?'<pre><code class="language-'+Rr(s)+'">'+(i?a:Rr(a,!0))+`</code></pre>
131
- `:"<pre><code>"+(i?a:Rr(a,!0))+`</code></pre>
175
+ `)+c.raw,d.text+=`
176
+ `+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,g,p;let n=t,o=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)h.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 s=!1,l="";for(;t;){s||(l=""),s=!1;let h;if((g=(d=this.options.extensions)==null?void 0:d.inline)!=null&&g.some(S=>(h=S.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.escape(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.tag(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.link(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(h.raw.length);let S=r.at(-1);h.type==="text"&&(S==null?void 0:S.type)==="text"?(S.raw+=h.raw,S.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(t,n,l)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(t)){t=t.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(t))){t=t.substring(h.raw.length),r.push(h);continue}let b=t;if((p=this.options.extensions)!=null&&p.startInline){let S=1/0,v=t.slice(1),y;this.options.extensions.startInline.forEach(m=>{y=m.call({lexer:this},v),typeof y=="number"&&y>=0&&(S=Math.min(S,y))}),S<1/0&&S>=0&&(b=t.substring(0,S+1))}if(h=this.tokenizer.inlineText(b)){t=t.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(l=h.raw.slice(-1)),s=!0;let S=r.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=h.raw,S.text+=h.text):r.push(h);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}},jc=class{constructor(t){Ae(this,"options");Ae(this,"parser");this.options=t||Xo}space(t){return""}code({text:t,lang:r,escaped:n}){var l;let o=(l=(r||"").match(tr.notSpaceStart))==null?void 0:l[0],s=t.replace(tr.endingNewline,"")+`
177
+ `;return o?'<pre><code class="language-'+hn(o)+'">'+(n?s:hn(s,!0))+`</code></pre>
178
+ `:"<pre><code>"+(n?s:hn(s,!0))+`</code></pre>
132
179
  `}blockquote({tokens:t}){return`<blockquote>
133
180
  ${this.parser.parse(t)}</blockquote>
134
181
  `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
135
182
  `}hr(t){return`<hr>
136
- `}list(t){let r=t.ordered,i=t.start,s="";for(let l=0;l<t.items.length;l++){let f=t.items[l];s+=this.listitem(f)}let a=r?"ol":"ul",u=r&&i!==1?' start="'+i+'"':"";return"<"+a+u+`>
137
- `+s+"</"+a+`>
138
- `}listitem(t){var i;let r="";if(t.task){let s=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=s+" "+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=s+" "+Rr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):r+=s+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
183
+ `}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 s=r?"ol":"ul",l=r&&n!==1?' start="'+n+'"':"";return"<"+s+l+`>
184
+ `+o+"</"+s+`>
185
+ `}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+" "+hn(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>
139
186
  `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
140
- `}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let s="";for(let a=0;a<t.rows.length;a++){let u=t.rows[a];i="";for(let l=0;l<u.length;l++)i+=this.tablecell(u[l]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
187
+ `}table(t){let r="",n="";for(let s=0;s<t.header.length;s++)n+=this.tablecell(t.header[s]);r+=this.tablerow({text:n});let o="";for(let s=0;s<t.rows.length;s++){let l=t.rows[s];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>
141
188
  <thead>
142
189
  `+r+`</thead>
143
- `+s+`</table>
190
+ `+o+`</table>
144
191
  `}tablerow({text:t}){return`<tr>
145
192
  ${t}</tr>
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>${Rr(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 s=this.parser.parseInline(i),a=Fm(t);if(a===null)return s;t=a;let u='<a href="'+t+'"';return r&&(u+=' title="'+Rr(r)+'"'),u+=">"+s+"</a>",u}image({href:t,title:r,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let a=Fm(t);if(a===null)return Rr(i);t=a;let u=`<img src="${t}" alt="${i}"`;return r&&(u+=` title="${Rr(r)}"`),u+=">",u}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Rr(t.text)}},If=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""}},yr=class Dc{constructor(t){ye(this,"options");ye(this,"renderer");ye(this,"textRenderer");this.options=t||ri,this.options.renderer=this.options.renderer||new $a,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new If}static parse(t,r){return new Dc(r).parse(t)}static parseInline(t,r){return new Dc(r).parseInline(t)}parse(t,r=!0){var s,a;let i="";for(let u=0;u<t.length;u++){let l=t[u];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[l.type]){let p=l,m=this.options.extensions.renderers[p.type].call({parser:this},p);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(p.type)){i+=m||"";continue}}let f=l;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 p=f,m=this.renderer.text(p);for(;u+1<t.length&&t[u+1].type==="text";)p=t[++u],m+=`
148
- `+this.renderer.text(p);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 p='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return i}parseInline(t,r=this.renderer){var s,a;let i="";for(let u=0;u<t.length;u++){let l=t[u];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[l.type]){let p=this.options.extensions.renderers[l.type].call({parser:this},l);if(p!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){i+=p||"";continue}}let f=l;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 p='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return i}},pa,To=(pa=class{constructor(t){ye(this,"options");ye(this,"block");this.options=t||ri}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?vr.lex:vr.lexInline}provideParser(){return this.block?yr.parse:yr.parseInline}},ye(pa,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ye(pa,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),pa),s0=class{constructor(...t){ye(this,"defaults",_f());ye(this,"options",this.setOptions);ye(this,"parse",this.parseMarkdown(!0));ye(this,"parseInline",this.parseMarkdown(!1));ye(this,"Parser",yr);ye(this,"Renderer",$a);ye(this,"TextRenderer",If);ye(this,"Lexer",vr);ye(this,"Tokenizer",Ia);ye(this,"Hooks",To);this.use(...t)}walkTokens(t,r){var s,a;let i=[];for(let u of t)switch(i=i.concat(r.call(this,u)),u.type){case"table":{let l=u;for(let f of l.header)i=i.concat(this.walkTokens(f.tokens,r));for(let f of l.rows)for(let p of f)i=i.concat(this.walkTokens(p.tokens,r));break}case"list":{let l=u;i=i.concat(this.walkTokens(l.items,r));break}default:{let l=u;(a=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&a[l.type]?this.defaults.extensions.childTokens[l.type].forEach(f=>{let p=l[f].flat(1/0);i=i.concat(this.walkTokens(p,r))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let u=r.renderers[a.name];u?r.renderers[a.name]=function(...l){let f=a.renderer.apply(this,l);return f===!1&&(f=u.apply(this,l)),f}: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 u=r[a.level];u?u.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)}),s.extensions=r),i.renderer){let a=this.defaults.renderer||new $a(this.defaults);for(let u in i.renderer){if(!(u in a))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let l=u,f=i.renderer[l],p=a[l];a[l]=(...m)=>{let d=f.apply(a,m);return d===!1&&(d=p.apply(a,m)),d||""}}s.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Ia(this.defaults);for(let u in i.tokenizer){if(!(u in a))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let l=u,f=i.tokenizer[l],p=a[l];a[l]=(...m)=>{let d=f.apply(a,m);return d===!1&&(d=p.apply(a,m)),d}}s.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new To;for(let u in i.hooks){if(!(u in a))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let l=u,f=i.hooks[l],p=a[l];To.passThroughHooks.has(u)?a[l]=m=>{if(this.defaults.async&&To.passThroughHooksRespectAsync.has(u))return(async()=>{let g=await f.call(a,m);return p.call(a,g)})();let d=f.call(a,m);return p.call(a,d)}:a[l]=(...m)=>{if(this.defaults.async)return(async()=>{let g=await f.apply(a,m);return g===!1&&(g=await p.apply(a,m)),g})();let d=f.apply(a,m);return d===!1&&(d=p.apply(a,m)),d}}s.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,u=i.walkTokens;s.walkTokens=function(l){let f=[];return f.push(u.call(this,l)),a&&(f=f.concat(a.call(this,l))),f}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return vr.lex(t,r??this.defaults)}parser(t,r){return yr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let s={...i},a={...this.defaults,...s},u=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&s.async===!1)return u(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 u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(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 l=a.hooks?await a.hooks.preprocess(r):r,f=await(a.hooks?await a.hooks.provideLexer():t?vr.lex:vr.lexInline)(l,a),p=a.hooks?await a.hooks.processAllTokens(f):f;a.walkTokens&&await Promise.all(this.walkTokens(p,a.walkTokens));let m=await(a.hooks?await a.hooks.provideParser():t?yr.parse:yr.parseInline)(p,a);return a.hooks?await a.hooks.postprocess(m):m})().catch(u);try{a.hooks&&(r=a.hooks.preprocess(r));let l=(a.hooks?a.hooks.provideLexer():t?vr.lex:vr.lexInline)(r,a);a.hooks&&(l=a.hooks.processAllTokens(l)),a.walkTokens&&this.walkTokens(l,a.walkTokens);let f=(a.hooks?a.hooks.provideParser():t?yr.parse:yr.parseInline)(l,a);return a.hooks&&(f=a.hooks.postprocess(f)),f}catch(l){return u(l)}}}onError(t,r){return i=>{if(i.message+=`
149
- Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+Rr(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},Xn=new s0;function Ue(e,t){return Xn.parse(e,t)}Ue.options=Ue.setOptions=function(e){return Xn.setOptions(e),Ue.defaults=Xn.defaults,Ky(Ue.defaults),Ue};Ue.getDefaults=_f;Ue.defaults=ri;Ue.use=function(...e){return Xn.use(...e),Ue.defaults=Xn.defaults,Ky(Ue.defaults),Ue};Ue.walkTokens=function(e,t){return Xn.walkTokens(e,t)};Ue.parseInline=Xn.parseInline;Ue.Parser=yr;Ue.parser=yr.parse;Ue.Renderer=$a;Ue.TextRenderer=If;Ue.Lexer=vr;Ue.lexer=vr.lex;Ue.Tokenizer=Ia;Ue.Hooks=To;Ue.parse=Ue;Ue.options;Ue.setOptions;Ue.use;Ue.walkTokens;Ue.parseInline;yr.parse;vr.lex;const UI={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":" ","&#160;":" "},a0=/&(?:amp|lt|gt|quot|nbsp|#(?:0+)?(?:39|160));/g,qI=RegExp(a0.source),Bm=(e="")=>qI.test(e)?e.replace(a0,t=>UI[t]||"'"):e,Wm=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var GI=class{constructor(e){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,s=this.parse(i.tokens);return this.renderer.blockquote(s)}case"list":{const i=r;this.renderer.elIdList.push(0);const s=i.items.map(a=>{const u=[];return a.task&&u.push(this.renderer.checkbox(a.checked??!1)),u.push(this.parse(a.tokens)),this.renderer.listItem(u)});return this.renderer.elIdList.pop(),this.renderer.list(s,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 s=i.header.map((p,m)=>this.renderer.tableCell(this.parseInline(p.tokens),{header:!0,align:r.align[m]}));this.renderer.elIdList.pop();const a=this.renderer.tableRow(s),u=this.renderer.tableHeader(a);this.renderer.elIdList.push(0);const l=i.rows.map(p=>{this.renderer.elIdList.push(0);const m=p.map((d,g)=>this.renderer.tableCell(this.parseInline(d.tokens),{header:!1,align:r.align[g]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(m)});this.renderer.elIdList.pop();const f=this.renderer.tableBody(l);return this.renderer.table([u,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(Bm(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(Bm(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}},ZI=GI,xn,Ze,st,Nc,Sv,VI=(Sv=class{constructor(e={}){vt(this,Ze);vt(this,xn);this.elIdList=[];const{renderer:t}=e;He(this,xn,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,i])=>{const s=r,a=i;!this[s]||s==="elementId"||s==="elIdList"||typeof a!="function"||Object.defineProperty(this,s,{value(...u){return de(this,Ze,Nc).call(this),a.apply(this,u)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return de(this,Ze,st).call(this,`h${t}`,e)}paragraph(e){return de(this,Ze,st).call(this,"p",e)}link(e,t){const r=Wm(e,X(this,xn).baseURL),i=X(this,xn).openLinksInNewTab?"_blank":null;return de(this,Ze,st).call(this,"a",t,{href:r,target:i})}image(e,t,r=null){const i=Wm(e,X(this,xn).baseURL);return de(this,Ze,st).call(this,"img",null,{src:i,alt:t,title:r})}codespan(e,t=null){const r=t?`${X(this,xn).langPrefix}${t}`:null;return de(this,Ze,st).call(this,"code",e,{className:r})}code(e,t){return de(this,Ze,st).call(this,"pre",this.codespan(e,t))}blockquote(e){return de(this,Ze,st).call(this,"blockquote",e)}list(e,t,r){return de(this,Ze,st).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return de(this,Ze,st).call(this,"li",e)}checkbox(e){return de(this,Ze,st).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return de(this,Ze,st).call(this,"table",e)}tableHeader(e){return de(this,Ze,st).call(this,"thead",e)}tableBody(e){return de(this,Ze,st).call(this,"tbody",e)}tableRow(e){return de(this,Ze,st).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return de(this,Ze,st).call(this,r,e,{align:t.align})}strong(e){return de(this,Ze,st).call(this,"strong",e)}em(e){return de(this,Ze,st).call(this,"em",e)}del(e){return de(this,Ze,st).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return de(this,Ze,st).call(this,"hr")}br(){return de(this,Ze,st).call(this,"br")}},xn=new WeakMap,Ze=new WeakSet,st=function(e,t=null,r={}){const i={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return de(this,Ze,Nc).call(this),M.createElement(e,{...r,...i},t)},Nc=function(){this.elIdList[this.elIdList.length-1]+=1},Sv),KI=VI;const YI=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}`)},XI={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},JI=new s0,QI=e=>{YI(e);const t={...XI,...e},r=t.instance??JI,i={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},s=t.value??t.children??"",a=t.isInline?r.Lexer.lexInline(s,i):r.lexer(s,i),u=new ZI({renderer:new KI({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})});return M.createElement(M.Fragment,null,t.isInline?u.parseInline(a):u.parse(a))};var e$=QI,t$=e$;const r$=({children:e,label:t,placement:r="top",className:i,isDisabled:s,container:a})=>{const[u,l]=M.useState(null),f=M.useRef(null),[p,m]=M.useState(null),[d,g]=M.useState(!1),y=typeof t=="string",{styles:x,attributes:h}=uf(u,p,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),w=M.Children.map(e,v=>M.isValidElement(v)?M.cloneElement(v,{ref:l,onMouseEnter:()=>g(!0),onMouseLeave:()=>{f.current=setTimeout(()=>g(!1),50)}}):v);return s?I.jsx(I.Fragment,{children:w}):I.jsxs(I.Fragment,{children:[w,d&&t&&Qn.createPortal(I.jsx("div",{ref:m,style:{...x.popper,zIndex:1e5},...h.popper,className:Be(y?"select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md":void 0,i),onMouseEnter:()=>{f.current&&clearTimeout(f.current),g(!0)},onMouseLeave:()=>g(!1),children:y?I.jsx(t$,{openLinksInNewTab:!0,children:t}):t}),a||document.body)]})},u0=({referenceElement:e,label:t})=>{const[r,i]=M.useState(null),{styles:s,attributes:a}=uf(e,r,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{rootBoundary:"viewport"}}]});return I.jsx("div",{className:"rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",ref:i,style:{...s.popper,zIndex:1e5},...a.popper,children:t})},n$=Sc.keyframes`
193
+ `}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
194
+ `}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>${hn(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),s=oy(t);if(s===null)return o;t=s;let l='<a href="'+t+'"';return r&&(l+=' title="'+hn(r)+'"'),l+=">"+o+"</a>",l}image({href:t,title:r,text:n,tokens:o}){o&&(n=this.parser.parseInline(o,this.parser.textRenderer));let s=oy(t);if(s===null)return hn(n);t=s;let l=`<img src="${t}" alt="${n}"`;return r&&(l+=` title="${hn(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:hn(t.text)}},th=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""}},Qr=class rp{constructor(t){Ae(this,"options");Ae(this,"renderer");Ae(this,"textRenderer");this.options=t||Xo,this.options.renderer=this.options.renderer||new jc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new th}static parse(t,r){return new rp(r).parse(t)}static parseInline(t,r){return new rp(r).parseInline(t)}parse(t,r=!0){var o,s;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&s[c.type]){let d=c,g=this.options.extensions.renderers[d.type].call({parser:this},d);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(d.type)){n+=g||"";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,g=this.renderer.text(d);for(;l+1<t.length&&t[l+1].type==="text";)d=t[++l],g+=`
195
+ `+this.renderer.text(d);r?n+=this.renderer.paragraph({type:"paragraph",raw:g,text:g,tokens:[{type:"text",raw:g,text:g,escaped:!0}]}):n+=g;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,s;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&s[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}},lc,Js=(lc=class{constructor(t){Ae(this,"options");Ae(this,"block");this.options=t||Xo}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Jr.lex:Jr.lexInline}provideParser(){return this.block?Qr.parse:Qr.parseInline}},Ae(lc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ae(lc,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),lc),O1=class{constructor(...t){Ae(this,"defaults",Gp());Ae(this,"options",this.setOptions);Ae(this,"parse",this.parseMarkdown(!0));Ae(this,"parseInline",this.parseMarkdown(!1));Ae(this,"Parser",Qr);Ae(this,"Renderer",jc);Ae(this,"TextRenderer",th);Ae(this,"Lexer",Jr);Ae(this,"Tokenizer",$c);Ae(this,"Hooks",Js);this.use(...t)}walkTokens(t,r){var o,s;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;(s=(o=this.defaults.extensions)==null?void 0:o.childTokens)!=null&&s[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(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 u=s.renderer.apply(this,c);return u===!1&&(u=l.apply(this,c)),u}: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)}),o.extensions=r),n.renderer){let s=this.defaults.renderer||new jc(this.defaults);for(let l in n.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,u=n.renderer[c],d=s[c];s[c]=(...g)=>{let p=u.apply(s,g);return p===!1&&(p=d.apply(s,g)),p||""}}o.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new $c(this.defaults);for(let l in n.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,u=n.tokenizer[c],d=s[c];s[c]=(...g)=>{let p=u.apply(s,g);return p===!1&&(p=d.apply(s,g)),p}}o.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new Js;for(let l in n.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,u=n.hooks[c],d=s[c];Js.passThroughHooks.has(l)?s[c]=g=>{if(this.defaults.async&&Js.passThroughHooksRespectAsync.has(l))return(async()=>{let h=await u.call(s,g);return d.call(s,h)})();let p=u.call(s,g);return d.call(s,p)}:s[c]=(...g)=>{if(this.defaults.async)return(async()=>{let h=await u.apply(s,g);return h===!1&&(h=await d.apply(s,g)),h})();let p=u.apply(s,g);return p===!1&&(p=d.apply(s,g)),p}}o.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,l=n.walkTokens;o.walkTokens=function(c){let u=[];return u.push(l.call(this,c)),s&&(u=u.concat(s.call(this,c))),u}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Jr.lex(t,r??this.defaults)}parser(t,r){return Qr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,n)=>{let o={...n},s={...this.defaults,...o},l=this.onError(!!s.silent,!!s.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(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let c=s.hooks?await s.hooks.preprocess(r):r,u=await(s.hooks?await s.hooks.provideLexer():t?Jr.lex:Jr.lexInline)(c,s),d=s.hooks?await s.hooks.processAllTokens(u):u;s.walkTokens&&await Promise.all(this.walkTokens(d,s.walkTokens));let g=await(s.hooks?await s.hooks.provideParser():t?Qr.parse:Qr.parseInline)(d,s);return s.hooks?await s.hooks.postprocess(g):g})().catch(l);try{s.hooks&&(r=s.hooks.preprocess(r));let c=(s.hooks?s.hooks.provideLexer():t?Jr.lex:Jr.lexInline)(r,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let u=(s.hooks?s.hooks.provideParser():t?Qr.parse:Qr.parseInline)(c,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(c){return l(c)}}}onError(t,r){return n=>{if(n.message+=`
196
+ Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+hn(n.message+"",!0)+"</pre>";return r?Promise.resolve(o):o}if(r)return Promise.reject(n);throw n}}},Zo=new O1;function it(e,t){return Zo.parse(e,t)}it.options=it.setOptions=function(e){return Zo.setOptions(e),it.defaults=Zo.defaults,g1(it.defaults),it};it.getDefaults=Gp;it.defaults=Xo;it.use=function(...e){return Zo.use(...e),it.defaults=Zo.defaults,g1(it.defaults),it};it.walkTokens=function(e,t){return Zo.walkTokens(e,t)};it.parseInline=Zo.parseInline;it.Parser=Qr;it.parser=Qr.parse;it.Renderer=jc;it.TextRenderer=th;it.Lexer=Jr;it.lexer=Jr.lex;it.Tokenizer=$c;it.Hooks=Js;it.parse=it;it.options;it.setOptions;it.use;it.walkTokens;it.parseInline;Qr.parse;Jr.lex;const dL={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},T1=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,fL=RegExp(T1.source),ay=(e="")=>fL.test(e)?e.replace(T1,t=>dL[t]||"'"):e,ly=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var pL=class{constructor(e){Ae(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(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(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,g)=>this.renderer.tableCell(this.parseInline(d.tokens),{header:!0,align:r.align[g]}));this.renderer.elIdList.pop();const s=this.renderer.tableRow(o),l=this.renderer.tableHeader(s);this.renderer.elIdList.push(0);const c=n.rows.map(d=>{this.renderer.elIdList.push(0);const g=d.map((p,h)=>this.renderer.tableCell(this.parseInline(p.tokens),{header:!1,align:r.align[h]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(g)});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(ay(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(ay(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}},hL=pL,fo,ut,Ot,np,Wy,gL=(Wy=class{constructor(e={}){Ht(this,ut);Ae(this,"elIdList",[]);Ht(this,fo);const{renderer:t}=e;rt(this,fo,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,n])=>{const o=r,s=n;!this[o]||o==="elementId"||o==="elIdList"||typeof s!="function"||Object.defineProperty(this,o,{value(...l){return Ee(this,ut,np).call(this),s.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return Ee(this,ut,Ot).call(this,`h${t}`,e)}paragraph(e){return Ee(this,ut,Ot).call(this,"p",e)}link(e,t){const r=ly(e,le(this,fo).baseURL),n=le(this,fo).openLinksInNewTab?"_blank":null;return Ee(this,ut,Ot).call(this,"a",t,{href:r,target:n})}image(e,t,r=null){const n=ly(e,le(this,fo).baseURL);return Ee(this,ut,Ot).call(this,"img",null,{src:n,alt:t,title:r})}codespan(e,t=null){const r=t?`${le(this,fo).langPrefix}${t}`:null;return Ee(this,ut,Ot).call(this,"code",e,{className:r})}code(e,t){return Ee(this,ut,Ot).call(this,"pre",this.codespan(e,t))}blockquote(e){return Ee(this,ut,Ot).call(this,"blockquote",e)}list(e,t,r){return Ee(this,ut,Ot).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return Ee(this,ut,Ot).call(this,"li",e)}checkbox(e){return Ee(this,ut,Ot).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return Ee(this,ut,Ot).call(this,"table",e)}tableHeader(e){return Ee(this,ut,Ot).call(this,"thead",e)}tableBody(e){return Ee(this,ut,Ot).call(this,"tbody",e)}tableRow(e){return Ee(this,ut,Ot).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return Ee(this,ut,Ot).call(this,r,e,{align:t.align})}strong(e){return Ee(this,ut,Ot).call(this,"strong",e)}em(e){return Ee(this,ut,Ot).call(this,"em",e)}del(e){return Ee(this,ut,Ot).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return Ee(this,ut,Ot).call(this,"hr")}br(){return Ee(this,ut,Ot).call(this,"br")}},fo=new WeakMap,ut=new WeakSet,Ot=function(e,t=null,r={}){const n={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return Ee(this,ut,np).call(this),M.createElement(e,{...r,...n},t)},np=function(){this.elIdList[this.elIdList.length-1]+=1},Wy),vL=gL;const mL=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}`)},bL={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},yL=new O1,wL=e=>{mL(e);const t={...bL,...e},r=t.instance??yL,n={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},o=t.value??t.children??"",s=t.isInline?r.Lexer.lexInline(o,n):r.lexer(o,n),l={renderer:new vL({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new hL(l),u=t.isInline?c.parseInline(s):c.parse(s);return M.createElement(M.Fragment,null,u)};var xL=wL,SL=xL;const EL=({children:e,label:t,placement:r="top",className:n,isDisabled:o,container:s})=>{const[l,c]=M.useState(null),u=M.useRef(null),[d,g]=M.useState(null),[p,h]=M.useState(!1),b=typeof t=="string",{styles:S,attributes:v}=Rp(l,d,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),y=()=>{u.current&&(clearTimeout(u.current),u.current=null)};M.useEffect(()=>{if(!p||!l)return;let w=!1,x=!1;const k=new IntersectionObserver(([_])=>{if(!w){x=_.isIntersecting,w=!0;return}x&&!_.isIntersecting&&(y(),h(!1)),x=_.isIntersecting},{threshold:0});return k.observe(l),()=>k.disconnect()},[p,l]),M.useEffect(()=>()=>y(),[]);const m=M.Children.map(e,w=>M.isValidElement(w)?M.cloneElement(w,{ref:c,onMouseEnter:()=>{y(),h(!0)},onMouseLeave:()=>{y(),h(!1)}}):w);return o?T.jsx(T.Fragment,{children:m}):T.jsxs(T.Fragment,{children:[m,p&&t&&nn.createPortal(T.jsx("div",{ref:g,style:{...S.popper,zIndex:1e5},...v.popper,className:dt(b?"select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md":void 0,n),onMouseEnter:()=>{y(),h(!0)},onMouseLeave:()=>{y(),h(!1)},children:b?T.jsx(SL,{openLinksInNewTab:!0,children:t}):t}),s||document.body)]})},_L=({referenceElement:e,label:t})=>{const[r,n]=M.useState(null),{styles:o,attributes:s}=Rp(e,r,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{rootBoundary:"viewport"}}]});return T.jsx("div",{className:"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,zIndex:1e5},...s.popper,children:t})},kL=$f.keyframes`
150
197
  to {
151
198
  fill: url(#d);
152
199
  stroke-dashoffset: 0;
153
200
  }
154
- `,l0=Aa.svg`
201
+ `,A1=Dc.svg`
155
202
  & .e {
156
203
  fill: url(#d);
157
204
  }
@@ -162,7 +209,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
162
209
  fill: transparent;
163
210
  stroke-dasharray: 700;
164
211
  stroke-dashoffset: 700;
165
- animation: ${n$} 1.5s ease-in-out infinite alternate-reverse;
212
+ animation: ${kL} 1.5s ease-in-out infinite alternate-reverse;
166
213
  }
167
214
 
168
215
  & #circle {
@@ -172,36 +219,39 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
172
219
  stroke-dasharray: 700;
173
220
  stroke-dashoffset: 700;
174
221
  }
175
- `,i$=({message:e,version:t})=>I.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:I.jsxs("div",{className:"flex flex-col text-center",children:[I.jsx("div",{className:"relative mr-4 self-center",children:I.jsx("div",{className:"flex items-center justify-center rounded",children:I.jsxs(l0,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[I.jsx("defs",{children:I.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[I.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:I.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),I.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:I.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),I.jsx("g",{id:"a"}),I.jsx("g",{id:"b",children:I.jsx("g",{id:"c",children:I.jsxs("g",{children:[I.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"}),I.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"})]})})})]})})}),I.jsxs("div",{children:[I.jsx("span",{className:"text-xs text-grey-200",children:t}),I.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var Oo={exports:{}};/**
222
+ `,OL=({message:e,version:t})=>T.jsx(yo,{depth:1,className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center text-body",children:T.jsxs("div",{className:"flex flex-col text-center",children:[T.jsx("div",{className:"relative mr-4 self-center",children:T.jsx("div",{className:"flex items-center justify-center rounded",children:T.jsxs(A1,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[T.jsx("defs",{children:T.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[T.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:T.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),T.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:T.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),T.jsx("g",{id:"a"}),T.jsx("g",{id:"b",children:T.jsx("g",{id:"c",children:T.jsxs("g",{children:[T.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"}),T.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"})]})})})]})})}),T.jsxs("div",{children:[T.jsx("span",{className:"text-xs text-inactive-text",children:t}),T.jsx("h2",{className:"text-lg text-muted",children:e})]})]})});var TL=Object.defineProperty,AL=(e,t,r)=>t in e?TL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sf=(e,t,r)=>(AL(e,typeof t!="symbol"?t+"":t,r),r);let RL=class{constructor(){Sf(this,"current",this.detect()),Sf(this,"handoffState","pending"),Sf(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"}},_c=new RL,ma=(e,t)=>{_c.isServer?M.useEffect(e,t):M.useLayoutEffect(e,t)};function Ii(e){let t=M.useRef(e);return ma(()=>{t.current=e},[e]),t}let Hn=function(e){let t=Ii(e);return M.useCallback((...r)=>t.current(...r),[t])};function CL(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Pa(){let e=[],t={addEventListener(r,n,o,s){return r.addEventListener(n,o,s),t.add(()=>r.removeEventListener(n,o,s))},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 CL(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let s=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:s})})},group(r){let n=Pa();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 R1(){let[e]=M.useState(Pa);return M.useEffect(()=>()=>e.dispose(),[e]),e}function IL(){let e=typeof document>"u";return"useSyncExternalStore"in H?(t=>t.useSyncExternalStore)(H)(()=>()=>{},()=>!1,()=>!e):!1}function C1(){let e=IL(),[t,r]=H.useState(_c.isHandoffComplete);return t&&_c.isHandoffComplete===!1&&r(!1),H.useEffect(()=>{t!==!0&&r(!0)},[t]),H.useEffect(()=>_c.handoff(),[]),e?!1:t}function xn(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,xn),n}let PL=Symbol();function I1(...e){let t=M.useRef(e);M.useEffect(()=>{t.current=e},[e]);let r=Hn(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[PL]))?void 0:r}function Fc(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var P1=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(P1||{}),go=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(go||{});function N1({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:s=!0,name:l,mergeRefs:c}){c=c??NL;let u=M1(t,e);if(s)return nc(u,r,n,l,c);let d=o??0;if(d&2){let{static:g=!1,...p}=u;if(g)return nc(p,r,n,l,c)}if(d&1){let{unmount:g=!0,...p}=u;return xn(g?0:1,{0(){return null},1(){return nc({...p,hidden:!0,style:{display:"none"}},r,n,l,c)}})}return nc(u,r,n,l,c)}function nc(e,t={},r,n,o){let{as:s=r,children:l,refName:c="ref",...u}=Ef(e,["unmount","static"]),d=e.ref!==void 0?{[c]:e.ref}:{},g=typeof l=="function"?l(t):l;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let p={};if(t){let h=!1,b=[];for(let[S,v]of Object.entries(t))typeof v=="boolean"&&(h=!0),v===!0&&b.push(S);h&&(p["data-headlessui-state"]=b.join(" "))}if(s===M.Fragment&&Object.keys(cy(u)).length>0){if(!M.isValidElement(g)||Array.isArray(g)&&g.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(`
223
+ `),"","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(`
224
+ `)].join(`
225
+ `));let h=g.props,b=typeof(h==null?void 0:h.className)=="function"?(...v)=>Fc(h==null?void 0:h.className(...v),u.className):Fc(h==null?void 0:h.className,u.className),S=b?{className:b}:{};return M.cloneElement(g,Object.assign({},M1(g.props,cy(Ef(u,["ref"]))),p,d,{ref:o(g.ref,d.ref)},S))}return M.createElement(s,Object.assign({},Ef(u,["ref"]),s!==M.Fragment&&d,s!==M.Fragment&&p),g)}function NL(...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 M1(...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,...s){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,...s)}}});return t}function rh(e){var t;return Object.assign(M.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function cy(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Ef(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let nh=M.createContext(null);nh.displayName="OpenClosedContext";var Fn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Fn||{});function D1(){return M.useContext(nh)}function ML({value:e,children:t}){return M.createElement(nh.Provider,{value:e},t)}function oh(){let e=M.useRef(!1);return ma(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function DL(e=0){let[t,r]=M.useState(e),n=oh(),o=M.useCallback(u=>{n.current&&r(d=>d|u)},[t,n]),s=M.useCallback(u=>!!(t&u),[t]),l=M.useCallback(u=>{n.current&&r(d=>d&~u)},[r,n]),c=M.useCallback(u=>{n.current&&r(d=>d^u)},[r]);return{flags:t,addFlag:o,hasFlag:s,removeFlag:l,toggleFlag:c}}function LL(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function _f(e,...t){e&&t.length>0&&e.classList.add(...t)}function kf(e,...t){e&&t.length>0&&e.classList.remove(...t)}function zL(e,t){let r=Pa();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[s,l]=[n,o].map(u=>{let[d=0]=u.split(",").filter(Boolean).map(g=>g.includes("ms")?parseFloat(g):parseFloat(g)*1e3).sort((g,p)=>p-g);return d}),c=s+l;if(c!==0){r.group(d=>{d.setTimeout(()=>{t(),d.dispose()},c),d.addEventListener(e,"transitionrun",g=>{g.target===g.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 $L(e,t,r,n){let o=r?"enter":"leave",s=Pa(),l=n!==void 0?LL(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=xn(o,{enter:()=>t.enter,leave:()=>t.leave}),u=xn(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),d=xn(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return kf(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),_f(e,...t.base,...c,...d),s.nextFrame(()=>{kf(e,...t.base,...c,...d),_f(e,...t.base,...c,...u),zL(e,()=>(kf(e,...t.base,...c),_f(e,...t.base,...t.entered),l()))}),s.dispose}function jL({immediate:e,container:t,direction:r,classes:n,onStart:o,onStop:s}){let l=oh(),c=R1(),u=Ii(r);ma(()=>{e&&(u.current="enter")},[e]),ma(()=>{let d=Pa();c.add(d.dispose);let g=t.current;if(g&&u.current!=="idle"&&l.current)return d.dispose(),o.current(u.current),d.add($L(g,n.current,u.current==="enter",()=>{d.dispose(),s.current(u.current)})),d.dispose},[r])}function uo(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let au=M.createContext(null);au.displayName="TransitionContext";var FL=(e=>(e.Visible="visible",e.Hidden="hidden",e))(FL||{});function BL(){let e=M.useContext(au);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function HL(){let e=M.useContext(lu);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let lu=M.createContext(null);lu.displayName="NestingContext";function cu(e){return"children"in e?cu(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function L1(e,t){let r=Ii(e),n=M.useRef([]),o=oh(),s=R1(),l=Hn((b,S=go.Hidden)=>{let v=n.current.findIndex(({el:y})=>y===b);v!==-1&&(xn(S,{[go.Unmount](){n.current.splice(v,1)},[go.Hidden](){n.current[v].state="hidden"}}),s.microTask(()=>{var y;!cu(n)&&o.current&&((y=r.current)==null||y.call(r))}))}),c=Hn(b=>{let S=n.current.find(({el:v})=>v===b);return S?S.state!=="visible"&&(S.state="visible"):n.current.push({el:b,state:"visible"}),()=>l(b,go.Unmount)}),u=M.useRef([]),d=M.useRef(Promise.resolve()),g=M.useRef({enter:[],leave:[],idle:[]}),p=Hn((b,S,v)=>{u.current.splice(0),t&&(t.chains.current[S]=t.chains.current[S].filter(([y])=>y!==b)),t==null||t.chains.current[S].push([b,new Promise(y=>{u.current.push(y)})]),t==null||t.chains.current[S].push([b,new Promise(y=>{Promise.all(g.current[S].map(([m,w])=>w)).then(()=>y())})]),S==="enter"?d.current=d.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(S)):v(S)}),h=Hn((b,S,v)=>{Promise.all(g.current[S].splice(0).map(([y,m])=>m)).then(()=>{var y;(y=u.current.shift())==null||y()}).then(()=>v(S))});return M.useMemo(()=>({children:n,register:c,unregister:l,onStart:p,onStop:h,wait:d,chains:g}),[c,l,n,p,h,g,d])}function WL(){}let VL=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function uy(e){var t;let r={};for(let n of VL)r[n]=(t=e[n])!=null?t:WL;return r}function UL(e){let t=M.useRef(uy(e));return M.useEffect(()=>{t.current=uy(e)},[e]),t}let qL="div",z1=P1.RenderStrategy;function GL(e,t){var r,n;let{beforeEnter:o,afterEnter:s,beforeLeave:l,afterLeave:c,enter:u,enterFrom:d,enterTo:g,entered:p,leave:h,leaveFrom:b,leaveTo:S,...v}=e,y=M.useRef(null),m=I1(y,t),w=(r=v.unmount)==null||r?go.Unmount:go.Hidden,{show:x,appear:k,initial:_}=BL(),[R,j]=M.useState(x?"visible":"hidden"),I=HL(),{register:L,unregister:W}=I;M.useEffect(()=>L(y),[L,y]),M.useEffect(()=>{if(w===go.Hidden&&y.current){if(x&&R!=="visible"){j("visible");return}return xn(R,{hidden:()=>W(y),visible:()=>L(y)})}},[R,y,L,W,x,w]);let $=Ii({base:uo(v.className),enter:uo(u),enterFrom:uo(d),enterTo:uo(g),entered:uo(p),leave:uo(h),leaveFrom:uo(b),leaveTo:uo(S)}),D=UL({beforeEnter:o,afterEnter:s,beforeLeave:l,afterLeave:c}),U=C1();M.useEffect(()=>{if(U&&R==="visible"&&y.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,R,U]);let V=_&&!k,N=k&&x&&_,X=!U||V?"idle":x?"enter":"leave",ee=DL(0),Y=Hn(Z=>xn(Z,{enter:()=>{ee.addFlag(Fn.Opening),D.current.beforeEnter()},leave:()=>{ee.addFlag(Fn.Closing),D.current.beforeLeave()},idle:()=>{}})),ge=Hn(Z=>xn(Z,{enter:()=>{ee.removeFlag(Fn.Opening),D.current.afterEnter()},leave:()=>{ee.removeFlag(Fn.Closing),D.current.afterLeave()},idle:()=>{}})),P=L1(()=>{j("hidden"),W(y)},I),F=M.useRef(!1);jL({immediate:N,container:y,classes:$,direction:X,onStart:Ii(Z=>{F.current=!0,P.onStart(y,Z,Y)}),onStop:Ii(Z=>{F.current=!1,P.onStop(y,Z,ge),Z==="leave"&&!cu(P)&&(j("hidden"),W(y))})});let J=v,te={ref:m};return N?J={...J,className:Fc(v.className,...$.current.enter,...$.current.enterFrom)}:F.current&&(J.className=Fc(v.className,(n=y.current)==null?void 0:n.className),J.className===""&&delete J.className),M.createElement(lu.Provider,{value:P},M.createElement(ML,{value:xn(R,{visible:Fn.Open,hidden:Fn.Closed})|ee.flags},N1({ourProps:te,theirProps:J,defaultTag:qL,features:z1,visible:R==="visible",name:"Transition.Child"})))}function ZL(e,t){let{show:r,appear:n=!1,unmount:o=!0,...s}=e,l=M.useRef(null),c=I1(l,t);C1();let u=D1();if(r===void 0&&u!==null&&(r=(u&Fn.Open)===Fn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,g]=M.useState(r?"visible":"hidden"),p=L1(()=>{g("hidden")}),[h,b]=M.useState(!0),S=M.useRef([r]);ma(()=>{h!==!1&&S.current[S.current.length-1]!==r&&(S.current.push(r),b(!1))},[S,r]);let v=M.useMemo(()=>({show:r,appear:n,initial:h}),[r,n,h]);M.useEffect(()=>{if(r)g("visible");else if(!cu(p))g("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&&g("hidden")}},[r,p]);let y={unmount:o},m=Hn(()=>{var x;h&&b(!1),(x=e.beforeEnter)==null||x.call(e)}),w=Hn(()=>{var x;h&&b(!1),(x=e.beforeLeave)==null||x.call(e)});return M.createElement(lu.Provider,{value:p},M.createElement(au.Provider,{value:v},N1({ourProps:{...y,as:M.Fragment,children:M.createElement($1,{ref:c,...y,...s,beforeEnter:m,beforeLeave:w})},theirProps:{},defaultTag:M.Fragment,features:z1,visible:d==="visible",name:"Transition"})))}function YL(e,t){let r=M.useContext(au)!==null,n=D1()!==null;return M.createElement(M.Fragment,null,!r&&n?M.createElement(op,{ref:t,...e}):M.createElement($1,{ref:t,...e}))}let op=rh(ZL),$1=rh(GL),KL=rh(YL),Bc=Object.assign(op,{Child:KL,Root:op});var Qs={exports:{}};/**
176
226
  * @license
177
227
  * Lodash <https://lodash.com/>
178
228
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
179
229
  * Released under MIT license <https://lodash.com/license>
180
230
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
181
231
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
182
- */var o$=Oo.exports,Hm;function s$(){return Hm||(Hm=1,(function(e,t){(function(){var r,i="4.18.1",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",f="Invalid `imports` option passed into `_.template`",p="__lodash_hash_undefined__",m=500,d="__lodash_placeholder__",g=1,y=2,x=4,h=1,w=2,v=1,S=2,E=4,R=8,T=16,C=32,W=64,N=128,F=256,q=512,j=30,D="...",H=800,G=16,k=1,Q=2,J=3,re=1/0,ce=9007199254740991,Z=17976931348623157e292,te=NaN,ne=4294967295,ue=ne-1,ie=ne>>>1,he=[["ary",N],["bind",v],["bindKey",S],["curry",R],["curryRight",T],["flip",q],["partial",C],["partialRight",W],["rearg",F]],fe="[object Arguments]",ve="[object Array]",xe="[object AsyncFunction]",Oe="[object Boolean]",_e="[object Date]",at="[object DOMException]",oe="[object Error]",dt="[object Function]",zr="[object GeneratorFunction]",St="[object Map]",nn="[object Number]",ts="[object Null]",cr="[object Object]",rs="[object Promise]",Br="[object Proxy]",Sr="[object RegExp]",kt="[object Set]",on="[object String]",sn="[object Symbol]",ns="[object Undefined]",an="[object WeakMap]",is="[object WeakSet]",un="[object ArrayBuffer]",ni="[object DataView]",lu="[object Float32Array]",cu="[object Float64Array]",fu="[object Int8Array]",du="[object Int16Array]",pu="[object Int32Array]",hu="[object Uint8Array]",gu="[object Uint8ClampedArray]",mu="[object Uint16Array]",vu="[object Uint32Array]",Vb=/\b__p \+= '';/g,Kb=/\b(__p \+=) '' \+/g,Yb=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ud=/&(?:amp|lt|gt|quot|#39);/g,ld=/[&<>"']/g,Xb=RegExp(ud.source),Jb=RegExp(ld.source),Qb=/<%-([\s\S]+?)%>/g,ew=/<%([\s\S]+?)%>/g,cd=/<%=([\s\S]+?)%>/g,tw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rw=/^\w*$/,nw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yu=/[\\^$.*+?()[\]{}|]/g,iw=RegExp(yu.source),bu=/^\s+/,ow=/\s/,sw=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,aw=/\{\n\/\* \[wrapped with (.+)\] \*/,uw=/,? & /,lw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fd=/[()=,{}\[\]\/\s]/,cw=/\\(\\)?/g,fw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dd=/\w*$/,dw=/^[-+]0x[0-9a-f]+$/i,pw=/^0b[01]+$/i,hw=/^\[object .+?Constructor\]$/,gw=/^0o[0-7]+$/i,mw=/^(?:0|[1-9]\d*)$/,vw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,os=/($^)/,yw=/['\n\r\u2028\u2029\\]/g,ss="\\ud800-\\udfff",bw="\\u0300-\\u036f",ww="\\ufe20-\\ufe2f",xw="\\u20d0-\\u20ff",pd=bw+ww+xw,hd="\\u2700-\\u27bf",gd="a-z\\xdf-\\xf6\\xf8-\\xff",Sw="\\xac\\xb1\\xd7\\xf7",Ew="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",_w="\\u2000-\\u206f",Tw=" \\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",md="A-Z\\xc0-\\xd6\\xd8-\\xde",vd="\\ufe0e\\ufe0f",yd=Sw+Ew+_w+Tw,wu="['’]",Ow="["+ss+"]",bd="["+yd+"]",as="["+pd+"]",wd="\\d+",Aw="["+hd+"]",xd="["+gd+"]",Sd="[^"+ss+yd+wd+hd+gd+md+"]",xu="\\ud83c[\\udffb-\\udfff]",Rw="(?:"+as+"|"+xu+")",Ed="[^"+ss+"]",Su="(?:\\ud83c[\\udde6-\\uddff]){2}",Eu="[\\ud800-\\udbff][\\udc00-\\udfff]",ii="["+md+"]",_d="\\u200d",Td="(?:"+xd+"|"+Sd+")",Pw="(?:"+ii+"|"+Sd+")",Od="(?:"+wu+"(?:d|ll|m|re|s|t|ve))?",Ad="(?:"+wu+"(?:D|LL|M|RE|S|T|VE))?",Rd=Rw+"?",Pd="["+vd+"]?",Cw="(?:"+_d+"(?:"+[Ed,Su,Eu].join("|")+")"+Pd+Rd+")*",kw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Iw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cd=Pd+Rd+Cw,$w="(?:"+[Aw,Su,Eu].join("|")+")"+Cd,Lw="(?:"+[Ed+as+"?",as,Su,Eu,Ow].join("|")+")",Mw=RegExp(wu,"g"),Dw=RegExp(as,"g"),_u=RegExp(xu+"(?="+xu+")|"+Lw+Cd,"g"),Nw=RegExp([ii+"?"+xd+"+"+Od+"(?="+[bd,ii,"$"].join("|")+")",Pw+"+"+Ad+"(?="+[bd,ii+Td,"$"].join("|")+")",ii+"?"+Td+"+"+Od,ii+"+"+Ad,Iw,kw,wd,$w].join("|"),"g"),Fw=RegExp("["+_d+ss+pd+vd+"]"),jw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zw=["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"],Bw=-1,Ve={};Ve[lu]=Ve[cu]=Ve[fu]=Ve[du]=Ve[pu]=Ve[hu]=Ve[gu]=Ve[mu]=Ve[vu]=!0,Ve[fe]=Ve[ve]=Ve[un]=Ve[Oe]=Ve[ni]=Ve[_e]=Ve[oe]=Ve[dt]=Ve[St]=Ve[nn]=Ve[cr]=Ve[Sr]=Ve[kt]=Ve[on]=Ve[an]=!1;var Ge={};Ge[fe]=Ge[ve]=Ge[un]=Ge[ni]=Ge[Oe]=Ge[_e]=Ge[lu]=Ge[cu]=Ge[fu]=Ge[du]=Ge[pu]=Ge[St]=Ge[nn]=Ge[cr]=Ge[Sr]=Ge[kt]=Ge[on]=Ge[sn]=Ge[hu]=Ge[gu]=Ge[mu]=Ge[vu]=!0,Ge[oe]=Ge[dt]=Ge[an]=!1;var Ww={À:"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"},Hw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Uw={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},qw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gw=parseFloat,Zw=parseInt,kd=typeof Zs=="object"&&Zs&&Zs.Object===Object&&Zs,Vw=typeof self=="object"&&self&&self.Object===Object&&self,gt=kd||Vw||Function("return this")(),Tu=t&&!t.nodeType&&t,kn=Tu&&!0&&e&&!e.nodeType&&e,Id=kn&&kn.exports===Tu,Ou=Id&&kd.process,Jt=(function(){try{var z=kn&&kn.require&&kn.require("util").types;return z||Ou&&Ou.binding&&Ou.binding("util")}catch{}})(),$d=Jt&&Jt.isArrayBuffer,Ld=Jt&&Jt.isDate,Md=Jt&&Jt.isMap,Dd=Jt&&Jt.isRegExp,Nd=Jt&&Jt.isSet,Fd=Jt&&Jt.isTypedArray;function jt(z,V,U){switch(U.length){case 0:return z.call(V);case 1:return z.call(V,U[0]);case 2:return z.call(V,U[0],U[1]);case 3:return z.call(V,U[0],U[1],U[2])}return z.apply(V,U)}function Kw(z,V,U,ae){for(var be=-1,Le=z==null?0:z.length;++be<Le;){var ct=z[be];V(ae,ct,U(ct),z)}return ae}function zt(z,V){for(var U=-1,ae=z==null?0:z.length;++U<ae&&V(z[U],U,z)!==!1;);return z}function Yw(z,V){for(var U=z==null?0:z.length;U--&&V(z[U],U,z)!==!1;);return z}function jd(z,V){for(var U=-1,ae=z==null?0:z.length;++U<ae;)if(!V(z[U],U,z))return!1;return!0}function ln(z,V){for(var U=-1,ae=z==null?0:z.length,be=0,Le=[];++U<ae;){var ct=z[U];V(ct,U,z)&&(Le[be++]=ct)}return Le}function us(z,V){var U=z==null?0:z.length;return!!U&&oi(z,V,0)>-1}function Au(z,V,U){for(var ae=-1,be=z==null?0:z.length;++ae<be;)if(U(V,z[ae]))return!0;return!1}function Ye(z,V){for(var U=-1,ae=z==null?0:z.length,be=Array(ae);++U<ae;)be[U]=V(z[U],U,z);return be}function cn(z,V){for(var U=-1,ae=V.length,be=z.length;++U<ae;)z[be+U]=V[U];return z}function Ru(z,V,U,ae){var be=-1,Le=z==null?0:z.length;for(ae&&Le&&(U=z[++be]);++be<Le;)U=V(U,z[be],be,z);return U}function Xw(z,V,U,ae){var be=z==null?0:z.length;for(ae&&be&&(U=z[--be]);be--;)U=V(U,z[be],be,z);return U}function Pu(z,V){for(var U=-1,ae=z==null?0:z.length;++U<ae;)if(V(z[U],U,z))return!0;return!1}var Jw=Cu("length");function Qw(z){return z.split("")}function e1(z){return z.match(lw)||[]}function zd(z,V,U){var ae;return U(z,function(be,Le,ct){if(V(be,Le,ct))return ae=Le,!1}),ae}function ls(z,V,U,ae){for(var be=z.length,Le=U+(ae?1:-1);ae?Le--:++Le<be;)if(V(z[Le],Le,z))return Le;return-1}function oi(z,V,U){return V===V?d1(z,V,U):ls(z,Bd,U)}function t1(z,V,U,ae){for(var be=U-1,Le=z.length;++be<Le;)if(ae(z[be],V))return be;return-1}function Bd(z){return z!==z}function Wd(z,V){var U=z==null?0:z.length;return U?Iu(z,V)/U:te}function Cu(z){return function(V){return V==null?r:V[z]}}function ku(z){return function(V){return z==null?r:z[V]}}function Hd(z,V,U,ae,be){return be(z,function(Le,ct,qe){U=ae?(ae=!1,Le):V(U,Le,ct,qe)}),U}function r1(z,V){var U=z.length;for(z.sort(V);U--;)z[U]=z[U].value;return z}function Iu(z,V){for(var U,ae=-1,be=z.length;++ae<be;){var Le=V(z[ae]);Le!==r&&(U=U===r?Le:U+Le)}return U}function $u(z,V){for(var U=-1,ae=Array(z);++U<z;)ae[U]=V(U);return ae}function n1(z,V){return Ye(V,function(U){return[U,z[U]]})}function Ud(z){return z&&z.slice(0,Vd(z)+1).replace(bu,"")}function Bt(z){return function(V){return z(V)}}function Lu(z,V){return Ye(V,function(U){return z[U]})}function Fi(z,V){return z.has(V)}function qd(z,V){for(var U=-1,ae=z.length;++U<ae&&oi(V,z[U],0)>-1;);return U}function Gd(z,V){for(var U=z.length;U--&&oi(V,z[U],0)>-1;);return U}function i1(z,V){for(var U=z.length,ae=0;U--;)z[U]===V&&++ae;return ae}var o1=ku(Ww),s1=ku(Hw);function a1(z){return"\\"+qw[z]}function u1(z,V){return z==null?r:z[V]}function si(z){return Fw.test(z)}function l1(z){return jw.test(z)}function c1(z){for(var V,U=[];!(V=z.next()).done;)U.push(V.value);return U}function Mu(z){var V=-1,U=Array(z.size);return z.forEach(function(ae,be){U[++V]=[be,ae]}),U}function Zd(z,V){return function(U){return z(V(U))}}function fn(z,V){for(var U=-1,ae=z.length,be=0,Le=[];++U<ae;){var ct=z[U];(ct===V||ct===d)&&(z[U]=d,Le[be++]=U)}return Le}function cs(z){var V=-1,U=Array(z.size);return z.forEach(function(ae){U[++V]=ae}),U}function f1(z){var V=-1,U=Array(z.size);return z.forEach(function(ae){U[++V]=[ae,ae]}),U}function d1(z,V,U){for(var ae=U-1,be=z.length;++ae<be;)if(z[ae]===V)return ae;return-1}function p1(z,V,U){for(var ae=U+1;ae--;)if(z[ae]===V)return ae;return ae}function ai(z){return si(z)?g1(z):Jw(z)}function fr(z){return si(z)?m1(z):Qw(z)}function Vd(z){for(var V=z.length;V--&&ow.test(z.charAt(V)););return V}var h1=ku(Uw);function g1(z){for(var V=_u.lastIndex=0;_u.test(z);)++V;return V}function m1(z){return z.match(_u)||[]}function v1(z){return z.match(Nw)||[]}var y1=(function z(V){V=V==null?gt:ui.defaults(gt.Object(),V,ui.pick(gt,zw));var U=V.Array,ae=V.Date,be=V.Error,Le=V.Function,ct=V.Math,qe=V.Object,Du=V.RegExp,b1=V.String,Qt=V.TypeError,fs=U.prototype,w1=Le.prototype,li=qe.prototype,ds=V["__core-js_shared__"],ps=w1.toString,De=li.hasOwnProperty,x1=0,Kd=(function(){var n=/[^.]+$/.exec(ds&&ds.keys&&ds.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),hs=li.toString,S1=ps.call(qe),E1=gt._,_1=Du("^"+ps.call(De).replace(yu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gs=Id?V.Buffer:r,dn=V.Symbol,ms=V.Uint8Array,Yd=gs?gs.allocUnsafe:r,vs=Zd(qe.getPrototypeOf,qe),Xd=qe.create,Jd=li.propertyIsEnumerable,ys=fs.splice,Qd=dn?dn.isConcatSpreadable:r,ji=dn?dn.iterator:r,In=dn?dn.toStringTag:r,bs=(function(){try{var n=Nn(qe,"defineProperty");return n({},"",{}),n}catch{}})(),T1=V.clearTimeout!==gt.clearTimeout&&V.clearTimeout,O1=ae&&ae.now!==gt.Date.now&&ae.now,A1=V.setTimeout!==gt.setTimeout&&V.setTimeout,ws=ct.ceil,xs=ct.floor,Nu=qe.getOwnPropertySymbols,R1=gs?gs.isBuffer:r,ep=V.isFinite,P1=fs.join,C1=Zd(qe.keys,qe),ft=ct.max,Et=ct.min,k1=ae.now,I1=V.parseInt,tp=ct.random,$1=fs.reverse,Fu=Nn(V,"DataView"),zi=Nn(V,"Map"),ju=Nn(V,"Promise"),ci=Nn(V,"Set"),Bi=Nn(V,"WeakMap"),Wi=Nn(qe,"create"),Ss=Bi&&new Bi,fi={},L1=Fn(Fu),M1=Fn(zi),D1=Fn(ju),N1=Fn(ci),F1=Fn(Bi),Es=dn?dn.prototype:r,Hi=Es?Es.valueOf:r,rp=Es?Es.toString:r;function O(n){if(nt(n)&&!Se(n)&&!(n instanceof Pe)){if(n instanceof er)return n;if(De.call(n,"__wrapped__"))return nh(n)}return new er(n)}var di=(function(){function n(){}return function(o){if(!et(o))return{};if(Xd)return Xd(o);n.prototype=o;var c=new n;return n.prototype=r,c}})();function _s(){}function er(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}O.templateSettings={escape:Qb,evaluate:ew,interpolate:cd,variable:"",imports:{_:O}},O.prototype=_s.prototype,O.prototype.constructor=O,er.prototype=di(_s.prototype),er.prototype.constructor=er;function Pe(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function j1(){var n=new Pe(this.__wrapped__);return n.__actions__=It(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=It(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=It(this.__views__),n}function z1(){if(this.__filtered__){var n=new Pe(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function B1(){var n=this.__wrapped__.value(),o=this.__dir__,c=Se(n),b=o<0,_=c?n.length:0,A=Qx(0,_,this.__views__),P=A.start,L=A.end,B=L-P,K=b?L:P-1,Y=this.__iteratees__,ee=Y.length,se=0,le=Et(B,this.__takeCount__);if(!c||!b&&_==B&&le==B)return Op(n,this.__actions__);var me=[];e:for(;B--&&se<le;){K+=o;for(var Te=-1,pe=n[K];++Te<ee;){var Re=Y[Te],Ce=Re.iteratee,Ut=Re.type,Pt=Ce(pe);if(Ut==Q)pe=Pt;else if(!Pt){if(Ut==k)continue e;break e}}me[se++]=pe}return me}Pe.prototype=di(_s.prototype),Pe.prototype.constructor=Pe;function $n(n){var o=-1,c=n==null?0:n.length;for(this.clear();++o<c;){var b=n[o];this.set(b[0],b[1])}}function W1(){this.__data__=Wi?Wi(null):{},this.size=0}function H1(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function U1(n){var o=this.__data__;if(Wi){var c=o[n];return c===p?r:c}return De.call(o,n)?o[n]:r}function q1(n){var o=this.__data__;return Wi?o[n]!==r:De.call(o,n)}function G1(n,o){var c=this.__data__;return this.size+=this.has(n)?0:1,c[n]=Wi&&o===r?p:o,this}$n.prototype.clear=W1,$n.prototype.delete=H1,$n.prototype.get=U1,$n.prototype.has=q1,$n.prototype.set=G1;function Wr(n){var o=-1,c=n==null?0:n.length;for(this.clear();++o<c;){var b=n[o];this.set(b[0],b[1])}}function Z1(){this.__data__=[],this.size=0}function V1(n){var o=this.__data__,c=Ts(o,n);if(c<0)return!1;var b=o.length-1;return c==b?o.pop():ys.call(o,c,1),--this.size,!0}function K1(n){var o=this.__data__,c=Ts(o,n);return c<0?r:o[c][1]}function Y1(n){return Ts(this.__data__,n)>-1}function X1(n,o){var c=this.__data__,b=Ts(c,n);return b<0?(++this.size,c.push([n,o])):c[b][1]=o,this}Wr.prototype.clear=Z1,Wr.prototype.delete=V1,Wr.prototype.get=K1,Wr.prototype.has=Y1,Wr.prototype.set=X1;function Hr(n){var o=-1,c=n==null?0:n.length;for(this.clear();++o<c;){var b=n[o];this.set(b[0],b[1])}}function J1(){this.size=0,this.__data__={hash:new $n,map:new(zi||Wr),string:new $n}}function Q1(n){var o=Ns(this,n).delete(n);return this.size-=o?1:0,o}function ex(n){return Ns(this,n).get(n)}function tx(n){return Ns(this,n).has(n)}function rx(n,o){var c=Ns(this,n),b=c.size;return c.set(n,o),this.size+=c.size==b?0:1,this}Hr.prototype.clear=J1,Hr.prototype.delete=Q1,Hr.prototype.get=ex,Hr.prototype.has=tx,Hr.prototype.set=rx;function Ln(n){var o=-1,c=n==null?0:n.length;for(this.__data__=new Hr;++o<c;)this.add(n[o])}function nx(n){return this.__data__.set(n,p),this}function ix(n){return this.__data__.has(n)}Ln.prototype.add=Ln.prototype.push=nx,Ln.prototype.has=ix;function dr(n){var o=this.__data__=new Wr(n);this.size=o.size}function ox(){this.__data__=new Wr,this.size=0}function sx(n){var o=this.__data__,c=o.delete(n);return this.size=o.size,c}function ax(n){return this.__data__.get(n)}function ux(n){return this.__data__.has(n)}function lx(n,o){var c=this.__data__;if(c instanceof Wr){var b=c.__data__;if(!zi||b.length<s-1)return b.push([n,o]),this.size=++c.size,this;c=this.__data__=new Hr(b)}return c.set(n,o),this.size=c.size,this}dr.prototype.clear=ox,dr.prototype.delete=sx,dr.prototype.get=ax,dr.prototype.has=ux,dr.prototype.set=lx;function np(n,o){var c=Se(n),b=!c&&jn(n),_=!c&&!b&&vn(n),A=!c&&!b&&!_&&mi(n),P=c||b||_||A,L=P?$u(n.length,b1):[],B=L.length;for(var K in n)(o||De.call(n,K))&&!(P&&(K=="length"||_&&(K=="offset"||K=="parent")||A&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||Gr(K,B)))&&L.push(K);return L}function ip(n){var o=n.length;return o?n[Yu(0,o-1)]:r}function cx(n,o){return Fs(It(n),Mn(o,0,n.length))}function fx(n){return Fs(It(n))}function zu(n,o,c){(c!==r&&!hr(n[o],c)||c===r&&!(o in n))&&Er(n,o,c)}function Ui(n,o,c){var b=n[o];(!(De.call(n,o)&&hr(b,c))||c===r&&!(o in n))&&Er(n,o,c)}function Ts(n,o){for(var c=n.length;c--;)if(hr(n[c][0],o))return c;return-1}function dx(n,o,c,b){return pn(n,function(_,A,P){o(b,_,c(_),P)}),b}function op(n,o){return n&&Tr(o,pt(o),n)}function px(n,o){return n&&Tr(o,Lt(o),n)}function Er(n,o,c){o=="__proto__"&&bs?bs(n,o,{configurable:!0,enumerable:!0,value:c,writable:!0}):n[o]=c}function Bu(n,o){for(var c=-1,b=o.length,_=U(b),A=n==null;++c<b;)_[c]=A?r:Sl(n,o[c]);return _}function Mn(n,o,c){return n===n&&(c!==r&&(n=n<=c?n:c),o!==r&&(n=n>=o?n:o)),n}function tr(n,o,c,b,_,A){var P,L=o&g,B=o&y,K=o&x;if(c&&(P=_?c(n,b,_,A):c(n)),P!==r)return P;if(!et(n))return n;var Y=Se(n);if(Y){if(P=tS(n),!L)return It(n,P)}else{var ee=_t(n),se=ee==dt||ee==zr;if(vn(n))return Pp(n,L);if(ee==cr||ee==fe||se&&!_){if(P=B||se?{}:Vp(n),!L)return B?Ux(n,px(P,n)):Hx(n,op(P,n))}else{if(!Ge[ee])return _?n:{};P=rS(n,ee,L)}}A||(A=new dr);var le=A.get(n);if(le)return le;A.set(n,P),Eh(n)?n.forEach(function(pe){P.add(tr(pe,o,c,pe,n,A))}):xh(n)&&n.forEach(function(pe,Re){P.set(Re,tr(pe,o,c,Re,n,A))});var me=K?B?al:sl:B?Lt:pt,Te=Y?r:me(n);return zt(Te||n,function(pe,Re){Te&&(Re=pe,pe=n[Re]),Ui(P,Re,tr(pe,o,c,Re,n,A))}),P}function hx(n){var o=pt(n);return function(c){return sp(c,n,o)}}function sp(n,o,c){var b=c.length;if(n==null)return!b;for(n=qe(n);b--;){var _=c[b],A=o[_],P=n[_];if(P===r&&!(_ in n)||!A(P))return!1}return!0}function ap(n,o,c){if(typeof n!="function")throw new Qt(u);return Xi(function(){n.apply(r,c)},o)}function qi(n,o,c,b){var _=-1,A=us,P=!0,L=n.length,B=[],K=o.length;if(!L)return B;c&&(o=Ye(o,Bt(c))),b?(A=Au,P=!1):o.length>=s&&(A=Fi,P=!1,o=new Ln(o));e:for(;++_<L;){var Y=n[_],ee=c==null?Y:c(Y);if(Y=b||Y!==0?Y:0,P&&ee===ee){for(var se=K;se--;)if(o[se]===ee)continue e;B.push(Y)}else A(o,ee,b)||B.push(Y)}return B}var pn=Lp(_r),up=Lp(Hu,!0);function gx(n,o){var c=!0;return pn(n,function(b,_,A){return c=!!o(b,_,A),c}),c}function Os(n,o,c){for(var b=-1,_=n.length;++b<_;){var A=n[b],P=o(A);if(P!=null&&(L===r?P===P&&!Ht(P):c(P,L)))var L=P,B=A}return B}function mx(n,o,c,b){var _=n.length;for(c=Ee(c),c<0&&(c=-c>_?0:_+c),b=b===r||b>_?_:Ee(b),b<0&&(b+=_),b=c>b?0:Th(b);c<b;)n[c++]=o;return n}function lp(n,o){var c=[];return pn(n,function(b,_,A){o(b,_,A)&&c.push(b)}),c}function mt(n,o,c,b,_){var A=-1,P=n.length;for(c||(c=iS),_||(_=[]);++A<P;){var L=n[A];o>0&&c(L)?o>1?mt(L,o-1,c,b,_):cn(_,L):b||(_[_.length]=L)}return _}var Wu=Mp(),cp=Mp(!0);function _r(n,o){return n&&Wu(n,o,pt)}function Hu(n,o){return n&&cp(n,o,pt)}function As(n,o){return ln(o,function(c){return Zr(n[c])})}function Dn(n,o){o=gn(o,n);for(var c=0,b=o.length;n!=null&&c<b;)n=n[pr(o[c++])];return c&&c==b?n:r}function fp(n,o,c){var b=o(n);return Se(n)?b:cn(b,c(n))}function At(n){return n==null?n===r?ns:ts:In&&In in qe(n)?Jx(n):fS(n)}function Uu(n,o){return n>o}function vx(n,o){return n!=null&&De.call(n,o)}function yx(n,o){return n!=null&&o in qe(n)}function bx(n,o,c){return n>=Et(o,c)&&n<ft(o,c)}function qu(n,o,c){for(var b=c?Au:us,_=n[0].length,A=n.length,P=A,L=U(A),B=1/0,K=[];P--;){var Y=n[P];P&&o&&(Y=Ye(Y,Bt(o))),B=Et(Y.length,B),L[P]=!c&&(o||_>=120&&Y.length>=120)?new Ln(P&&Y):r}Y=n[0];var ee=-1,se=L[0];e:for(;++ee<_&&K.length<B;){var le=Y[ee],me=o?o(le):le;if(le=c||le!==0?le:0,!(se?Fi(se,me):b(K,me,c))){for(P=A;--P;){var Te=L[P];if(!(Te?Fi(Te,me):b(n[P],me,c)))continue e}se&&se.push(me),K.push(le)}}return K}function wx(n,o,c,b){return _r(n,function(_,A,P){o(b,c(_),A,P)}),b}function Gi(n,o,c){o=gn(o,n),n=Jp(n,o);var b=n==null?n:n[pr(nr(o))];return b==null?r:jt(b,n,c)}function dp(n){return nt(n)&&At(n)==fe}function xx(n){return nt(n)&&At(n)==un}function Sx(n){return nt(n)&&At(n)==_e}function Zi(n,o,c,b,_){return n===o?!0:n==null||o==null||!nt(n)&&!nt(o)?n!==n&&o!==o:Ex(n,o,c,b,Zi,_)}function Ex(n,o,c,b,_,A){var P=Se(n),L=Se(o),B=P?ve:_t(n),K=L?ve:_t(o);B=B==fe?cr:B,K=K==fe?cr:K;var Y=B==cr,ee=K==cr,se=B==K;if(se&&vn(n)){if(!vn(o))return!1;P=!0,Y=!1}if(se&&!Y)return A||(A=new dr),P||mi(n)?qp(n,o,c,b,_,A):Yx(n,o,B,c,b,_,A);if(!(c&h)){var le=Y&&De.call(n,"__wrapped__"),me=ee&&De.call(o,"__wrapped__");if(le||me){var Te=le?n.value():n,pe=me?o.value():o;return A||(A=new dr),_(Te,pe,c,b,A)}}return se?(A||(A=new dr),Xx(n,o,c,b,_,A)):!1}function _x(n){return nt(n)&&_t(n)==St}function Gu(n,o,c,b){var _=c.length,A=_,P=!b;if(n==null)return!A;for(n=qe(n);_--;){var L=c[_];if(P&&L[2]?L[1]!==n[L[0]]:!(L[0]in n))return!1}for(;++_<A;){L=c[_];var B=L[0],K=n[B],Y=L[1];if(P&&L[2]){if(K===r&&!(B in n))return!1}else{var ee=new dr;if(b)var se=b(K,Y,B,n,o,ee);if(!(se===r?Zi(Y,K,h|w,b,ee):se))return!1}}return!0}function pp(n){if(!et(n)||sS(n))return!1;var o=Zr(n)?_1:hw;return o.test(Fn(n))}function Tx(n){return nt(n)&&At(n)==Sr}function Ox(n){return nt(n)&&_t(n)==kt}function Ax(n){return nt(n)&&Us(n.length)&&!!Ve[At(n)]}function hp(n){return typeof n=="function"?n:n==null?Mt:typeof n=="object"?Se(n)?vp(n[0],n[1]):mp(n):Nh(n)}function Zu(n){if(!Yi(n))return C1(n);var o=[];for(var c in qe(n))De.call(n,c)&&c!="constructor"&&o.push(c);return o}function Rx(n){if(!et(n))return cS(n);var o=Yi(n),c=[];for(var b in n)b=="constructor"&&(o||!De.call(n,b))||c.push(b);return c}function Vu(n,o){return n<o}function gp(n,o){var c=-1,b=$t(n)?U(n.length):[];return pn(n,function(_,A,P){b[++c]=o(_,A,P)}),b}function mp(n){var o=ll(n);return o.length==1&&o[0][2]?Yp(o[0][0],o[0][1]):function(c){return c===n||Gu(c,n,o)}}function vp(n,o){return fl(n)&&Kp(o)?Yp(pr(n),o):function(c){var b=Sl(c,n);return b===r&&b===o?El(c,n):Zi(o,b,h|w)}}function Rs(n,o,c,b,_){n!==o&&Wu(o,function(A,P){if(_||(_=new dr),et(A))Px(n,o,P,c,Rs,b,_);else{var L=b?b(pl(n,P),A,P+"",n,o,_):r;L===r&&(L=A),zu(n,P,L)}},Lt)}function Px(n,o,c,b,_,A,P){var L=pl(n,c),B=pl(o,c),K=P.get(B);if(K){zu(n,c,K);return}var Y=A?A(L,B,c+"",n,o,P):r,ee=Y===r;if(ee){var se=Se(B),le=!se&&vn(B),me=!se&&!le&&mi(B);Y=B,se||le||me?Se(L)?Y=L:it(L)?Y=It(L):le?(ee=!1,Y=Pp(B,!0)):me?(ee=!1,Y=Cp(B,!0)):Y=[]:Ji(B)||jn(B)?(Y=L,jn(L)?Y=Oh(L):(!et(L)||Zr(L))&&(Y=Vp(B))):ee=!1}ee&&(P.set(B,Y),_(Y,B,b,A,P),P.delete(B)),zu(n,c,Y)}function yp(n,o){var c=n.length;if(c)return o+=o<0?c:0,Gr(o,c)?n[o]:r}function bp(n,o,c){o.length?o=Ye(o,function(A){return Se(A)?function(P){return Dn(P,A.length===1?A[0]:A)}:A}):o=[Mt];var b=-1;o=Ye(o,Bt(ge()));var _=gp(n,function(A,P,L){var B=Ye(o,function(K){return K(A)});return{criteria:B,index:++b,value:A}});return r1(_,function(A,P){return Wx(A,P,c)})}function Cx(n,o){return wp(n,o,function(c,b){return El(n,b)})}function wp(n,o,c){for(var b=-1,_=o.length,A={};++b<_;){var P=o[b],L=Dn(n,P);c(L,P)&&Vi(A,gn(P,n),L)}return A}function kx(n){return function(o){return Dn(o,n)}}function Ku(n,o,c,b){var _=b?t1:oi,A=-1,P=o.length,L=n;for(n===o&&(o=It(o)),c&&(L=Ye(n,Bt(c)));++A<P;)for(var B=0,K=o[A],Y=c?c(K):K;(B=_(L,Y,B,b))>-1;)L!==n&&ys.call(L,B,1),ys.call(n,B,1);return n}function xp(n,o){for(var c=n?o.length:0,b=c-1;c--;){var _=o[c];if(c==b||_!==A){var A=_;Gr(_)?ys.call(n,_,1):Qu(n,_)}}return n}function Yu(n,o){return n+xs(tp()*(o-n+1))}function Ix(n,o,c,b){for(var _=-1,A=ft(ws((o-n)/(c||1)),0),P=U(A);A--;)P[b?A:++_]=n,n+=c;return P}function Xu(n,o){var c="";if(!n||o<1||o>ce)return c;do o%2&&(c+=n),o=xs(o/2),o&&(n+=n);while(o);return c}function Ae(n,o){return hl(Xp(n,o,Mt),n+"")}function $x(n){return ip(vi(n))}function Lx(n,o){var c=vi(n);return Fs(c,Mn(o,0,c.length))}function Vi(n,o,c,b){if(!et(n))return n;o=gn(o,n);for(var _=-1,A=o.length,P=A-1,L=n;L!=null&&++_<A;){var B=pr(o[_]),K=c;if(B==="__proto__"||B==="constructor"||B==="prototype")return n;if(_!=P){var Y=L[B];K=b?b(Y,B,L):r,K===r&&(K=et(Y)?Y:Gr(o[_+1])?[]:{})}Ui(L,B,K),L=L[B]}return n}var Sp=Ss?function(n,o){return Ss.set(n,o),n}:Mt,Mx=bs?function(n,o){return bs(n,"toString",{configurable:!0,enumerable:!1,value:Tl(o),writable:!0})}:Mt;function Dx(n){return Fs(vi(n))}function rr(n,o,c){var b=-1,_=n.length;o<0&&(o=-o>_?0:_+o),c=c>_?_:c,c<0&&(c+=_),_=o>c?0:c-o>>>0,o>>>=0;for(var A=U(_);++b<_;)A[b]=n[b+o];return A}function Nx(n,o){var c;return pn(n,function(b,_,A){return c=o(b,_,A),!c}),!!c}function Ps(n,o,c){var b=0,_=n==null?b:n.length;if(typeof o=="number"&&o===o&&_<=ie){for(;b<_;){var A=b+_>>>1,P=n[A];P!==null&&!Ht(P)&&(c?P<=o:P<o)?b=A+1:_=A}return _}return Ju(n,o,Mt,c)}function Ju(n,o,c,b){var _=0,A=n==null?0:n.length;if(A===0)return 0;o=c(o);for(var P=o!==o,L=o===null,B=Ht(o),K=o===r;_<A;){var Y=xs((_+A)/2),ee=c(n[Y]),se=ee!==r,le=ee===null,me=ee===ee,Te=Ht(ee);if(P)var pe=b||me;else K?pe=me&&(b||se):L?pe=me&&se&&(b||!le):B?pe=me&&se&&!le&&(b||!Te):le||Te?pe=!1:pe=b?ee<=o:ee<o;pe?_=Y+1:A=Y}return Et(A,ue)}function Ep(n,o){for(var c=-1,b=n.length,_=0,A=[];++c<b;){var P=n[c],L=o?o(P):P;if(!c||!hr(L,B)){var B=L;A[_++]=P===0?0:P}}return A}function _p(n){return typeof n=="number"?n:Ht(n)?te:+n}function Wt(n){if(typeof n=="string")return n;if(Se(n))return Ye(n,Wt)+"";if(Ht(n))return rp?rp.call(n):"";var o=n+"";return o=="0"&&1/n==-re?"-0":o}function hn(n,o,c){var b=-1,_=us,A=n.length,P=!0,L=[],B=L;if(c)P=!1,_=Au;else if(A>=s){var K=o?null:Vx(n);if(K)return cs(K);P=!1,_=Fi,B=new Ln}else B=o?[]:L;e:for(;++b<A;){var Y=n[b],ee=o?o(Y):Y;if(Y=c||Y!==0?Y:0,P&&ee===ee){for(var se=B.length;se--;)if(B[se]===ee)continue e;o&&B.push(ee),L.push(Y)}else _(B,ee,c)||(B!==L&&B.push(ee),L.push(Y))}return L}function Qu(n,o){o=gn(o,n);var c=-1,b=o.length;if(!b)return!0;for(;++c<b;){var _=pr(o[c]);if(_==="__proto__"&&!De.call(n,"__proto__")||(_==="constructor"||_==="prototype")&&c<b-1)return!1}var A=Jp(n,o);return A==null||delete A[pr(nr(o))]}function Tp(n,o,c,b){return Vi(n,o,c(Dn(n,o)),b)}function Cs(n,o,c,b){for(var _=n.length,A=b?_:-1;(b?A--:++A<_)&&o(n[A],A,n););return c?rr(n,b?0:A,b?A+1:_):rr(n,b?A+1:0,b?_:A)}function Op(n,o){var c=n;return c instanceof Pe&&(c=c.value()),Ru(o,function(b,_){return _.func.apply(_.thisArg,cn([b],_.args))},c)}function el(n,o,c){var b=n.length;if(b<2)return b?hn(n[0]):[];for(var _=-1,A=U(b);++_<b;)for(var P=n[_],L=-1;++L<b;)L!=_&&(A[_]=qi(A[_]||P,n[L],o,c));return hn(mt(A,1),o,c)}function Ap(n,o,c){for(var b=-1,_=n.length,A=o.length,P={};++b<_;){var L=b<A?o[b]:r;c(P,n[b],L)}return P}function tl(n){return it(n)?n:[]}function rl(n){return typeof n=="function"?n:Mt}function gn(n,o){return Se(n)?n:fl(n,o)?[n]:rh(Ne(n))}var Fx=Ae;function mn(n,o,c){var b=n.length;return c=c===r?b:c,!o&&c>=b?n:rr(n,o,c)}var Rp=T1||function(n){return gt.clearTimeout(n)};function Pp(n,o){if(o)return n.slice();var c=n.length,b=Yd?Yd(c):new n.constructor(c);return n.copy(b),b}function nl(n){var o=new n.constructor(n.byteLength);return new ms(o).set(new ms(n)),o}function jx(n,o){var c=o?nl(n.buffer):n.buffer;return new n.constructor(c,n.byteOffset,n.byteLength)}function zx(n){var o=new n.constructor(n.source,dd.exec(n));return o.lastIndex=n.lastIndex,o}function Bx(n){return Hi?qe(Hi.call(n)):{}}function Cp(n,o){var c=o?nl(n.buffer):n.buffer;return new n.constructor(c,n.byteOffset,n.length)}function kp(n,o){if(n!==o){var c=n!==r,b=n===null,_=n===n,A=Ht(n),P=o!==r,L=o===null,B=o===o,K=Ht(o);if(!L&&!K&&!A&&n>o||A&&P&&B&&!L&&!K||b&&P&&B||!c&&B||!_)return 1;if(!b&&!A&&!K&&n<o||K&&c&&_&&!b&&!A||L&&c&&_||!P&&_||!B)return-1}return 0}function Wx(n,o,c){for(var b=-1,_=n.criteria,A=o.criteria,P=_.length,L=c.length;++b<P;){var B=kp(_[b],A[b]);if(B){if(b>=L)return B;var K=c[b];return B*(K=="desc"?-1:1)}}return n.index-o.index}function Ip(n,o,c,b){for(var _=-1,A=n.length,P=c.length,L=-1,B=o.length,K=ft(A-P,0),Y=U(B+K),ee=!b;++L<B;)Y[L]=o[L];for(;++_<P;)(ee||_<A)&&(Y[c[_]]=n[_]);for(;K--;)Y[L++]=n[_++];return Y}function $p(n,o,c,b){for(var _=-1,A=n.length,P=-1,L=c.length,B=-1,K=o.length,Y=ft(A-L,0),ee=U(Y+K),se=!b;++_<Y;)ee[_]=n[_];for(var le=_;++B<K;)ee[le+B]=o[B];for(;++P<L;)(se||_<A)&&(ee[le+c[P]]=n[_++]);return ee}function It(n,o){var c=-1,b=n.length;for(o||(o=U(b));++c<b;)o[c]=n[c];return o}function Tr(n,o,c,b){var _=!c;c||(c={});for(var A=-1,P=o.length;++A<P;){var L=o[A],B=b?b(c[L],n[L],L,c,n):r;B===r&&(B=n[L]),_?Er(c,L,B):Ui(c,L,B)}return c}function Hx(n,o){return Tr(n,cl(n),o)}function Ux(n,o){return Tr(n,Gp(n),o)}function ks(n,o){return function(c,b){var _=Se(c)?Kw:dx,A=o?o():{};return _(c,n,ge(b,2),A)}}function pi(n){return Ae(function(o,c){var b=-1,_=c.length,A=_>1?c[_-1]:r,P=_>2?c[2]:r;for(A=n.length>3&&typeof A=="function"?(_--,A):r,P&&Rt(c[0],c[1],P)&&(A=_<3?r:A,_=1),o=qe(o);++b<_;){var L=c[b];L&&n(o,L,b,A)}return o})}function Lp(n,o){return function(c,b){if(c==null)return c;if(!$t(c))return n(c,b);for(var _=c.length,A=o?_:-1,P=qe(c);(o?A--:++A<_)&&b(P[A],A,P)!==!1;);return c}}function Mp(n){return function(o,c,b){for(var _=-1,A=qe(o),P=b(o),L=P.length;L--;){var B=P[n?L:++_];if(c(A[B],B,A)===!1)break}return o}}function qx(n,o,c){var b=o&v,_=Ki(n);function A(){var P=this&&this!==gt&&this instanceof A?_:n;return P.apply(b?c:this,arguments)}return A}function Dp(n){return function(o){o=Ne(o);var c=si(o)?fr(o):r,b=c?c[0]:o.charAt(0),_=c?mn(c,1).join(""):o.slice(1);return b[n]()+_}}function hi(n){return function(o){return Ru(Mh(Lh(o).replace(Mw,"")),n,"")}}function Ki(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 c=di(n.prototype),b=n.apply(c,o);return et(b)?b:c}}function Gx(n,o,c){var b=Ki(n);function _(){for(var A=arguments.length,P=U(A),L=A,B=gi(_);L--;)P[L]=arguments[L];var K=A<3&&P[0]!==B&&P[A-1]!==B?[]:fn(P,B);if(A-=K.length,A<c)return Bp(n,o,Is,_.placeholder,r,P,K,r,r,c-A);var Y=this&&this!==gt&&this instanceof _?b:n;return jt(Y,this,P)}return _}function Np(n){return function(o,c,b){var _=qe(o);if(!$t(o)){var A=ge(c,3);o=pt(o),c=function(L){return A(_[L],L,_)}}var P=n(o,c,b);return P>-1?_[A?o[P]:P]:r}}function Fp(n){return qr(function(o){var c=o.length,b=c,_=er.prototype.thru;for(n&&o.reverse();b--;){var A=o[b];if(typeof A!="function")throw new Qt(u);if(_&&!P&&Ds(A)=="wrapper")var P=new er([],!0)}for(b=P?b:c;++b<c;){A=o[b];var L=Ds(A),B=L=="wrapper"?ul(A):r;B&&dl(B[0])&&B[1]==(N|R|C|F)&&!B[4].length&&B[9]==1?P=P[Ds(B[0])].apply(P,B[3]):P=A.length==1&&dl(A)?P[L]():P.thru(A)}return function(){var K=arguments,Y=K[0];if(P&&K.length==1&&Se(Y))return P.plant(Y).value();for(var ee=0,se=c?o[ee].apply(this,K):Y;++ee<c;)se=o[ee].call(this,se);return se}})}function Is(n,o,c,b,_,A,P,L,B,K){var Y=o&N,ee=o&v,se=o&S,le=o&(R|T),me=o&q,Te=se?r:Ki(n);function pe(){for(var Re=arguments.length,Ce=U(Re),Ut=Re;Ut--;)Ce[Ut]=arguments[Ut];if(le)var Pt=gi(pe),qt=i1(Ce,Pt);if(b&&(Ce=Ip(Ce,b,_,le)),A&&(Ce=$p(Ce,A,P,le)),Re-=qt,le&&Re<K){var ot=fn(Ce,Pt);return Bp(n,o,Is,pe.placeholder,c,Ce,ot,L,B,K-Re)}var gr=ee?c:this,Kr=se?gr[n]:n;return Re=Ce.length,L?Ce=dS(Ce,L):me&&Re>1&&Ce.reverse(),Y&&B<Re&&(Ce.length=B),this&&this!==gt&&this instanceof pe&&(Kr=Te||Ki(Kr)),Kr.apply(gr,Ce)}return pe}function jp(n,o){return function(c,b){return wx(c,n,o(b),{})}}function $s(n,o){return function(c,b){var _;if(c===r&&b===r)return o;if(c!==r&&(_=c),b!==r){if(_===r)return b;typeof c=="string"||typeof b=="string"?(c=Wt(c),b=Wt(b)):(c=_p(c),b=_p(b)),_=n(c,b)}return _}}function il(n){return qr(function(o){return o=Ye(o,Bt(ge())),Ae(function(c){var b=this;return n(o,function(_){return jt(_,b,c)})})})}function Ls(n,o){o=o===r?" ":Wt(o);var c=o.length;if(c<2)return c?Xu(o,n):o;var b=Xu(o,ws(n/ai(o)));return si(o)?mn(fr(b),0,n).join(""):b.slice(0,n)}function Zx(n,o,c,b){var _=o&v,A=Ki(n);function P(){for(var L=-1,B=arguments.length,K=-1,Y=b.length,ee=U(Y+B),se=this&&this!==gt&&this instanceof P?A:n;++K<Y;)ee[K]=b[K];for(;B--;)ee[K++]=arguments[++L];return jt(se,_?c:this,ee)}return P}function zp(n){return function(o,c,b){return b&&typeof b!="number"&&Rt(o,c,b)&&(c=b=r),o=Vr(o),c===r?(c=o,o=0):c=Vr(c),b=b===r?o<c?1:-1:Vr(b),Ix(o,c,b,n)}}function Ms(n){return function(o,c){return typeof o=="string"&&typeof c=="string"||(o=ir(o),c=ir(c)),n(o,c)}}function Bp(n,o,c,b,_,A,P,L,B,K){var Y=o&R,ee=Y?P:r,se=Y?r:P,le=Y?A:r,me=Y?r:A;o|=Y?C:W,o&=~(Y?W:C),o&E||(o&=-4);var Te=[n,o,_,le,ee,me,se,L,B,K],pe=c.apply(r,Te);return dl(n)&&Qp(pe,Te),pe.placeholder=b,eh(pe,n,o)}function ol(n){var o=ct[n];return function(c,b){if(c=ir(c),b=b==null?0:Et(Ee(b),292),b&&ep(c)){var _=(Ne(c)+"e").split("e"),A=o(_[0]+"e"+(+_[1]+b));return _=(Ne(A)+"e").split("e"),+(_[0]+"e"+(+_[1]-b))}return o(c)}}var Vx=ci&&1/cs(new ci([,-0]))[1]==re?function(n){return new ci(n)}:Rl;function Wp(n){return function(o){var c=_t(o);return c==St?Mu(o):c==kt?f1(o):n1(o,n(o))}}function Ur(n,o,c,b,_,A,P,L){var B=o&S;if(!B&&typeof n!="function")throw new Qt(u);var K=b?b.length:0;if(K||(o&=-97,b=_=r),P=P===r?P:ft(Ee(P),0),L=L===r?L:Ee(L),K-=_?_.length:0,o&W){var Y=b,ee=_;b=_=r}var se=B?r:ul(n),le=[n,o,c,b,_,Y,ee,A,P,L];if(se&&lS(le,se),n=le[0],o=le[1],c=le[2],b=le[3],_=le[4],L=le[9]=le[9]===r?B?0:n.length:ft(le[9]-K,0),!L&&o&(R|T)&&(o&=-25),!o||o==v)var me=qx(n,o,c);else o==R||o==T?me=Gx(n,o,L):(o==C||o==(v|C))&&!_.length?me=Zx(n,o,c,b):me=Is.apply(r,le);var Te=se?Sp:Qp;return eh(Te(me,le),n,o)}function Hp(n,o,c,b){return n===r||hr(n,li[c])&&!De.call(b,c)?o:n}function Up(n,o,c,b,_,A){return et(n)&&et(o)&&(A.set(o,n),Rs(n,o,r,Up,A),A.delete(o)),n}function Kx(n){return Ji(n)?r:n}function qp(n,o,c,b,_,A){var P=c&h,L=n.length,B=o.length;if(L!=B&&!(P&&B>L))return!1;var K=A.get(n),Y=A.get(o);if(K&&Y)return K==o&&Y==n;var ee=-1,se=!0,le=c&w?new Ln:r;for(A.set(n,o),A.set(o,n);++ee<L;){var me=n[ee],Te=o[ee];if(b)var pe=P?b(Te,me,ee,o,n,A):b(me,Te,ee,n,o,A);if(pe!==r){if(pe)continue;se=!1;break}if(le){if(!Pu(o,function(Re,Ce){if(!Fi(le,Ce)&&(me===Re||_(me,Re,c,b,A)))return le.push(Ce)})){se=!1;break}}else if(!(me===Te||_(me,Te,c,b,A))){se=!1;break}}return A.delete(n),A.delete(o),se}function Yx(n,o,c,b,_,A,P){switch(c){case ni:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case un:return!(n.byteLength!=o.byteLength||!A(new ms(n),new ms(o)));case Oe:case _e:case nn:return hr(+n,+o);case oe:return n.name==o.name&&n.message==o.message;case Sr:case on:return n==o+"";case St:var L=Mu;case kt:var B=b&h;if(L||(L=cs),n.size!=o.size&&!B)return!1;var K=P.get(n);if(K)return K==o;b|=w,P.set(n,o);var Y=qp(L(n),L(o),b,_,A,P);return P.delete(n),Y;case sn:if(Hi)return Hi.call(n)==Hi.call(o)}return!1}function Xx(n,o,c,b,_,A){var P=c&h,L=sl(n),B=L.length,K=sl(o),Y=K.length;if(B!=Y&&!P)return!1;for(var ee=B;ee--;){var se=L[ee];if(!(P?se in o:De.call(o,se)))return!1}var le=A.get(n),me=A.get(o);if(le&&me)return le==o&&me==n;var Te=!0;A.set(n,o),A.set(o,n);for(var pe=P;++ee<B;){se=L[ee];var Re=n[se],Ce=o[se];if(b)var Ut=P?b(Ce,Re,se,o,n,A):b(Re,Ce,se,n,o,A);if(!(Ut===r?Re===Ce||_(Re,Ce,c,b,A):Ut)){Te=!1;break}pe||(pe=se=="constructor")}if(Te&&!pe){var Pt=n.constructor,qt=o.constructor;Pt!=qt&&"constructor"in n&&"constructor"in o&&!(typeof Pt=="function"&&Pt instanceof Pt&&typeof qt=="function"&&qt instanceof qt)&&(Te=!1)}return A.delete(n),A.delete(o),Te}function qr(n){return hl(Xp(n,r,sh),n+"")}function sl(n){return fp(n,pt,cl)}function al(n){return fp(n,Lt,Gp)}var ul=Ss?function(n){return Ss.get(n)}:Rl;function Ds(n){for(var o=n.name+"",c=fi[o],b=De.call(fi,o)?c.length:0;b--;){var _=c[b],A=_.func;if(A==null||A==n)return _.name}return o}function gi(n){var o=De.call(O,"placeholder")?O:n;return o.placeholder}function ge(){var n=O.iteratee||Ol;return n=n===Ol?hp:n,arguments.length?n(arguments[0],arguments[1]):n}function Ns(n,o){var c=n.__data__;return oS(o)?c[typeof o=="string"?"string":"hash"]:c.map}function ll(n){for(var o=pt(n),c=o.length;c--;){var b=o[c],_=n[b];o[c]=[b,_,Kp(_)]}return o}function Nn(n,o){var c=u1(n,o);return pp(c)?c:r}function Jx(n){var o=De.call(n,In),c=n[In];try{n[In]=r;var b=!0}catch{}var _=hs.call(n);return b&&(o?n[In]=c:delete n[In]),_}var cl=Nu?function(n){return n==null?[]:(n=qe(n),ln(Nu(n),function(o){return Jd.call(n,o)}))}:Pl,Gp=Nu?function(n){for(var o=[];n;)cn(o,cl(n)),n=vs(n);return o}:Pl,_t=At;(Fu&&_t(new Fu(new ArrayBuffer(1)))!=ni||zi&&_t(new zi)!=St||ju&&_t(ju.resolve())!=rs||ci&&_t(new ci)!=kt||Bi&&_t(new Bi)!=an)&&(_t=function(n){var o=At(n),c=o==cr?n.constructor:r,b=c?Fn(c):"";if(b)switch(b){case L1:return ni;case M1:return St;case D1:return rs;case N1:return kt;case F1:return an}return o});function Qx(n,o,c){for(var b=-1,_=c.length;++b<_;){var A=c[b],P=A.size;switch(A.type){case"drop":n+=P;break;case"dropRight":o-=P;break;case"take":o=Et(o,n+P);break;case"takeRight":n=ft(n,o-P);break}}return{start:n,end:o}}function eS(n){var o=n.match(aw);return o?o[1].split(uw):[]}function Zp(n,o,c){o=gn(o,n);for(var b=-1,_=o.length,A=!1;++b<_;){var P=pr(o[b]);if(!(A=n!=null&&c(n,P)))break;n=n[P]}return A||++b!=_?A:(_=n==null?0:n.length,!!_&&Us(_)&&Gr(P,_)&&(Se(n)||jn(n)))}function tS(n){var o=n.length,c=new n.constructor(o);return o&&typeof n[0]=="string"&&De.call(n,"index")&&(c.index=n.index,c.input=n.input),c}function Vp(n){return typeof n.constructor=="function"&&!Yi(n)?di(vs(n)):{}}function rS(n,o,c){var b=n.constructor;switch(o){case un:return nl(n);case Oe:case _e:return new b(+n);case ni:return jx(n,c);case lu:case cu:case fu:case du:case pu:case hu:case gu:case mu:case vu:return Cp(n,c);case St:return new b;case nn:case on:return new b(n);case Sr:return zx(n);case kt:return new b;case sn:return Bx(n)}}function nS(n,o){var c=o.length;if(!c)return n;var b=c-1;return o[b]=(c>1?"& ":"")+o[b],o=o.join(c>2?", ":" "),n.replace(sw,`{
183
- /* [wrapped with `+o+`] */
184
- `)}function iS(n){return Se(n)||jn(n)||!!(Qd&&n&&n[Qd])}function Gr(n,o){var c=typeof n;return o=o??ce,!!o&&(c=="number"||c!="symbol"&&mw.test(n))&&n>-1&&n%1==0&&n<o}function Rt(n,o,c){if(!et(c))return!1;var b=typeof o;return(b=="number"?$t(c)&&Gr(o,c.length):b=="string"&&o in c)?hr(c[o],n):!1}function fl(n,o){if(Se(n))return!1;var c=typeof n;return c=="number"||c=="symbol"||c=="boolean"||n==null||Ht(n)?!0:rw.test(n)||!tw.test(n)||o!=null&&n in qe(o)}function oS(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function dl(n){var o=Ds(n),c=O[o];if(typeof c!="function"||!(o in Pe.prototype))return!1;if(n===c)return!0;var b=ul(c);return!!b&&n===b[0]}function sS(n){return!!Kd&&Kd in n}var aS=ds?Zr:Cl;function Yi(n){var o=n&&n.constructor,c=typeof o=="function"&&o.prototype||li;return n===c}function Kp(n){return n===n&&!et(n)}function Yp(n,o){return function(c){return c==null?!1:c[n]===o&&(o!==r||n in qe(c))}}function uS(n){var o=Ws(n,function(b){return c.size===m&&c.clear(),b}),c=o.cache;return o}function lS(n,o){var c=n[1],b=o[1],_=c|b,A=_<(v|S|N),P=b==N&&c==R||b==N&&c==F&&n[7].length<=o[8]||b==(N|F)&&o[7].length<=o[8]&&c==R;if(!(A||P))return n;b&v&&(n[2]=o[2],_|=c&v?0:E);var L=o[3];if(L){var B=n[3];n[3]=B?Ip(B,L,o[4]):L,n[4]=B?fn(n[3],d):o[4]}return L=o[5],L&&(B=n[5],n[5]=B?$p(B,L,o[6]):L,n[6]=B?fn(n[5],d):o[6]),L=o[7],L&&(n[7]=L),b&N&&(n[8]=n[8]==null?o[8]:Et(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=_,n}function cS(n){var o=[];if(n!=null)for(var c in qe(n))o.push(c);return o}function fS(n){return hs.call(n)}function Xp(n,o,c){return o=ft(o===r?n.length-1:o,0),function(){for(var b=arguments,_=-1,A=ft(b.length-o,0),P=U(A);++_<A;)P[_]=b[o+_];_=-1;for(var L=U(o+1);++_<o;)L[_]=b[_];return L[o]=c(P),jt(n,this,L)}}function Jp(n,o){return o.length<2?n:Dn(n,rr(o,0,-1))}function dS(n,o){for(var c=n.length,b=Et(o.length,c),_=It(n);b--;){var A=o[b];n[b]=Gr(A,c)?_[A]:r}return n}function pl(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Qp=th(Sp),Xi=A1||function(n,o){return gt.setTimeout(n,o)},hl=th(Mx);function eh(n,o,c){var b=o+"";return hl(n,nS(b,pS(eS(b),c)))}function th(n){var o=0,c=0;return function(){var b=k1(),_=G-(b-c);if(c=b,_>0){if(++o>=H)return arguments[0]}else o=0;return n.apply(r,arguments)}}function Fs(n,o){var c=-1,b=n.length,_=b-1;for(o=o===r?b:o;++c<o;){var A=Yu(c,_),P=n[A];n[A]=n[c],n[c]=P}return n.length=o,n}var rh=uS(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(nw,function(c,b,_,A){o.push(_?A.replace(cw,"$1"):b||c)}),o});function pr(n){if(typeof n=="string"||Ht(n))return n;var o=n+"";return o=="0"&&1/n==-re?"-0":o}function Fn(n){if(n!=null){try{return ps.call(n)}catch{}try{return n+""}catch{}}return""}function pS(n,o){return zt(he,function(c){var b="_."+c[0];o&c[1]&&!us(n,b)&&n.push(b)}),n.sort()}function nh(n){if(n instanceof Pe)return n.clone();var o=new er(n.__wrapped__,n.__chain__);return o.__actions__=It(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function hS(n,o,c){(c?Rt(n,o,c):o===r)?o=1:o=ft(Ee(o),0);var b=n==null?0:n.length;if(!b||o<1)return[];for(var _=0,A=0,P=U(ws(b/o));_<b;)P[A++]=rr(n,_,_+=o);return P}function gS(n){for(var o=-1,c=n==null?0:n.length,b=0,_=[];++o<c;){var A=n[o];A&&(_[b++]=A)}return _}function mS(){var n=arguments.length;if(!n)return[];for(var o=U(n-1),c=arguments[0],b=n;b--;)o[b-1]=arguments[b];return cn(Se(c)?It(c):[c],mt(o,1))}var vS=Ae(function(n,o){return it(n)?qi(n,mt(o,1,it,!0)):[]}),yS=Ae(function(n,o){var c=nr(o);return it(c)&&(c=r),it(n)?qi(n,mt(o,1,it,!0),ge(c,2)):[]}),bS=Ae(function(n,o){var c=nr(o);return it(c)&&(c=r),it(n)?qi(n,mt(o,1,it,!0),r,c):[]});function wS(n,o,c){var b=n==null?0:n.length;return b?(o=c||o===r?1:Ee(o),rr(n,o<0?0:o,b)):[]}function xS(n,o,c){var b=n==null?0:n.length;return b?(o=c||o===r?1:Ee(o),o=b-o,rr(n,0,o<0?0:o)):[]}function SS(n,o){return n&&n.length?Cs(n,ge(o,3),!0,!0):[]}function ES(n,o){return n&&n.length?Cs(n,ge(o,3),!0):[]}function _S(n,o,c,b){var _=n==null?0:n.length;return _?(c&&typeof c!="number"&&Rt(n,o,c)&&(c=0,b=_),mx(n,o,c,b)):[]}function ih(n,o,c){var b=n==null?0:n.length;if(!b)return-1;var _=c==null?0:Ee(c);return _<0&&(_=ft(b+_,0)),ls(n,ge(o,3),_)}function oh(n,o,c){var b=n==null?0:n.length;if(!b)return-1;var _=b-1;return c!==r&&(_=Ee(c),_=c<0?ft(b+_,0):Et(_,b-1)),ls(n,ge(o,3),_,!0)}function sh(n){var o=n==null?0:n.length;return o?mt(n,1):[]}function TS(n){var o=n==null?0:n.length;return o?mt(n,re):[]}function OS(n,o){var c=n==null?0:n.length;return c?(o=o===r?1:Ee(o),mt(n,o)):[]}function AS(n){for(var o=-1,c=n==null?0:n.length,b={};++o<c;){var _=n[o];Er(b,_[0],_[1])}return b}function ah(n){return n&&n.length?n[0]:r}function RS(n,o,c){var b=n==null?0:n.length;if(!b)return-1;var _=c==null?0:Ee(c);return _<0&&(_=ft(b+_,0)),oi(n,o,_)}function PS(n){var o=n==null?0:n.length;return o?rr(n,0,-1):[]}var CS=Ae(function(n){var o=Ye(n,tl);return o.length&&o[0]===n[0]?qu(o):[]}),kS=Ae(function(n){var o=nr(n),c=Ye(n,tl);return o===nr(c)?o=r:c.pop(),c.length&&c[0]===n[0]?qu(c,ge(o,2)):[]}),IS=Ae(function(n){var o=nr(n),c=Ye(n,tl);return o=typeof o=="function"?o:r,o&&c.pop(),c.length&&c[0]===n[0]?qu(c,r,o):[]});function $S(n,o){return n==null?"":P1.call(n,o)}function nr(n){var o=n==null?0:n.length;return o?n[o-1]:r}function LS(n,o,c){var b=n==null?0:n.length;if(!b)return-1;var _=b;return c!==r&&(_=Ee(c),_=_<0?ft(b+_,0):Et(_,b-1)),o===o?p1(n,o,_):ls(n,Bd,_,!0)}function MS(n,o){return n&&n.length?yp(n,Ee(o)):r}var DS=Ae(uh);function uh(n,o){return n&&n.length&&o&&o.length?Ku(n,o):n}function NS(n,o,c){return n&&n.length&&o&&o.length?Ku(n,o,ge(c,2)):n}function FS(n,o,c){return n&&n.length&&o&&o.length?Ku(n,o,r,c):n}var jS=qr(function(n,o){var c=n==null?0:n.length,b=Bu(n,o);return xp(n,Ye(o,function(_){return Gr(_,c)?+_:_}).sort(kp)),b});function zS(n,o){var c=[];if(!(n&&n.length))return c;var b=-1,_=[],A=n.length;for(o=ge(o,3);++b<A;){var P=n[b];o(P,b,n)&&(c.push(P),_.push(b))}return xp(n,_),c}function gl(n){return n==null?n:$1.call(n)}function BS(n,o,c){var b=n==null?0:n.length;return b?(c&&typeof c!="number"&&Rt(n,o,c)?(o=0,c=b):(o=o==null?0:Ee(o),c=c===r?b:Ee(c)),rr(n,o,c)):[]}function WS(n,o){return Ps(n,o)}function HS(n,o,c){return Ju(n,o,ge(c,2))}function US(n,o){var c=n==null?0:n.length;if(c){var b=Ps(n,o);if(b<c&&hr(n[b],o))return b}return-1}function qS(n,o){return Ps(n,o,!0)}function GS(n,o,c){return Ju(n,o,ge(c,2),!0)}function ZS(n,o){var c=n==null?0:n.length;if(c){var b=Ps(n,o,!0)-1;if(hr(n[b],o))return b}return-1}function VS(n){return n&&n.length?Ep(n):[]}function KS(n,o){return n&&n.length?Ep(n,ge(o,2)):[]}function YS(n){var o=n==null?0:n.length;return o?rr(n,1,o):[]}function XS(n,o,c){return n&&n.length?(o=c||o===r?1:Ee(o),rr(n,0,o<0?0:o)):[]}function JS(n,o,c){var b=n==null?0:n.length;return b?(o=c||o===r?1:Ee(o),o=b-o,rr(n,o<0?0:o,b)):[]}function QS(n,o){return n&&n.length?Cs(n,ge(o,3),!1,!0):[]}function eE(n,o){return n&&n.length?Cs(n,ge(o,3)):[]}var tE=Ae(function(n){return hn(mt(n,1,it,!0))}),rE=Ae(function(n){var o=nr(n);return it(o)&&(o=r),hn(mt(n,1,it,!0),ge(o,2))}),nE=Ae(function(n){var o=nr(n);return o=typeof o=="function"?o:r,hn(mt(n,1,it,!0),r,o)});function iE(n){return n&&n.length?hn(n):[]}function oE(n,o){return n&&n.length?hn(n,ge(o,2)):[]}function sE(n,o){return o=typeof o=="function"?o:r,n&&n.length?hn(n,r,o):[]}function ml(n){if(!(n&&n.length))return[];var o=0;return n=ln(n,function(c){if(it(c))return o=ft(c.length,o),!0}),$u(o,function(c){return Ye(n,Cu(c))})}function lh(n,o){if(!(n&&n.length))return[];var c=ml(n);return o==null?c:Ye(c,function(b){return jt(o,r,b)})}var aE=Ae(function(n,o){return it(n)?qi(n,o):[]}),uE=Ae(function(n){return el(ln(n,it))}),lE=Ae(function(n){var o=nr(n);return it(o)&&(o=r),el(ln(n,it),ge(o,2))}),cE=Ae(function(n){var o=nr(n);return o=typeof o=="function"?o:r,el(ln(n,it),r,o)}),fE=Ae(ml);function dE(n,o){return Ap(n||[],o||[],Ui)}function pE(n,o){return Ap(n||[],o||[],Vi)}var hE=Ae(function(n){var o=n.length,c=o>1?n[o-1]:r;return c=typeof c=="function"?(n.pop(),c):r,lh(n,c)});function ch(n){var o=O(n);return o.__chain__=!0,o}function gE(n,o){return o(n),n}function js(n,o){return o(n)}var mE=qr(function(n){var o=n.length,c=o?n[0]:0,b=this.__wrapped__,_=function(A){return Bu(A,n)};return o>1||this.__actions__.length||!(b instanceof Pe)||!Gr(c)?this.thru(_):(b=b.slice(c,+c+(o?1:0)),b.__actions__.push({func:js,args:[_],thisArg:r}),new er(b,this.__chain__).thru(function(A){return o&&!A.length&&A.push(r),A}))});function vE(){return ch(this)}function yE(){return new er(this.value(),this.__chain__)}function bE(){this.__values__===r&&(this.__values__=_h(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function wE(){return this}function xE(n){for(var o,c=this;c instanceof _s;){var b=nh(c);b.__index__=0,b.__values__=r,o?_.__wrapped__=b:o=b;var _=b;c=c.__wrapped__}return _.__wrapped__=n,o}function SE(){var n=this.__wrapped__;if(n instanceof Pe){var o=n;return this.__actions__.length&&(o=new Pe(this)),o=o.reverse(),o.__actions__.push({func:js,args:[gl],thisArg:r}),new er(o,this.__chain__)}return this.thru(gl)}function EE(){return Op(this.__wrapped__,this.__actions__)}var _E=ks(function(n,o,c){De.call(n,c)?++n[c]:Er(n,c,1)});function TE(n,o,c){var b=Se(n)?jd:gx;return c&&Rt(n,o,c)&&(o=r),b(n,ge(o,3))}function OE(n,o){var c=Se(n)?ln:lp;return c(n,ge(o,3))}var AE=Np(ih),RE=Np(oh);function PE(n,o){return mt(zs(n,o),1)}function CE(n,o){return mt(zs(n,o),re)}function kE(n,o,c){return c=c===r?1:Ee(c),mt(zs(n,o),c)}function fh(n,o){var c=Se(n)?zt:pn;return c(n,ge(o,3))}function dh(n,o){var c=Se(n)?Yw:up;return c(n,ge(o,3))}var IE=ks(function(n,o,c){De.call(n,c)?n[c].push(o):Er(n,c,[o])});function $E(n,o,c,b){n=$t(n)?n:vi(n),c=c&&!b?Ee(c):0;var _=n.length;return c<0&&(c=ft(_+c,0)),qs(n)?c<=_&&n.indexOf(o,c)>-1:!!_&&oi(n,o,c)>-1}var LE=Ae(function(n,o,c){var b=-1,_=typeof o=="function",A=$t(n)?U(n.length):[];return pn(n,function(P){A[++b]=_?jt(o,P,c):Gi(P,o,c)}),A}),ME=ks(function(n,o,c){Er(n,c,o)});function zs(n,o){var c=Se(n)?Ye:gp;return c(n,ge(o,3))}function DE(n,o,c,b){return n==null?[]:(Se(o)||(o=o==null?[]:[o]),c=b?r:c,Se(c)||(c=c==null?[]:[c]),bp(n,o,c))}var NE=ks(function(n,o,c){n[c?0:1].push(o)},function(){return[[],[]]});function FE(n,o,c){var b=Se(n)?Ru:Hd,_=arguments.length<3;return b(n,ge(o,4),c,_,pn)}function jE(n,o,c){var b=Se(n)?Xw:Hd,_=arguments.length<3;return b(n,ge(o,4),c,_,up)}function zE(n,o){var c=Se(n)?ln:lp;return c(n,Hs(ge(o,3)))}function BE(n){var o=Se(n)?ip:$x;return o(n)}function WE(n,o,c){(c?Rt(n,o,c):o===r)?o=1:o=Ee(o);var b=Se(n)?cx:Lx;return b(n,o)}function HE(n){var o=Se(n)?fx:Dx;return o(n)}function UE(n){if(n==null)return 0;if($t(n))return qs(n)?ai(n):n.length;var o=_t(n);return o==St||o==kt?n.size:Zu(n).length}function qE(n,o,c){var b=Se(n)?Pu:Nx;return c&&Rt(n,o,c)&&(o=r),b(n,ge(o,3))}var GE=Ae(function(n,o){if(n==null)return[];var c=o.length;return c>1&&Rt(n,o[0],o[1])?o=[]:c>2&&Rt(o[0],o[1],o[2])&&(o=[o[0]]),bp(n,mt(o,1),[])}),Bs=O1||function(){return gt.Date.now()};function ZE(n,o){if(typeof o!="function")throw new Qt(u);return n=Ee(n),function(){if(--n<1)return o.apply(this,arguments)}}function ph(n,o,c){return o=c?r:o,o=n&&o==null?n.length:o,Ur(n,N,r,r,r,r,o)}function hh(n,o){var c;if(typeof o!="function")throw new Qt(u);return n=Ee(n),function(){return--n>0&&(c=o.apply(this,arguments)),n<=1&&(o=r),c}}var vl=Ae(function(n,o,c){var b=v;if(c.length){var _=fn(c,gi(vl));b|=C}return Ur(n,b,o,c,_)}),gh=Ae(function(n,o,c){var b=v|S;if(c.length){var _=fn(c,gi(gh));b|=C}return Ur(o,b,n,c,_)});function mh(n,o,c){o=c?r:o;var b=Ur(n,R,r,r,r,r,r,o);return b.placeholder=mh.placeholder,b}function vh(n,o,c){o=c?r:o;var b=Ur(n,T,r,r,r,r,r,o);return b.placeholder=vh.placeholder,b}function yh(n,o,c){var b,_,A,P,L,B,K=0,Y=!1,ee=!1,se=!0;if(typeof n!="function")throw new Qt(u);o=ir(o)||0,et(c)&&(Y=!!c.leading,ee="maxWait"in c,A=ee?ft(ir(c.maxWait)||0,o):A,se="trailing"in c?!!c.trailing:se);function le(ot){var gr=b,Kr=_;return b=_=r,K=ot,P=n.apply(Kr,gr),P}function me(ot){return K=ot,L=Xi(Re,o),Y?le(ot):P}function Te(ot){var gr=ot-B,Kr=ot-K,Fh=o-gr;return ee?Et(Fh,A-Kr):Fh}function pe(ot){var gr=ot-B,Kr=ot-K;return B===r||gr>=o||gr<0||ee&&Kr>=A}function Re(){var ot=Bs();if(pe(ot))return Ce(ot);L=Xi(Re,Te(ot))}function Ce(ot){return L=r,se&&b?le(ot):(b=_=r,P)}function Ut(){L!==r&&Rp(L),K=0,b=B=_=L=r}function Pt(){return L===r?P:Ce(Bs())}function qt(){var ot=Bs(),gr=pe(ot);if(b=arguments,_=this,B=ot,gr){if(L===r)return me(B);if(ee)return Rp(L),L=Xi(Re,o),le(B)}return L===r&&(L=Xi(Re,o)),P}return qt.cancel=Ut,qt.flush=Pt,qt}var VE=Ae(function(n,o){return ap(n,1,o)}),KE=Ae(function(n,o,c){return ap(n,ir(o)||0,c)});function YE(n){return Ur(n,q)}function Ws(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Qt(u);var c=function(){var b=arguments,_=o?o.apply(this,b):b[0],A=c.cache;if(A.has(_))return A.get(_);var P=n.apply(this,b);return c.cache=A.set(_,P)||A,P};return c.cache=new(Ws.Cache||Hr),c}Ws.Cache=Hr;function Hs(n){if(typeof n!="function")throw new Qt(u);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 XE(n){return hh(2,n)}var JE=Fx(function(n,o){o=o.length==1&&Se(o[0])?Ye(o[0],Bt(ge())):Ye(mt(o,1),Bt(ge()));var c=o.length;return Ae(function(b){for(var _=-1,A=Et(b.length,c);++_<A;)b[_]=o[_].call(this,b[_]);return jt(n,this,b)})}),yl=Ae(function(n,o){var c=fn(o,gi(yl));return Ur(n,C,r,o,c)}),bh=Ae(function(n,o){var c=fn(o,gi(bh));return Ur(n,W,r,o,c)}),QE=qr(function(n,o){return Ur(n,F,r,r,r,o)});function e_(n,o){if(typeof n!="function")throw new Qt(u);return o=o===r?o:Ee(o),Ae(n,o)}function t_(n,o){if(typeof n!="function")throw new Qt(u);return o=o==null?0:ft(Ee(o),0),Ae(function(c){var b=c[o],_=mn(c,0,o);return b&&cn(_,b),jt(n,this,_)})}function r_(n,o,c){var b=!0,_=!0;if(typeof n!="function")throw new Qt(u);return et(c)&&(b="leading"in c?!!c.leading:b,_="trailing"in c?!!c.trailing:_),yh(n,o,{leading:b,maxWait:o,trailing:_})}function n_(n){return ph(n,1)}function i_(n,o){return yl(rl(o),n)}function o_(){if(!arguments.length)return[];var n=arguments[0];return Se(n)?n:[n]}function s_(n){return tr(n,x)}function a_(n,o){return o=typeof o=="function"?o:r,tr(n,x,o)}function u_(n){return tr(n,g|x)}function l_(n,o){return o=typeof o=="function"?o:r,tr(n,g|x,o)}function c_(n,o){return o==null||sp(n,o,pt(o))}function hr(n,o){return n===o||n!==n&&o!==o}var f_=Ms(Uu),d_=Ms(function(n,o){return n>=o}),jn=dp((function(){return arguments})())?dp:function(n){return nt(n)&&De.call(n,"callee")&&!Jd.call(n,"callee")},Se=U.isArray,p_=$d?Bt($d):xx;function $t(n){return n!=null&&Us(n.length)&&!Zr(n)}function it(n){return nt(n)&&$t(n)}function h_(n){return n===!0||n===!1||nt(n)&&At(n)==Oe}var vn=R1||Cl,g_=Ld?Bt(Ld):Sx;function m_(n){return nt(n)&&n.nodeType===1&&!Ji(n)}function v_(n){if(n==null)return!0;if($t(n)&&(Se(n)||typeof n=="string"||typeof n.splice=="function"||vn(n)||mi(n)||jn(n)))return!n.length;var o=_t(n);if(o==St||o==kt)return!n.size;if(Yi(n))return!Zu(n).length;for(var c in n)if(De.call(n,c))return!1;return!0}function y_(n,o){return Zi(n,o)}function b_(n,o,c){c=typeof c=="function"?c:r;var b=c?c(n,o):r;return b===r?Zi(n,o,r,c):!!b}function bl(n){if(!nt(n))return!1;var o=At(n);return o==oe||o==at||typeof n.message=="string"&&typeof n.name=="string"&&!Ji(n)}function w_(n){return typeof n=="number"&&ep(n)}function Zr(n){if(!et(n))return!1;var o=At(n);return o==dt||o==zr||o==xe||o==Br}function wh(n){return typeof n=="number"&&n==Ee(n)}function Us(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ce}function et(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function nt(n){return n!=null&&typeof n=="object"}var xh=Md?Bt(Md):_x;function x_(n,o){return n===o||Gu(n,o,ll(o))}function S_(n,o,c){return c=typeof c=="function"?c:r,Gu(n,o,ll(o),c)}function E_(n){return Sh(n)&&n!=+n}function __(n){if(aS(n))throw new be(a);return pp(n)}function T_(n){return n===null}function O_(n){return n==null}function Sh(n){return typeof n=="number"||nt(n)&&At(n)==nn}function Ji(n){if(!nt(n)||At(n)!=cr)return!1;var o=vs(n);if(o===null)return!0;var c=De.call(o,"constructor")&&o.constructor;return typeof c=="function"&&c instanceof c&&ps.call(c)==S1}var wl=Dd?Bt(Dd):Tx;function A_(n){return wh(n)&&n>=-ce&&n<=ce}var Eh=Nd?Bt(Nd):Ox;function qs(n){return typeof n=="string"||!Se(n)&&nt(n)&&At(n)==on}function Ht(n){return typeof n=="symbol"||nt(n)&&At(n)==sn}var mi=Fd?Bt(Fd):Ax;function R_(n){return n===r}function P_(n){return nt(n)&&_t(n)==an}function C_(n){return nt(n)&&At(n)==is}var k_=Ms(Vu),I_=Ms(function(n,o){return n<=o});function _h(n){if(!n)return[];if($t(n))return qs(n)?fr(n):It(n);if(ji&&n[ji])return c1(n[ji]());var o=_t(n),c=o==St?Mu:o==kt?cs:vi;return c(n)}function Vr(n){if(!n)return n===0?n:0;if(n=ir(n),n===re||n===-re){var o=n<0?-1:1;return o*Z}return n===n?n:0}function Ee(n){var o=Vr(n),c=o%1;return o===o?c?o-c:o:0}function Th(n){return n?Mn(Ee(n),0,ne):0}function ir(n){if(typeof n=="number")return n;if(Ht(n))return te;if(et(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=et(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Ud(n);var c=pw.test(n);return c||gw.test(n)?Zw(n.slice(2),c?2:8):dw.test(n)?te:+n}function Oh(n){return Tr(n,Lt(n))}function $_(n){return n?Mn(Ee(n),-ce,ce):n===0?n:0}function Ne(n){return n==null?"":Wt(n)}var L_=pi(function(n,o){if(Yi(o)||$t(o)){Tr(o,pt(o),n);return}for(var c in o)De.call(o,c)&&Ui(n,c,o[c])}),Ah=pi(function(n,o){Tr(o,Lt(o),n)}),Rh=pi(function(n,o,c,b){Tr(o,Lt(o),n,b)}),xl=pi(function(n,o,c,b){Tr(o,pt(o),n,b)}),M_=qr(Bu);function D_(n,o){var c=di(n);return o==null?c:op(c,o)}var N_=Ae(function(n,o){n=qe(n);var c=-1,b=o.length,_=b>2?o[2]:r;for(_&&Rt(o[0],o[1],_)&&(b=1);++c<b;)for(var A=o[c],P=Lt(A),L=-1,B=P.length;++L<B;){var K=P[L],Y=n[K];(Y===r||hr(Y,li[K])&&!De.call(n,K))&&(n[K]=A[K])}return n}),F_=Ae(function(n){return n.push(r,Up),jt(Ph,r,n)});function j_(n,o){return zd(n,ge(o,3),_r)}function z_(n,o){return zd(n,ge(o,3),Hu)}function B_(n,o){return n==null?n:Wu(n,ge(o,3),Lt)}function W_(n,o){return n==null?n:cp(n,ge(o,3),Lt)}function H_(n,o){return n&&_r(n,ge(o,3))}function U_(n,o){return n&&Hu(n,ge(o,3))}function q_(n){return n==null?[]:As(n,pt(n))}function G_(n){return n==null?[]:As(n,Lt(n))}function Sl(n,o,c){var b=n==null?r:Dn(n,o);return b===r?c:b}function Z_(n,o){return n!=null&&Zp(n,o,vx)}function El(n,o){return n!=null&&Zp(n,o,yx)}var V_=jp(function(n,o,c){o!=null&&typeof o.toString!="function"&&(o=hs.call(o)),n[o]=c},Tl(Mt)),K_=jp(function(n,o,c){o!=null&&typeof o.toString!="function"&&(o=hs.call(o)),De.call(n,o)?n[o].push(c):n[o]=[c]},ge),Y_=Ae(Gi);function pt(n){return $t(n)?np(n):Zu(n)}function Lt(n){return $t(n)?np(n,!0):Rx(n)}function X_(n,o){var c={};return o=ge(o,3),_r(n,function(b,_,A){Er(c,o(b,_,A),b)}),c}function J_(n,o){var c={};return o=ge(o,3),_r(n,function(b,_,A){Er(c,_,o(b,_,A))}),c}var Q_=pi(function(n,o,c){Rs(n,o,c)}),Ph=pi(function(n,o,c,b){Rs(n,o,c,b)}),eT=qr(function(n,o){var c={};if(n==null)return c;var b=!1;o=Ye(o,function(A){return A=gn(A,n),b||(b=A.length>1),A}),Tr(n,al(n),c),b&&(c=tr(c,g|y|x,Kx));for(var _=o.length;_--;)Qu(c,o[_]);return c});function tT(n,o){return Ch(n,Hs(ge(o)))}var rT=qr(function(n,o){return n==null?{}:Cx(n,o)});function Ch(n,o){if(n==null)return{};var c=Ye(al(n),function(b){return[b]});return o=ge(o),wp(n,c,function(b,_){return o(b,_[0])})}function nT(n,o,c){o=gn(o,n);var b=-1,_=o.length;for(_||(_=1,n=r);++b<_;){var A=n==null?r:n[pr(o[b])];A===r&&(b=_,A=c),n=Zr(A)?A.call(n):A}return n}function iT(n,o,c){return n==null?n:Vi(n,o,c)}function oT(n,o,c,b){return b=typeof b=="function"?b:r,n==null?n:Vi(n,o,c,b)}var kh=Wp(pt),Ih=Wp(Lt);function sT(n,o,c){var b=Se(n),_=b||vn(n)||mi(n);if(o=ge(o,4),c==null){var A=n&&n.constructor;_?c=b?new A:[]:et(n)?c=Zr(A)?di(vs(n)):{}:c={}}return(_?zt:_r)(n,function(P,L,B){return o(c,P,L,B)}),c}function aT(n,o){return n==null?!0:Qu(n,o)}function uT(n,o,c){return n==null?n:Tp(n,o,rl(c))}function lT(n,o,c,b){return b=typeof b=="function"?b:r,n==null?n:Tp(n,o,rl(c),b)}function vi(n){return n==null?[]:Lu(n,pt(n))}function cT(n){return n==null?[]:Lu(n,Lt(n))}function fT(n,o,c){return c===r&&(c=o,o=r),c!==r&&(c=ir(c),c=c===c?c:0),o!==r&&(o=ir(o),o=o===o?o:0),Mn(ir(n),o,c)}function dT(n,o,c){return o=Vr(o),c===r?(c=o,o=0):c=Vr(c),n=ir(n),bx(n,o,c)}function pT(n,o,c){if(c&&typeof c!="boolean"&&Rt(n,o,c)&&(o=c=r),c===r&&(typeof o=="boolean"?(c=o,o=r):typeof n=="boolean"&&(c=n,n=r)),n===r&&o===r?(n=0,o=1):(n=Vr(n),o===r?(o=n,n=0):o=Vr(o)),n>o){var b=n;n=o,o=b}if(c||n%1||o%1){var _=tp();return Et(n+_*(o-n+Gw("1e-"+((_+"").length-1))),o)}return Yu(n,o)}var hT=hi(function(n,o,c){return o=o.toLowerCase(),n+(c?$h(o):o)});function $h(n){return _l(Ne(n).toLowerCase())}function Lh(n){return n=Ne(n),n&&n.replace(vw,o1).replace(Dw,"")}function gT(n,o,c){n=Ne(n),o=Wt(o);var b=n.length;c=c===r?b:Mn(Ee(c),0,b);var _=c;return c-=o.length,c>=0&&n.slice(c,_)==o}function mT(n){return n=Ne(n),n&&Jb.test(n)?n.replace(ld,s1):n}function vT(n){return n=Ne(n),n&&iw.test(n)?n.replace(yu,"\\$&"):n}var yT=hi(function(n,o,c){return n+(c?"-":"")+o.toLowerCase()}),bT=hi(function(n,o,c){return n+(c?" ":"")+o.toLowerCase()}),wT=Dp("toLowerCase");function xT(n,o,c){n=Ne(n),o=Ee(o);var b=o?ai(n):0;if(!o||b>=o)return n;var _=(o-b)/2;return Ls(xs(_),c)+n+Ls(ws(_),c)}function ST(n,o,c){n=Ne(n),o=Ee(o);var b=o?ai(n):0;return o&&b<o?n+Ls(o-b,c):n}function ET(n,o,c){n=Ne(n),o=Ee(o);var b=o?ai(n):0;return o&&b<o?Ls(o-b,c)+n:n}function _T(n,o,c){return c||o==null?o=0:o&&(o=+o),I1(Ne(n).replace(bu,""),o||0)}function TT(n,o,c){return(c?Rt(n,o,c):o===r)?o=1:o=Ee(o),Xu(Ne(n),o)}function OT(){var n=arguments,o=Ne(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var AT=hi(function(n,o,c){return n+(c?"_":"")+o.toLowerCase()});function RT(n,o,c){return c&&typeof c!="number"&&Rt(n,o,c)&&(o=c=r),c=c===r?ne:c>>>0,c?(n=Ne(n),n&&(typeof o=="string"||o!=null&&!wl(o))&&(o=Wt(o),!o&&si(n))?mn(fr(n),0,c):n.split(o,c)):[]}var PT=hi(function(n,o,c){return n+(c?" ":"")+_l(o)});function CT(n,o,c){return n=Ne(n),c=c==null?0:Mn(Ee(c),0,n.length),o=Wt(o),n.slice(c,c+o.length)==o}function kT(n,o,c){var b=O.templateSettings;c&&Rt(n,o,c)&&(o=r),n=Ne(n),o=xl({},o,b,Hp);var _=xl({},o.imports,b.imports,Hp),A=pt(_),P=Lu(_,A);zt(A,function(pe){if(fd.test(pe))throw new be(f)});var L,B,K=0,Y=o.interpolate||os,ee="__p += '",se=Du((o.escape||os).source+"|"+Y.source+"|"+(Y===cd?fw:os).source+"|"+(o.evaluate||os).source+"|$","g"),le="//# sourceURL="+(De.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bw+"]")+`
185
- `;n.replace(se,function(pe,Re,Ce,Ut,Pt,qt){return Ce||(Ce=Ut),ee+=n.slice(K,qt).replace(yw,a1),Re&&(L=!0,ee+=`' +
186
- __e(`+Re+`) +
187
- '`),Pt&&(B=!0,ee+=`';
188
- `+Pt+`;
189
- __p += '`),Ce&&(ee+=`' +
190
- ((__t = (`+Ce+`)) == null ? '' : __t) +
191
- '`),K=qt+pe.length,pe}),ee+=`';
192
- `;var me=De.call(o,"variable")&&o.variable;if(!me)ee=`with (obj) {
193
- `+ee+`
232
+ */var XL=Qs.exports,dy;function JL(){return dy||(dy=1,(function(e,t){(function(){var r,n="4.18.1",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",u="Invalid `imports` option passed into `_.template`",d="__lodash_hash_undefined__",g=500,p="__lodash_placeholder__",h=1,b=2,S=4,v=1,y=2,m=1,w=2,x=4,k=8,_=16,R=32,j=64,I=128,L=256,W=512,$=30,D="...",U=800,V=16,N=1,X=2,ee=3,Y=1/0,ge=9007199254740991,P=17976931348623157e292,F=NaN,J=4294967295,te=J-1,Z=J>>>1,de=[["ary",I],["bind",m],["bindKey",w],["curry",k],["curryRight",_],["flip",W],["partial",R],["partialRight",j],["rearg",L]],ie="[object Arguments]",re="[object Array]",oe="[object AsyncFunction]",he="[object Boolean]",fe="[object Date]",Se="[object DOMException]",K="[object Error]",je="[object Function]",me="[object GeneratorFunction]",De="[object Map]",gt="[object Number]",rr="[object Null]",at="[object Object]",St="[object Promise]",lt="[object Proxy]",tt="[object RegExp]",ft="[object Set]",on="[object String]",Vr="[object Symbol]",nr="[object Undefined]",Gt="[object WeakMap]",xo="[object WeakSet]",sn="[object ArrayBuffer]",Tn="[object DataView]",So="[object Float32Array]",qn="[object Float64Array]",pr="[object Int8Array]",Yi="[object Int16Array]",Ki="[object Int32Array]",or="[object Uint8Array]",Eo="[object Uint8ClampedArray]",Xi="[object Uint16Array]",Jo="[object Uint32Array]",Da=/\b__p \+= '';/g,mu=/\b(__p \+=) '' \+/g,La=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ji=/&(?:amp|lt|gt|quot|#39);/g,Qi=/[&<>"']/g,za=RegExp(Ji.source),_o=RegExp(Qi.source),es=/<%-([\s\S]+?)%>/g,bu=/<%([\s\S]+?)%>/g,ts=/<%=([\s\S]+?)%>/g,rs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ns=/^\w*$/,$a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qo=/[\\^$.*+?()[\]{}|]/g,ja=RegExp(Qo.source),os=/^\s+/,yu=/\s/,Fa=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wu=/\{\n\/\* \[wrapped with (.+)\] \*/,Gn=/,? & /,xu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Zn=/[()=,{}\[\]\/\s]/,ei=/\\(\\)?/g,Ba=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ha=/\w*$/,_e=/^[-+]0x[0-9a-f]+$/i,Pe=/^0b[01]+$/i,hr=/^\[object .+?Constructor\]$/,Dt=/^0o[0-7]+$/i,gr=/^(?:0|[1-9]\d*)$/,vr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xt=/($^)/,an=/['\n\r\u2028\u2029\\]/g,Ur="\\ud800-\\udfff",ko="\\u0300-\\u036f",is="\\ufe20-\\ufe2f",Su="\\u20d0-\\u20ff",Mh=ko+is+Su,Dh="\\u2700-\\u27bf",Lh="a-z\\xdf-\\xf6\\xf8-\\xff",SE="\\xac\\xb1\\xd7\\xf7",EE="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",_E="\\u2000-\\u206f",kE=" \\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",zh="A-Z\\xc0-\\xd6\\xd8-\\xde",$h="\\ufe0e\\ufe0f",jh=SE+EE+_E+kE,Eu="['’]",OE="["+Ur+"]",Fh="["+jh+"]",Wa="["+Mh+"]",Bh="\\d+",TE="["+Dh+"]",Hh="["+Lh+"]",Wh="[^"+Ur+jh+Bh+Dh+Lh+zh+"]",_u="\\ud83c[\\udffb-\\udfff]",AE="(?:"+Wa+"|"+_u+")",Vh="[^"+Ur+"]",ku="(?:\\ud83c[\\udde6-\\uddff]){2}",Ou="[\\ud800-\\udbff][\\udc00-\\udfff]",ti="["+zh+"]",Uh="\\u200d",qh="(?:"+Hh+"|"+Wh+")",RE="(?:"+ti+"|"+Wh+")",Gh="(?:"+Eu+"(?:d|ll|m|re|s|t|ve))?",Zh="(?:"+Eu+"(?:D|LL|M|RE|S|T|VE))?",Yh=AE+"?",Kh="["+$h+"]?",CE="(?:"+Uh+"(?:"+[Vh,ku,Ou].join("|")+")"+Kh+Yh+")*",IE="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",PE="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xh=Kh+Yh+CE,NE="(?:"+[TE,ku,Ou].join("|")+")"+Xh,ME="(?:"+[Vh+Wa+"?",Wa,ku,Ou,OE].join("|")+")",DE=RegExp(Eu,"g"),LE=RegExp(Wa,"g"),Tu=RegExp(_u+"(?="+_u+")|"+ME+Xh,"g"),zE=RegExp([ti+"?"+Hh+"+"+Gh+"(?="+[Fh,ti,"$"].join("|")+")",RE+"+"+Zh+"(?="+[Fh,ti+qh,"$"].join("|")+")",ti+"?"+qh+"+"+Gh,ti+"+"+Zh,PE,IE,Bh,NE].join("|"),"g"),$E=RegExp("["+Uh+Ur+Mh+$h+"]"),jE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FE=["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"],BE=-1,pt={};pt[So]=pt[qn]=pt[pr]=pt[Yi]=pt[Ki]=pt[or]=pt[Eo]=pt[Xi]=pt[Jo]=!0,pt[ie]=pt[re]=pt[sn]=pt[he]=pt[Tn]=pt[fe]=pt[K]=pt[je]=pt[De]=pt[gt]=pt[at]=pt[tt]=pt[ft]=pt[on]=pt[Gt]=!1;var ct={};ct[ie]=ct[re]=ct[sn]=ct[Tn]=ct[he]=ct[fe]=ct[So]=ct[qn]=ct[pr]=ct[Yi]=ct[Ki]=ct[De]=ct[gt]=ct[at]=ct[tt]=ct[ft]=ct[on]=ct[Vr]=ct[or]=ct[Eo]=ct[Xi]=ct[Jo]=!0,ct[K]=ct[je]=ct[Gt]=!1;var HE={À:"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"},WE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},VE={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},UE={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qE=parseFloat,GE=parseInt,Jh=typeof Rl=="object"&&Rl&&Rl.Object===Object&&Rl,ZE=typeof self=="object"&&self&&self.Object===Object&&self,Ft=Jh||ZE||Function("return this")(),Au=t&&!t.nodeType&&t,Oo=Au&&!0&&e&&!e.nodeType&&e,Qh=Oo&&Oo.exports===Au,Ru=Qh&&Jh.process,Cr=(function(){try{var q=Oo&&Oo.require&&Oo.require("util").types;return q||Ru&&Ru.binding&&Ru.binding("util")}catch{}})(),eg=Cr&&Cr.isArrayBuffer,tg=Cr&&Cr.isDate,rg=Cr&&Cr.isMap,ng=Cr&&Cr.isRegExp,og=Cr&&Cr.isSet,ig=Cr&&Cr.isTypedArray;function mr(q,ne,Q){switch(Q.length){case 0:return q.call(ne);case 1:return q.call(ne,Q[0]);case 2:return q.call(ne,Q[0],Q[1]);case 3:return q.call(ne,Q[0],Q[1],Q[2])}return q.apply(ne,Q)}function YE(q,ne,Q,be){for(var Re=-1,Ve=q==null?0:q.length;++Re<Ve;){var It=q[Re];ne(be,It,Q(It),q)}return be}function br(q,ne){for(var Q=-1,be=q==null?0:q.length;++Q<be&&ne(q[Q],Q,q)!==!1;);return q}function KE(q,ne){for(var Q=q==null?0:q.length;Q--&&ne(q[Q],Q,q)!==!1;);return q}function sg(q,ne){for(var Q=-1,be=q==null?0:q.length;++Q<be;)if(!ne(q[Q],Q,q))return!1;return!0}function Yn(q,ne){for(var Q=-1,be=q==null?0:q.length,Re=0,Ve=[];++Q<be;){var It=q[Q];ne(It,Q,q)&&(Ve[Re++]=It)}return Ve}function Va(q,ne){var Q=q==null?0:q.length;return!!Q&&ri(q,ne,0)>-1}function Cu(q,ne,Q){for(var be=-1,Re=q==null?0:q.length;++be<Re;)if(Q(ne,q[be]))return!0;return!1}function vt(q,ne){for(var Q=-1,be=q==null?0:q.length,Re=Array(be);++Q<be;)Re[Q]=ne(q[Q],Q,q);return Re}function Kn(q,ne){for(var Q=-1,be=ne.length,Re=q.length;++Q<be;)q[Re+Q]=ne[Q];return q}function Iu(q,ne,Q,be){var Re=-1,Ve=q==null?0:q.length;for(be&&Ve&&(Q=q[++Re]);++Re<Ve;)Q=ne(Q,q[Re],Re,q);return Q}function XE(q,ne,Q,be){var Re=q==null?0:q.length;for(be&&Re&&(Q=q[--Re]);Re--;)Q=ne(Q,q[Re],Re,q);return Q}function Pu(q,ne){for(var Q=-1,be=q==null?0:q.length;++Q<be;)if(ne(q[Q],Q,q))return!0;return!1}var JE=Nu("length");function QE(q){return q.split("")}function e_(q){return q.match(xu)||[]}function ag(q,ne,Q){var be;return Q(q,function(Re,Ve,It){if(ne(Re,Ve,It))return be=Ve,!1}),be}function Ua(q,ne,Q,be){for(var Re=q.length,Ve=Q+(be?1:-1);be?Ve--:++Ve<Re;)if(ne(q[Ve],Ve,q))return Ve;return-1}function ri(q,ne,Q){return ne===ne?f_(q,ne,Q):Ua(q,lg,Q)}function t_(q,ne,Q,be){for(var Re=Q-1,Ve=q.length;++Re<Ve;)if(be(q[Re],ne))return Re;return-1}function lg(q){return q!==q}function cg(q,ne){var Q=q==null?0:q.length;return Q?Du(q,ne)/Q:F}function Nu(q){return function(ne){return ne==null?r:ne[q]}}function Mu(q){return function(ne){return q==null?r:q[ne]}}function ug(q,ne,Q,be,Re){return Re(q,function(Ve,It,st){Q=be?(be=!1,Ve):ne(Q,Ve,It,st)}),Q}function r_(q,ne){var Q=q.length;for(q.sort(ne);Q--;)q[Q]=q[Q].value;return q}function Du(q,ne){for(var Q,be=-1,Re=q.length;++be<Re;){var Ve=ne(q[be]);Ve!==r&&(Q=Q===r?Ve:Q+Ve)}return Q}function Lu(q,ne){for(var Q=-1,be=Array(q);++Q<q;)be[Q]=ne(Q);return be}function n_(q,ne){return vt(ne,function(Q){return[Q,q[Q]]})}function dg(q){return q&&q.slice(0,gg(q)+1).replace(os,"")}function yr(q){return function(ne){return q(ne)}}function zu(q,ne){return vt(ne,function(Q){return q[Q]})}function ss(q,ne){return q.has(ne)}function fg(q,ne){for(var Q=-1,be=q.length;++Q<be&&ri(ne,q[Q],0)>-1;);return Q}function pg(q,ne){for(var Q=q.length;Q--&&ri(ne,q[Q],0)>-1;);return Q}function o_(q,ne){for(var Q=q.length,be=0;Q--;)q[Q]===ne&&++be;return be}var i_=Mu(HE),s_=Mu(WE);function a_(q){return"\\"+UE[q]}function l_(q,ne){return q==null?r:q[ne]}function ni(q){return $E.test(q)}function c_(q){return jE.test(q)}function u_(q){for(var ne,Q=[];!(ne=q.next()).done;)Q.push(ne.value);return Q}function $u(q){var ne=-1,Q=Array(q.size);return q.forEach(function(be,Re){Q[++ne]=[Re,be]}),Q}function hg(q,ne){return function(Q){return q(ne(Q))}}function Xn(q,ne){for(var Q=-1,be=q.length,Re=0,Ve=[];++Q<be;){var It=q[Q];(It===ne||It===p)&&(q[Q]=p,Ve[Re++]=Q)}return Ve}function qa(q){var ne=-1,Q=Array(q.size);return q.forEach(function(be){Q[++ne]=be}),Q}function d_(q){var ne=-1,Q=Array(q.size);return q.forEach(function(be){Q[++ne]=[be,be]}),Q}function f_(q,ne,Q){for(var be=Q-1,Re=q.length;++be<Re;)if(q[be]===ne)return be;return-1}function p_(q,ne,Q){for(var be=Q+1;be--;)if(q[be]===ne)return be;return be}function oi(q){return ni(q)?g_(q):JE(q)}function qr(q){return ni(q)?v_(q):QE(q)}function gg(q){for(var ne=q.length;ne--&&yu.test(q.charAt(ne)););return ne}var h_=Mu(VE);function g_(q){for(var ne=Tu.lastIndex=0;Tu.test(q);)++ne;return ne}function v_(q){return q.match(Tu)||[]}function m_(q){return q.match(zE)||[]}var b_=(function q(ne){ne=ne==null?Ft:ii.defaults(Ft.Object(),ne,ii.pick(Ft,FE));var Q=ne.Array,be=ne.Date,Re=ne.Error,Ve=ne.Function,It=ne.Math,st=ne.Object,ju=ne.RegExp,y_=ne.String,Ir=ne.TypeError,Ga=Q.prototype,w_=Ve.prototype,si=st.prototype,Za=ne["__core-js_shared__"],Ya=w_.toString,Ge=si.hasOwnProperty,x_=0,vg=(function(){var i=/[^.]+$/.exec(Za&&Za.keys&&Za.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),Ka=si.toString,S_=Ya.call(st),E_=Ft._,__=ju("^"+Ya.call(Ge).replace(Qo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xa=Qh?ne.Buffer:r,Jn=ne.Symbol,Ja=ne.Uint8Array,mg=Xa?Xa.allocUnsafe:r,Qa=hg(st.getPrototypeOf,st),bg=st.create,yg=si.propertyIsEnumerable,el=Ga.splice,wg=Jn?Jn.isConcatSpreadable:r,as=Jn?Jn.iterator:r,To=Jn?Jn.toStringTag:r,tl=(function(){try{var i=Po(st,"defineProperty");return i({},"",{}),i}catch{}})(),k_=ne.clearTimeout!==Ft.clearTimeout&&ne.clearTimeout,O_=be&&be.now!==Ft.Date.now&&be.now,T_=ne.setTimeout!==Ft.setTimeout&&ne.setTimeout,rl=It.ceil,nl=It.floor,Fu=st.getOwnPropertySymbols,A_=Xa?Xa.isBuffer:r,xg=ne.isFinite,R_=Ga.join,C_=hg(st.keys,st),Pt=It.max,Zt=It.min,I_=be.now,P_=ne.parseInt,Sg=It.random,N_=Ga.reverse,Bu=Po(ne,"DataView"),ls=Po(ne,"Map"),Hu=Po(ne,"Promise"),ai=Po(ne,"Set"),cs=Po(ne,"WeakMap"),us=Po(st,"create"),ol=cs&&new cs,li={},M_=No(Bu),D_=No(ls),L_=No(Hu),z_=No(ai),$_=No(cs),il=Jn?Jn.prototype:r,ds=il?il.valueOf:r,Eg=il?il.toString:r;function A(i){if(Et(i)&&!Ie(i)&&!(i instanceof Fe)){if(i instanceof Pr)return i;if(Ge.call(i,"__wrapped__"))return _v(i)}return new Pr(i)}var ci=(function(){function i(){}return function(a){if(!yt(a))return{};if(bg)return bg(a);i.prototype=a;var f=new i;return i.prototype=r,f}})();function sl(){}function Pr(i,a){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=r}A.templateSettings={escape:es,evaluate:bu,interpolate:ts,variable:"",imports:{_:A}},A.prototype=sl.prototype,A.prototype.constructor=A,Pr.prototype=ci(sl.prototype),Pr.prototype.constructor=Pr;function Fe(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function j_(){var i=new Fe(this.__wrapped__);return i.__actions__=ir(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=ir(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=ir(this.__views__),i}function F_(){if(this.__filtered__){var i=new Fe(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function B_(){var i=this.__wrapped__.value(),a=this.__dir__,f=Ie(i),E=a<0,O=f?i.length:0,C=Qk(0,O,this.__views__),z=C.start,B=C.end,G=B-z,se=E?B:z-1,ae=this.__iteratees__,ue=ae.length,ve=0,xe=Zt(G,this.__takeCount__);if(!f||!E&&O==G&&xe==G)return Gg(i,this.__actions__);var Te=[];e:for(;G--&&ve<xe;){se+=a;for(var Me=-1,ke=i[se];++Me<ue;){var $e=ae[Me],Be=$e.iteratee,Sr=$e.type,er=Be(ke);if(Sr==X)ke=er;else if(!er){if(Sr==N)continue e;break e}}Te[ve++]=ke}return Te}Fe.prototype=ci(sl.prototype),Fe.prototype.constructor=Fe;function Ao(i){var a=-1,f=i==null?0:i.length;for(this.clear();++a<f;){var E=i[a];this.set(E[0],E[1])}}function H_(){this.__data__=us?us(null):{},this.size=0}function W_(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a}function V_(i){var a=this.__data__;if(us){var f=a[i];return f===d?r:f}return Ge.call(a,i)?a[i]:r}function U_(i){var a=this.__data__;return us?a[i]!==r:Ge.call(a,i)}function q_(i,a){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=us&&a===r?d:a,this}Ao.prototype.clear=H_,Ao.prototype.delete=W_,Ao.prototype.get=V_,Ao.prototype.has=U_,Ao.prototype.set=q_;function An(i){var a=-1,f=i==null?0:i.length;for(this.clear();++a<f;){var E=i[a];this.set(E[0],E[1])}}function G_(){this.__data__=[],this.size=0}function Z_(i){var a=this.__data__,f=al(a,i);if(f<0)return!1;var E=a.length-1;return f==E?a.pop():el.call(a,f,1),--this.size,!0}function Y_(i){var a=this.__data__,f=al(a,i);return f<0?r:a[f][1]}function K_(i){return al(this.__data__,i)>-1}function X_(i,a){var f=this.__data__,E=al(f,i);return E<0?(++this.size,f.push([i,a])):f[E][1]=a,this}An.prototype.clear=G_,An.prototype.delete=Z_,An.prototype.get=Y_,An.prototype.has=K_,An.prototype.set=X_;function Rn(i){var a=-1,f=i==null?0:i.length;for(this.clear();++a<f;){var E=i[a];this.set(E[0],E[1])}}function J_(){this.size=0,this.__data__={hash:new Ao,map:new(ls||An),string:new Ao}}function Q_(i){var a=yl(this,i).delete(i);return this.size-=a?1:0,a}function ek(i){return yl(this,i).get(i)}function tk(i){return yl(this,i).has(i)}function rk(i,a){var f=yl(this,i),E=f.size;return f.set(i,a),this.size+=f.size==E?0:1,this}Rn.prototype.clear=J_,Rn.prototype.delete=Q_,Rn.prototype.get=ek,Rn.prototype.has=tk,Rn.prototype.set=rk;function Ro(i){var a=-1,f=i==null?0:i.length;for(this.__data__=new Rn;++a<f;)this.add(i[a])}function nk(i){return this.__data__.set(i,d),this}function ok(i){return this.__data__.has(i)}Ro.prototype.add=Ro.prototype.push=nk,Ro.prototype.has=ok;function Gr(i){var a=this.__data__=new An(i);this.size=a.size}function ik(){this.__data__=new An,this.size=0}function sk(i){var a=this.__data__,f=a.delete(i);return this.size=a.size,f}function ak(i){return this.__data__.get(i)}function lk(i){return this.__data__.has(i)}function ck(i,a){var f=this.__data__;if(f instanceof An){var E=f.__data__;if(!ls||E.length<o-1)return E.push([i,a]),this.size=++f.size,this;f=this.__data__=new Rn(E)}return f.set(i,a),this.size=f.size,this}Gr.prototype.clear=ik,Gr.prototype.delete=sk,Gr.prototype.get=ak,Gr.prototype.has=lk,Gr.prototype.set=ck;function _g(i,a){var f=Ie(i),E=!f&&Mo(i),O=!f&&!E&&no(i),C=!f&&!E&&!O&&pi(i),z=f||E||O||C,B=z?Lu(i.length,y_):[],G=B.length;for(var se in i)(a||Ge.call(i,se))&&!(z&&(se=="length"||O&&(se=="offset"||se=="parent")||C&&(se=="buffer"||se=="byteLength"||se=="byteOffset")||Pn(se,G)))&&B.push(se);return B}function kg(i){var a=i.length;return a?i[Qu(0,a-1)]:r}function uk(i,a){return wl(ir(i),Co(a,0,i.length))}function dk(i){return wl(ir(i))}function Wu(i,a,f){(f!==r&&!Yr(i[a],f)||f===r&&!(a in i))&&ln(i,a,f)}function fs(i,a,f){var E=i[a];(!(Ge.call(i,a)&&Yr(E,f))||f===r&&!(a in i))&&ln(i,a,f)}function al(i,a){for(var f=i.length;f--;)if(Yr(i[f][0],a))return f;return-1}function fk(i,a,f,E){return Qn(i,function(O,C,z){a(E,O,f(O),z)}),E}function Og(i,a){return i&&un(a,Lt(a),i)}function pk(i,a){return i&&un(a,ar(a),i)}function ln(i,a,f){a=="__proto__"&&tl?tl(i,a,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[a]=f}function Vu(i,a){for(var f=-1,E=a.length,O=Q(E),C=i==null;++f<E;)O[f]=C?r:kd(i,a[f]);return O}function Co(i,a,f){return i===i&&(f!==r&&(i=i<=f?i:f),a!==r&&(i=i>=a?i:a)),i}function Nr(i,a,f,E,O,C){var z,B=a&h,G=a&b,se=a&S;if(f&&(z=O?f(i,E,O,C):f(i)),z!==r)return z;if(!yt(i))return i;var ae=Ie(i);if(ae){if(z=tO(i),!B)return ir(i,z)}else{var ue=Yt(i),ve=ue==je||ue==me;if(no(i))return Kg(i,B);if(ue==at||ue==ie||ve&&!O){if(z=G||ve?{}:gv(i),!B)return G?Vk(i,pk(z,i)):Wk(i,Og(z,i))}else{if(!ct[ue])return O?i:{};z=rO(i,ue,B)}}C||(C=new Gr);var xe=C.get(i);if(xe)return xe;C.set(i,z),Vv(i)?i.forEach(function(ke){z.add(Nr(ke,a,f,ke,i,C))}):Hv(i)&&i.forEach(function(ke,$e){z.set($e,Nr(ke,a,f,$e,i,C))});var Te=se?G?ud:cd:G?ar:Lt,Me=ae?r:Te(i);return br(Me||i,function(ke,$e){Me&&($e=ke,ke=i[$e]),fs(z,$e,Nr(ke,a,f,$e,i,C))}),z}function hk(i){var a=Lt(i);return function(f){return Tg(f,i,a)}}function Tg(i,a,f){var E=f.length;if(i==null)return!E;for(i=st(i);E--;){var O=f[E],C=a[O],z=i[O];if(z===r&&!(O in i)||!C(z))return!1}return!0}function Ag(i,a,f){if(typeof i!="function")throw new Ir(l);return ys(function(){i.apply(r,f)},a)}function ps(i,a,f,E){var O=-1,C=Va,z=!0,B=i.length,G=[],se=a.length;if(!B)return G;f&&(a=vt(a,yr(f))),E?(C=Cu,z=!1):a.length>=o&&(C=ss,z=!1,a=new Ro(a));e:for(;++O<B;){var ae=i[O],ue=f==null?ae:f(ae);if(ae=E||ae!==0?ae:0,z&&ue===ue){for(var ve=se;ve--;)if(a[ve]===ue)continue e;G.push(ae)}else C(a,ue,E)||G.push(ae)}return G}var Qn=tv(cn),Rg=tv(qu,!0);function gk(i,a){var f=!0;return Qn(i,function(E,O,C){return f=!!a(E,O,C),f}),f}function ll(i,a,f){for(var E=-1,O=i.length;++E<O;){var C=i[E],z=a(C);if(z!=null&&(B===r?z===z&&!xr(z):f(z,B)))var B=z,G=C}return G}function vk(i,a,f,E){var O=i.length;for(f=Ne(f),f<0&&(f=-f>O?0:O+f),E=E===r||E>O?O:Ne(E),E<0&&(E+=O),E=f>E?0:qv(E);f<E;)i[f++]=a;return i}function Cg(i,a){var f=[];return Qn(i,function(E,O,C){a(E,O,C)&&f.push(E)}),f}function Bt(i,a,f,E,O){var C=-1,z=i.length;for(f||(f=oO),O||(O=[]);++C<z;){var B=i[C];a>0&&f(B)?a>1?Bt(B,a-1,f,E,O):Kn(O,B):E||(O[O.length]=B)}return O}var Uu=rv(),Ig=rv(!0);function cn(i,a){return i&&Uu(i,a,Lt)}function qu(i,a){return i&&Ig(i,a,Lt)}function cl(i,a){return Yn(a,function(f){return Nn(i[f])})}function Io(i,a){a=to(a,i);for(var f=0,E=a.length;i!=null&&f<E;)i=i[Zr(a[f++])];return f&&f==E?i:r}function Pg(i,a,f){var E=a(i);return Ie(i)?E:Kn(E,f(i))}function Jt(i){return i==null?i===r?nr:rr:To&&To in st(i)?Jk(i):dO(i)}function Gu(i,a){return i>a}function mk(i,a){return i!=null&&Ge.call(i,a)}function bk(i,a){return i!=null&&a in st(i)}function yk(i,a,f){return i>=Zt(a,f)&&i<Pt(a,f)}function Zu(i,a,f){for(var E=f?Cu:Va,O=i[0].length,C=i.length,z=C,B=Q(C),G=1/0,se=[];z--;){var ae=i[z];z&&a&&(ae=vt(ae,yr(a))),G=Zt(ae.length,G),B[z]=!f&&(a||O>=120&&ae.length>=120)?new Ro(z&&ae):r}ae=i[0];var ue=-1,ve=B[0];e:for(;++ue<O&&se.length<G;){var xe=ae[ue],Te=a?a(xe):xe;if(xe=f||xe!==0?xe:0,!(ve?ss(ve,Te):E(se,Te,f))){for(z=C;--z;){var Me=B[z];if(!(Me?ss(Me,Te):E(i[z],Te,f)))continue e}ve&&ve.push(Te),se.push(xe)}}return se}function wk(i,a,f,E){return cn(i,function(O,C,z){a(E,f(O),C,z)}),E}function hs(i,a,f){a=to(a,i),i=yv(i,a);var E=i==null?i:i[Zr(Dr(a))];return E==null?r:mr(E,i,f)}function Ng(i){return Et(i)&&Jt(i)==ie}function xk(i){return Et(i)&&Jt(i)==sn}function Sk(i){return Et(i)&&Jt(i)==fe}function gs(i,a,f,E,O){return i===a?!0:i==null||a==null||!Et(i)&&!Et(a)?i!==i&&a!==a:Ek(i,a,f,E,gs,O)}function Ek(i,a,f,E,O,C){var z=Ie(i),B=Ie(a),G=z?re:Yt(i),se=B?re:Yt(a);G=G==ie?at:G,se=se==ie?at:se;var ae=G==at,ue=se==at,ve=G==se;if(ve&&no(i)){if(!no(a))return!1;z=!0,ae=!1}if(ve&&!ae)return C||(C=new Gr),z||pi(i)?fv(i,a,f,E,O,C):Kk(i,a,G,f,E,O,C);if(!(f&v)){var xe=ae&&Ge.call(i,"__wrapped__"),Te=ue&&Ge.call(a,"__wrapped__");if(xe||Te){var Me=xe?i.value():i,ke=Te?a.value():a;return C||(C=new Gr),O(Me,ke,f,E,C)}}return ve?(C||(C=new Gr),Xk(i,a,f,E,O,C)):!1}function _k(i){return Et(i)&&Yt(i)==De}function Yu(i,a,f,E){var O=f.length,C=O,z=!E;if(i==null)return!C;for(i=st(i);O--;){var B=f[O];if(z&&B[2]?B[1]!==i[B[0]]:!(B[0]in i))return!1}for(;++O<C;){B=f[O];var G=B[0],se=i[G],ae=B[1];if(z&&B[2]){if(se===r&&!(G in i))return!1}else{var ue=new Gr;if(E)var ve=E(se,ae,G,i,a,ue);if(!(ve===r?gs(ae,se,v|y,E,ue):ve))return!1}}return!0}function Mg(i){if(!yt(i)||sO(i))return!1;var a=Nn(i)?__:hr;return a.test(No(i))}function kk(i){return Et(i)&&Jt(i)==tt}function Ok(i){return Et(i)&&Yt(i)==ft}function Tk(i){return Et(i)&&Ol(i.length)&&!!pt[Jt(i)]}function Dg(i){return typeof i=="function"?i:i==null?lr:typeof i=="object"?Ie(i)?$g(i[0],i[1]):zg(i):om(i)}function Ku(i){if(!bs(i))return C_(i);var a=[];for(var f in st(i))Ge.call(i,f)&&f!="constructor"&&a.push(f);return a}function Ak(i){if(!yt(i))return uO(i);var a=bs(i),f=[];for(var E in i)E=="constructor"&&(a||!Ge.call(i,E))||f.push(E);return f}function Xu(i,a){return i<a}function Lg(i,a){var f=-1,E=sr(i)?Q(i.length):[];return Qn(i,function(O,C,z){E[++f]=a(O,C,z)}),E}function zg(i){var a=fd(i);return a.length==1&&a[0][2]?mv(a[0][0],a[0][1]):function(f){return f===i||Yu(f,i,a)}}function $g(i,a){return hd(i)&&vv(a)?mv(Zr(i),a):function(f){var E=kd(f,i);return E===r&&E===a?Od(f,i):gs(a,E,v|y)}}function ul(i,a,f,E,O){i!==a&&Uu(a,function(C,z){if(O||(O=new Gr),yt(C))Rk(i,a,z,f,ul,E,O);else{var B=E?E(vd(i,z),C,z+"",i,a,O):r;B===r&&(B=C),Wu(i,z,B)}},ar)}function Rk(i,a,f,E,O,C,z){var B=vd(i,f),G=vd(a,f),se=z.get(G);if(se){Wu(i,f,se);return}var ae=C?C(B,G,f+"",i,a,z):r,ue=ae===r;if(ue){var ve=Ie(G),xe=!ve&&no(G),Te=!ve&&!xe&&pi(G);ae=G,ve||xe||Te?Ie(B)?ae=B:_t(B)?ae=ir(B):xe?(ue=!1,ae=Kg(G,!0)):Te?(ue=!1,ae=Xg(G,!0)):ae=[]:ws(G)||Mo(G)?(ae=B,Mo(B)?ae=Gv(B):(!yt(B)||Nn(B))&&(ae=gv(G))):ue=!1}ue&&(z.set(G,ae),O(ae,G,E,C,z),z.delete(G)),Wu(i,f,ae)}function jg(i,a){var f=i.length;if(f)return a+=a<0?f:0,Pn(a,f)?i[a]:r}function Fg(i,a,f){a.length?a=vt(a,function(C){return Ie(C)?function(z){return Io(z,C.length===1?C[0]:C)}:C}):a=[lr];var E=-1;a=vt(a,yr(Oe()));var O=Lg(i,function(C,z,B){var G=vt(a,function(se){return se(C)});return{criteria:G,index:++E,value:C}});return r_(O,function(C,z){return Hk(C,z,f)})}function Ck(i,a){return Bg(i,a,function(f,E){return Od(i,E)})}function Bg(i,a,f){for(var E=-1,O=a.length,C={};++E<O;){var z=a[E],B=Io(i,z);f(B,z)&&vs(C,to(z,i),B)}return C}function Ik(i){return function(a){return Io(a,i)}}function Ju(i,a,f,E){var O=E?t_:ri,C=-1,z=a.length,B=i;for(i===a&&(a=ir(a)),f&&(B=vt(i,yr(f)));++C<z;)for(var G=0,se=a[C],ae=f?f(se):se;(G=O(B,ae,G,E))>-1;)B!==i&&el.call(B,G,1),el.call(i,G,1);return i}function Hg(i,a){for(var f=i?a.length:0,E=f-1;f--;){var O=a[f];if(f==E||O!==C){var C=O;Pn(O)?el.call(i,O,1):rd(i,O)}}return i}function Qu(i,a){return i+nl(Sg()*(a-i+1))}function Pk(i,a,f,E){for(var O=-1,C=Pt(rl((a-i)/(f||1)),0),z=Q(C);C--;)z[E?C:++O]=i,i+=f;return z}function ed(i,a){var f="";if(!i||a<1||a>ge)return f;do a%2&&(f+=i),a=nl(a/2),a&&(i+=i);while(a);return f}function Le(i,a){return md(bv(i,a,lr),i+"")}function Nk(i){return kg(hi(i))}function Mk(i,a){var f=hi(i);return wl(f,Co(a,0,f.length))}function vs(i,a,f,E){if(!yt(i))return i;a=to(a,i);for(var O=-1,C=a.length,z=C-1,B=i;B!=null&&++O<C;){var G=Zr(a[O]),se=f;if(G==="__proto__"||G==="constructor"||G==="prototype")return i;if(O!=z){var ae=B[G];se=E?E(ae,G,B):r,se===r&&(se=yt(ae)?ae:Pn(a[O+1])?[]:{})}fs(B,G,se),B=B[G]}return i}var Wg=ol?function(i,a){return ol.set(i,a),i}:lr,Dk=tl?function(i,a){return tl(i,"toString",{configurable:!0,enumerable:!1,value:Ad(a),writable:!0})}:lr;function Lk(i){return wl(hi(i))}function Mr(i,a,f){var E=-1,O=i.length;a<0&&(a=-a>O?0:O+a),f=f>O?O:f,f<0&&(f+=O),O=a>f?0:f-a>>>0,a>>>=0;for(var C=Q(O);++E<O;)C[E]=i[E+a];return C}function zk(i,a){var f;return Qn(i,function(E,O,C){return f=a(E,O,C),!f}),!!f}function dl(i,a,f){var E=0,O=i==null?E:i.length;if(typeof a=="number"&&a===a&&O<=Z){for(;E<O;){var C=E+O>>>1,z=i[C];z!==null&&!xr(z)&&(f?z<=a:z<a)?E=C+1:O=C}return O}return td(i,a,lr,f)}function td(i,a,f,E){var O=0,C=i==null?0:i.length;if(C===0)return 0;a=f(a);for(var z=a!==a,B=a===null,G=xr(a),se=a===r;O<C;){var ae=nl((O+C)/2),ue=f(i[ae]),ve=ue!==r,xe=ue===null,Te=ue===ue,Me=xr(ue);if(z)var ke=E||Te;else se?ke=Te&&(E||ve):B?ke=Te&&ve&&(E||!xe):G?ke=Te&&ve&&!xe&&(E||!Me):xe||Me?ke=!1:ke=E?ue<=a:ue<a;ke?O=ae+1:C=ae}return Zt(C,te)}function Vg(i,a){for(var f=-1,E=i.length,O=0,C=[];++f<E;){var z=i[f],B=a?a(z):z;if(!f||!Yr(B,G)){var G=B;C[O++]=z===0?0:z}}return C}function Ug(i){return typeof i=="number"?i:xr(i)?F:+i}function wr(i){if(typeof i=="string")return i;if(Ie(i))return vt(i,wr)+"";if(xr(i))return Eg?Eg.call(i):"";var a=i+"";return a=="0"&&1/i==-Y?"-0":a}function eo(i,a,f){var E=-1,O=Va,C=i.length,z=!0,B=[],G=B;if(f)z=!1,O=Cu;else if(C>=o){var se=a?null:Zk(i);if(se)return qa(se);z=!1,O=ss,G=new Ro}else G=a?[]:B;e:for(;++E<C;){var ae=i[E],ue=a?a(ae):ae;if(ae=f||ae!==0?ae:0,z&&ue===ue){for(var ve=G.length;ve--;)if(G[ve]===ue)continue e;a&&G.push(ue),B.push(ae)}else O(G,ue,f)||(G!==B&&G.push(ue),B.push(ae))}return B}function rd(i,a){a=to(a,i);var f=-1,E=a.length;if(!E)return!0;for(;++f<E;){var O=Zr(a[f]);if(O==="__proto__"&&!Ge.call(i,"__proto__")||(O==="constructor"||O==="prototype")&&f<E-1)return!1}var C=yv(i,a);return C==null||delete C[Zr(Dr(a))]}function qg(i,a,f,E){return vs(i,a,f(Io(i,a)),E)}function fl(i,a,f,E){for(var O=i.length,C=E?O:-1;(E?C--:++C<O)&&a(i[C],C,i););return f?Mr(i,E?0:C,E?C+1:O):Mr(i,E?C+1:0,E?O:C)}function Gg(i,a){var f=i;return f instanceof Fe&&(f=f.value()),Iu(a,function(E,O){return O.func.apply(O.thisArg,Kn([E],O.args))},f)}function nd(i,a,f){var E=i.length;if(E<2)return E?eo(i[0]):[];for(var O=-1,C=Q(E);++O<E;)for(var z=i[O],B=-1;++B<E;)B!=O&&(C[O]=ps(C[O]||z,i[B],a,f));return eo(Bt(C,1),a,f)}function Zg(i,a,f){for(var E=-1,O=i.length,C=a.length,z={};++E<O;){var B=E<C?a[E]:r;f(z,i[E],B)}return z}function od(i){return _t(i)?i:[]}function id(i){return typeof i=="function"?i:lr}function to(i,a){return Ie(i)?i:hd(i,a)?[i]:Ev(Ze(i))}var $k=Le;function ro(i,a,f){var E=i.length;return f=f===r?E:f,!a&&f>=E?i:Mr(i,a,f)}var Yg=k_||function(i){return Ft.clearTimeout(i)};function Kg(i,a){if(a)return i.slice();var f=i.length,E=mg?mg(f):new i.constructor(f);return i.copy(E),E}function sd(i){var a=new i.constructor(i.byteLength);return new Ja(a).set(new Ja(i)),a}function jk(i,a){var f=a?sd(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function Fk(i){var a=new i.constructor(i.source,Ha.exec(i));return a.lastIndex=i.lastIndex,a}function Bk(i){return ds?st(ds.call(i)):{}}function Xg(i,a){var f=a?sd(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function Jg(i,a){if(i!==a){var f=i!==r,E=i===null,O=i===i,C=xr(i),z=a!==r,B=a===null,G=a===a,se=xr(a);if(!B&&!se&&!C&&i>a||C&&z&&G&&!B&&!se||E&&z&&G||!f&&G||!O)return 1;if(!E&&!C&&!se&&i<a||se&&f&&O&&!E&&!C||B&&f&&O||!z&&O||!G)return-1}return 0}function Hk(i,a,f){for(var E=-1,O=i.criteria,C=a.criteria,z=O.length,B=f.length;++E<z;){var G=Jg(O[E],C[E]);if(G){if(E>=B)return G;var se=f[E];return G*(se=="desc"?-1:1)}}return i.index-a.index}function Qg(i,a,f,E){for(var O=-1,C=i.length,z=f.length,B=-1,G=a.length,se=Pt(C-z,0),ae=Q(G+se),ue=!E;++B<G;)ae[B]=a[B];for(;++O<z;)(ue||O<C)&&(ae[f[O]]=i[O]);for(;se--;)ae[B++]=i[O++];return ae}function ev(i,a,f,E){for(var O=-1,C=i.length,z=-1,B=f.length,G=-1,se=a.length,ae=Pt(C-B,0),ue=Q(ae+se),ve=!E;++O<ae;)ue[O]=i[O];for(var xe=O;++G<se;)ue[xe+G]=a[G];for(;++z<B;)(ve||O<C)&&(ue[xe+f[z]]=i[O++]);return ue}function ir(i,a){var f=-1,E=i.length;for(a||(a=Q(E));++f<E;)a[f]=i[f];return a}function un(i,a,f,E){var O=!f;f||(f={});for(var C=-1,z=a.length;++C<z;){var B=a[C],G=E?E(f[B],i[B],B,f,i):r;G===r&&(G=i[B]),O?ln(f,B,G):fs(f,B,G)}return f}function Wk(i,a){return un(i,pd(i),a)}function Vk(i,a){return un(i,pv(i),a)}function pl(i,a){return function(f,E){var O=Ie(f)?YE:fk,C=a?a():{};return O(f,i,Oe(E,2),C)}}function ui(i){return Le(function(a,f){var E=-1,O=f.length,C=O>1?f[O-1]:r,z=O>2?f[2]:r;for(C=i.length>3&&typeof C=="function"?(O--,C):r,z&&Qt(f[0],f[1],z)&&(C=O<3?r:C,O=1),a=st(a);++E<O;){var B=f[E];B&&i(a,B,E,C)}return a})}function tv(i,a){return function(f,E){if(f==null)return f;if(!sr(f))return i(f,E);for(var O=f.length,C=a?O:-1,z=st(f);(a?C--:++C<O)&&E(z[C],C,z)!==!1;);return f}}function rv(i){return function(a,f,E){for(var O=-1,C=st(a),z=E(a),B=z.length;B--;){var G=z[i?B:++O];if(f(C[G],G,C)===!1)break}return a}}function Uk(i,a,f){var E=a&m,O=ms(i);function C(){var z=this&&this!==Ft&&this instanceof C?O:i;return z.apply(E?f:this,arguments)}return C}function nv(i){return function(a){a=Ze(a);var f=ni(a)?qr(a):r,E=f?f[0]:a.charAt(0),O=f?ro(f,1).join(""):a.slice(1);return E[i]()+O}}function di(i){return function(a){return Iu(rm(tm(a).replace(DE,"")),i,"")}}function ms(i){return function(){var a=arguments;switch(a.length){case 0:return new i;case 1:return new i(a[0]);case 2:return new i(a[0],a[1]);case 3:return new i(a[0],a[1],a[2]);case 4:return new i(a[0],a[1],a[2],a[3]);case 5:return new i(a[0],a[1],a[2],a[3],a[4]);case 6:return new i(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new i(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var f=ci(i.prototype),E=i.apply(f,a);return yt(E)?E:f}}function qk(i,a,f){var E=ms(i);function O(){for(var C=arguments.length,z=Q(C),B=C,G=fi(O);B--;)z[B]=arguments[B];var se=C<3&&z[0]!==G&&z[C-1]!==G?[]:Xn(z,G);if(C-=se.length,C<f)return lv(i,a,hl,O.placeholder,r,z,se,r,r,f-C);var ae=this&&this!==Ft&&this instanceof O?E:i;return mr(ae,this,z)}return O}function ov(i){return function(a,f,E){var O=st(a);if(!sr(a)){var C=Oe(f,3);a=Lt(a),f=function(B){return C(O[B],B,O)}}var z=i(a,f,E);return z>-1?O[C?a[z]:z]:r}}function iv(i){return In(function(a){var f=a.length,E=f,O=Pr.prototype.thru;for(i&&a.reverse();E--;){var C=a[E];if(typeof C!="function")throw new Ir(l);if(O&&!z&&bl(C)=="wrapper")var z=new Pr([],!0)}for(E=z?E:f;++E<f;){C=a[E];var B=bl(C),G=B=="wrapper"?dd(C):r;G&&gd(G[0])&&G[1]==(I|k|R|L)&&!G[4].length&&G[9]==1?z=z[bl(G[0])].apply(z,G[3]):z=C.length==1&&gd(C)?z[B]():z.thru(C)}return function(){var se=arguments,ae=se[0];if(z&&se.length==1&&Ie(ae))return z.plant(ae).value();for(var ue=0,ve=f?a[ue].apply(this,se):ae;++ue<f;)ve=a[ue].call(this,ve);return ve}})}function hl(i,a,f,E,O,C,z,B,G,se){var ae=a&I,ue=a&m,ve=a&w,xe=a&(k|_),Te=a&W,Me=ve?r:ms(i);function ke(){for(var $e=arguments.length,Be=Q($e),Sr=$e;Sr--;)Be[Sr]=arguments[Sr];if(xe)var er=fi(ke),Er=o_(Be,er);if(E&&(Be=Qg(Be,E,O,xe)),C&&(Be=ev(Be,C,z,xe)),$e-=Er,xe&&$e<se){var kt=Xn(Be,er);return lv(i,a,hl,ke.placeholder,f,Be,kt,B,G,se-$e)}var Kr=ue?f:this,Dn=ve?Kr[i]:i;return $e=Be.length,B?Be=fO(Be,B):Te&&$e>1&&Be.reverse(),ae&&G<$e&&(Be.length=G),this&&this!==Ft&&this instanceof ke&&(Dn=Me||ms(Dn)),Dn.apply(Kr,Be)}return ke}function sv(i,a){return function(f,E){return wk(f,i,a(E),{})}}function gl(i,a){return function(f,E){var O;if(f===r&&E===r)return a;if(f!==r&&(O=f),E!==r){if(O===r)return E;typeof f=="string"||typeof E=="string"?(f=wr(f),E=wr(E)):(f=Ug(f),E=Ug(E)),O=i(f,E)}return O}}function ad(i){return In(function(a){return a=vt(a,yr(Oe())),Le(function(f){var E=this;return i(a,function(O){return mr(O,E,f)})})})}function vl(i,a){a=a===r?" ":wr(a);var f=a.length;if(f<2)return f?ed(a,i):a;var E=ed(a,rl(i/oi(a)));return ni(a)?ro(qr(E),0,i).join(""):E.slice(0,i)}function Gk(i,a,f,E){var O=a&m,C=ms(i);function z(){for(var B=-1,G=arguments.length,se=-1,ae=E.length,ue=Q(ae+G),ve=this&&this!==Ft&&this instanceof z?C:i;++se<ae;)ue[se]=E[se];for(;G--;)ue[se++]=arguments[++B];return mr(ve,O?f:this,ue)}return z}function av(i){return function(a,f,E){return E&&typeof E!="number"&&Qt(a,f,E)&&(f=E=r),a=Mn(a),f===r?(f=a,a=0):f=Mn(f),E=E===r?a<f?1:-1:Mn(E),Pk(a,f,E,i)}}function ml(i){return function(a,f){return typeof a=="string"&&typeof f=="string"||(a=Lr(a),f=Lr(f)),i(a,f)}}function lv(i,a,f,E,O,C,z,B,G,se){var ae=a&k,ue=ae?z:r,ve=ae?r:z,xe=ae?C:r,Te=ae?r:C;a|=ae?R:j,a&=~(ae?j:R),a&x||(a&=-4);var Me=[i,a,O,xe,ue,Te,ve,B,G,se],ke=f.apply(r,Me);return gd(i)&&wv(ke,Me),ke.placeholder=E,xv(ke,i,a)}function ld(i){var a=It[i];return function(f,E){if(f=Lr(f),E=E==null?0:Zt(Ne(E),292),E&&xg(f)){var O=(Ze(f)+"e").split("e"),C=a(O[0]+"e"+(+O[1]+E));return O=(Ze(C)+"e").split("e"),+(O[0]+"e"+(+O[1]-E))}return a(f)}}var Zk=ai&&1/qa(new ai([,-0]))[1]==Y?function(i){return new ai(i)}:Id;function cv(i){return function(a){var f=Yt(a);return f==De?$u(a):f==ft?d_(a):n_(a,i(a))}}function Cn(i,a,f,E,O,C,z,B){var G=a&w;if(!G&&typeof i!="function")throw new Ir(l);var se=E?E.length:0;if(se||(a&=-97,E=O=r),z=z===r?z:Pt(Ne(z),0),B=B===r?B:Ne(B),se-=O?O.length:0,a&j){var ae=E,ue=O;E=O=r}var ve=G?r:dd(i),xe=[i,a,f,E,O,ae,ue,C,z,B];if(ve&&cO(xe,ve),i=xe[0],a=xe[1],f=xe[2],E=xe[3],O=xe[4],B=xe[9]=xe[9]===r?G?0:i.length:Pt(xe[9]-se,0),!B&&a&(k|_)&&(a&=-25),!a||a==m)var Te=Uk(i,a,f);else a==k||a==_?Te=qk(i,a,B):(a==R||a==(m|R))&&!O.length?Te=Gk(i,a,f,E):Te=hl.apply(r,xe);var Me=ve?Wg:wv;return xv(Me(Te,xe),i,a)}function uv(i,a,f,E){return i===r||Yr(i,si[f])&&!Ge.call(E,f)?a:i}function dv(i,a,f,E,O,C){return yt(i)&&yt(a)&&(C.set(a,i),ul(i,a,r,dv,C),C.delete(a)),i}function Yk(i){return ws(i)?r:i}function fv(i,a,f,E,O,C){var z=f&v,B=i.length,G=a.length;if(B!=G&&!(z&&G>B))return!1;var se=C.get(i),ae=C.get(a);if(se&&ae)return se==a&&ae==i;var ue=-1,ve=!0,xe=f&y?new Ro:r;for(C.set(i,a),C.set(a,i);++ue<B;){var Te=i[ue],Me=a[ue];if(E)var ke=z?E(Me,Te,ue,a,i,C):E(Te,Me,ue,i,a,C);if(ke!==r){if(ke)continue;ve=!1;break}if(xe){if(!Pu(a,function($e,Be){if(!ss(xe,Be)&&(Te===$e||O(Te,$e,f,E,C)))return xe.push(Be)})){ve=!1;break}}else if(!(Te===Me||O(Te,Me,f,E,C))){ve=!1;break}}return C.delete(i),C.delete(a),ve}function Kk(i,a,f,E,O,C,z){switch(f){case Tn:if(i.byteLength!=a.byteLength||i.byteOffset!=a.byteOffset)return!1;i=i.buffer,a=a.buffer;case sn:return!(i.byteLength!=a.byteLength||!C(new Ja(i),new Ja(a)));case he:case fe:case gt:return Yr(+i,+a);case K:return i.name==a.name&&i.message==a.message;case tt:case on:return i==a+"";case De:var B=$u;case ft:var G=E&v;if(B||(B=qa),i.size!=a.size&&!G)return!1;var se=z.get(i);if(se)return se==a;E|=y,z.set(i,a);var ae=fv(B(i),B(a),E,O,C,z);return z.delete(i),ae;case Vr:if(ds)return ds.call(i)==ds.call(a)}return!1}function Xk(i,a,f,E,O,C){var z=f&v,B=cd(i),G=B.length,se=cd(a),ae=se.length;if(G!=ae&&!z)return!1;for(var ue=G;ue--;){var ve=B[ue];if(!(z?ve in a:Ge.call(a,ve)))return!1}var xe=C.get(i),Te=C.get(a);if(xe&&Te)return xe==a&&Te==i;var Me=!0;C.set(i,a),C.set(a,i);for(var ke=z;++ue<G;){ve=B[ue];var $e=i[ve],Be=a[ve];if(E)var Sr=z?E(Be,$e,ve,a,i,C):E($e,Be,ve,i,a,C);if(!(Sr===r?$e===Be||O($e,Be,f,E,C):Sr)){Me=!1;break}ke||(ke=ve=="constructor")}if(Me&&!ke){var er=i.constructor,Er=a.constructor;er!=Er&&"constructor"in i&&"constructor"in a&&!(typeof er=="function"&&er instanceof er&&typeof Er=="function"&&Er instanceof Er)&&(Me=!1)}return C.delete(i),C.delete(a),Me}function In(i){return md(bv(i,r,Tv),i+"")}function cd(i){return Pg(i,Lt,pd)}function ud(i){return Pg(i,ar,pv)}var dd=ol?function(i){return ol.get(i)}:Id;function bl(i){for(var a=i.name+"",f=li[a],E=Ge.call(li,a)?f.length:0;E--;){var O=f[E],C=O.func;if(C==null||C==i)return O.name}return a}function fi(i){var a=Ge.call(A,"placeholder")?A:i;return a.placeholder}function Oe(){var i=A.iteratee||Rd;return i=i===Rd?Dg:i,arguments.length?i(arguments[0],arguments[1]):i}function yl(i,a){var f=i.__data__;return iO(a)?f[typeof a=="string"?"string":"hash"]:f.map}function fd(i){for(var a=Lt(i),f=a.length;f--;){var E=a[f],O=i[E];a[f]=[E,O,vv(O)]}return a}function Po(i,a){var f=l_(i,a);return Mg(f)?f:r}function Jk(i){var a=Ge.call(i,To),f=i[To];try{i[To]=r;var E=!0}catch{}var O=Ka.call(i);return E&&(a?i[To]=f:delete i[To]),O}var pd=Fu?function(i){return i==null?[]:(i=st(i),Yn(Fu(i),function(a){return yg.call(i,a)}))}:Pd,pv=Fu?function(i){for(var a=[];i;)Kn(a,pd(i)),i=Qa(i);return a}:Pd,Yt=Jt;(Bu&&Yt(new Bu(new ArrayBuffer(1)))!=Tn||ls&&Yt(new ls)!=De||Hu&&Yt(Hu.resolve())!=St||ai&&Yt(new ai)!=ft||cs&&Yt(new cs)!=Gt)&&(Yt=function(i){var a=Jt(i),f=a==at?i.constructor:r,E=f?No(f):"";if(E)switch(E){case M_:return Tn;case D_:return De;case L_:return St;case z_:return ft;case $_:return Gt}return a});function Qk(i,a,f){for(var E=-1,O=f.length;++E<O;){var C=f[E],z=C.size;switch(C.type){case"drop":i+=z;break;case"dropRight":a-=z;break;case"take":a=Zt(a,i+z);break;case"takeRight":i=Pt(i,a-z);break}}return{start:i,end:a}}function eO(i){var a=i.match(wu);return a?a[1].split(Gn):[]}function hv(i,a,f){a=to(a,i);for(var E=-1,O=a.length,C=!1;++E<O;){var z=Zr(a[E]);if(!(C=i!=null&&f(i,z)))break;i=i[z]}return C||++E!=O?C:(O=i==null?0:i.length,!!O&&Ol(O)&&Pn(z,O)&&(Ie(i)||Mo(i)))}function tO(i){var a=i.length,f=new i.constructor(a);return a&&typeof i[0]=="string"&&Ge.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function gv(i){return typeof i.constructor=="function"&&!bs(i)?ci(Qa(i)):{}}function rO(i,a,f){var E=i.constructor;switch(a){case sn:return sd(i);case he:case fe:return new E(+i);case Tn:return jk(i,f);case So:case qn:case pr:case Yi:case Ki:case or:case Eo:case Xi:case Jo:return Xg(i,f);case De:return new E;case gt:case on:return new E(i);case tt:return Fk(i);case ft:return new E;case Vr:return Bk(i)}}function nO(i,a){var f=a.length;if(!f)return i;var E=f-1;return a[E]=(f>1?"& ":"")+a[E],a=a.join(f>2?", ":" "),i.replace(Fa,`{
233
+ /* [wrapped with `+a+`] */
234
+ `)}function oO(i){return Ie(i)||Mo(i)||!!(wg&&i&&i[wg])}function Pn(i,a){var f=typeof i;return a=a??ge,!!a&&(f=="number"||f!="symbol"&&gr.test(i))&&i>-1&&i%1==0&&i<a}function Qt(i,a,f){if(!yt(f))return!1;var E=typeof a;return(E=="number"?sr(f)&&Pn(a,f.length):E=="string"&&a in f)?Yr(f[a],i):!1}function hd(i,a){if(Ie(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||xr(i)?!0:ns.test(i)||!rs.test(i)||a!=null&&i in st(a)}function iO(i){var a=typeof i;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?i!=="__proto__":i===null}function gd(i){var a=bl(i),f=A[a];if(typeof f!="function"||!(a in Fe.prototype))return!1;if(i===f)return!0;var E=dd(f);return!!E&&i===E[0]}function sO(i){return!!vg&&vg in i}var aO=Za?Nn:Nd;function bs(i){var a=i&&i.constructor,f=typeof a=="function"&&a.prototype||si;return i===f}function vv(i){return i===i&&!yt(i)}function mv(i,a){return function(f){return f==null?!1:f[i]===a&&(a!==r||i in st(f))}}function lO(i){var a=_l(i,function(E){return f.size===g&&f.clear(),E}),f=a.cache;return a}function cO(i,a){var f=i[1],E=a[1],O=f|E,C=O<(m|w|I),z=E==I&&f==k||E==I&&f==L&&i[7].length<=a[8]||E==(I|L)&&a[7].length<=a[8]&&f==k;if(!(C||z))return i;E&m&&(i[2]=a[2],O|=f&m?0:x);var B=a[3];if(B){var G=i[3];i[3]=G?Qg(G,B,a[4]):B,i[4]=G?Xn(i[3],p):a[4]}return B=a[5],B&&(G=i[5],i[5]=G?ev(G,B,a[6]):B,i[6]=G?Xn(i[5],p):a[6]),B=a[7],B&&(i[7]=B),E&I&&(i[8]=i[8]==null?a[8]:Zt(i[8],a[8])),i[9]==null&&(i[9]=a[9]),i[0]=a[0],i[1]=O,i}function uO(i){var a=[];if(i!=null)for(var f in st(i))a.push(f);return a}function dO(i){return Ka.call(i)}function bv(i,a,f){return a=Pt(a===r?i.length-1:a,0),function(){for(var E=arguments,O=-1,C=Pt(E.length-a,0),z=Q(C);++O<C;)z[O]=E[a+O];O=-1;for(var B=Q(a+1);++O<a;)B[O]=E[O];return B[a]=f(z),mr(i,this,B)}}function yv(i,a){return a.length<2?i:Io(i,Mr(a,0,-1))}function fO(i,a){for(var f=i.length,E=Zt(a.length,f),O=ir(i);E--;){var C=a[E];i[E]=Pn(C,f)?O[C]:r}return i}function vd(i,a){if(!(a==="constructor"&&typeof i[a]=="function")&&a!="__proto__")return i[a]}var wv=Sv(Wg),ys=T_||function(i,a){return Ft.setTimeout(i,a)},md=Sv(Dk);function xv(i,a,f){var E=a+"";return md(i,nO(E,pO(eO(E),f)))}function Sv(i){var a=0,f=0;return function(){var E=I_(),O=V-(E-f);if(f=E,O>0){if(++a>=U)return arguments[0]}else a=0;return i.apply(r,arguments)}}function wl(i,a){var f=-1,E=i.length,O=E-1;for(a=a===r?E:a;++f<a;){var C=Qu(f,O),z=i[C];i[C]=i[f],i[f]=z}return i.length=a,i}var Ev=lO(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace($a,function(f,E,O,C){a.push(O?C.replace(ei,"$1"):E||f)}),a});function Zr(i){if(typeof i=="string"||xr(i))return i;var a=i+"";return a=="0"&&1/i==-Y?"-0":a}function No(i){if(i!=null){try{return Ya.call(i)}catch{}try{return i+""}catch{}}return""}function pO(i,a){return br(de,function(f){var E="_."+f[0];a&f[1]&&!Va(i,E)&&i.push(E)}),i.sort()}function _v(i){if(i instanceof Fe)return i.clone();var a=new Pr(i.__wrapped__,i.__chain__);return a.__actions__=ir(i.__actions__),a.__index__=i.__index__,a.__values__=i.__values__,a}function hO(i,a,f){(f?Qt(i,a,f):a===r)?a=1:a=Pt(Ne(a),0);var E=i==null?0:i.length;if(!E||a<1)return[];for(var O=0,C=0,z=Q(rl(E/a));O<E;)z[C++]=Mr(i,O,O+=a);return z}function gO(i){for(var a=-1,f=i==null?0:i.length,E=0,O=[];++a<f;){var C=i[a];C&&(O[E++]=C)}return O}function vO(){var i=arguments.length;if(!i)return[];for(var a=Q(i-1),f=arguments[0],E=i;E--;)a[E-1]=arguments[E];return Kn(Ie(f)?ir(f):[f],Bt(a,1))}var mO=Le(function(i,a){return _t(i)?ps(i,Bt(a,1,_t,!0)):[]}),bO=Le(function(i,a){var f=Dr(a);return _t(f)&&(f=r),_t(i)?ps(i,Bt(a,1,_t,!0),Oe(f,2)):[]}),yO=Le(function(i,a){var f=Dr(a);return _t(f)&&(f=r),_t(i)?ps(i,Bt(a,1,_t,!0),r,f):[]});function wO(i,a,f){var E=i==null?0:i.length;return E?(a=f||a===r?1:Ne(a),Mr(i,a<0?0:a,E)):[]}function xO(i,a,f){var E=i==null?0:i.length;return E?(a=f||a===r?1:Ne(a),a=E-a,Mr(i,0,a<0?0:a)):[]}function SO(i,a){return i&&i.length?fl(i,Oe(a,3),!0,!0):[]}function EO(i,a){return i&&i.length?fl(i,Oe(a,3),!0):[]}function _O(i,a,f,E){var O=i==null?0:i.length;return O?(f&&typeof f!="number"&&Qt(i,a,f)&&(f=0,E=O),vk(i,a,f,E)):[]}function kv(i,a,f){var E=i==null?0:i.length;if(!E)return-1;var O=f==null?0:Ne(f);return O<0&&(O=Pt(E+O,0)),Ua(i,Oe(a,3),O)}function Ov(i,a,f){var E=i==null?0:i.length;if(!E)return-1;var O=E-1;return f!==r&&(O=Ne(f),O=f<0?Pt(E+O,0):Zt(O,E-1)),Ua(i,Oe(a,3),O,!0)}function Tv(i){var a=i==null?0:i.length;return a?Bt(i,1):[]}function kO(i){var a=i==null?0:i.length;return a?Bt(i,Y):[]}function OO(i,a){var f=i==null?0:i.length;return f?(a=a===r?1:Ne(a),Bt(i,a)):[]}function TO(i){for(var a=-1,f=i==null?0:i.length,E={};++a<f;){var O=i[a];ln(E,O[0],O[1])}return E}function Av(i){return i&&i.length?i[0]:r}function AO(i,a,f){var E=i==null?0:i.length;if(!E)return-1;var O=f==null?0:Ne(f);return O<0&&(O=Pt(E+O,0)),ri(i,a,O)}function RO(i){var a=i==null?0:i.length;return a?Mr(i,0,-1):[]}var CO=Le(function(i){var a=vt(i,od);return a.length&&a[0]===i[0]?Zu(a):[]}),IO=Le(function(i){var a=Dr(i),f=vt(i,od);return a===Dr(f)?a=r:f.pop(),f.length&&f[0]===i[0]?Zu(f,Oe(a,2)):[]}),PO=Le(function(i){var a=Dr(i),f=vt(i,od);return a=typeof a=="function"?a:r,a&&f.pop(),f.length&&f[0]===i[0]?Zu(f,r,a):[]});function NO(i,a){return i==null?"":R_.call(i,a)}function Dr(i){var a=i==null?0:i.length;return a?i[a-1]:r}function MO(i,a,f){var E=i==null?0:i.length;if(!E)return-1;var O=E;return f!==r&&(O=Ne(f),O=O<0?Pt(E+O,0):Zt(O,E-1)),a===a?p_(i,a,O):Ua(i,lg,O,!0)}function DO(i,a){return i&&i.length?jg(i,Ne(a)):r}var LO=Le(Rv);function Rv(i,a){return i&&i.length&&a&&a.length?Ju(i,a):i}function zO(i,a,f){return i&&i.length&&a&&a.length?Ju(i,a,Oe(f,2)):i}function $O(i,a,f){return i&&i.length&&a&&a.length?Ju(i,a,r,f):i}var jO=In(function(i,a){var f=i==null?0:i.length,E=Vu(i,a);return Hg(i,vt(a,function(O){return Pn(O,f)?+O:O}).sort(Jg)),E});function FO(i,a){var f=[];if(!(i&&i.length))return f;var E=-1,O=[],C=i.length;for(a=Oe(a,3);++E<C;){var z=i[E];a(z,E,i)&&(f.push(z),O.push(E))}return Hg(i,O),f}function bd(i){return i==null?i:N_.call(i)}function BO(i,a,f){var E=i==null?0:i.length;return E?(f&&typeof f!="number"&&Qt(i,a,f)?(a=0,f=E):(a=a==null?0:Ne(a),f=f===r?E:Ne(f)),Mr(i,a,f)):[]}function HO(i,a){return dl(i,a)}function WO(i,a,f){return td(i,a,Oe(f,2))}function VO(i,a){var f=i==null?0:i.length;if(f){var E=dl(i,a);if(E<f&&Yr(i[E],a))return E}return-1}function UO(i,a){return dl(i,a,!0)}function qO(i,a,f){return td(i,a,Oe(f,2),!0)}function GO(i,a){var f=i==null?0:i.length;if(f){var E=dl(i,a,!0)-1;if(Yr(i[E],a))return E}return-1}function ZO(i){return i&&i.length?Vg(i):[]}function YO(i,a){return i&&i.length?Vg(i,Oe(a,2)):[]}function KO(i){var a=i==null?0:i.length;return a?Mr(i,1,a):[]}function XO(i,a,f){return i&&i.length?(a=f||a===r?1:Ne(a),Mr(i,0,a<0?0:a)):[]}function JO(i,a,f){var E=i==null?0:i.length;return E?(a=f||a===r?1:Ne(a),a=E-a,Mr(i,a<0?0:a,E)):[]}function QO(i,a){return i&&i.length?fl(i,Oe(a,3),!1,!0):[]}function e2(i,a){return i&&i.length?fl(i,Oe(a,3)):[]}var t2=Le(function(i){return eo(Bt(i,1,_t,!0))}),r2=Le(function(i){var a=Dr(i);return _t(a)&&(a=r),eo(Bt(i,1,_t,!0),Oe(a,2))}),n2=Le(function(i){var a=Dr(i);return a=typeof a=="function"?a:r,eo(Bt(i,1,_t,!0),r,a)});function o2(i){return i&&i.length?eo(i):[]}function i2(i,a){return i&&i.length?eo(i,Oe(a,2)):[]}function s2(i,a){return a=typeof a=="function"?a:r,i&&i.length?eo(i,r,a):[]}function yd(i){if(!(i&&i.length))return[];var a=0;return i=Yn(i,function(f){if(_t(f))return a=Pt(f.length,a),!0}),Lu(a,function(f){return vt(i,Nu(f))})}function Cv(i,a){if(!(i&&i.length))return[];var f=yd(i);return a==null?f:vt(f,function(E){return mr(a,r,E)})}var a2=Le(function(i,a){return _t(i)?ps(i,a):[]}),l2=Le(function(i){return nd(Yn(i,_t))}),c2=Le(function(i){var a=Dr(i);return _t(a)&&(a=r),nd(Yn(i,_t),Oe(a,2))}),u2=Le(function(i){var a=Dr(i);return a=typeof a=="function"?a:r,nd(Yn(i,_t),r,a)}),d2=Le(yd);function f2(i,a){return Zg(i||[],a||[],fs)}function p2(i,a){return Zg(i||[],a||[],vs)}var h2=Le(function(i){var a=i.length,f=a>1?i[a-1]:r;return f=typeof f=="function"?(i.pop(),f):r,Cv(i,f)});function Iv(i){var a=A(i);return a.__chain__=!0,a}function g2(i,a){return a(i),i}function xl(i,a){return a(i)}var v2=In(function(i){var a=i.length,f=a?i[0]:0,E=this.__wrapped__,O=function(C){return Vu(C,i)};return a>1||this.__actions__.length||!(E instanceof Fe)||!Pn(f)?this.thru(O):(E=E.slice(f,+f+(a?1:0)),E.__actions__.push({func:xl,args:[O],thisArg:r}),new Pr(E,this.__chain__).thru(function(C){return a&&!C.length&&C.push(r),C}))});function m2(){return Iv(this)}function b2(){return new Pr(this.value(),this.__chain__)}function y2(){this.__values__===r&&(this.__values__=Uv(this.value()));var i=this.__index__>=this.__values__.length,a=i?r:this.__values__[this.__index__++];return{done:i,value:a}}function w2(){return this}function x2(i){for(var a,f=this;f instanceof sl;){var E=_v(f);E.__index__=0,E.__values__=r,a?O.__wrapped__=E:a=E;var O=E;f=f.__wrapped__}return O.__wrapped__=i,a}function S2(){var i=this.__wrapped__;if(i instanceof Fe){var a=i;return this.__actions__.length&&(a=new Fe(this)),a=a.reverse(),a.__actions__.push({func:xl,args:[bd],thisArg:r}),new Pr(a,this.__chain__)}return this.thru(bd)}function E2(){return Gg(this.__wrapped__,this.__actions__)}var _2=pl(function(i,a,f){Ge.call(i,f)?++i[f]:ln(i,f,1)});function k2(i,a,f){var E=Ie(i)?sg:gk;return f&&Qt(i,a,f)&&(a=r),E(i,Oe(a,3))}function O2(i,a){var f=Ie(i)?Yn:Cg;return f(i,Oe(a,3))}var T2=ov(kv),A2=ov(Ov);function R2(i,a){return Bt(Sl(i,a),1)}function C2(i,a){return Bt(Sl(i,a),Y)}function I2(i,a,f){return f=f===r?1:Ne(f),Bt(Sl(i,a),f)}function Pv(i,a){var f=Ie(i)?br:Qn;return f(i,Oe(a,3))}function Nv(i,a){var f=Ie(i)?KE:Rg;return f(i,Oe(a,3))}var P2=pl(function(i,a,f){Ge.call(i,f)?i[f].push(a):ln(i,f,[a])});function N2(i,a,f,E){i=sr(i)?i:hi(i),f=f&&!E?Ne(f):0;var O=i.length;return f<0&&(f=Pt(O+f,0)),Tl(i)?f<=O&&i.indexOf(a,f)>-1:!!O&&ri(i,a,f)>-1}var M2=Le(function(i,a,f){var E=-1,O=typeof a=="function",C=sr(i)?Q(i.length):[];return Qn(i,function(z){C[++E]=O?mr(a,z,f):hs(z,a,f)}),C}),D2=pl(function(i,a,f){ln(i,f,a)});function Sl(i,a){var f=Ie(i)?vt:Lg;return f(i,Oe(a,3))}function L2(i,a,f,E){return i==null?[]:(Ie(a)||(a=a==null?[]:[a]),f=E?r:f,Ie(f)||(f=f==null?[]:[f]),Fg(i,a,f))}var z2=pl(function(i,a,f){i[f?0:1].push(a)},function(){return[[],[]]});function $2(i,a,f){var E=Ie(i)?Iu:ug,O=arguments.length<3;return E(i,Oe(a,4),f,O,Qn)}function j2(i,a,f){var E=Ie(i)?XE:ug,O=arguments.length<3;return E(i,Oe(a,4),f,O,Rg)}function F2(i,a){var f=Ie(i)?Yn:Cg;return f(i,kl(Oe(a,3)))}function B2(i){var a=Ie(i)?kg:Nk;return a(i)}function H2(i,a,f){(f?Qt(i,a,f):a===r)?a=1:a=Ne(a);var E=Ie(i)?uk:Mk;return E(i,a)}function W2(i){var a=Ie(i)?dk:Lk;return a(i)}function V2(i){if(i==null)return 0;if(sr(i))return Tl(i)?oi(i):i.length;var a=Yt(i);return a==De||a==ft?i.size:Ku(i).length}function U2(i,a,f){var E=Ie(i)?Pu:zk;return f&&Qt(i,a,f)&&(a=r),E(i,Oe(a,3))}var q2=Le(function(i,a){if(i==null)return[];var f=a.length;return f>1&&Qt(i,a[0],a[1])?a=[]:f>2&&Qt(a[0],a[1],a[2])&&(a=[a[0]]),Fg(i,Bt(a,1),[])}),El=O_||function(){return Ft.Date.now()};function G2(i,a){if(typeof a!="function")throw new Ir(l);return i=Ne(i),function(){if(--i<1)return a.apply(this,arguments)}}function Mv(i,a,f){return a=f?r:a,a=i&&a==null?i.length:a,Cn(i,I,r,r,r,r,a)}function Dv(i,a){var f;if(typeof a!="function")throw new Ir(l);return i=Ne(i),function(){return--i>0&&(f=a.apply(this,arguments)),i<=1&&(a=r),f}}var wd=Le(function(i,a,f){var E=m;if(f.length){var O=Xn(f,fi(wd));E|=R}return Cn(i,E,a,f,O)}),Lv=Le(function(i,a,f){var E=m|w;if(f.length){var O=Xn(f,fi(Lv));E|=R}return Cn(a,E,i,f,O)});function zv(i,a,f){a=f?r:a;var E=Cn(i,k,r,r,r,r,r,a);return E.placeholder=zv.placeholder,E}function $v(i,a,f){a=f?r:a;var E=Cn(i,_,r,r,r,r,r,a);return E.placeholder=$v.placeholder,E}function jv(i,a,f){var E,O,C,z,B,G,se=0,ae=!1,ue=!1,ve=!0;if(typeof i!="function")throw new Ir(l);a=Lr(a)||0,yt(f)&&(ae=!!f.leading,ue="maxWait"in f,C=ue?Pt(Lr(f.maxWait)||0,a):C,ve="trailing"in f?!!f.trailing:ve);function xe(kt){var Kr=E,Dn=O;return E=O=r,se=kt,z=i.apply(Dn,Kr),z}function Te(kt){return se=kt,B=ys($e,a),ae?xe(kt):z}function Me(kt){var Kr=kt-G,Dn=kt-se,im=a-Kr;return ue?Zt(im,C-Dn):im}function ke(kt){var Kr=kt-G,Dn=kt-se;return G===r||Kr>=a||Kr<0||ue&&Dn>=C}function $e(){var kt=El();if(ke(kt))return Be(kt);B=ys($e,Me(kt))}function Be(kt){return B=r,ve&&E?xe(kt):(E=O=r,z)}function Sr(){B!==r&&Yg(B),se=0,E=G=O=B=r}function er(){return B===r?z:Be(El())}function Er(){var kt=El(),Kr=ke(kt);if(E=arguments,O=this,G=kt,Kr){if(B===r)return Te(G);if(ue)return Yg(B),B=ys($e,a),xe(G)}return B===r&&(B=ys($e,a)),z}return Er.cancel=Sr,Er.flush=er,Er}var Z2=Le(function(i,a){return Ag(i,1,a)}),Y2=Le(function(i,a,f){return Ag(i,Lr(a)||0,f)});function K2(i){return Cn(i,W)}function _l(i,a){if(typeof i!="function"||a!=null&&typeof a!="function")throw new Ir(l);var f=function(){var E=arguments,O=a?a.apply(this,E):E[0],C=f.cache;if(C.has(O))return C.get(O);var z=i.apply(this,E);return f.cache=C.set(O,z)||C,z};return f.cache=new(_l.Cache||Rn),f}_l.Cache=Rn;function kl(i){if(typeof i!="function")throw new Ir(l);return function(){var a=arguments;switch(a.length){case 0:return!i.call(this);case 1:return!i.call(this,a[0]);case 2:return!i.call(this,a[0],a[1]);case 3:return!i.call(this,a[0],a[1],a[2])}return!i.apply(this,a)}}function X2(i){return Dv(2,i)}var J2=$k(function(i,a){a=a.length==1&&Ie(a[0])?vt(a[0],yr(Oe())):vt(Bt(a,1),yr(Oe()));var f=a.length;return Le(function(E){for(var O=-1,C=Zt(E.length,f);++O<C;)E[O]=a[O].call(this,E[O]);return mr(i,this,E)})}),xd=Le(function(i,a){var f=Xn(a,fi(xd));return Cn(i,R,r,a,f)}),Fv=Le(function(i,a){var f=Xn(a,fi(Fv));return Cn(i,j,r,a,f)}),Q2=In(function(i,a){return Cn(i,L,r,r,r,a)});function eT(i,a){if(typeof i!="function")throw new Ir(l);return a=a===r?a:Ne(a),Le(i,a)}function tT(i,a){if(typeof i!="function")throw new Ir(l);return a=a==null?0:Pt(Ne(a),0),Le(function(f){var E=f[a],O=ro(f,0,a);return E&&Kn(O,E),mr(i,this,O)})}function rT(i,a,f){var E=!0,O=!0;if(typeof i!="function")throw new Ir(l);return yt(f)&&(E="leading"in f?!!f.leading:E,O="trailing"in f?!!f.trailing:O),jv(i,a,{leading:E,maxWait:a,trailing:O})}function nT(i){return Mv(i,1)}function oT(i,a){return xd(id(a),i)}function iT(){if(!arguments.length)return[];var i=arguments[0];return Ie(i)?i:[i]}function sT(i){return Nr(i,S)}function aT(i,a){return a=typeof a=="function"?a:r,Nr(i,S,a)}function lT(i){return Nr(i,h|S)}function cT(i,a){return a=typeof a=="function"?a:r,Nr(i,h|S,a)}function uT(i,a){return a==null||Tg(i,a,Lt(a))}function Yr(i,a){return i===a||i!==i&&a!==a}var dT=ml(Gu),fT=ml(function(i,a){return i>=a}),Mo=Ng((function(){return arguments})())?Ng:function(i){return Et(i)&&Ge.call(i,"callee")&&!yg.call(i,"callee")},Ie=Q.isArray,pT=eg?yr(eg):xk;function sr(i){return i!=null&&Ol(i.length)&&!Nn(i)}function _t(i){return Et(i)&&sr(i)}function hT(i){return i===!0||i===!1||Et(i)&&Jt(i)==he}var no=A_||Nd,gT=tg?yr(tg):Sk;function vT(i){return Et(i)&&i.nodeType===1&&!ws(i)}function mT(i){if(i==null)return!0;if(sr(i)&&(Ie(i)||typeof i=="string"||typeof i.splice=="function"||no(i)||pi(i)||Mo(i)))return!i.length;var a=Yt(i);if(a==De||a==ft)return!i.size;if(bs(i))return!Ku(i).length;for(var f in i)if(Ge.call(i,f))return!1;return!0}function bT(i,a){return gs(i,a)}function yT(i,a,f){f=typeof f=="function"?f:r;var E=f?f(i,a):r;return E===r?gs(i,a,r,f):!!E}function Sd(i){if(!Et(i))return!1;var a=Jt(i);return a==K||a==Se||typeof i.message=="string"&&typeof i.name=="string"&&!ws(i)}function wT(i){return typeof i=="number"&&xg(i)}function Nn(i){if(!yt(i))return!1;var a=Jt(i);return a==je||a==me||a==oe||a==lt}function Bv(i){return typeof i=="number"&&i==Ne(i)}function Ol(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=ge}function yt(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}function Et(i){return i!=null&&typeof i=="object"}var Hv=rg?yr(rg):_k;function xT(i,a){return i===a||Yu(i,a,fd(a))}function ST(i,a,f){return f=typeof f=="function"?f:r,Yu(i,a,fd(a),f)}function ET(i){return Wv(i)&&i!=+i}function _T(i){if(aO(i))throw new Re(s);return Mg(i)}function kT(i){return i===null}function OT(i){return i==null}function Wv(i){return typeof i=="number"||Et(i)&&Jt(i)==gt}function ws(i){if(!Et(i)||Jt(i)!=at)return!1;var a=Qa(i);if(a===null)return!0;var f=Ge.call(a,"constructor")&&a.constructor;return typeof f=="function"&&f instanceof f&&Ya.call(f)==S_}var Ed=ng?yr(ng):kk;function TT(i){return Bv(i)&&i>=-ge&&i<=ge}var Vv=og?yr(og):Ok;function Tl(i){return typeof i=="string"||!Ie(i)&&Et(i)&&Jt(i)==on}function xr(i){return typeof i=="symbol"||Et(i)&&Jt(i)==Vr}var pi=ig?yr(ig):Tk;function AT(i){return i===r}function RT(i){return Et(i)&&Yt(i)==Gt}function CT(i){return Et(i)&&Jt(i)==xo}var IT=ml(Xu),PT=ml(function(i,a){return i<=a});function Uv(i){if(!i)return[];if(sr(i))return Tl(i)?qr(i):ir(i);if(as&&i[as])return u_(i[as]());var a=Yt(i),f=a==De?$u:a==ft?qa:hi;return f(i)}function Mn(i){if(!i)return i===0?i:0;if(i=Lr(i),i===Y||i===-Y){var a=i<0?-1:1;return a*P}return i===i?i:0}function Ne(i){var a=Mn(i),f=a%1;return a===a?f?a-f:a:0}function qv(i){return i?Co(Ne(i),0,J):0}function Lr(i){if(typeof i=="number")return i;if(xr(i))return F;if(yt(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=yt(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=dg(i);var f=Pe.test(i);return f||Dt.test(i)?GE(i.slice(2),f?2:8):_e.test(i)?F:+i}function Gv(i){return un(i,ar(i))}function NT(i){return i?Co(Ne(i),-ge,ge):i===0?i:0}function Ze(i){return i==null?"":wr(i)}var MT=ui(function(i,a){if(bs(a)||sr(a)){un(a,Lt(a),i);return}for(var f in a)Ge.call(a,f)&&fs(i,f,a[f])}),Zv=ui(function(i,a){un(a,ar(a),i)}),Yv=ui(function(i,a,f,E){un(a,ar(a),i,E)}),_d=ui(function(i,a,f,E){un(a,Lt(a),i,E)}),DT=In(Vu);function LT(i,a){var f=ci(i);return a==null?f:Og(f,a)}var zT=Le(function(i,a){i=st(i);var f=-1,E=a.length,O=E>2?a[2]:r;for(O&&Qt(a[0],a[1],O)&&(E=1);++f<E;)for(var C=a[f],z=ar(C),B=-1,G=z.length;++B<G;){var se=z[B],ae=i[se];(ae===r||Yr(ae,si[se])&&!Ge.call(i,se))&&(i[se]=C[se])}return i}),$T=Le(function(i){return i.push(r,dv),mr(Kv,r,i)});function jT(i,a){return ag(i,Oe(a,3),cn)}function FT(i,a){return ag(i,Oe(a,3),qu)}function BT(i,a){return i==null?i:Uu(i,Oe(a,3),ar)}function HT(i,a){return i==null?i:Ig(i,Oe(a,3),ar)}function WT(i,a){return i&&cn(i,Oe(a,3))}function VT(i,a){return i&&qu(i,Oe(a,3))}function UT(i){return i==null?[]:cl(i,Lt(i))}function qT(i){return i==null?[]:cl(i,ar(i))}function kd(i,a,f){var E=i==null?r:Io(i,a);return E===r?f:E}function GT(i,a){return i!=null&&hv(i,a,mk)}function Od(i,a){return i!=null&&hv(i,a,bk)}var ZT=sv(function(i,a,f){a!=null&&typeof a.toString!="function"&&(a=Ka.call(a)),i[a]=f},Ad(lr)),YT=sv(function(i,a,f){a!=null&&typeof a.toString!="function"&&(a=Ka.call(a)),Ge.call(i,a)?i[a].push(f):i[a]=[f]},Oe),KT=Le(hs);function Lt(i){return sr(i)?_g(i):Ku(i)}function ar(i){return sr(i)?_g(i,!0):Ak(i)}function XT(i,a){var f={};return a=Oe(a,3),cn(i,function(E,O,C){ln(f,a(E,O,C),E)}),f}function JT(i,a){var f={};return a=Oe(a,3),cn(i,function(E,O,C){ln(f,O,a(E,O,C))}),f}var QT=ui(function(i,a,f){ul(i,a,f)}),Kv=ui(function(i,a,f,E){ul(i,a,f,E)}),eA=In(function(i,a){var f={};if(i==null)return f;var E=!1;a=vt(a,function(C){return C=to(C,i),E||(E=C.length>1),C}),un(i,ud(i),f),E&&(f=Nr(f,h|b|S,Yk));for(var O=a.length;O--;)rd(f,a[O]);return f});function tA(i,a){return Xv(i,kl(Oe(a)))}var rA=In(function(i,a){return i==null?{}:Ck(i,a)});function Xv(i,a){if(i==null)return{};var f=vt(ud(i),function(E){return[E]});return a=Oe(a),Bg(i,f,function(E,O){return a(E,O[0])})}function nA(i,a,f){a=to(a,i);var E=-1,O=a.length;for(O||(O=1,i=r);++E<O;){var C=i==null?r:i[Zr(a[E])];C===r&&(E=O,C=f),i=Nn(C)?C.call(i):C}return i}function oA(i,a,f){return i==null?i:vs(i,a,f)}function iA(i,a,f,E){return E=typeof E=="function"?E:r,i==null?i:vs(i,a,f,E)}var Jv=cv(Lt),Qv=cv(ar);function sA(i,a,f){var E=Ie(i),O=E||no(i)||pi(i);if(a=Oe(a,4),f==null){var C=i&&i.constructor;O?f=E?new C:[]:yt(i)?f=Nn(C)?ci(Qa(i)):{}:f={}}return(O?br:cn)(i,function(z,B,G){return a(f,z,B,G)}),f}function aA(i,a){return i==null?!0:rd(i,a)}function lA(i,a,f){return i==null?i:qg(i,a,id(f))}function cA(i,a,f,E){return E=typeof E=="function"?E:r,i==null?i:qg(i,a,id(f),E)}function hi(i){return i==null?[]:zu(i,Lt(i))}function uA(i){return i==null?[]:zu(i,ar(i))}function dA(i,a,f){return f===r&&(f=a,a=r),f!==r&&(f=Lr(f),f=f===f?f:0),a!==r&&(a=Lr(a),a=a===a?a:0),Co(Lr(i),a,f)}function fA(i,a,f){return a=Mn(a),f===r?(f=a,a=0):f=Mn(f),i=Lr(i),yk(i,a,f)}function pA(i,a,f){if(f&&typeof f!="boolean"&&Qt(i,a,f)&&(a=f=r),f===r&&(typeof a=="boolean"?(f=a,a=r):typeof i=="boolean"&&(f=i,i=r)),i===r&&a===r?(i=0,a=1):(i=Mn(i),a===r?(a=i,i=0):a=Mn(a)),i>a){var E=i;i=a,a=E}if(f||i%1||a%1){var O=Sg();return Zt(i+O*(a-i+qE("1e-"+((O+"").length-1))),a)}return Qu(i,a)}var hA=di(function(i,a,f){return a=a.toLowerCase(),i+(f?em(a):a)});function em(i){return Td(Ze(i).toLowerCase())}function tm(i){return i=Ze(i),i&&i.replace(vr,i_).replace(LE,"")}function gA(i,a,f){i=Ze(i),a=wr(a);var E=i.length;f=f===r?E:Co(Ne(f),0,E);var O=f;return f-=a.length,f>=0&&i.slice(f,O)==a}function vA(i){return i=Ze(i),i&&_o.test(i)?i.replace(Qi,s_):i}function mA(i){return i=Ze(i),i&&ja.test(i)?i.replace(Qo,"\\$&"):i}var bA=di(function(i,a,f){return i+(f?"-":"")+a.toLowerCase()}),yA=di(function(i,a,f){return i+(f?" ":"")+a.toLowerCase()}),wA=nv("toLowerCase");function xA(i,a,f){i=Ze(i),a=Ne(a);var E=a?oi(i):0;if(!a||E>=a)return i;var O=(a-E)/2;return vl(nl(O),f)+i+vl(rl(O),f)}function SA(i,a,f){i=Ze(i),a=Ne(a);var E=a?oi(i):0;return a&&E<a?i+vl(a-E,f):i}function EA(i,a,f){i=Ze(i),a=Ne(a);var E=a?oi(i):0;return a&&E<a?vl(a-E,f)+i:i}function _A(i,a,f){return f||a==null?a=0:a&&(a=+a),P_(Ze(i).replace(os,""),a||0)}function kA(i,a,f){return(f?Qt(i,a,f):a===r)?a=1:a=Ne(a),ed(Ze(i),a)}function OA(){var i=arguments,a=Ze(i[0]);return i.length<3?a:a.replace(i[1],i[2])}var TA=di(function(i,a,f){return i+(f?"_":"")+a.toLowerCase()});function AA(i,a,f){return f&&typeof f!="number"&&Qt(i,a,f)&&(a=f=r),f=f===r?J:f>>>0,f?(i=Ze(i),i&&(typeof a=="string"||a!=null&&!Ed(a))&&(a=wr(a),!a&&ni(i))?ro(qr(i),0,f):i.split(a,f)):[]}var RA=di(function(i,a,f){return i+(f?" ":"")+Td(a)});function CA(i,a,f){return i=Ze(i),f=f==null?0:Co(Ne(f),0,i.length),a=wr(a),i.slice(f,f+a.length)==a}function IA(i,a,f){var E=A.templateSettings;f&&Qt(i,a,f)&&(a=r),i=Ze(i),a=_d({},a,E,uv);var O=_d({},a.imports,E.imports,uv),C=Lt(O),z=zu(O,C);br(C,function(ke){if(Zn.test(ke))throw new Re(u)});var B,G,se=0,ae=a.interpolate||Xt,ue="__p += '",ve=ju((a.escape||Xt).source+"|"+ae.source+"|"+(ae===ts?Ba:Xt).source+"|"+(a.evaluate||Xt).source+"|$","g"),xe="//# sourceURL="+(Ge.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++BE+"]")+`
235
+ `;i.replace(ve,function(ke,$e,Be,Sr,er,Er){return Be||(Be=Sr),ue+=i.slice(se,Er).replace(an,a_),$e&&(B=!0,ue+=`' +
236
+ __e(`+$e+`) +
237
+ '`),er&&(G=!0,ue+=`';
238
+ `+er+`;
239
+ __p += '`),Be&&(ue+=`' +
240
+ ((__t = (`+Be+`)) == null ? '' : __t) +
241
+ '`),se=Er+ke.length,ke}),ue+=`';
242
+ `;var Te=Ge.call(a,"variable")&&a.variable;if(!Te)ue=`with (obj) {
243
+ `+ue+`
194
244
  }
195
- `;else if(fd.test(me))throw new be(l);ee=(B?ee.replace(Vb,""):ee).replace(Kb,"$1").replace(Yb,"$1;"),ee="function("+(me||"obj")+`) {
196
- `+(me?"":`obj || (obj = {});
197
- `)+"var __t, __p = ''"+(L?", __e = _.escape":"")+(B?`, __j = Array.prototype.join;
245
+ `;else if(Zn.test(Te))throw new Re(c);ue=(G?ue.replace(Da,""):ue).replace(mu,"$1").replace(La,"$1;"),ue="function("+(Te||"obj")+`) {
246
+ `+(Te?"":`obj || (obj = {});
247
+ `)+"var __t, __p = ''"+(B?", __e = _.escape":"")+(G?`, __j = Array.prototype.join;
198
248
  function print() { __p += __j.call(arguments, '') }
199
249
  `:`;
200
- `)+ee+`return __p
201
- }`;var Te=Dh(function(){return Le(A,le+"return "+ee).apply(r,P)});if(Te.source=ee,bl(Te))throw Te;return Te}function IT(n){return Ne(n).toLowerCase()}function $T(n){return Ne(n).toUpperCase()}function LT(n,o,c){if(n=Ne(n),n&&(c||o===r))return Ud(n);if(!n||!(o=Wt(o)))return n;var b=fr(n),_=fr(o),A=qd(b,_),P=Gd(b,_)+1;return mn(b,A,P).join("")}function MT(n,o,c){if(n=Ne(n),n&&(c||o===r))return n.slice(0,Vd(n)+1);if(!n||!(o=Wt(o)))return n;var b=fr(n),_=Gd(b,fr(o))+1;return mn(b,0,_).join("")}function DT(n,o,c){if(n=Ne(n),n&&(c||o===r))return n.replace(bu,"");if(!n||!(o=Wt(o)))return n;var b=fr(n),_=qd(b,fr(o));return mn(b,_).join("")}function NT(n,o){var c=j,b=D;if(et(o)){var _="separator"in o?o.separator:_;c="length"in o?Ee(o.length):c,b="omission"in o?Wt(o.omission):b}n=Ne(n);var A=n.length;if(si(n)){var P=fr(n);A=P.length}if(c>=A)return n;var L=c-ai(b);if(L<1)return b;var B=P?mn(P,0,L).join(""):n.slice(0,L);if(_===r)return B+b;if(P&&(L+=B.length-L),wl(_)){if(n.slice(L).search(_)){var K,Y=B;for(_.global||(_=Du(_.source,Ne(dd.exec(_))+"g")),_.lastIndex=0;K=_.exec(Y);)var ee=K.index;B=B.slice(0,ee===r?L:ee)}}else if(n.indexOf(Wt(_),L)!=L){var se=B.lastIndexOf(_);se>-1&&(B=B.slice(0,se))}return B+b}function FT(n){return n=Ne(n),n&&Xb.test(n)?n.replace(ud,h1):n}var jT=hi(function(n,o,c){return n+(c?" ":"")+o.toUpperCase()}),_l=Dp("toUpperCase");function Mh(n,o,c){return n=Ne(n),o=c?r:o,o===r?l1(n)?v1(n):e1(n):n.match(o)||[]}var Dh=Ae(function(n,o){try{return jt(n,r,o)}catch(c){return bl(c)?c:new be(c)}}),zT=qr(function(n,o){return zt(o,function(c){c=pr(c),Er(n,c,vl(n[c],n))}),n});function BT(n){var o=n==null?0:n.length,c=ge();return n=o?Ye(n,function(b){if(typeof b[1]!="function")throw new Qt(u);return[c(b[0]),b[1]]}):[],Ae(function(b){for(var _=-1;++_<o;){var A=n[_];if(jt(A[0],this,b))return jt(A[1],this,b)}})}function WT(n){return hx(tr(n,g))}function Tl(n){return function(){return n}}function HT(n,o){return n==null||n!==n?o:n}var UT=Fp(),qT=Fp(!0);function Mt(n){return n}function Ol(n){return hp(typeof n=="function"?n:tr(n,g))}function GT(n){return mp(tr(n,g))}function ZT(n,o){return vp(n,tr(o,g))}var VT=Ae(function(n,o){return function(c){return Gi(c,n,o)}}),KT=Ae(function(n,o){return function(c){return Gi(n,c,o)}});function Al(n,o,c){var b=pt(o),_=As(o,b);c==null&&!(et(o)&&(_.length||!b.length))&&(c=o,o=n,n=this,_=As(o,pt(o)));var A=!(et(c)&&"chain"in c)||!!c.chain,P=Zr(n);return zt(_,function(L){var B=o[L];n[L]=B,P&&(n.prototype[L]=function(){var K=this.__chain__;if(A||K){var Y=n(this.__wrapped__),ee=Y.__actions__=It(this.__actions__);return ee.push({func:B,args:arguments,thisArg:n}),Y.__chain__=K,Y}return B.apply(n,cn([this.value()],arguments))})}),n}function YT(){return gt._===this&&(gt._=E1),this}function Rl(){}function XT(n){return n=Ee(n),Ae(function(o){return yp(o,n)})}var JT=il(Ye),QT=il(jd),eO=il(Pu);function Nh(n){return fl(n)?Cu(pr(n)):kx(n)}function tO(n){return function(o){return n==null?r:Dn(n,o)}}var rO=zp(),nO=zp(!0);function Pl(){return[]}function Cl(){return!1}function iO(){return{}}function oO(){return""}function sO(){return!0}function aO(n,o){if(n=Ee(n),n<1||n>ce)return[];var c=ne,b=Et(n,ne);o=ge(o),n-=ne;for(var _=$u(b,o);++c<n;)o(c);return _}function uO(n){return Se(n)?Ye(n,pr):Ht(n)?[n]:It(rh(Ne(n)))}function lO(n){var o=++x1;return Ne(n)+o}var cO=$s(function(n,o){return n+o},0),fO=ol("ceil"),dO=$s(function(n,o){return n/o},1),pO=ol("floor");function hO(n){return n&&n.length?Os(n,Mt,Uu):r}function gO(n,o){return n&&n.length?Os(n,ge(o,2),Uu):r}function mO(n){return Wd(n,Mt)}function vO(n,o){return Wd(n,ge(o,2))}function yO(n){return n&&n.length?Os(n,Mt,Vu):r}function bO(n,o){return n&&n.length?Os(n,ge(o,2),Vu):r}var wO=$s(function(n,o){return n*o},1),xO=ol("round"),SO=$s(function(n,o){return n-o},0);function EO(n){return n&&n.length?Iu(n,Mt):0}function _O(n,o){return n&&n.length?Iu(n,ge(o,2)):0}return O.after=ZE,O.ary=ph,O.assign=L_,O.assignIn=Ah,O.assignInWith=Rh,O.assignWith=xl,O.at=M_,O.before=hh,O.bind=vl,O.bindAll=zT,O.bindKey=gh,O.castArray=o_,O.chain=ch,O.chunk=hS,O.compact=gS,O.concat=mS,O.cond=BT,O.conforms=WT,O.constant=Tl,O.countBy=_E,O.create=D_,O.curry=mh,O.curryRight=vh,O.debounce=yh,O.defaults=N_,O.defaultsDeep=F_,O.defer=VE,O.delay=KE,O.difference=vS,O.differenceBy=yS,O.differenceWith=bS,O.drop=wS,O.dropRight=xS,O.dropRightWhile=SS,O.dropWhile=ES,O.fill=_S,O.filter=OE,O.flatMap=PE,O.flatMapDeep=CE,O.flatMapDepth=kE,O.flatten=sh,O.flattenDeep=TS,O.flattenDepth=OS,O.flip=YE,O.flow=UT,O.flowRight=qT,O.fromPairs=AS,O.functions=q_,O.functionsIn=G_,O.groupBy=IE,O.initial=PS,O.intersection=CS,O.intersectionBy=kS,O.intersectionWith=IS,O.invert=V_,O.invertBy=K_,O.invokeMap=LE,O.iteratee=Ol,O.keyBy=ME,O.keys=pt,O.keysIn=Lt,O.map=zs,O.mapKeys=X_,O.mapValues=J_,O.matches=GT,O.matchesProperty=ZT,O.memoize=Ws,O.merge=Q_,O.mergeWith=Ph,O.method=VT,O.methodOf=KT,O.mixin=Al,O.negate=Hs,O.nthArg=XT,O.omit=eT,O.omitBy=tT,O.once=XE,O.orderBy=DE,O.over=JT,O.overArgs=JE,O.overEvery=QT,O.overSome=eO,O.partial=yl,O.partialRight=bh,O.partition=NE,O.pick=rT,O.pickBy=Ch,O.property=Nh,O.propertyOf=tO,O.pull=DS,O.pullAll=uh,O.pullAllBy=NS,O.pullAllWith=FS,O.pullAt=jS,O.range=rO,O.rangeRight=nO,O.rearg=QE,O.reject=zE,O.remove=zS,O.rest=e_,O.reverse=gl,O.sampleSize=WE,O.set=iT,O.setWith=oT,O.shuffle=HE,O.slice=BS,O.sortBy=GE,O.sortedUniq=VS,O.sortedUniqBy=KS,O.split=RT,O.spread=t_,O.tail=YS,O.take=XS,O.takeRight=JS,O.takeRightWhile=QS,O.takeWhile=eE,O.tap=gE,O.throttle=r_,O.thru=js,O.toArray=_h,O.toPairs=kh,O.toPairsIn=Ih,O.toPath=uO,O.toPlainObject=Oh,O.transform=sT,O.unary=n_,O.union=tE,O.unionBy=rE,O.unionWith=nE,O.uniq=iE,O.uniqBy=oE,O.uniqWith=sE,O.unset=aT,O.unzip=ml,O.unzipWith=lh,O.update=uT,O.updateWith=lT,O.values=vi,O.valuesIn=cT,O.without=aE,O.words=Mh,O.wrap=i_,O.xor=uE,O.xorBy=lE,O.xorWith=cE,O.zip=fE,O.zipObject=dE,O.zipObjectDeep=pE,O.zipWith=hE,O.entries=kh,O.entriesIn=Ih,O.extend=Ah,O.extendWith=Rh,Al(O,O),O.add=cO,O.attempt=Dh,O.camelCase=hT,O.capitalize=$h,O.ceil=fO,O.clamp=fT,O.clone=s_,O.cloneDeep=u_,O.cloneDeepWith=l_,O.cloneWith=a_,O.conformsTo=c_,O.deburr=Lh,O.defaultTo=HT,O.divide=dO,O.endsWith=gT,O.eq=hr,O.escape=mT,O.escapeRegExp=vT,O.every=TE,O.find=AE,O.findIndex=ih,O.findKey=j_,O.findLast=RE,O.findLastIndex=oh,O.findLastKey=z_,O.floor=pO,O.forEach=fh,O.forEachRight=dh,O.forIn=B_,O.forInRight=W_,O.forOwn=H_,O.forOwnRight=U_,O.get=Sl,O.gt=f_,O.gte=d_,O.has=Z_,O.hasIn=El,O.head=ah,O.identity=Mt,O.includes=$E,O.indexOf=RS,O.inRange=dT,O.invoke=Y_,O.isArguments=jn,O.isArray=Se,O.isArrayBuffer=p_,O.isArrayLike=$t,O.isArrayLikeObject=it,O.isBoolean=h_,O.isBuffer=vn,O.isDate=g_,O.isElement=m_,O.isEmpty=v_,O.isEqual=y_,O.isEqualWith=b_,O.isError=bl,O.isFinite=w_,O.isFunction=Zr,O.isInteger=wh,O.isLength=Us,O.isMap=xh,O.isMatch=x_,O.isMatchWith=S_,O.isNaN=E_,O.isNative=__,O.isNil=O_,O.isNull=T_,O.isNumber=Sh,O.isObject=et,O.isObjectLike=nt,O.isPlainObject=Ji,O.isRegExp=wl,O.isSafeInteger=A_,O.isSet=Eh,O.isString=qs,O.isSymbol=Ht,O.isTypedArray=mi,O.isUndefined=R_,O.isWeakMap=P_,O.isWeakSet=C_,O.join=$S,O.kebabCase=yT,O.last=nr,O.lastIndexOf=LS,O.lowerCase=bT,O.lowerFirst=wT,O.lt=k_,O.lte=I_,O.max=hO,O.maxBy=gO,O.mean=mO,O.meanBy=vO,O.min=yO,O.minBy=bO,O.stubArray=Pl,O.stubFalse=Cl,O.stubObject=iO,O.stubString=oO,O.stubTrue=sO,O.multiply=wO,O.nth=MS,O.noConflict=YT,O.noop=Rl,O.now=Bs,O.pad=xT,O.padEnd=ST,O.padStart=ET,O.parseInt=_T,O.random=pT,O.reduce=FE,O.reduceRight=jE,O.repeat=TT,O.replace=OT,O.result=nT,O.round=xO,O.runInContext=z,O.sample=BE,O.size=UE,O.snakeCase=AT,O.some=qE,O.sortedIndex=WS,O.sortedIndexBy=HS,O.sortedIndexOf=US,O.sortedLastIndex=qS,O.sortedLastIndexBy=GS,O.sortedLastIndexOf=ZS,O.startCase=PT,O.startsWith=CT,O.subtract=SO,O.sum=EO,O.sumBy=_O,O.template=kT,O.times=aO,O.toFinite=Vr,O.toInteger=Ee,O.toLength=Th,O.toLower=IT,O.toNumber=ir,O.toSafeInteger=$_,O.toString=Ne,O.toUpper=$T,O.trim=LT,O.trimEnd=MT,O.trimStart=DT,O.truncate=NT,O.unescape=FT,O.uniqueId=lO,O.upperCase=jT,O.upperFirst=_l,O.each=fh,O.eachRight=dh,O.first=ah,Al(O,(function(){var n={};return _r(O,function(o,c){De.call(O.prototype,c)||(n[c]=o)}),n})(),{chain:!1}),O.VERSION=i,zt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){O[n].placeholder=O}),zt(["drop","take"],function(n,o){Pe.prototype[n]=function(c){c=c===r?1:ft(Ee(c),0);var b=this.__filtered__&&!o?new Pe(this):this.clone();return b.__filtered__?b.__takeCount__=Et(c,b.__takeCount__):b.__views__.push({size:Et(c,ne),type:n+(b.__dir__<0?"Right":"")}),b},Pe.prototype[n+"Right"]=function(c){return this.reverse()[n](c).reverse()}}),zt(["filter","map","takeWhile"],function(n,o){var c=o+1,b=c==k||c==J;Pe.prototype[n]=function(_){var A=this.clone();return A.__iteratees__.push({iteratee:ge(_,3),type:c}),A.__filtered__=A.__filtered__||b,A}}),zt(["head","last"],function(n,o){var c="take"+(o?"Right":"");Pe.prototype[n]=function(){return this[c](1).value()[0]}}),zt(["initial","tail"],function(n,o){var c="drop"+(o?"":"Right");Pe.prototype[n]=function(){return this.__filtered__?new Pe(this):this[c](1)}}),Pe.prototype.compact=function(){return this.filter(Mt)},Pe.prototype.find=function(n){return this.filter(n).head()},Pe.prototype.findLast=function(n){return this.reverse().find(n)},Pe.prototype.invokeMap=Ae(function(n,o){return typeof n=="function"?new Pe(this):this.map(function(c){return Gi(c,n,o)})}),Pe.prototype.reject=function(n){return this.filter(Hs(ge(n)))},Pe.prototype.slice=function(n,o){n=Ee(n);var c=this;return c.__filtered__&&(n>0||o<0)?new Pe(c):(n<0?c=c.takeRight(-n):n&&(c=c.drop(n)),o!==r&&(o=Ee(o),c=o<0?c.dropRight(-o):c.take(o-n)),c)},Pe.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Pe.prototype.toArray=function(){return this.take(ne)},_r(Pe.prototype,function(n,o){var c=/^(?:filter|find|map|reject)|While$/.test(o),b=/^(?:head|last)$/.test(o),_=O[b?"take"+(o=="last"?"Right":""):o],A=b||/^find/.test(o);_&&(O.prototype[o]=function(){var P=this.__wrapped__,L=b?[1]:arguments,B=P instanceof Pe,K=L[0],Y=B||Se(P),ee=function(Re){var Ce=_.apply(O,cn([Re],L));return b&&se?Ce[0]:Ce};Y&&c&&typeof K=="function"&&K.length!=1&&(B=Y=!1);var se=this.__chain__,le=!!this.__actions__.length,me=A&&!se,Te=B&&!le;if(!A&&Y){P=Te?P:new Pe(this);var pe=n.apply(P,L);return pe.__actions__.push({func:js,args:[ee],thisArg:r}),new er(pe,se)}return me&&Te?n.apply(this,L):(pe=this.thru(ee),me?b?pe.value()[0]:pe.value():pe)})}),zt(["pop","push","shift","sort","splice","unshift"],function(n){var o=fs[n],c=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",b=/^(?:pop|shift)$/.test(n);O.prototype[n]=function(){var _=arguments;if(b&&!this.__chain__){var A=this.value();return o.apply(Se(A)?A:[],_)}return this[c](function(P){return o.apply(Se(P)?P:[],_)})}}),_r(Pe.prototype,function(n,o){var c=O[o];if(c){var b=c.name+"";De.call(fi,b)||(fi[b]=[]),fi[b].push({name:o,func:c})}}),fi[Is(r,S).name]=[{name:"wrapper",func:r}],Pe.prototype.clone=j1,Pe.prototype.reverse=z1,Pe.prototype.value=B1,O.prototype.at=mE,O.prototype.chain=vE,O.prototype.commit=yE,O.prototype.next=bE,O.prototype.plant=xE,O.prototype.reverse=SE,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=EE,O.prototype.first=O.prototype.head,ji&&(O.prototype[ji]=wE),O}),ui=y1();kn?((kn.exports=ui)._=ui,Tu._=ui):gt._=ui}).call(o$)})(Oo,Oo.exports)),Oo.exports}var Ie=s$();const Fc={FdSave:Qe.FdSave,FdWarningDanger:Qe.FdWarningDanger,FdInfoCircle:Qe.FdInfoCircle,FdInfoBold:Qe.FdInfoBold};var $f=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))($f||{}),Vn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Vn||{}),Ei=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Ei||{});const c0={[Vn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Vn.DANGER]:{icon:"red-500",button:"primary-dark"},[Vn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},lc=({color:e=Vn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...s})=>{const a=c0[e].button,u=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 I.jsx("button",{autoFocus:i,className:Be("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",u),...s,children:r})},a$=({name:e,color:t=Vn.PRIMARY,className:r="w-8 h-8"})=>{const i=Fc[e]||Fc.FdInfoCircle,s=`text-${c0[t].icon}`;return I.jsx(i,{className:Be(r,s)})},u$=({id:e,title:t,message:r,icon:i,type:s,color:a,zIndex:u=3e3,views:l,width:f=520,hasOverlay:p=!0,container:m,onClose:d,onEdit:g})=>{const y=w=>{d({id:e,reason:w})};M.useEffect(()=>{function w(v){v.key==="Escape"&&y(Ei.CANCELED)}return window.addEventListener("keyup",w),()=>{window.removeEventListener("keyup",w)}},[]);const x=Ie.merge(Ie.values(l==null?void 0:l.toggles).flatMap(w=>w.value?w.warnings||[]:[]),l==null?void 0:l.tips),h=(w,v)=>{var E;if(!(l!=null&&l.toggles))return;const S=Ie.cloneDeep(l);(E=S.toggles)!=null&&E[w]&&(S.toggles[w].value=v),g({id:e,views:S})};return Qn.createPortal(I.jsx(Ca,{appear:!0,show:!0,as:M.Fragment,children:I.jsx("div",{className:Be("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":p}),style:{zIndex:u},onClick:()=>y(Ei.CANCELED),children:I.jsx(Ca.Child,{as:M.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:I.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:I.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?I.jsx("div",{className:"flex items-center justify-center",children:I.jsx(a$,{name:i,color:a,className:"w-6 h-6"})}):null,I.jsx(l$,{condition:t,children:I.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),I.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),I.jsx("div",{className:"text-xs text-white",children:Ie.values(l==null?void 0:l.toggles).map(w=>I.jsx("div",{children:I.jsxs("label",{htmlFor:w.key,className:"flex items-center",children:[I.jsx(Vy,{size:"xs",value:w.value,onChange:v=>h(w.key,v)}),I.jsx("span",{className:"ml-1",children:w.title})]})},w.key))}),I.jsx(c$,{warnings:x}),I.jsx("div",{className:"flex items-center gap-4",children:s===$f.CONFIRM?I.jsxs(I.Fragment,{children:[I.jsx(lc,{autoFocus:!0,color:a,onClick:()=>y(Ei.CONFIRMED),children:"Confirm"}),I.jsx(lc,{color:a,variant:"outlined",onClick:()=>y(Ei.CANCELED),children:"Cancel"})]}):I.jsx(lc,{autoFocus:!0,onClick:()=>y(),children:"OK"})})]})})})})}),m||document.body)},l$=e=>e.condition?I.jsx(I.Fragment,{children:e.children}):null,c$=e=>e.warnings?I.jsx(Ca,{appear:!0,show:!!e.warnings.length,as:M.Fragment,children:I.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)=>I.jsx(Ca.Child,{as:M.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:I.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[I.jsx(Qe.FdWarningDanger,{className:Be({"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")}),I.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var f0=(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))(f0||{});const f$=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:s})=>I.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[I.jsx(Qe.FdMinusNaked,{onClick:s,className:Be("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),I.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),I.jsx(Qe.FdPlusNaked,{onClick:i,className:Be("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),d$=$.forwardRef(((e,t)=>$.createElement(Pn.span,rt({},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}})))),p$=d$;function Um(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[d0]=hf("Tooltip",[Ka]),Lf=Ka(),h$=700,[$F,g$]=d0("TooltipProvider",{isOpenDelayed:!0,delayDuration:h$,onOpen:()=>{},onClose:()=>{}}),[m$,tu]=d0("Tooltip"),v$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:s=!1,onOpenChange:a,delayDuration:u}=e,l=g$("Tooltip",t),f=Lf(t),[p,m]=$.useState(null),d=fy(),g=$.useRef(0),y=u??l.delayDuration,x=$.useRef(!1),{onOpen:h,onClose:w}=l,[v=!1,S]=Ey({prop:i,defaultProp:s,onChange:C=>{C&&(document.dispatchEvent(new CustomEvent("tooltip.open")),h()),a==null||a(C)}}),E=$.useMemo((()=>v?x.current?"delayed-open":"instant-open":"closed"),[v]),R=$.useCallback((()=>{window.clearTimeout(g.current),x.current=!1,S(!0)}),[S]),T=$.useCallback((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>{x.current=!0,S(!0)}),y)}),[y,S]);return $.useEffect((()=>()=>window.clearTimeout(g.current)),[]),$.createElement(wy,f,$.createElement(m$,{scope:t,contentId:d,open:v,stateAttribute:E,trigger:p,onTriggerChange:m,onTriggerEnter:$.useCallback((()=>{l.isOpenDelayed?T():R()}),[l.isOpenDelayed,T,R]),onOpen:$.useCallback(R,[R]),onClose:$.useCallback((()=>{window.clearTimeout(g.current),S(!1),w()}),[S,w])},r))},y$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,s=tu("TooltipTrigger",r),a=Lf(r),u=Rn(t,s.onTriggerChange),l=$.useRef(!1),f=$.useCallback((()=>l.current=!1),[]);return $.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),$.createElement(xy,rt({asChild:!0},a),$.createElement(Pn.button,rt({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},i,{ref:u,onMouseEnter:Zt(e.onMouseEnter,s.onTriggerEnter),onMouseLeave:Zt(e.onMouseLeave,s.onClose),onMouseDown:Zt(e.onMouseDown,(()=>{s.onClose(),l.current=!0,document.addEventListener("mouseup",f,{once:!0})})),onFocus:Zt(e.onFocus,(()=>{l.current||s.onOpen()})),onBlur:Zt(e.onBlur,s.onClose),onClick:Zt(e.onClick,(p=>{p.detail===0&&s.onClose()}))})))})),b$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=tu("TooltipContent",e.__scopeTooltip);return $.createElement(df,{present:r||s.open},$.createElement(w$,rt({ref:t},i)))})),w$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":s,portalled:a=!0,...u}=e,l=tu("TooltipContent",r),f=Lf(r),p=a?pf:$.Fragment,{onClose:m}=l;return gy((()=>m())),$.useEffect((()=>(document.addEventListener("tooltip.open",m),()=>document.removeEventListener("tooltip.open",m))),[m]),$.createElement(p,null,$.createElement(x$,{__scopeTooltip:r}),$.createElement(Sy,rt({"data-state":l.stateAttribute},f,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),$.createElement(hy,null,i),$.createElement(p$,{id:l.contentId,role:"tooltip"},s||i)))}));function x$(e){const{__scopeTooltip:t}=e,r=tu("CheckTriggerMoved",t),i=vy(r.trigger),s=i==null?void 0:i.left,a=Um(s),u=i==null?void 0:i.top,l=Um(u),f=r.onClose;return $.useEffect((()=>{(a!==void 0&&a!==s||l!==void 0&&l!==u)&&f()}),[f,a,l,s,u]),null}const S$=v$,E$=y$,_$=b$;function T$(e){const t=M.isValidElement(e.children)?M.Children.only(e.children):I.jsx("span",{className:"inline-flex",children:e.children});return I.jsxs(S$,{delayDuration:e.delayDuration,open:e.open,children:[I.jsx(E$,{tabIndex:-1,asChild:!0,children:t}),I.jsxs(_$,{portalled:!0,side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,className:Be("z-[1000] max-w-[240px] rounded-md bg-primary-light px-2 py-1 text-s font-semibold text-primary-dark shadow-md"),children:[typeof e.message=="string"&&I.jsx("p",{children:e.message}),typeof e.message!="string"&&e.message]})]})}const Pr=30,p0=.3,h0=.6,O$=()=>typeof window>"u"?400:Math.round(window.innerHeight*p0),g0=()=>typeof window>"u"?600:Math.round(window.innerHeight*h0),qm=e=>{const t=g0();return Math.min(Math.max(e,Pr),t)},A$=()=>I.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),R$=e=>{const[t,r]=M.useState(Pr),i=M.useRef(),s=M.useRef(null),a=g0(),u=O$(),l=t>Pr;M.useEffect(()=>{r(e.isOpen?u:Pr)},[e.isOpen,u]),M.useEffect(()=>{const p=()=>{r(m=>m<=Pr?Pr:qm(m))};return window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p),s.current&&cancelAnimationFrame(s.current)}},[]);const f=()=>{if(l){r(Pr),e.onClose();return}r(u),e.onOpen()};return I.jsx("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:I.jsx(AO.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:a,minHeight:Pr,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(l?Pr:u):i.current=Date.now()},onResize:(p,m,d)=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{var g;(g=e.onResize)==null||g.call(e),s.current=null})},onResizeStop:(p,m,d,g)=>{r(y=>qm(y+g.height))},handleComponent:{top:I.jsx(A$,{})},children:I.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Ie.kebabCase(e.path)}`,children:[I.jsxs("div",{className:Be("flex justify-between items-center px-3 py-0.5",{"flex-1":!l}),children:[I.jsxs("div",{className:"group flex items-center justify-start",children:[I.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),e.tipKey?I.jsx(Dy,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,I.jsx("button",{"data-cy":`contextualPanel-toggle-button-${l?"close":"open"}`,className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:f,children:l?I.jsx(Qe.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):I.jsx(Qe.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),I.jsxs(va,{of:l,children:[I.jsx(va,{of:e.render,children:e.render}),I.jsx(va,{of:!e.render,children:e.children})]})]})})})};function m0({children:e,viewBox:t="0 0 24 24",...r}){return I.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...Ie.omit(r,"isIndeterminate","isChecked"),children:e})}function v0(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return I.jsx(m0,{viewBox:"0 0 24 24",...e,children:I.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function P$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:s,className:a="",style:u,...l}){const f=M.useRef(null),p=i||I.jsx(v0,{}),m=l.checked??e;M.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const d=m||t,g=["base-checkbox-container",a].join(" ");return I.jsxs("label",{className:g,style:u,"data-invalid":r,children:[I.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:m,...l,"aria-invalid":r||void 0}),I.jsx("span",{className:"base-checkbox-control",children:d&&p&&M.cloneElement(p,{isChecked:m,isIndeterminate:t,className:"base-checkbox-icon"})}),s&&I.jsx("span",{className:"base-checkbox-label",children:s})]})}const C$=M.forwardRef(({label:e,Icon:t,as:r="button",className:i="",disableHover:s=!1,iconClassname:a,...u},l)=>{const[f,p]=M.useState(null),[m,d]=M.useState(!1);return M.useImperativeHandle(l,()=>f,[f]),I.jsxs(I.Fragment,{children:[I.jsx(r,{ref:p,className:Be("rounded p-1 text-white focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",{"hover:bg-primary-hover":!s},i),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onMouseDown:()=>d(!1),...u,children:I.jsx(t,{className:Be("h-4 w-4",a)})}),m&&Qn.createPortal(I.jsx(u0,{label:e,referenceElement:f}),document.body)]})}),k$=({onChange:e,value:t,delay:r,placeholder:i,containerClassName:s,onFocusInput:a,icon:u,"data-cy":l})=>{const[f,p]=M.useState(t),m=M.useRef(null);return I.jsxs("div",{className:"w-full flex gap-x-1",children:[u&&I.jsx("button",{className:"mr-1 flex h-6 w-7 items-center justify-center text-xs rounded bg-grey-300 hover:bg-primary-hover",onClick:()=>{var d;return(d=m.current)==null?void 0:d.focus()},children:I.jsx("span",{className:`text-base fa ${u}`})}),I.jsxs("div",{className:Be("flex h-6 w-full rounded bg-grey-300 pl-1.5 pr-1 focus-within:outline-none focus-within:ring-[1px] focus-within:ring-primary-dark mb-1",s),children:[I.jsx("span",{className:"flex items-center justify-center",children:!u&&I.jsx(Qe.FdSearch,{className:"text-grey-100"})}),I.jsx("input",{ref:m,"data-cy":l||"search-cy",type:"text",className:"w-full rounded bg-grey-300 py-1.5 pl-1 pr-1 text-xs placeholder-grey-200 focus:outline-none focus:ring-0",placeholder:i||"Search",onChange:d=>{p(d.currentTarget.value);const g=Ie.escapeRegExp(d.target.value);if(!r)return e(g);Ie.debounce(e,r)(g)},value:f,onFocus:()=>a&&a(),onDrop:d=>d.preventDefault()}),t&&I.jsx("span",{onClick:()=>{e(""),p("")},className:"flex cursor-pointer items-center justify-center",children:I.jsx(Qe.FdCloseNaked,{})})]})]})},I$=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:i,onReset:s,resetButtonLabel:a="Reset Page"})=>I.jsx("div",{className:"flex h-full w-full items-center justify-center",children:I.jsxs("div",{className:"flex flex-col items-center rounded bg-grey-300 px-10 py-6 text-center shadow-md",children:[I.jsxs("div",{className:"relative",children:[I.jsx(Qe.FdSanityCheckDefault,{className:"relative z-20 h-12 w-12 text-red-500 rounded-full"}),I.jsx("div",{className:"w-1/2 h-1/2 absolute z-0 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white"})]}),I.jsx("p",{className:"mb-2 mt-4 text-2xl text-white",children:e}),I.jsx("p",{className:"text-md mb-4 font-extralight text-grey-100",children:t}),I.jsxs("div",{className:"flex gap-4",children:[i&&I.jsx("button",{className:"text-md rounded border border-primary-dark hover:border-primary-hover bg-primary-dark hover:bg-primary-hover px-3 py-1 text-white focus:outline-none",onClick:i,children:"Open in Text Editor"}),s&&I.jsx("button",{className:"text-md rounded border border-red-500 bg-red-500 hover:bg-red-400 focus:ring-red-500 px-3 py-1 text-white focus:outline-none",onClick:s,children:a}),r&&I.jsx("button",{className:"text-md rounded border border-grey-50 bg-transparent hover:bg-grey-50 text-white hover:text-primary-dark px-3 py-1 focus:outline-none",onClick:r,children:"Close"})]})]})});function _i(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function $$({rowGap:e,columnGap:t,templateColumns:r,templateRows:i,height:s,width:a,style:u,...l}){return I.jsx("div",{...l,style:{display:"grid",rowGap:_i(e),columnGap:_i(t),gridTemplateColumns:r,gridTemplateRows:i,height:_i(s),width:_i(a),...u}})}function L$({colStart:e,colSpan:t,rowStart:r,rowSpan:i,sx:s,style:a,...u}){return I.jsx("div",{...u,style:{gridColumnStart:e,gridColumnEnd:t?`span ${t}`:void 0,gridRowStart:r,gridRowEnd:i?`span ${i}`:void 0,...s,...a}})}function M$({columns:e=1,spacingX:t,spacingY:r,style:i,...s}){return I.jsx("div",{...s,style:{display:"grid",gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`,columnGap:_i(t),rowGap:_i(r),...i}})}const y0=M.forwardRef(({fallback:e=null,onError:t,onLoad:r,src:i,style:s,...a},u)=>{const[l,f]=M.useState(!1);return M.useEffect(()=>{f(!1)},[i]),!i||l?I.jsx(I.Fragment,{children:e}):I.jsx("img",{...a,ref:u,src:i,style:s,onLoad:p=>{f(!1),r==null||r(p)},onError:p=>{f(!0),t==null||t(p)}})});y0.displayName="Image";function D$(e,t){const r=M.useRef(!1);M.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const cc=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function fc(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function Eo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function b0(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 w0(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 N$(e,t){const r=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let s=!0;for(let a=0;a<r.length;a++)i.indexOf(r[a])===-1&&(s=!1);return s}const zo={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,"-":cc?173:189,"=":cc?61:187,";":cc?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},xr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},Ao={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},bt={16:!1,18:!1,17:!1,91:!1},tt={};for(let e=1;e<20;e++)zo["f".concat(e)]=111+e;let Je=[],Do=null,x0="all";const Xr=new Map,Di=e=>zo[e.toLowerCase()]||xr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),F$=e=>Object.keys(zo).find(t=>zo[t]===e),j$=e=>Object.keys(xr).find(t=>xr[t]===e);function S0(e){x0=e||"all"}function Bo(){return x0||"all"}function z$(){return Je.slice(0)}function B$(){return Je.map(e=>F$(e)||j$(e)||String.fromCharCode(e))}function W$(){const e=[];return Object.keys(tt).forEach(t=>{tt[t].forEach(r=>{let{key:i,scope:s,mods:a,shortcut:u}=r;e.push({scope:s,shortcut:u,mods:a,keys:i.split("+").map(l=>Di(l))})})}),e}function H$(e){const t=e.target||e.srcElement,{tagName:r}=t;let i=!0;const s=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(s||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function U$(e){return typeof e=="string"&&(e=Di(e)),Je.indexOf(e)!==-1}function q$(e,t){let r,i;e||(e=Bo());for(const s in tt)if(Object.prototype.hasOwnProperty.call(tt,s))for(r=tt[s],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(u=>{let{element:l}=u;return Mf(l)}):i++;Bo()===e&&S0(t||"all")}function G$(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Di(e.key));const r=Je.indexOf(t);if(r>=0&&Je.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Je.splice(0,Je.length),(t===93||t===224)&&(t=91),t in bt){bt[t]=!1;for(const i in xr)xr[i]===t&&(br[i]=!1)}}function E0(e){if(typeof e>"u")Object.keys(tt).forEach(s=>{Array.isArray(tt[s])&&tt[s].forEach(a=>la(a)),delete tt[s]}),Mf(null);else if(Array.isArray(e))e.forEach(s=>{s.key&&la(s)});else if(typeof e=="object")e.key&&la(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[s,a]=r;typeof s=="function"&&(a=s,s=""),la({key:e,scope:s,method:a,splitKey:"+"})}}const la=e=>{let{key:t,scope:r,method:i,splitKey:s="+"}=e;w0(t).forEach(u=>{const l=u.split(s),f=l.length,p=l[f-1],m=p==="*"?"*":Di(p);if(!tt[m])return;r||(r=Bo());const d=f>1?b0(xr,l):[],g=[];tt[m]=tt[m].filter(y=>{const h=(i?y.method===i:!0)&&y.scope===r&&N$(y.mods,d);return h&&g.push(y.element),!h}),g.forEach(y=>Mf(y))})};function Gm(e,t,r,i){if(t.element!==i)return;let s;if(t.scope===r||t.scope==="all"){s=t.mods.length>0;for(const a in bt)Object.prototype.hasOwnProperty.call(bt,a)&&(!bt[a]&&t.mods.indexOf(+a)>-1||bt[a]&&t.mods.indexOf(+a)===-1)&&(s=!1);(t.mods.length===0&&!bt[16]&&!bt[18]&&!bt[17]&&!bt[91]||s||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Je),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Zm(e,t){const r=tt["*"];let i=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!br.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Je.indexOf(i)===-1&&i!==229&&Je.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(l=>{const f=Ao[l];e[l]&&Je.indexOf(f)===-1?Je.push(f):!e[l]&&Je.indexOf(f)>-1?Je.splice(Je.indexOf(f),1):l==="metaKey"&&e[l]&&(Je=Je.filter(p=>p in Ao||p===i))}),i in bt){bt[i]=!0;for(const l in xr)if(Object.prototype.hasOwnProperty.call(xr,l)){const f=Ao[xr[l]];br[l]=e[f]}if(!r)return}for(const l in bt)Object.prototype.hasOwnProperty.call(bt,l)&&(bt[l]=e[Ao[l]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Je.indexOf(17)===-1&&Je.push(17),Je.indexOf(18)===-1&&Je.push(18),bt[17]=!0,bt[18]=!0);const s=Bo();if(r)for(let l=0;l<r.length;l++)r[l].scope===s&&(e.type==="keydown"&&r[l].keydown||e.type==="keyup"&&r[l].keyup)&&Gm(e,r[l],s,t);if(!(i in tt))return;const a=tt[i],u=a.length;for(let l=0;l<u;l++)if((e.type==="keydown"&&a[l].keydown||e.type==="keyup"&&a[l].keyup)&&a[l].key){const f=a[l],{splitKey:p}=f,m=f.key.split(p),d=[];for(let g=0;g<m.length;g++)d.push(Di(m[g]));d.sort().join("")===Je.sort().join("")&&Gm(e,f,s,t)}}function br(e,t,r){Je=[];const i=w0(e);let s=[],a="all",u=document,l=0,f=!1,p=!0,m="+",d=!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&&(u=t.element),t.keyup&&(f=t.keyup),t.keydown!==void 0&&(p=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(m=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(a=t),g&&E0(e,a);l<i.length;l++)e=i[l].split(m),s=[],e.length>1&&(s=b0(xr,e)),e=e[e.length-1],e=e==="*"?"*":Di(e),e in tt||(tt[e]=[]),tt[e].push({keyup:f,keydown:p,scope:a,mods:s,shortcut:i[l],method:r,key:i[l],splitKey:m,element:u});if(typeof u<"u"&&window){if(!Xr.has(u)){const y=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Zm(h,u)},x=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Zm(h,u),G$(h)};Xr.set(u,{keydownListener:y,keyupListenr:x,capture:d}),fc(u,"keydown",y,d),fc(u,"keyup",x,d)}if(!Do){const y=()=>{Je=[]};Do={listener:y,capture:d},fc(window,"focus",y,d)}}}function Z$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(tt).forEach(r=>{tt[r].filter(s=>s.scope===t&&s.shortcut===e).forEach(s=>{s&&s.method&&s.method()})})}function Mf(e){const t=Object.values(tt).flat();if(t.findIndex(i=>{let{element:s}=i;return s===e})<0){const{keydownListener:i,keyupListenr:s,capture:a}=Xr.get(e)||{};i&&s&&(Eo(e,"keyup",s,a),Eo(e,"keydown",i,a),Xr.delete(e))}if((t.length<=0||Xr.size<=0)&&(Object.keys(Xr).forEach(s=>{const{keydownListener:a,keyupListenr:u,capture:l}=Xr.get(s)||{};a&&u&&(Eo(s,"keyup",u,l),Eo(s,"keydown",a,l),Xr.delete(s))}),Xr.clear(),Object.keys(tt).forEach(s=>delete tt[s]),Do)){const{listener:s,capture:a}=Do;Eo(window,"focus",s,a),Do=null}}const dc={getPressedKeyString:B$,setScope:S0,getScope:Bo,deleteScope:q$,getPressedKeyCodes:z$,getAllKeyCodes:W$,isPressed:U$,filter:H$,trigger:Z$,unbind:E0,keyMap:zo,modifier:xr,modifierMap:Ao};for(const e in dc)Object.prototype.hasOwnProperty.call(dc,e)&&(br[e]=dc[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 V$(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:s=!0}=r,a=M.useCallback((l,f)=>{s&&l.preventDefault(),setTimeout(()=>t(l,f))},i),u=()=>{br.unbind(e,a)};M.useEffect(()=>(br(e,r,a),u),[e,r,a])}const K$=(e,t="click")=>{const r=M.useRef(null);return M.useEffect(()=>{const i=s=>{r.current&&!r.current.contains(s.target)&&e(s)};return document.addEventListener(t,i,!0),()=>{document.removeEventListener(t,i,!0)}},[e,t]),r};function Y$(e){const t=M.useRef();return M.useEffect(()=>{t.current=e},[e]),t.current}function X$(e){const t=M.useRef(e);return M.useEffect(()=>{t.current=e},[e]),t}function J$(e){const t=M.useRef(null);return M.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function Q$(e){const[t,r]=M.useState(e),i=(a,u)=>{r(l=>({...l,features:{...l.features,[a]:{enabled:u}}}))},s=M.useCallback((...a)=>a.every(u=>{var l;return(l=t.features[u])==null?void 0:l.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:s}}const _0=M.createContext(""),eL=e=>I.jsx(_0.Provider,{value:e.value,children:e.children}),tL=()=>{const e=M.useContext(_0);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function rL(e){const[t,r]=M.useState(e),i=M.useMemo(()=>nL(t,r),[]);return{state:t,actions:{...i,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function nL(e,t=()=>{}){return Object.keys(e).reduce((i,s)=>({...i,[`set${Ie.upperFirst(s)}`]:a=>t(u=>({...u,[s]:a}))}),{})}const iL=(e,t,r={})=>{r={timeout:200,...r};const i=M.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return M.useCallback((a,...u)=>{s(),t&&a.detail===1&&(i.current=setTimeout(()=>{t(a,...u)},r.timeout)),a.detail%2===0&&e(a,...u)},[t,e,r.timeout])};function wt(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 s=fL[e],a=s?typeof s=="function"?s.apply(null,r):s:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(u){return"'"+u+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Li(e){return!!e&&!!e[Yt]}function Jn(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 s=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===dL})(e)||Array.isArray(e)||!!e[tv]||!!(!((t=e.constructor)===null||t===void 0)&&t[tv])||Df(e)||Nf(e))}function Wo(e,t,r){r===void 0&&(r=!1),Ni(e)===0?(r?Object.keys:Bf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,s){return t(s,i,e)}))}function Ni(e){var t=e[Yt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Df(e)?2:Nf(e)?3:0}function jc(e,t){return Ni(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function oL(e,t){return Ni(e)===2?e.get(t):e[t]}function T0(e,t,r){var i=Ni(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function sL(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Df(e){return lL&&e instanceof Map}function Nf(e){return cL&&e instanceof Set}function Hn(e){return e.o||e.t}function Ff(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=pL(e);delete t[Yt];for(var r=Bf(t),i=0;i<r.length;i++){var s=r[i],a=t[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function Ho(e,t){return t===void 0&&(t=!1),jf(e)||Li(e)||!Jn(e)||(Ni(e)>1&&(e.set=e.add=e.clear=e.delete=aL),Object.freeze(e),t&&Wo(e,(function(r,i){return Ho(i,!0)}),!0)),e}function aL(){wt(2)}function jf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Dr(e){var t=hL[e];return t||wt(18,e),t}function Vm(){return process.env.NODE_ENV==="production"||Mi||wt(0),Mi}function pc(e,t){t&&(Dr("Patches"),e.u=[],e.s=[],e.v=t)}function La(e){zc(e),e.p.forEach(uL),e.p=null}function zc(e){e===Mi&&(Mi=e.l)}function Km(e){return Mi={p:[],l:Mi,h:e,m:!0,_:0}}function uL(e){var t=e[Yt];t.i===0||t.i===1?t.j():t.g=!0}function hc(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||Dr("ES5").S(t,e,i),i?(r[Yt].P&&(La(t),wt(4)),Jn(e)&&(e=Ma(t,e),t.l||Da(t,e)),t.u&&Dr("Patches").M(r[Yt].t,e,t.u,t.s)):e=Ma(t,r,[]),La(t),t.u&&t.v(t.u,t.s),e!==A0?e:void 0}function Ma(e,t,r){if(jf(t))return t;var i=t[Yt];if(!i)return Wo(t,(function(l,f){return Ym(e,i,t,l,f,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return Da(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=Ff(i.k):i.o,a=s,u=!1;i.i===3&&(a=new Set(s),s.clear(),u=!0),Wo(a,(function(l,f){return Ym(e,i,s,l,f,r,u)})),Da(e,s,!1),r&&e.u&&Dr("Patches").N(i,r,e.u,e.s)}return i.o}function Ym(e,t,r,i,s,a,u){if(process.env.NODE_ENV!=="production"&&s===r&&wt(5),Li(s)){var l=Ma(e,s,a&&t&&t.i!==3&&!jc(t.R,i)?a.concat(i):void 0);if(T0(r,i,l),!Li(l))return;e.m=!1}else u&&r.add(s);if(Jn(s)&&!jf(s)){if(!e.h.D&&e._<1)return;Ma(e,s),t&&t.A.l||Da(e,s)}}function Da(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ho(t,r)}function gc(e,t){var r=e[Yt];return(r?Hn(r):e)[t]}function Xm(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 Bc(e){e.P||(e.P=!0,e.l&&Bc(e.l))}function mc(e){e.o||(e.o=Ff(e.t))}function Wc(e,t,r){var i=Df(t)?Dr("MapSet").F(t,r):Nf(t)?Dr("MapSet").T(t,r):e.O?(function(s,a){var u=Array.isArray(s),l={i:u?1:0,A:a?a.A:Vm(),P:!1,I:!1,R:{},l:a,t:s,k:null,o:null,j:null,C:!1},f=l,p=Hc;u&&(f=[l],p=Ro);var m=Proxy.revocable(f,p),d=m.revoke,g=m.proxy;return l.k=g,l.j=d,g})(t,r):Dr("ES5").J(t,r);return(r?r.A:Vm()).p.push(i),i}function O0(e){return Li(e)||wt(22,e),(function t(r){if(!Jn(r))return r;var i,s=r[Yt],a=Ni(r);if(s){if(!s.P&&(s.i<4||!Dr("ES5").K(s)))return s.t;s.I=!0,i=Jm(r,a),s.I=!1}else i=Jm(r,a);return Wo(i,(function(u,l){s&&oL(s.t,u)===l||T0(i,u,t(l))})),a===3?new Set(i):i})(e)}function Jm(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ff(e)}var Qm,Mi,zf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",lL=typeof Map<"u",cL=typeof Set<"u",ev=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",A0=zf?Symbol.for("immer-nothing"):((Qm={})["immer-nothing"]=!0,Qm),tv=zf?Symbol.for("immer-draftable"):"__$immer_draftable",Yt=zf?Symbol.for("immer-state"):"__$immer_state",fL={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"},dL=""+Object.prototype.constructor,Bf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,pL=Object.getOwnPropertyDescriptors||function(e){var t={};return Bf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},hL={},Hc={get:function(e,t){if(t===Yt)return e;var r=Hn(e);if(!jc(r,t))return(function(s,a,u){var l,f=Xm(a,u);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(s.k):void 0})(e,r,t);var i=r[t];return e.I||!Jn(i)?i:i===gc(e.t,t)?(mc(e),e.o[t]=Wc(e.A.h,i,e)):i},has:function(e,t){return t in Hn(e)},ownKeys:function(e){return Reflect.ownKeys(Hn(e))},set:function(e,t,r){var i=Xm(Hn(e),t);if(i!=null&&i.set)return i.set.call(e.k,r),!0;if(!e.P){var s=gc(Hn(e),t),a=s==null?void 0:s[Yt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(sL(r,s)&&(r!==void 0||jc(e.t,t)))return!0;mc(e),Bc(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 gc(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,mc(e),Bc(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Hn(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){wt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){wt(12)}},Ro={};Wo(Hc,(function(e,t){Ro[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Ro.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&wt(13),Ro.set.call(this,e,t,void 0)},Ro.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&wt(14),Hc.set.call(this,e[0],t,r,e[0])};var gL=(function(){function e(r){var i=this;this.O=ev,this.D=!0,this.produce=function(s,a,u){if(typeof s=="function"&&typeof a!="function"){var l=a;a=s;var f=i;return function(h){var w=this;h===void 0&&(h=l);for(var v=arguments.length,S=Array(v>1?v-1:0),E=1;E<v;E++)S[E-1]=arguments[E];return f.produce(h,(function(R){var T;return(T=a).call.apply(T,[w,R].concat(S))}))}}var p;if(typeof a!="function"&&wt(6),u!==void 0&&typeof u!="function"&&wt(7),Jn(s)){var m=Km(i),d=Wc(i,s,void 0),g=!0;try{p=a(d),g=!1}finally{g?La(m):zc(m)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(h){return pc(m,u),hc(h,m)}),(function(h){throw La(m),h})):(pc(m,u),hc(p,m))}if(!s||typeof s!="object"){if((p=a(s))===void 0&&(p=s),p===A0&&(p=void 0),i.D&&Ho(p,!0),u){var y=[],x=[];Dr("Patches").M(s,p,y,x),u(y,x)}return p}wt(21,s)},this.produceWithPatches=function(s,a){if(typeof s=="function")return function(p){for(var m=arguments.length,d=Array(m>1?m-1:0),g=1;g<m;g++)d[g-1]=arguments[g];return i.produceWithPatches(p,(function(y){return s.apply(void 0,[y].concat(d))}))};var u,l,f=i.produce(s,a,(function(p,m){u=p,l=m}));return typeof Promise<"u"&&f instanceof Promise?f.then((function(p){return[p,u,l]})):[f,u,l]},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){Jn(r)||wt(8),Li(r)&&(r=O0(r));var i=Km(this),s=Wc(this,r,void 0);return s[Yt].C=!0,zc(i),s},t.finishDraft=function(r,i){var s=r&&r[Yt];process.env.NODE_ENV!=="production"&&(s&&s.C||wt(9),s.I&&wt(10));var a=s.A;return pc(a,i),hc(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!ev&&wt(20),this.O=r},t.applyPatches=function(r,i){var s;for(s=i.length-1;s>=0;s--){var a=i[s];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}s>-1&&(i=i.slice(s+1));var u=Dr("Patches").$;return Li(r)?u(r,i):this.produce(r,(function(l){return u(l,i)}))},e})(),Xt=new gL,mL=Xt.produce;Xt.produceWithPatches.bind(Xt);Xt.setAutoFreeze.bind(Xt);Xt.setUseProxies.bind(Xt);Xt.applyPatches.bind(Xt);Xt.createDraft.bind(Xt);Xt.finishDraft.bind(Xt);function vL(e){var t=M.useState(function(){return Ho(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],M.useCallback(function(i){r(typeof i=="function"?mL(i):Ho(i))},[])]}const yL=process.env.NODE_ENV==="development",vc=yL&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,bL=(e,t,r)=>{const[i,s]=vL(e),a=M.useRef(null);M.useEffect(()=>{var f;return r&&(a.current=vc==null?void 0:vc.connect({name:r,trace:!0}),(f=a.current)==null||f.init(e)),()=>{var p,m;(m=(p=a.current)==null?void 0:p.disconnect)==null||m.call(p)}},[]);const u=t&&typeof t=="object"?t:{},l=M.useMemo(()=>Object.keys(u).reduce((f,p)=>({...f,[p]:m=>(s(d=>{var g;u[p](d,m),(g=a.current)==null||g.send({type:u[p].name},O0(d))}),l)}),{}),[s]);return{state:i,dispatch:l}},wL=e=>{const t=td(e),r=()=>{const{id:i,namespace:s}=t,a=window.DataSource.spaces[s];if(a&&a.sources)return a.sources[i]};return{actions:{setProperty:(i,s)=>{try{const a=r();a&&a.setValue(i,s)}catch{}},getValue:()=>r()}}},xL=({datasourceId:e,isDsBuild:t=!1,onChange:r})=>{const{id:i,namespace:s}=td(e),[a,u]=M.useState(!1),l=M.useCallback(()=>{try{return window.DataSource.getSource(i,s)}catch{return}},[s,i]),f=(d,g)=>{const y=l();y&&y.setValue(d,g)},p=async()=>{const d=l();if(!d)return;const g=await(d==null?void 0:d.getValue());r==null||r(g)},m=d=>{const{id:g}=d;!a&&g&&g.startsWith(i)&&u(!0)};return M.useEffect(()=>{if(a){const d=l();return d?(d==null||d.addListener("changed",p),()=>d==null?void 0:d.removeListener("changed",p)):void 0}},[a]),M.useEffect(()=>{if(t)return window.addEventListener("datasource:created",m),()=>window.removeEventListener("datasource:created",m)},[t]),{loaded:a,setCurrentSource:f}};function SL(e=!1){const[t,r]=M.useState(e),i=M.useMemo(()=>({on:()=>r(!0),off:()=>r(!1),toggle:()=>r(s=>!s)}),[]);return[t,i]}function EL(e){const t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useCallback((...r)=>{var i;return(i=t.current)==null?void 0:i.call(t,...r)},[])}function R0(e,t){const r=e!==void 0;return[r,r?e:t]}function _L({value:e,defaultValue:t,onChange:r}){const[i,s]=M.useState(t),[a,u]=R0(e,i),l=M.useCallback(f=>{const p=typeof f=="function"?f(u):f;a||s(p),p!==u&&(r==null||r(p))},[u,a,r]);return[u,l]}const TL=typeof window<"u"?M.useLayoutEffect:M.useEffect;function OL(e,t){const r=M.useRef(!1);M.useEffect(()=>{if(!r.current){r.current=!0;return}return e()},t)}function AL(e){return{...e,isDisabled:e.isDisabled??e.disabled,isReadOnly:e.isReadOnly??e.readOnly,isRequired:e.isRequired??e.required}}function en(e){return typeof e=="function"}function P0(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 yc=P0(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
202
- `+r.map(function(i,s){return s+1+") "+i.toString()}).join(`
203
- `):"",this.name="UnsubscriptionError",this.errors=r}});function Uc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ru=(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,s,a;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var l=Oc(u),f=l.next();!f.done;f=l.next()){var p=f.value;p.remove(this)}}catch(h){t={error:h}}finally{try{f&&!f.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}else u.remove(this);var m=this.initialTeardown;if(en(m))try{m()}catch(h){a=h instanceof yc?h.errors:[h]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var g=Oc(d),y=g.next();!y.done;y=g.next()){var x=y.value;try{rv(x)}catch(h){a=a??[],h instanceof yc?a=Ra(Ra([],Ac(a)),Ac(h.errors)):a.push(h)}}}catch(h){i={error:h}}finally{try{y&&!y.done&&(s=g.return)&&s.call(g)}finally{if(i)throw i.error}}}if(a)throw new yc(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)rv(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)&&Uc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Uc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),C0=ru.EMPTY;function k0(e){return e instanceof ru||e&&"closed"in e&&en(e.remove)&&en(e.add)&&en(e.unsubscribe)}function rv(e){en(e)?e():e.unsubscribe()}var RL={Promise:void 0},PL={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Ra([e,t],Ac(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function CL(e){PL.setTimeout(function(){throw e})}function nv(){}function xa(e){e()}var I0=(function(e){Za(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,k0(r)&&r.add(i)):i.destination=$L,i}return t.create=function(r,i,s){return new qc(r,i,s)},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})(ru),kL=(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){ca(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){ca(i)}else ca(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ca(r)}},e})(),qc=(function(e){Za(t,e);function t(r,i,s){var a=e.call(this)||this,u;return en(r)||!r?u={next:r??void 0,error:i??void 0,complete:s??void 0}:u=r,a.destination=new kL(u),a}return t})(I0);function ca(e){CL(e)}function IL(e){throw e}var $L={closed:!0,next:nv,error:IL,complete:nv},LL=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function ML(e){return e}function DL(e){return e.length===0?ML:e.length===1?e[0]:function(r){return e.reduce(function(i,s){return s(i)},r)}}var iv=(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 s=this,a=FL(t)?t:new qc(t,r,i);return xa(function(){var u=s,l=u.operator,f=u.source;a.add(l?l.call(a,f):f?s._subscribe(a):s._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 i=this;return r=ov(r),new r(function(s,a){var u=new qc({next:function(l){try{t(l)}catch(f){a(f),u.unsubscribe()}},error:a,complete:s});i.subscribe(u)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[LL]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return DL(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=ov(t),new t(function(i,s){var a;r.subscribe(function(u){return a=u},function(u){return s(u)},function(){return i(a)})})},e.create=function(t){return new e(t)},e})();function ov(e){var t;return(t=e??RL.Promise)!==null&&t!==void 0?t:Promise}function NL(e){return e&&en(e.next)&&en(e.error)&&en(e.complete)}function FL(e){return e&&e instanceof I0||NL(e)&&k0(e)}var jL=P0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),jr=(function(e){Za(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 sv(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new jL},t.prototype.next=function(r){var i=this;xa(function(){var s,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var u=Oc(i.currentObservers),l=u.next();!l.done;l=u.next()){var f=l.value;f.next(r)}}catch(p){s={error:p}}finally{try{l&&!l.done&&(a=u.return)&&a.call(u)}finally{if(s)throw s.error}}}})},t.prototype.error=function(r){var i=this;xa(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var s=i.observers;s.length;)s.shift().error(r)}})},t.prototype.complete=function(){var r=this;xa(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,s=this,a=s.hasError,u=s.isStopped,l=s.observers;return a||u?C0:(this.currentObservers=null,l.push(r),new ru(function(){i.currentObservers=null,Uc(l,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,s=i.hasError,a=i.thrownError,u=i.isStopped;s?r.error(a):u&&r.complete()},t.prototype.asObservable=function(){var r=new iv;return r.source=this,r},t.create=function(r,i){return new sv(r,i)},t})(iv),sv=(function(e){Za(t,e);function t(r,i){var s=e.call(this)||this;return s.destination=r,s.source=i,s}return t.prototype.next=function(r){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.next)===null||s===void 0||s.call(i,r)},t.prototype.error=function(r){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.error)===null||s===void 0||s.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,s;return(s=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&s!==void 0?s:C0},t})(jr),$0=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))($0||{}),L0=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(L0||{});const zL=new jr,BL=new jr,Wf=new jr;var M0=(e=>(e.SAVE_ALL="save-all",e))(M0||{});const WL=new jr;var D0=(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))(D0||{});const HL=new jr;var N0=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(N0||{});const UL=new jr,qL=new jr;var Uo=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(Uo||{});const Na=new jr,GL=new jr,Hf=255;var Uf=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Hf} 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))(Uf||{});function nu(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>Hf)throw new Error(Uf.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 ZL(e){if(!e)return null;if(typeof e=="string")try{nu(e)}catch(t){return t.message}}function VL(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!Ie.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Ie.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 KL(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function iu(e){const{PLACEHOLDER_PREFIX:t,counter:r}=KL();let i=r;const s=[],a="@!",u=m=>(s.push(m),`${t}${i++}${a}`);let l=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,u);l=l.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(m,d,g)=>d+u(g)),l=l.replace(/:\d{2}:\d{2}/g,u);const f=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let p=l.replace(f,"");for(let m=0;m<s.length;m++){const g=`${t}${m}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),y=new RegExp(g,"g");p=p.replace(y,s[m])}return p}const F0=(e,t,r)=>{const i=e instanceof RegExp?av(e,r):e,s=t instanceof RegExp?av(t,r):t,a=i!==null&&s!=null&&YL(i,s,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+i.length,a[1]),post:r.slice(a[1]+s.length)}},av=(e,t)=>{const r=t.match(e);return r?r[0]:null},YL=(e,t,r)=>{let i,s,a,u,l,f=r.indexOf(e),p=r.indexOf(t,f+1),m=f;if(f>=0&&p>0){if(e===t)return[f,p];for(i=[],a=r.length;m>=0&&!l;){if(m===f)i.push(m),f=r.indexOf(e,m+1);else if(i.length===1){const d=i.pop();d!==void 0&&(l=[d,p])}else s=i.pop(),s!==void 0&&s<a&&(a=s,u=p),p=r.indexOf(t,m+1);m=f<p&&f>=0?f:p}i.length&&u!==void 0&&(l=[a,u])}return l},j0="\0SLASH"+Math.random()+"\0",z0="\0OPEN"+Math.random()+"\0",qf="\0CLOSE"+Math.random()+"\0",B0="\0COMMA"+Math.random()+"\0",W0="\0PERIOD"+Math.random()+"\0",XL=new RegExp(j0,"g"),JL=new RegExp(z0,"g"),QL=new RegExp(qf,"g"),eM=new RegExp(B0,"g"),tM=new RegExp(W0,"g"),rM=/\\\\/g,nM=/\\{/g,iM=/\\}/g,oM=/\\,/g,sM=/\\\./g,aM=1e5;function bc(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function uM(e){return e.replace(rM,j0).replace(nM,z0).replace(iM,qf).replace(oM,B0).replace(sM,W0)}function lM(e){return e.replace(XL,"\\").replace(JL,"{").replace(QL,"}").replace(eM,",").replace(tM,".")}function H0(e){if(!e)return[""];const t=[],r=F0("{","}",e);if(!r)return e.split(",");const{pre:i,body:s,post:a}=r,u=i.split(",");u[u.length-1]+="{"+s+"}";const l=H0(a);return a.length&&(u[u.length-1]+=l.shift(),u.push.apply(u,l)),t.push.apply(t,u),t}function cM(e,t={}){if(!e)return[];const{max:r=aM}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Po(uM(e),r,!0).map(lM)}function fM(e){return"{"+e+"}"}function dM(e){return/^-?0\d/.test(e)}function pM(e,t){return e<=t}function hM(e,t){return e>=t}function Po(e,t,r){const i=[],s=F0("{","}",e);if(!s)return[e];const a=s.pre,u=s.post.length?Po(s.post,t,!1):[""];if(/\$$/.test(s.pre))for(let l=0;l<u.length&&l<t;l++){const f=a+"{"+s.body+"}"+u[l];i.push(f)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),p=l||f,m=s.body.indexOf(",")>=0;if(!p&&!m)return s.post.match(/,(?!,).*\}/)?(e=s.pre+"{"+s.body+qf+s.post,Po(e,t,!0)):[e];let d;if(p)d=s.body.split(/\.\./);else if(d=H0(s.body),d.length===1&&d[0]!==void 0&&(d=Po(d[0],t,!1).map(fM),d.length===1))return u.map(y=>s.pre+d[0]+y);let g;if(p&&d[0]!==void 0&&d[1]!==void 0){const y=bc(d[0]),x=bc(d[1]),h=Math.max(d[0].length,d[1].length);let w=d.length===3&&d[2]!==void 0?Math.max(Math.abs(bc(d[2])),1):1,v=pM;x<y&&(w*=-1,v=hM);const E=d.some(dM);g=[];for(let R=y;v(R,x);R+=w){let T;if(f)T=String.fromCharCode(R),T==="\\"&&(T="");else if(T=String(R),E){const C=h-T.length;if(C>0){const W=new Array(C+1).join("0");R<0?T="-"+W+T.slice(1):T=W+T}}g.push(T)}}else{g=[];for(let y=0;y<d.length;y++)g.push.apply(g,Po(d[y],t,!1))}for(let y=0;y<g.length;y++)for(let x=0;x<u.length&&i.length<t;x++){const h=a+g[y]+u[x];(!r||p||h)&&i.push(h)}}return i}const gM=1024*64,Fa=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>gM)throw new TypeError("pattern is too long")},mM={"[: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]},_o=e=>e.replace(/[[\]\\-]/g,"\\$&"),vM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),uv=e=>e.join(""),yM=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],s=[];let a=r+1,u=!1,l=!1,f=!1,p=!1,m=r,d="";e:for(;a<e.length;){const h=e.charAt(a);if((h==="!"||h==="^")&&a===r+1){p=!0,a++;continue}if(h==="]"&&u&&!f){m=a+1;break}if(u=!0,h==="\\"&&!f){f=!0,a++;continue}if(h==="["&&!f){for(const[w,[v,S,E]]of Object.entries(mM))if(e.startsWith(w,a)){if(d)return["$.",!1,e.length-r,!0];a+=w.length,E?s.push(v):i.push(v),l=l||S;continue e}}if(f=!1,d){h>d?i.push(_o(d)+"-"+_o(h)):h===d&&i.push(_o(h)),d="",a++;continue}if(e.startsWith("-]",a+1)){i.push(_o(h+"-")),a+=2;continue}if(e.startsWith("-",a+1)){d=h,a+=2;continue}i.push(_o(h)),a++}if(m<a)return["",!1,0,!1];if(!i.length&&!s.length)return["$.",!1,e.length-r,!0];if(s.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!p){const h=i[0].length===2?i[0].slice(-1):i[0];return[vM(h),!1,m-r,!1]}const g="["+(p?"^":"")+uv(i)+"]",y="["+(p?"":"^")+uv(s)+"]";return[i.length&&s.length?"("+g+"|"+y+")":i.length?g:y,l,m-r,!0]},Co=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var Dt;const bM=new Set(["!","?","+","*","@"]),Gc=e=>bM.has(e),lv=e=>Gc(e.type),wM=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),xM=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),SM=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),cv=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),EM="(?!(?:^|/)\\.\\.?(?:$|/))",fa="(?!\\.)",_M=new Set(["[","."]),TM=new Set(["..","."]),OM=new Set("().*{}+?[]^$\\!"),AM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Gf="[^/]",fv=Gf+"*?",dv=Gf+"+?";let RM=0;var ut,ht,Qr,we,Xe,Sn,Gn,En,Cr,kr,Ri,Me,U0,Tn,Sa,q0,Zc,Ea,G0,Vc,Z0,V0,K0,_a,Kc,Y0;class ou{constructor(t,r,i={}){vt(this,Me);ye(this,"type");vt(this,ut);vt(this,ht);vt(this,Qr,!1);vt(this,we,[]);vt(this,Xe);vt(this,Sn);vt(this,Gn);vt(this,En,!1);vt(this,Cr);vt(this,kr);vt(this,Ri,!1);ye(this,"id",++RM);this.type=t,t&&He(this,ht,!0),He(this,Xe,r),He(this,ut,X(this,Xe)?X(X(this,Xe),ut):this),He(this,Cr,X(this,ut)===this?i:X(X(this,ut),Cr)),He(this,Gn,X(this,ut)===this?[]:X(X(this,ut),Gn)),t==="!"&&!X(X(this,ut),En)&&X(this,Gn).push(this),He(this,Sn,X(this,Xe)?X(X(this,Xe),we).length:0)}get depth(){var t;return(((t=X(this,Xe))==null?void 0:t.depth)??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){var t;return{"@@type":"AST",id:this.id,type:this.type,root:X(this,ut).id,parent:(t=X(this,Xe))==null?void 0:t.id,depth:this.depth,partsLength:X(this,we).length,parts:X(this,we)}}get hasMagic(){if(X(this,ht)!==void 0)return X(this,ht);for(const t of X(this,we))if(typeof t!="string"&&(t.type||t.hasMagic))return He(this,ht,!0);return X(this,ht)}toString(){return X(this,kr)!==void 0?X(this,kr):this.type?He(this,kr,this.type+"("+X(this,we).map(t=>String(t)).join("|")+")"):He(this,kr,X(this,we).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Dt&&X(r,Xe)===this))throw new Error("invalid part: "+r);X(this,we).push(r)}}toJSON(){var r;const t=this.type===null?X(this,we).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...X(this,we).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===X(this,ut)||X(X(this,ut),En)&&((r=X(this,Xe))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(X(this,ut)===this)return!0;if(!((r=X(this,Xe))!=null&&r.isStart()))return!1;if(X(this,Sn)===0)return!0;const t=X(this,Xe);for(let i=0;i<X(this,Sn);i++){const s=X(t,we)[i];if(!(s instanceof Dt&&s.type==="!"))return!1}return!0}isEnd(){var r,i,s;if(X(this,ut)===this||((r=X(this,Xe))==null?void 0:r.type)==="!")return!0;if(!((i=X(this,Xe))!=null&&i.isEnd()))return!1;if(!this.type)return(s=X(this,Xe))==null?void 0:s.isEnd();const t=X(this,Xe)?X(X(this,Xe),we).length:0;return X(this,Sn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Dt(this.type,t);for(const i of X(this,we))r.copyIn(i);return r}static fromGlob(t,r={}){var s;const i=new Dt(null,void 0,r);return de(s=Dt,Tn,Sa).call(s,t,i,0,r,0),i}toMMPattern(){if(this!==X(this,ut))return X(this,ut).toMMPattern();const t=this.toString(),[r,i,s,a]=this.toRegExpSource();if(!(s||X(this,ht)||X(this,Cr).nocase&&!X(this,Cr).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const l=(X(this,Cr).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,l),{_src:r,_glob:t})}get options(){return X(this,Cr)}toRegExpSource(t){var f;const r=t??!!X(this,Cr).dot;if(X(this,ut)===this&&(de(this,Me,_a).call(this),de(this,Me,U0).call(this)),!lv(this)){const p=this.isStart()&&this.isEnd()&&!X(this,we).some(x=>typeof x!="string"),m=X(this,we).map(x=>{var E;const[h,w,v,S]=typeof x=="string"?de(E=Dt,Tn,Y0).call(E,x,X(this,ht),p):x.toRegExpSource(t);return He(this,ht,X(this,ht)||v),He(this,Qr,X(this,Qr)||S),h}).join("");let d="";if(this.isStart()&&typeof X(this,we)[0]=="string"&&!(X(this,we).length===1&&TM.has(X(this,we)[0]))){const h=_M,w=r&&h.has(m.charAt(0))||m.startsWith("\\.")&&h.has(m.charAt(2))||m.startsWith("\\.\\.")&&h.has(m.charAt(4)),v=!r&&!t&&h.has(m.charAt(0));d=w?EM:v?fa:""}let g="";return this.isEnd()&&X(X(this,ut),En)&&((f=X(this,Xe))==null?void 0:f.type)==="!"&&(g="(?:$|\\/)"),[d+m+g,Co(m),He(this,ht,!!X(this,ht)),X(this,Qr)]}const i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=de(this,Me,Kc).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const p=this.toString(),m=this;return He(m,we,[p]),m.type=null,He(m,ht,void 0),[p,Co(this.toString()),!1,!1]}let u=!i||t||r||!fa?"":de(this,Me,Kc).call(this,!0);u===a&&(u=""),u&&(a=`(?:${a})(?:${u})*?`);let l="";if(this.type==="!"&&X(this,Ri))l=(this.isStart()&&!r?fa:"")+dv;else{const p=this.type==="!"?"))"+(this.isStart()&&!r&&!t?fa:"")+fv+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&u?")":this.type==="*"&&u?")?":`)${this.type}`;l=s+a+p}return[l,Co(a),He(this,ht,!!X(this,ht)),X(this,Qr)]}}ut=new WeakMap,ht=new WeakMap,Qr=new WeakMap,we=new WeakMap,Xe=new WeakMap,Sn=new WeakMap,Gn=new WeakMap,En=new WeakMap,Cr=new WeakMap,kr=new WeakMap,Ri=new WeakMap,Me=new WeakSet,U0=function(){if(this!==X(this,ut))throw new Error("should only call on root");if(X(this,En))return this;this.toString(),He(this,En,!0);let t;for(;t=X(this,Gn).pop();){if(t.type!=="!")continue;let r=t,i=X(r,Xe);for(;i;){for(let s=X(r,Sn)+1;!i.type&&s<X(i,we).length;s++)for(const a of X(t,we)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(X(i,we)[s])}r=i,i=X(r,Xe)}}return this},Tn=new WeakSet,Sa=function(t,r,i,s,a){var h,w,v,S;const u=s.maxExtglobRecursion??2;let l=!1,f=!1,p=-1,m=!1;if(r.type===null){let E=i,R="";for(;E<t.length;){const T=t.charAt(E++);if(l||T==="\\"){l=!l,R+=T;continue}if(f){E===p+1?(T==="^"||T==="!")&&(m=!0):T==="]"&&!(E===p+2&&m)&&(f=!1),R+=T;continue}else if(T==="["){f=!0,p=E,m=!1,R+=T;continue}if(!s.noext&&Gc(T)&&t.charAt(E)==="("&&a<=u){r.push(R),R="";const W=new Dt(T,r);E=de(h=Dt,Tn,Sa).call(h,t,W,E,s,a+1),r.push(W);continue}R+=T}return r.push(R),E}let d=i+1,g=new Dt(null,r);const y=[];let x="";for(;d<t.length;){const E=t.charAt(d++);if(l||E==="\\"){l=!l,x+=E;continue}if(f){d===p+1?(E==="^"||E==="!")&&(m=!0):E==="]"&&!(d===p+2&&m)&&(f=!1),x+=E;continue}else if(E==="["){f=!0,p=d,m=!1,x+=E;continue}if(!s.noext&&Gc(E)&&t.charAt(d)==="("&&(a<=u||r&&de(w=r,Me,Ea).call(w,E))){const T=r&&de(v=r,Me,Ea).call(v,E)?0:1;g.push(x),x="";const C=new Dt(E,g);g.push(C),d=de(S=Dt,Tn,Sa).call(S,t,C,d,s,a+T);continue}if(E==="|"){g.push(x),x="",y.push(g),g=new Dt(null,r);continue}if(E===")")return x===""&&X(r,we).length===0&&He(r,Ri,!0),g.push(x),x="",r.push(...y,g),d;x+=E}return r.type=null,He(r,ht,void 0),He(r,we,[t.substring(i-1)]),d},q0=function(t){return de(this,Me,Zc).call(this,t,xM)},Zc=function(t,r=wM){if(!t||typeof t!="object"||t.type!==null||X(t,we).length!==1||this.type===null)return!1;const i=X(t,we)[0];return!i||typeof i!="object"||i.type===null?!1:de(this,Me,Ea).call(this,i.type,r)},Ea=function(t,r=SM){var i;return!!((i=r.get(this.type))!=null&&i.includes(t))},G0=function(t,r){const i=X(t,we)[0],s=new Dt(null,i,this.options);X(s,we).push(""),i.push(s),de(this,Me,Vc).call(this,t,r)},Vc=function(t,r){const i=X(t,we)[0];X(this,we).splice(r,1,...X(i,we));for(const s of X(i,we))typeof s=="object"&&He(s,Xe,this);He(this,kr,void 0)},Z0=function(t){const r=cv.get(this.type);return!!(r!=null&&r.has(t))},V0=function(t){if(!t||typeof t!="object"||t.type!==null||X(t,we).length!==1||this.type===null||X(this,we).length!==1)return!1;const r=X(t,we)[0];return!r||typeof r!="object"||r.type===null?!1:de(this,Me,Z0).call(this,r.type)},K0=function(t){const r=cv.get(this.type),i=X(t,we)[0],s=r==null?void 0:r.get(i.type);if(!s)return!1;He(this,we,X(i,we));for(const a of X(this,we))typeof a=="object"&&He(a,Xe,this);this.type=s,He(this,kr,void 0),He(this,Ri,!1)},_a=function(){var t,r;if(lv(this)){let i=0,s=!1;do{s=!0;for(let a=0;a<X(this,we).length;a++){const u=X(this,we)[a];typeof u=="object"&&(de(r=u,Me,_a).call(r),de(this,Me,Zc).call(this,u)?(s=!1,de(this,Me,Vc).call(this,u,a)):de(this,Me,q0).call(this,u)?(s=!1,de(this,Me,G0).call(this,u,a)):de(this,Me,V0).call(this,u)&&(s=!1,de(this,Me,K0).call(this,u)))}}while(!s&&++i<10)}else for(const i of X(this,we))typeof i=="object"&&de(t=i,Me,_a).call(t);He(this,kr,void 0)},Kc=function(t){return X(this,we).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,s,a,u]=r.toRegExpSource(t);return He(this,Qr,X(this,Qr)||u),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},Y0=function(t,r,i=!1){let s=!1,a="",u=!1,l=!1;for(let f=0;f<t.length;f++){const p=t.charAt(f);if(s){s=!1,a+=(OM.has(p)?"\\":"")+p;continue}if(p==="*"){if(l)continue;l=!0,a+=i&&/^[*]+$/.test(t)?dv:fv,r=!0;continue}else l=!1;if(p==="\\"){f===t.length-1?a+="\\\\":s=!0;continue}if(p==="["){const[m,d,g,y]=yM(t,f);if(g){a+=m,u=u||d,f+=g-1,r=r||y;continue}}if(p==="?"){a+=Gf,r=!0;continue}a+=AM(p)}return[a,Co(t),!!r,u]},vt(ou,Tn);Dt=ou;const PM=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),xt=(e,t,r={})=>(Fa(t),!r.nocomment&&t.charAt(0)==="#"?!1:new su(t,r).match(e)),CM=/^\*+([^+@!?*[(]*)$/,kM=e=>t=>!t.startsWith(".")&&t.endsWith(e),IM=e=>t=>t.endsWith(e),$M=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),LM=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),MM=/^\*+\.\*+$/,DM=e=>!e.startsWith(".")&&e.includes("."),NM=e=>e!=="."&&e!==".."&&e.includes("."),FM=/^\.\*+$/,jM=e=>e!=="."&&e!==".."&&e.startsWith("."),zM=/^\*+$/,BM=e=>e.length!==0&&!e.startsWith("."),WM=e=>e.length!==0&&e!=="."&&e!=="..",HM=/^\?+([^+@!?*[(]*)?$/,UM=([e,t=""])=>{const r=X0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},qM=([e,t=""])=>{const r=J0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},GM=([e,t=""])=>{const r=J0([e]);return t?i=>r(i)&&i.endsWith(t):r},ZM=([e,t=""])=>{const r=X0([e]);return t?i=>r(i)&&i.endsWith(t):r},X0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},J0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Q0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",pv={win32:{sep:"\\"},posix:{sep:"/"}},VM=Q0==="win32"?pv.win32.sep:pv.posix.sep;xt.sep=VM;const Tt=Symbol("globstar **");xt.GLOBSTAR=Tt;const KM="[^/]",YM=KM+"*?",XM="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",JM="(?:(?!(?:\\/|^)\\.).)*?",QM=(e,t={})=>r=>xt(r,e,t);xt.filter=QM;const or=(e,t={})=>Object.assign({},e,t),eD=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return xt;const t=xt;return Object.assign((i,s,a={})=>t(i,s,or(e,a)),{Minimatch:class extends t.Minimatch{constructor(s,a={}){super(s,or(e,a))}static defaults(s){return t.defaults(or(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,a,u={}){super(s,a,or(e,u))}static fromGlob(s,a={}){return t.AST.fromGlob(s,or(e,a))}},unescape:(i,s={})=>t.unescape(i,or(e,s)),escape:(i,s={})=>t.escape(i,or(e,s)),filter:(i,s={})=>t.filter(i,or(e,s)),defaults:i=>t.defaults(or(e,i)),makeRe:(i,s={})=>t.makeRe(i,or(e,s)),braceExpand:(i,s={})=>t.braceExpand(i,or(e,s)),match:(i,s,a={})=>t.match(i,s,or(e,a)),sep:t.sep,GLOBSTAR:Tt})};xt.defaults=eD;const eb=(e,t={})=>(Fa(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:cM(e,{max:t.braceExpandMax}));xt.braceExpand=eb;const tD=(e,t={})=>new su(e,t).makeRe();xt.makeRe=tD;const rD=(e,t,r={})=>{const i=new su(t,r);return e=e.filter(s=>i.match(s)),i.options.nonull&&!e.length&&e.push(t),e};xt.match=rD;const hv=/[?*]|[+@!]\(.*?\)|\[|\]/,nD=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var Vt,tb,Yc,Si;class su{constructor(t,r={}){vt(this,Vt);ye(this,"options");ye(this,"set");ye(this,"pattern");ye(this,"windowsPathsNoEscape");ye(this,"nonegate");ye(this,"negate");ye(this,"comment");ye(this,"empty");ye(this,"preserveMultipleSlashes");ye(this,"partial");ye(this,"globSet");ye(this,"globParts");ye(this,"nocase");ye(this,"isWindows");ye(this,"platform");ye(this,"windowsNoMagicRoot");ye(this,"maxGlobstarRecursion");ye(this,"regexp");Fa(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||Q0,this.isWindows=this.platform==="win32";const i="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[i]===!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 i=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let s=this.globParts.map((a,u,l)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=a[0]===""&&a[1]===""&&(a[2]==="?"||!hv.test(a[2]))&&!hv.test(a[3]),p=/^[a-z]:/i.test(a[0]);if(f)return[...a.slice(0,4),...a.slice(4).map(m=>this.parse(m))];if(p)return[a[0],...a.slice(1).map(m=>this.parse(m))]}return a.map(f=>this.parse(f))});if(this.debug(this.pattern,s),this.set=s.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){const u=this.set[a];u[0]===""&&u[1]===""&&this.globParts[a][2]==="?"&&typeof u[3]=="string"&&/^[a-z]:$/i.test(u[3])&&(u[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(const i of t)for(let s=0;s<i.length;s++)i[s]==="**"&&(i[s]="*");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 s=i;for(;r[s+1]==="**";)s++;s!==i&&r.splice(i,s-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,s)=>{const a=i[i.length-1];return s==="**"&&a==="**"?i:s===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(i.pop(),i):(i.push(s),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 s=1;s<t.length-1;s++){const a=t[s];s===1&&a===""&&t[0]===""||(a==="."||a==="")&&(r=!0,t.splice(s,1),s--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const s=t[i-1];s&&s!=="."&&s!==".."&&s!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(s))&&(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 s=-1;for(;(s=i.indexOf("**",s+1))!==-1;){let u=s;for(;i[u+1]==="**";)u++;u>s&&i.splice(s+1,u-s);let l=i[s+1];const f=i[s+2],p=i[s+3];if(l!==".."||!f||f==="."||f===".."||!p||p==="."||p==="..")continue;r=!0,i.splice(s,1);const m=i.slice(0);m[s]="**",t.push(m),s--}if(!this.preserveMultipleSlashes){for(let u=1;u<i.length-1;u++){const l=i[u];u===1&&l===""&&i[0]===""||(l==="."||l==="")&&(r=!0,i.splice(u,1),u--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let a=0;for(;(a=i.indexOf("..",a+1))!==-1;){const u=i[a-1];if(u&&u!=="."&&u!==".."&&u!=="**"){r=!0;const f=a===1&&i[a+1]==="**"?["."]:[];i.splice(a-1,2,...f),i.length===0&&i.push(""),a-=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 s=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(s){t[r]=[],t[i]=s;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let s=0,a=0,u=[],l="";for(;s<t.length&&a<r.length;)if(t[s]===r[a])u.push(l==="b"?r[a]:t[s]),s++,a++;else if(i&&t[s]==="**"&&r[a]===t[s+1])u.push(t[s]),s++;else if(i&&r[a]==="**"&&t[s]===r[a+1])u.push(r[a]),a++;else if(t[s]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(l==="b")return!1;l="a",u.push(t[s]),s++,a++}else if(r[a]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(l==="a")return!1;l="b",u.push(r[a]),s++,a++}else return!1;return t.length===r.length&&u}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let s=0;s<t.length&&t.charAt(s)==="!";s++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){let s=0,a=0;if(this.isWindows){const l=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),f=!l&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),p=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),m=!p&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),d=f?3:l?0:void 0,g=m?3:p?0:void 0;if(typeof d=="number"&&typeof g=="number"){const[y,x]=[t[d],r[g]];y.toLowerCase()===x.toLowerCase()&&(r[g]=y,a=g,s=d)}}const{optimizationLevel:u=1}=this.options;return u>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(Tt)?de(this,Vt,tb).call(this,t,r,i,s,a):de(this,Vt,Si).call(this,t,r,i,s,a)}braceExpand(){return eb(this.pattern,this.options)}parse(t){Fa(t);const r=this.options;if(t==="**")return Tt;if(t==="")return"";let i,s=null;(i=t.match(zM))?s=r.dot?WM:BM:(i=t.match(CM))?s=(r.nocase?r.dot?LM:$M:r.dot?IM:kM)(i[1]):(i=t.match(HM))?s=(r.nocase?r.dot?qM:UM:r.dot?GM:ZM)(i):(i=t.match(MM))?s=r.dot?NM:DM:(i=t.match(FM))&&(s=jM);const a=ou.fromGlob(t,this.options).toMMPattern();return s&&typeof a=="object"&&Reflect.defineProperty(a,"test",{value:s}),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,i=r.noglobstar?YM:r.dot?XM:JM,s=new Set(r.nocase?["i"]:[]);let a=t.map(f=>{const p=f.map(d=>{if(d instanceof RegExp)for(const g of d.flags.split(""))s.add(g);return typeof d=="string"?nD(d):d===Tt?Tt:d._src});p.forEach((d,g)=>{const y=p[g+1],x=p[g-1];d!==Tt||x===Tt||(x===void 0?y!==void 0&&y!==Tt?p[g+1]="(?:\\/|"+i+"\\/)?"+y:p[g]=i:y===void 0?p[g-1]=x+"(?:\\/|\\/"+i+")?":y!==Tt&&(p[g-1]=x+"(?:\\/|\\/"+i+"\\/)"+y,p[g+1]=Tt))});const m=p.filter(d=>d!==Tt);if(this.partial&&m.length>=1){const d=[];for(let g=1;g<=m.length;g++)d.push(m.slice(0,g).join("/"));return"(?:"+d.join("|")+")"}return m.join("/")}).join("|");const[u,l]=t.length>1?["(?:",")"]:["",""];a="^"+u+a+l+"$",this.partial&&(a="^(?:\\/|"+u+a.slice(1,-1)+l+")$"),this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...s].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 s=this.slashSplit(t);this.debug(this.pattern,"split",s);const a=this.set;this.debug(this.pattern,"set",a);let u=s[s.length-1];if(!u)for(let l=s.length-2;!u&&l>=0;l--)u=s[l];for(const l of a){let f=s;if(i.matchBase&&l.length===1&&(f=[u]),this.matchOne(f,l,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return xt.defaults(t).Minimatch}}Vt=new WeakSet,tb=function(t,r,i,s,a){const u=r.indexOf(Tt,a),l=r.lastIndexOf(Tt),[f,p,m]=i?[r.slice(a,u),r.slice(u+1),[]]:[r.slice(a,u),r.slice(u+1,l),r.slice(l+1)];if(f.length){const S=t.slice(s,s+f.length);if(!de(this,Vt,Si).call(this,S,f,i,0,0))return!1;s+=f.length,a+=f.length}let d=0;if(m.length){if(m.length+s>t.length)return!1;let S=t.length-m.length;if(de(this,Vt,Si).call(this,t,m,i,S,0))d=m.length;else{if(t[t.length-1]!==""||s+m.length===t.length||(S--,!de(this,Vt,Si).call(this,t,m,i,S,0)))return!1;d=m.length+1}}if(!p.length){let S=!!d;for(let E=s;E<t.length-d;E++){const R=String(t[E]);if(S=!0,R==="."||R===".."||!this.options.dot&&R.startsWith("."))return!1}return i||S}const g=[[[],0]];let y=g[0],x=0;const h=[0];for(const S of p)S===Tt?(h.push(x),y=[[],0],g.push(y)):(y[0].push(S),x++);let w=g.length-1;const v=t.length-d;for(const S of g)S[1]=v-(h[w--]+S[0].length);return!!de(this,Vt,Yc).call(this,t,g,s,0,i,0,!!d)},Yc=function(t,r,i,s,a,u,l){const f=r[s];if(!f){for(let d=i;d<t.length;d++){l=!0;const g=t[d];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1}return l}const[p,m]=f;for(;i<=m;){if(de(this,Vt,Si).call(this,t.slice(0,i+p.length),p,a,i,0)&&u<this.maxGlobstarRecursion){const y=de(this,Vt,Yc).call(this,t,r,i+p.length,s+1,a,u+1,l);if(y!==!1)return y}const g=t[i];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1;i++}return a||null},Si=function(t,r,i,s,a){let u,l,f,p;for(u=s,l=a,p=t.length,f=r.length;u<p&&l<f;u++,l++){this.debug("matchOne loop");let m=r[l],d=t[u];if(this.debug(r,m,d),m===!1||m===Tt)return!1;let g;if(typeof m=="string"?(g=d===m,this.debug("string match",m,d,g)):(g=m.test(d),this.debug("pattern match",m,d,g)),!g)return!1}if(u===p&&l===f)return!0;if(u===p)return i;if(l===f)return u===p-1&&t[u]==="";throw new Error("wtf?")};xt.AST=ou;xt.Minimatch=su;xt.escape=PM;xt.unescape=Co;var Zf=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Zf||{});const wr={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||{}),Cn=(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))(Cn||{}),Vf=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Vf||{});const Kf="roles.json",Yf="qodlyApp.json",rb="model.4DModel",Xf="HTTPHandlers.json",Jf="Shared/i18n.json",nb=[{pattern:Yf,editor:{key:"editors:settings"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:Kf,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:Xf,editor:{key:"editors:http-handlers"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:Jf,editor:{key:"editors:localization"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:rb,editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.webform",editor:{key:"editors:webforms"},supportedEditors:[{key:"editors:event-report"},{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.qodoc",editor:{key:"editors:reports"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"Methods/*.4dm",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Methods/*.4qs",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4dm",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4qs",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(json)",editor:{key:"editors:code",config:{language:"json"}}},{pattern:"**/*.+(js)",editor:{key:"editors:code",config:{language:"js"}}},{pattern:"**/*.+(css)",editor:{key:"editors:code",config:{language:"css"}}},{pattern:"**/*.+(txt)",editor:{key:"editors:code",config:{language:""}}},{pattern:"Debugger/*",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(png|jpeg|jpg|gif|svg)",editor:{key:"editors:img"}}];function iD(e){const t=Qf(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 oD(e){const t=nb.find(({pattern:r})=>xt(e,r,{nocase:!0}));return t||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function Qf(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===wr.METHODS):return ke.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===wr.CLASSES):return ke.CLASS;case e===Kf:return ke.ROLES;case e===Xf:return ke.HTTP_HANDLERS;case e===Yf:return ke.SETTINGS;case e===Jf:return ke.LOCALIZATION;default:return ke.TEXT}}function ib(e,t=!1){switch(e){case wr.REPORTS:case"report":return"QoDoc";case wr.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case wr.CLASSES:case wr.METHODS:return t?"4qs":"4dm";default:return""}}function sD(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function aD(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 ob{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(s=>{t=s}),i=this.current.then(()=>t);return this.current=r,i}}function ed(){const e=new ob;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const uD="4DWS_PREFS",sb=Ie.curry((e,t,r)=>e&&Ie.get(r,e)===t),lD=Ie.curry((e,t,r)=>Ie.get(r,e)!==t),cD=Ie.curry((e,t)=>Ie.get(t,"id")!==e),fD=Ie.curry((e,t)=>Ie.get(t,"id")===e),dD=Ie.curry((e,t)=>Ie.get(t,"path")===e);function pD(e="id",t,r){return r.findIndex(sb(e,t))!==-1}function ab(e,t){return e==null?void 0:e.localeCompare(t,void 0,{numeric:!0})}function hD(){try{const e=localStorage.getItem(uD);return{...e?JSON.parse(e):{},"features.experimental.i18n":!0}}catch(e){console.error(e)}}function gD(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function td(e=""){const t=e.trim().split(":")||[];let r="",i="";return t.length>1?(r=t[1],i=t[0]):r=t[0],{id:r,namespace:i,root:r.split(".").filter(Boolean)[0],original:i?`${i}:${r}`:r,parts:t}}function ub(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}const mD={bool:"bool",string:"string",text:"string",uuid:"string",short:"number",long:"number",number:"number",long64:"number",duration:"number",object:"object",date:"date",blob:"blob",image:"image",word:"number"};function vD(e){return e?mD[e]:void 0}function yD(e){return e.type==="object"}function lb(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function cb(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!ub(e)}function bD(e){return lb(e)||cb(e)}function wD(e){return e.applyTo==="dataStore"}function xD(e){return e.applyTo==="dataClass"}function SD(e){return e.applyTo==="entity"}function ED(e){return e.applyTo==="entityCollection"}function _D(e){return e.type==="entity"}function TD(e){return e.type==="entitysel"}function fb(e){return e.dataType==="array"}function db(e){return e.dataType==="object"}function pb(e){return e.type==="scalar"}function OD(e){return fb(e)||db(e)||pb(e)}const AD=e=>e!=null&&e.type==="entity",RD=e=>e.type==="entitysel",PD=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",CD=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",kD=e=>e.type==="scalar"&&e.dataType==="date",ID=(e,t)=>(e||"")===(t||"");function $D(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function LD(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const ko="Qodly",hb="Location",gb="UserLanguage",mb="Title",ja={[ko]:[{id:mb,dataType:"string",type:"scalar",namespace:ko,initialValue:""},{id:hb,dataType:"object",type:"scalar",namespace:ko,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:gb,dataType:"object",type:"scalar",namespace:ko,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 qo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(qo||{}),vb=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(vb||{}),rd=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(rd||{});const MD={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function DD(e){var a;let t={};try{const u=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(u)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:qo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:rd.table}},...i}}function yb(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[qo.capable,qo.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 ND(e,t,r=!1){const i=Ie.isString(t)?t:yb(t);if(!r&&bb(e))return e;const s=wb(e);return`//%attributes = ${i}\r
204
- ${s}`}function bb(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function wb(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const Xc=()=>On.uuid().replaceAll("-","").toUpperCase();function FD(e){var s,a;const t=new Map,r=new Map,i=new Map;return(s=e.singletons)==null||s.forEach(({methods:u=[],...l})=>{i.set(l.name,{...l,methods:u})}),(a=e.dataClasses)==null||a.forEach(({methods:u=[],...l})=>{const f={...l,methods:u};if(f.uuid||(f.uuid=Xc()),f.attributes){const p=["storage","relatedEntity"];f.attributes=f.attributes.map(m=>p.includes(m.kind)&&!m.uuid?{...m,uuid:Xc()}:m)}r.set(f.className,f),t.set(f.collectionName,f)}),{...e,methods:e.methods||[],dataClasses:Object.fromEntries(r.entries()),dataClassByCollectionName:Object.fromEntries(t.entries()),singletons:Object.fromEntries(i.entries())}}const jD=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var ze=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(ze||{}),Ke=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(Ke||{});const zD=[ze.DATASTORE,ze.DATACLASS,ze.ATTRIBUTE,ze.SINGLETON_METHOD,ze.SINGLETON,ze.METHOD,Ke.DS_METHOD,Ke.DATACLASS_METHOD,Ke.ENTITY_METHOD,Ke.ENTITY_SEL_METHOD],gv=e=>[Ke.DS_METHOD,Ke.ENTITY_METHOD,Ke.DATACLASS_METHOD].includes(e)?ze.METHOD:e,za="guest",nd=[{key:"read",label:"Read",canApplyTo:[ze.DATASTORE,ze.DATACLASS,ze.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[ze.DATASTORE,ze.DATACLASS,ze.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[ze.DATASTORE,ze.DATACLASS,ze.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[ze.DATASTORE,ze.DATACLASS,ze.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[ze.DATASTORE,ze.DATACLASS,ze.METHOD,Ke.DS_METHOD,Ke.DATACLASS_METHOD,Ke.ENTITY_METHOD,Ke.ENTITY_SEL_METHOD,ze.SINGLETON,ze.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[ze.METHOD,Ke.DS_METHOD,Ke.DATACLASS_METHOD,Ke.ENTITY_METHOD,Ke.ENTITY_SEL_METHOD,ze.SINGLETON_METHOD]}];function lr(e,...t){return Array.from(new Set([...e,...t]))}function xb(e){const t={},r=new Map;e.forEach(f=>{const p=f.id||On.generate();t[p]={...f,id:p,parents:[],includes:lr(f.includes||[]),resources:[]},r.set(f.privilege,p)}),Object.entries(t).forEach(([f,p])=>{const m=p.includes.map(d=>{const g=r.get(d);return g?(t[g].parents=lr(t[g].parents,g),g):""}).filter(Boolean);t[f]={...p,includes:m}});const i=Sb(t),s=new Set;function a(f){s.add(f.id),f.includes=f.includes.filter(p=>!s.has(p))}if(i.forEach(a),i.forEach(f=>f.parents=[]),i.forEach(f=>{f.includes.forEach(p=>t[p].parents.push(f.id))}),Object.values(t).find(({privilege:f})=>f===za))return t;const l=On.generate();return{[l]:{id:l,privilege:za,includes:[],parents:[],resources:[]},...t}}function Sb(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function au(e,t){const r=t[e];let i=[];return r&&r.parents.forEach(s=>{i=lr(i,...au(s,t),s)}),i}function Ba(e,t){const r=t[e];let i=[];return r&&r.includes.forEach(s=>{i=lr(i,...Ba(s,t),s)}),i}function BD(e,t){const r=t[e];if(!r)return[];const i=[e,...au(e,t),...r.includes];return Object.keys(t).filter(s=>!i.includes(s))}function WD(e,t){return t[e]?Object.keys(t).reduce((i,s)=>s===e?i:{...i,[s]:{...t[s],parents:t[s].parents.filter(a=>a!==e),includes:t[s].includes.filter(a=>a!==e)}},{}):t}function HD(e,t,r){const i=r[e],s=r[t];return!i||!s?r:{...r,[e]:{...r[e],includes:lr(i.includes,t)},[t]:{...r[t],parents:lr(s.parents,e)}}}function UD(e,t,r){const i=r[e],s=r[t];return!i||!s?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 qD(e,t){nu(e),Object.entries(t).forEach(([,{privilege:i}])=>{if(e.toLowerCase()===i.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const r=On.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function GD(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:i,id:s}])=>{if(e.toLowerCase()===i.toLowerCase()&&t!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...r,[t]:{...r[t],privilege:e}}}function ZD(e,t){return e.map(r=>rn(r,t))}function rn(e,t){return t[e]?t[e]:null}function Eb({applyTo:e,type:t,...r}){return Object.entries(r).reduce((i,[s,a])=>{const u=Ie.find(nd,["key",s]);return!u||!u.canApplyTo.includes(t)||(typeof a=="string"?a.split(","):a).forEach(f=>{i[f]=lr(i[f]||[],s)}),i},{})}const mv=(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 id(e){return{permissions:nd.filter(({canApplyTo:t})=>t.includes(e.type)).map(({key:t,label:r})=>{const i={name:t,from:[]};switch(e.type){case ze.DATASTORE:return{...i,info:mv(r,!0)};case ze.DATACLASS:return{...i,info:mv(r)};default:return i}}),resource:e.applyTo,type:e.type}}function _b(e,t){const r=Tb(t),i={};return e.filter(({type:s})=>zD.includes(s)).forEach(s=>{const a=Eb(s);Object.entries(a).forEach(([u,l])=>{var m;const f=(m=r[u])==null?void 0:m.id;if(!f)return;i[f]=i[f]||{...t[f]};let p=Ie.find(i[f].resources,{resource:s.applyTo,type:s.type});p||(p=id(s),i[f].resources.push(p)),p.permissions=p.permissions.map(d=>({...d,checked:d.checked||l.includes(d.name)}))})}),{...t,...i}}function Tb(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function VD(e){var r;if(!e)throw new Error("Invalid roles data");const t=xb(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:_b(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:i=On.generate(),role:s,privileges:a=[]})=>({id:i,role:s,privileges:lr(a).map(u=>{var l;return(l=Object.values(t).find(({privilege:f})=>f===u))==null?void 0:l.id}).filter(Boolean)})).reduce((i,s)=>({...i,[s.id]:{...s}}),{})}}function KD(e){const t=Object.values(e.privileges).filter(({includes:i})=>i.length===0).map(({id:i})=>i),r=[...t,...t.map(i=>au(i,e.privileges).reverse())].flat().filter((i,s,a)=>a.indexOf(i)===s).map(i=>e.privileges[i]);return{forceLogin:e.forceLogin||!1,restrictedByDefault:e.restrictedByDefault||!1,permissions:{allowed:Object.values(e.privileges).reduce((i,s)=>(s.resources.forEach(({permissions:a,resource:u,type:l})=>{let f=Ie.find(i,{applyTo:u,type:gv(l)});f||(f={applyTo:u,type:gv(l)},i.push(f)),a.forEach(({name:p,checked:m})=>{m&&f&&(f[p]=f[p]||[],f[p].push(s.privilege))})}),i),[])},privileges:r.filter(({privilege:i})=>i!==za).map(({id:i,includes:s,privilege:a})=>({id:i,privilege:a,includes:s.map(u=>e.privileges[u].privilege)})),roles:Object.values(e.roles).map(i=>({...i,privileges:i.privileges.map(s=>{var a;return(a=e.privileges[s])==null?void 0:a.privilege}).filter(Boolean)}))}}function YD(e,t){const r=t[e],i={children:[],links:[],parents:[],selected:e};if(!r)return i;function s(l,f,p=[]){const m=l.reduce((d,g)=>[...d,...t[g][f]],[]);return m.length===0?p:(p.push(m),s(m,f,p))}function a(l){const f=[],p=[];for(let m=l.length-1;m>=0;m-=1){const d=l[m].filter(g=>f.includes(g)?!1:(f.push(g),!0));d.length>0&&p.unshift(lr(d))}return p}function u(l,f){const p=[];return l.reduce((m,d)=>(d.forEach(g=>{t[g][f==="parents"?"includes":"parents"].forEach(x=>{p.includes(x)&&m.push(f==="parents"?{source:g,target:x}:{source:x,target:g})}),p.push(g)}),m),[])}return i.children=s([e],"includes"),i.children=a(i.children),i.parents=s([e],"parents"),i.parents=a(i.parents),i.links=[...u([[e],...i.parents],"parents"),...u([[e],...i.children],"includes")],i}function XD(e,t,r){const i=rn(e,r);if(!i||Ie.find(i.resources,{resource:t.applyTo,type:t.type}))return r;const s={...i,resources:[...i.resources,id(t)]};return{...r,[e]:s}}function JD(e,t,r){const i=rn(e,r);if(!i)return r;const s={...i,resources:i.resources.filter(({resource:a,type:u})=>a!==t.applyTo||u!==t.type)};return{...r,[e]:s}}function QD(e,t){const r=Object.entries(e).map(([i,s])=>{const a=rn(i,t);if(!a)return{[i]:t[i]};const u={...a,resources:a.resources.filter(({resource:l,type:f})=>!s.some(p=>p.applyTo===l&&p.type===f))};return{[i]:u}}).reduce((i,s)=>({...i,...s}),{});return{...t,...r}}function eN(e,t){const r=rn(e,t);if(!r)return t;const i={...r,resources:r.resources.filter(s=>s.permissions.some(a=>a.from.length)).map(s=>({...s,permissions:s.permissions.map(a=>({...a,checked:!1}))}))};return{...t,[e]:i}}function tN(e,t,r,i){const s=rn(e,i);if(!s)return i;const u=Ie.find(s.resources,{type:t.type,resource:t.resource})?{...s,resources:s.resources.map(l=>l.type===t.type&&l.resource===t.resource?{...l,permissions:t.permissions.map(f=>f.name===r.name?{...f,checked:!f.checked,from:[]}:f)}:l)}:{...s,resources:[...s.resources,{...t,permissions:t.permissions.map(l=>({...l,checked:r.name===l.name,from:[]}))}]};return{...i,[e]:u}}function rN(e,t){var f;const r=Ob(e,t)||[],i=((f=rn(e,t))==null?void 0:f.resources)||[],u=([...r,...i].filter(({type:p})=>[Ke.DS_METHOD,Ke.DATACLASS_METHOD,Ke.ENTITY_METHOD,Ke.ENTITY_SEL_METHOD].includes(p))||[]).map(({resource:p})=>p);return Object.entries(t).reduce((p,[m,{resources:d}])=>(d.filter(({resource:g,type:y})=>[Ke.DS_METHOD,Ke.DATACLASS_METHOD,Ke.ENTITY_METHOD,Ke.ENTITY_SEL_METHOD].includes(y)&&u.includes(g)).forEach(({permissions:g,resource:y})=>{var h;((h=g.find(({name:w})=>w==="promote"))==null?void 0:h.checked)&&(p[y]=lr(p[y]||[],m))}),p),{})}function Ob(e,t){var u;const r=rn(e,t);if(!r)return[];const i=(u=Object.values(t).find(l=>l.privilege===za))==null?void 0:u.id;return(i&&i!==e?lr(Ba(e,t),i):Ba(e,t)).reduce((l,f)=>(t[f].resources.forEach(m=>{if(m.permissions.filter(({checked:y,name:x})=>y&&x!=="promote").length===0)return;const g=Ie.find(l,{type:m.type,resource:m.resource});if(!g){l.push({...m,permissions:m.permissions.map(y=>({...y,from:y.checked?[f]:[],checked:!1}))});return}g.permissions=g.permissions.map((y,x)=>{let{from:h=[]}=y;return m.permissions[x].checked&&!h.includes(f)&&(h=[...h,f]),{...y,from:h,checked:y.checked}})}),l),Ie.clone(r.resources.map(l=>({...l,permissions:l.permissions.map(({checked:f,...p})=>({...p,checked:!!f}))}))))}const nN=(e,t,r)=>{const i={id:e,role:t,privileges:[]};return{...r,[i.id]:i}},iN=(e,t)=>t[e]?Object.values(t).reduce((r,i)=>e===i.id||i.role===""?r:{...r,[i.id]:i},{}):t,oN=(e,t)=>{if(nu(e.role),Object.values(t).find(i=>i.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(t).reduce((i,s)=>e.id===s.id?{...i,[e.id]:e}:{...i,[s.id]:s},{})};function Ab(e){var r;if(!e||typeof e!="object")return[];const t=((r=e.__STATUS)==null?void 0:r.errors)??e.__ERRORS??e.errorStack;return Array.isArray(t)?t:[]}function Rb(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function sN(e,t){const r=Ab(e);return Rb(r,t)}function aN(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}var Pb=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(Pb||{}),Cb=(e=>(e.GROUP="group",e.TEXT_FIELD="textfield",e.COLOR_PICKER="colorpicker",e.LAYOUT="layout",e.RADIOGROUP="radiogroup",e.SELECT="select",e.BORDERS="borders",e.BORDER_RADIUS="borderRadius",e.DIMENSIONS="dimensions",e.COMBOBOX="combobox",e.UNITFIELD="unitfield",e.DATAGRID="datagrid",e.CHECKBOX="checkbox",e.NUMBER_FIELD="number",e.FORMAT_FIELD="format",e.DISPLAY="display",e.BOXSHADOW="boxshadow",e.CSSCLASS_SELECTOR="cssClassSelector",e.CUSTOM_STYLE_PROPS_SELECTOR="customStylePropertiesSelector",e.ICON_PICKER="iconPicker",e.ASYNC_SELECT="asyncSelect",e.DS_AUTO_SUGGEST="dsAutoSuggest",e.POSITION="position",e.BACKGROUND="background",e.SELECTBOXLENGTH="selectBoxLength",e.I18NFIELD="i18nField",e.DATE_INTERVALS="dateIntervals",e.SEARCH_MODE="searchMode",e))(Cb||{}),kb=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(kb||{}),od=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(od||{}),Ib=(e=>(e.GRID="grid",e.COMPACT="compact",e))(Ib||{}),$b=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))($b||{}),Lb=(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))(Lb||{});const uN={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"};var Mb=(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))(Mb||{});const Db={label:"Base",id:"root"},lN=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],cN=e=>e.id===Db.id,sd=(e,t,r="")=>t?e.type==="currentState"&&e.value===t?{...e,value:r}:e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(i=>sd(i,t,r))}:e:e;function fN(e,t){const{id:r,label:i}=t;return{...e,components:Object.entries(e.components||{}).reduce((s,[a,u])=>({...s,[a]:{...u,custom:Object.entries(u.custom).reduce((l,[f,p])=>f===`states:${r}`?l:{...l,[f]:p},{}),props:Object.entries(u.props).reduce((l,[f,p])=>{let m=p;return f==="events"&&(m=m.map(d=>{var g,y;return d.type==="simple-action"?{...d,state:{...d.state,states:(y=(g=d.state)==null?void 0:g.states)==null?void 0:y.filter(x=>x!==r)}}:d})),{...l,[f]:m}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(s=>(s==null?void 0:s.id)!==r).map(s=>s.conditions?{...s,conditions:sd(s.conditions,i)}:s)}}}const Nb=(e,t,r)=>{switch(e.type){case"datasource":return{...e,path:e.path===t?r:e.path,value:e.valueType==="datasource"&&e.value===t?r:e.value,compareValue:e.compareValueType==="datasource"&&e.compareValue===t?r:e.compareValue};case"privilege":case"currentState":case"parentState":if(e.valueType==="datasource")return{...e,value:e.value===t?r:e.value};break;case"combination":return{...e,conditions:(e.conditions||[]).map(i=>Nb(i,t,r))}}return e},Fb=(e,t)=>{if(e.id===t||e.type==="reference"&&e.ref===t)return null;if(e.type==="combination"&&e.conditions){const r=e.conditions.map(i=>Fb(i,t)).filter(Boolean);return r.length===1?{...r[0],id:e.id}:{...e,conditions:r}}return e},jb=e=>e.id?e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(jb)}:e:{...e,id:On.generate()};function dN(e,t={}){switch(e){case ke.WEBFORM:case ke.WEBFORMS:{const r={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white w-full px-6",classNames:[],events:[]},displayName:"Page",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return t["webforms.display-mode"]===od.AIRY&&(r.components.ROOT.props.airyMode=!0),r}case ke.REPORT:return{metadata:{v:"1.0",datasources:[],styles:[]},pages:[{name:"doc",id:"index",components:{ROOT:{type:{resolvedName:"Document"},isCanvas:!0,props:{classNames:[],events:[],airyMode:!1,className:"bg-white w-full px-6"},displayName:"Document",custom:{},parent:"",hidden:!1,nodes:[],linkedNodes:{}}}}]};case ke.METHOD:case ke.METHODS:return`//%attributes = {}
205
- `;case ke.HTTP_HANDLERS:return[];case ke.LOCALIZATION:case ke.SETTINGS:return{};case ke.ROLES:return{permissions:{allowed:[]},privileges:[],roles:[]};default:return""}}function pN(e,t){return Ie.isEqual(e,t)}function hN(e,t){const{qodly:r=!0,withExtension:i=!0}=t||{},s=ib(e.type,r);let a="";switch(e.type){case ke.WEBFORM:a=`${wr.WEBFORMS}/${e.name}`;break;case ke.METHOD:a=`${wr.METHODS}/${e.name}`;break;case ke.CLASS:a=`${wr.CLASSES}/${e.name}`;break;default:return""}return`${a}${i?`.${s}`:""}`}function zb(...e){return(...t)=>{e.forEach(r=>r==null?void 0:r(...t))}}const gN=zb;function mN(e){return e?"":void 0}function vN(e,t){if(!e)return;const r=()=>{e.focus(t)};if(t!=null&&t.nextTick){requestAnimationFrame(r);return}r()}function yN(...e){return t=>{e.forEach(r=>{if(r){if(typeof r=="function"){r(t);return}r.current=t}})}}function bN({condition:e,message:t}){!e||process.env.NODE_ENV==="production"||console.warn(t)}const wN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function xN(e,t){return e.some(r=>String(r)===String(t))?e:[...e,t]}function SN(e){return typeof e=="object"&&e!==null&&"target"in e&&typeof e.target=="object"}function EN(e){e.preventDefault(),e.stopPropagation()}const lt="/rest/$designer",Qo="/rest/$designer-ext";function _N(...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 Jc 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 We(e,t){var s;Na.next({action:Uo.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 u=await r.json();((s=u==null?void 0:u.__ERROR)==null?void 0:s.some(f=>f.errCode===1651))&&Na.next({action:Uo.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new Jc(e,r,u)}catch{a=new Jc(e,r)}throw a.log(),a}return await r.json()}function TN(e){return Na.next({action:Uo.REQUEST_SENT}),e}var Ar={},yt={},vv;function qn(){if(vv)return yt;vv=1;var e=yt.ValidationError=function(h,w,v,S,E,R){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(C,W){return C+l(W)},"instance")):S!==void 0&&(this.property=S),h&&(this.message=h),v){var T=v.$id||v.id;this.schema=T||v}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=yt.ValidatorResult=function(h,w,v,S){this.instance=h,this.schema=w,this.options=v,this.path=S.path,this.propertyPath=S.propertyPath,this.errors=[],this.throwError=v&&v.throwError,this.throwFirst=v&&v.throwFirst,this.throwAll=v&&v.throwAll,this.disableFormat=v&&v.disableFormat===!0};t.prototype.addError=function(h){var w;if(typeof h=="string")w=new e(h,this.instance,this.schema,this.path);else{if(!h)throw new Error("Missing error detail");if(!h.message)throw new Error("Missing error message");if(!h.name)throw new Error("Missing validator type");w=new e(h.message,this.instance,this.schema,this.path,h.name,h.argument)}if(this.errors.push(w),this.throwFirst)throw new i(this);if(this.throwError)throw w;return w},t.prototype.importErrors=function(h){typeof h=="string"||h&&h.validatorType?this.addError(h):h&&h.errors&&(this.errors=this.errors.concat(h.errors))};function r(x,h){return h+": "+x.toString()+`
206
- `}t.prototype.toString=function(h){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),yt.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 s=yt.SchemaError=function x(h,w){this.message=h,this.schema=w,Error.call(this,h),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,x)};s.prototype=Object.create(Error.prototype,{constructor:{value:s,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var a=yt.SchemaContext=function(h,w,v,S,E){this.schema=h,this.options=w,Array.isArray(v)?(this.path=v,this.propertyPath=v.reduce(function(R,T){return R+l(T)},"instance")):this.propertyPath=v,this.base=S,this.schemas=E};a.prototype.resolve=function(h){return y(this.base,h)},a.prototype.makeChild=function(h,w){var v=w===void 0?this.path:this.path.concat([w]),S=h.$id||h.id;let E=y(this.base,S||"");var R=new a(h,this.options,v,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=h),R};var u=yt.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 h=!0;try{new RegExp(x)}catch{h=!1}return h},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]+$/};u.regexp=u.regex,u.pattern=u.regex,u.ipv4=u["ip-address"],yt.isFormat=function(h,w,v){if(typeof h=="string"&&u[w]!==void 0){if(u[w]instanceof RegExp)return u[w].test(h);if(typeof u[w]=="function")return u[w](h)}else if(v&&v.customFormats&&typeof v.customFormats[w]=="function")return v.customFormats[w](h);return!0};var l=yt.makeSuffix=function(h){return h=h.toString(),!h.match(/[.\s\[\]]/)&&!h.match(/^[\d]/)?"."+h:h.match(/^\d+$/)?"["+h+"]":"["+JSON.stringify(h)+"]"};yt.deepCompareStrict=function x(h,w){if(typeof h!=typeof w)return!1;if(Array.isArray(h))return!Array.isArray(w)||h.length!==w.length?!1:h.every(function(E,R){return x(h[R],w[R])});if(typeof h=="object"){if(!h||!w)return h===w;var v=Object.keys(h),S=Object.keys(w);return v.length!==S.length?!1:v.every(function(E){return x(h[E],w[E])})}return h===w};function f(x,h,w,v){typeof w=="object"?h[v]=d(x[v],w):x.indexOf(w)===-1&&h.push(w)}function p(x,h,w){h[w]=x[w]}function m(x,h,w,v){typeof h[v]!="object"||!h[v]?w[v]=h[v]:x[v]?w[v]=d(x[v],h[v]):w[v]=h[v]}function d(x,h){var w=Array.isArray(h),v=w&&[]||{};return w?(x=x||[],v=v.concat(x),h.forEach(f.bind(null,x,v))):(x&&typeof x=="object"&&Object.keys(x).forEach(p.bind(null,x,v)),Object.keys(h).forEach(m.bind(null,x,h,v))),v}yt.deepMerge=d,yt.objectGetPath=function(h,w){for(var v=w.split("/").slice(1),S;typeof(S=v.shift())=="string";){var E=decodeURIComponent(S.replace(/~0/,"~").replace(/~1/g,"/"));if(!(E in h))return;h=h[E]}return h};function g(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}yt.encodePath=function(h){return h.map(g).join("")},yt.getDecimalPlaces=function(h){var w=0;if(isNaN(h))return w;typeof h!="number"&&(h=Number(h));var v=h.toString().split("e");if(v.length===2){if(v[1][0]!=="-")return w;w=Number(v[1].slice(1))}var S=v[0].split(".");return S.length===2&&(w+=S[1].length),w},yt.isSchema=function(h){return typeof h=="object"&&h||typeof h=="boolean"};var y=yt.resolveUrl=function(h,w){const v=new URL(w,new URL(h,"resolve://"));if(v.protocol==="resolve:"){const{pathname:S,search:E,hash:R}=v;return S+E+R}return v.toString()};return yt}var wc,yv;function ON(){if(yv)return wc;yv=1;var e=qn(),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 s=i.validators={};s.type=function(d,g,y,x){if(d===void 0)return null;var h=new t(d,g,y,x),w=Array.isArray(g.type)?g.type:[g.type];if(!w.some(this.testType.bind(this,d,g,y,x))){var v=w.map(function(S){if(S){var E=S.$id||S.id;return E?"<"+E+">":S+""}});h.addError({name:"type",argument:v,message:"is not of a type(s) "+v})}return h};function a(m,d,g,y,x){var h=d.throwError,w=d.throwAll;d.throwError=!1,d.throwAll=!1;var v=this.validateSchema(m,x,d,g);return d.throwError=h,d.throwAll=w,!v.valid&&y instanceof Function&&y(v),v.valid}s.anyOf=function(d,g,y,x){if(d===void 0)return null;var h=new t(d,g,y,x),w=new t(d,g,y,x);if(!Array.isArray(g.anyOf))throw new r("anyOf must be an array");if(!g.anyOf.some(a.bind(this,d,y,x,function(S){w.importErrors(S)}))){var v=g.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+"]"});y.nestedErrors&&h.importErrors(w),h.addError({name:"anyOf",argument:v,message:"is not any of "+v.join(",")})}return h},s.allOf=function(d,g,y,x){if(d===void 0)return null;if(!Array.isArray(g.allOf))throw new r("allOf must be an array");var h=new t(d,g,y,x),w=this;return g.allOf.forEach(function(v,S){var E=w.validateSchema(d,v,y,x);if(!E.valid){var R=v.$id||v.id,T=R||v.title&&JSON.stringify(v.title)||v.$ref&&"<"+v.$ref+">"||"[subschema "+S+"]";h.addError({name:"allOf",argument:{id:T,length:E.errors.length,valid:E},message:"does not match allOf schema "+T+" with "+E.errors.length+" error[s]:"}),h.importErrors(E)}}),h},s.oneOf=function(d,g,y,x){if(d===void 0)return null;if(!Array.isArray(g.oneOf))throw new r("oneOf must be an array");var h=new t(d,g,y,x),w=new t(d,g,y,x),v=g.oneOf.filter(a.bind(this,d,y,x,function(E){w.importErrors(E)})).length,S=g.oneOf.map(function(E,R){var T=E.$id||E.id;return T||E.title&&JSON.stringify(E.title)||E.$ref&&"<"+E.$ref+">"||"[subschema "+R+"]"});return v!==1&&(y.nestedErrors&&h.importErrors(w),h.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),h},s.if=function(d,g,y,x){if(d===void 0)return null;if(!e.isSchema(g.if))throw new Error('Expected "if" keyword to be a schema');var h=a.call(this,d,y,x,null,g.if),w=new t(d,g,y,x),v;if(h){if(g.then===void 0)return;if(!e.isSchema(g.then))throw new Error('Expected "then" keyword to be a schema');v=this.validateSchema(d,g.then,y,x.makeChild(g.then)),w.importErrors(v)}else{if(g.else===void 0)return;if(!e.isSchema(g.else))throw new Error('Expected "else" keyword to be a schema');v=this.validateSchema(d,g.else,y,x.makeChild(g.else)),w.importErrors(v)}return w};function u(m,d){if(Object.hasOwnProperty.call(m,d))return m[d];if(d in m){for(;m=Object.getPrototypeOf(m);)if(Object.propertyIsEnumerable.call(m,d))return m[d]}}s.propertyNames=function(d,g,y,x){if(this.types.object(d)){var h=new t(d,g,y,x),w=g.propertyNames!==void 0?g.propertyNames:{};if(!e.isSchema(w))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var v in d)if(u(d,v)!==void 0){var S=this.validateSchema(v,w,y,x.makeChild(w));h.importErrors(S)}return h}},s.properties=function(d,g,y,x){if(this.types.object(d)){var h=new t(d,g,y,x),w=g.properties||{};for(var v in w){var S=w[v];if(S!==void 0){if(S===null)throw new r('Unexpected null, expected schema in "properties"');typeof y.preValidateProperty=="function"&&y.preValidateProperty(d,v,S,y,x);var E=u(d,v),R=this.validateSchema(E,S,y,x.makeChild(S,v));R.instance!==h.instance[v]&&(h.instance[v]=R.instance),h.importErrors(R)}}return h}};function l(m,d,g,y,x,h){if(this.types.object(m)&&!(d.properties&&d.properties[x]!==void 0))if(d.additionalProperties===!1)h.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var w=d.additionalProperties||{};typeof g.preValidateProperty=="function"&&g.preValidateProperty(m,x,w,g,y);var v=this.validateSchema(m[x],w,g,y.makeChild(w,x));v.instance!==h.instance[x]&&(h.instance[x]=v.instance),h.importErrors(v)}}s.patternProperties=function(d,g,y,x){if(this.types.object(d)){var h=new t(d,g,y,x),w=g.patternProperties||{};for(var v in d){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 T=new RegExp(E,"u")}catch{T=new RegExp(E)}if(T.test(v)){S=!1,typeof y.preValidateProperty=="function"&&y.preValidateProperty(d,v,R,y,x);var C=this.validateSchema(d[v],R,y,x.makeChild(R,v));C.instance!==h.instance[v]&&(h.instance[v]=C.instance),h.importErrors(C)}}}S&&l.call(this,d,g,y,x,v,h)}return h}},s.additionalProperties=function(d,g,y,x){if(this.types.object(d)){if(g.patternProperties)return null;var h=new t(d,g,y,x);for(var w in d)l.call(this,d,g,y,x,w,h);return h}},s.minProperties=function(d,g,y,x){if(this.types.object(d)){var h=new t(d,g,y,x),w=Object.keys(d);return w.length>=g.minProperties||h.addError({name:"minProperties",argument:g.minProperties,message:"does not meet minimum property length of "+g.minProperties}),h}},s.maxProperties=function(d,g,y,x){if(this.types.object(d)){var h=new t(d,g,y,x),w=Object.keys(d);return w.length<=g.maxProperties||h.addError({name:"maxProperties",argument:g.maxProperties,message:"does not meet maximum property length of "+g.maxProperties}),h}},s.items=function(d,g,y,x){var h=this;if(this.types.array(d)&&g.items!==void 0){var w=new t(d,g,y,x);return d.every(function(v,S){if(Array.isArray(g.items))var E=g.items[S]===void 0?g.additionalItems:g.items[S];else var E=g.items;if(E===void 0)return!0;if(E===!1)return w.addError({name:"items",message:"additionalItems not permitted"}),!1;var R=h.validateSchema(v,E,y,x.makeChild(E,S));return R.instance!==w.instance[S]&&(w.instance[S]=R.instance),w.importErrors(R),!0}),w}},s.contains=function(d,g,y,x){var h=this;if(this.types.array(d)&&g.contains!==void 0){if(!e.isSchema(g.contains))throw new Error('Expected "contains" keyword to be a schema');var w=new t(d,g,y,x),v=d.some(function(S,E){var R=h.validateSchema(S,g.contains,y,x.makeChild(g.contains,E));return R.errors.length===0});return v===!1&&w.addError({name:"contains",argument:g.contains,message:"must contain an item matching given schema"}),w}},s.minimum=function(d,g,y,x){if(this.types.number(d)){var h=new t(d,g,y,x);return g.exclusiveMinimum&&g.exclusiveMinimum===!0?d>g.minimum||h.addError({name:"minimum",argument:g.minimum,message:"must be greater than "+g.minimum}):d>=g.minimum||h.addError({name:"minimum",argument:g.minimum,message:"must be greater than or equal to "+g.minimum}),h}},s.maximum=function(d,g,y,x){if(this.types.number(d)){var h=new t(d,g,y,x);return g.exclusiveMaximum&&g.exclusiveMaximum===!0?d<g.maximum||h.addError({name:"maximum",argument:g.maximum,message:"must be less than "+g.maximum}):d<=g.maximum||h.addError({name:"maximum",argument:g.maximum,message:"must be less than or equal to "+g.maximum}),h}},s.exclusiveMinimum=function(d,g,y,x){if(typeof g.exclusiveMinimum!="boolean"&&this.types.number(d)){var h=new t(d,g,y,x),w=d>g.exclusiveMinimum;return w||h.addError({name:"exclusiveMinimum",argument:g.exclusiveMinimum,message:"must be strictly greater than "+g.exclusiveMinimum}),h}},s.exclusiveMaximum=function(d,g,y,x){if(typeof g.exclusiveMaximum!="boolean"&&this.types.number(d)){var h=new t(d,g,y,x),w=d<g.exclusiveMaximum;return w||h.addError({name:"exclusiveMaximum",argument:g.exclusiveMaximum,message:"must be strictly less than "+g.exclusiveMaximum}),h}};var f=function(d,g,y,x,h,w){if(this.types.number(d)){var v=g[h];if(v==0)throw new r(h+" cannot be zero");var S=new t(d,g,y,x),E=e.getDecimalPlaces(d),R=e.getDecimalPlaces(v),T=Math.max(E,R),C=Math.pow(10,T);return Math.round(d*C)%Math.round(v*C)!==0&&S.addError({name:h,argument:v,message:w+JSON.stringify(v)}),S}};s.multipleOf=function(d,g,y,x){return f.call(this,d,g,y,x,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(d,g,y,x){return f.call(this,d,g,y,x,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(d,g,y,x){var h=new t(d,g,y,x);return d===void 0&&g.required===!0?h.addError({name:"required",message:"is required"}):this.types.object(d)&&Array.isArray(g.required)&&g.required.forEach(function(w){u(d,w)===void 0&&h.addError({name:"required",argument:w,message:"requires property "+JSON.stringify(w)})}),h},s.pattern=function(d,g,y,x){if(this.types.string(d)){var h=new t(d,g,y,x),w=g.pattern;try{var v=new RegExp(w,"u")}catch{v=new RegExp(w)}return d.match(v)||h.addError({name:"pattern",argument:g.pattern,message:"does not match pattern "+JSON.stringify(g.pattern.toString())}),h}},s.format=function(d,g,y,x){if(d!==void 0){var h=new t(d,g,y,x);return!h.disableFormat&&!e.isFormat(d,g.format,this)&&h.addError({name:"format",argument:g.format,message:"does not conform to the "+JSON.stringify(g.format)+" format"}),h}},s.minLength=function(d,g,y,x){if(this.types.string(d)){var h=new t(d,g,y,x),w=d.match(/[\uDC00-\uDFFF]/g),v=d.length-(w?w.length:0);return v>=g.minLength||h.addError({name:"minLength",argument:g.minLength,message:"does not meet minimum length of "+g.minLength}),h}},s.maxLength=function(d,g,y,x){if(this.types.string(d)){var h=new t(d,g,y,x),w=d.match(/[\uDC00-\uDFFF]/g),v=d.length-(w?w.length:0);return v<=g.maxLength||h.addError({name:"maxLength",argument:g.maxLength,message:"does not meet maximum length of "+g.maxLength}),h}},s.minItems=function(d,g,y,x){if(this.types.array(d)){var h=new t(d,g,y,x);return d.length>=g.minItems||h.addError({name:"minItems",argument:g.minItems,message:"does not meet minimum length of "+g.minItems}),h}},s.maxItems=function(d,g,y,x){if(this.types.array(d)){var h=new t(d,g,y,x);return d.length<=g.maxItems||h.addError({name:"maxItems",argument:g.maxItems,message:"does not meet maximum length of "+g.maxItems}),h}};function p(m,d,g){var y,x=g.length;for(y=d+1,x;y<x;y++)if(e.deepCompareStrict(m,g[y]))return!1;return!0}return s.uniqueItems=function(d,g,y,x){if(g.uniqueItems===!0&&this.types.array(d)){var h=new t(d,g,y,x);return d.every(p)||h.addError({name:"uniqueItems",message:"contains duplicate item"}),h}},s.dependencies=function(d,g,y,x){if(this.types.object(d)){var h=new t(d,g,y,x);for(var w in g.dependencies)if(d[w]!==void 0){var v=g.dependencies[w],S=x.makeChild(v,w);if(typeof v=="string"&&(v=[v]),Array.isArray(v))v.forEach(function(R){d[R]===void 0&&h.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(d,v,y,S);h.instance!==E.instance&&(h.instance=E.instance),E&&E.errors.length&&(h.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),h.importErrors(E))}}return h}},s.enum=function(d,g,y,x){if(d===void 0)return null;if(!Array.isArray(g.enum))throw new r("enum expects an array",g);var h=new t(d,g,y,x);return g.enum.some(e.deepCompareStrict.bind(null,d))||h.addError({name:"enum",argument:g.enum,message:"is not one of enum values: "+g.enum.map(String).join(",")}),h},s.const=function(d,g,y,x){if(d===void 0)return null;var h=new t(d,g,y,x);return e.deepCompareStrict(g.const,d)||h.addError({name:"const",argument:g.const,message:"does not exactly match expected constant: "+g.const}),h},s.not=s.disallow=function(d,g,y,x){var h=this;if(d===void 0)return null;var w=new t(d,g,y,x),v=g.not||g.disallow;return v?(Array.isArray(v)||(v=[v]),v.forEach(function(S){if(h.testType(d,g,y,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},wc=i,wc}var da={},bv;function Qc(){if(bv)return da;bv=1;var e=qn();da.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return da.scan=function(i,s){function a(m,d){if(!d||typeof d!="object")return;if(d.$ref){let h=e.resolveUrl(m,d.$ref);p[h]=p[h]?p[h]+1:0;return}var g=d.$id||d.id;let y=e.resolveUrl(m,g);var x=g?y:m;if(x){if(x.indexOf("#")<0&&(x+="#"),f[x]){if(!e.deepCompareStrict(f[x],d))throw new Error("Schema <"+x+"> already exists with different definition");return f[x]}f[x]=d,x[x.length-1]=="#"&&(f[x.substring(0,x.length-1)]=d)}u(x+"/items",Array.isArray(d.items)?d.items:[d.items]),u(x+"/extends",Array.isArray(d.extends)?d.extends:[d.extends]),a(x+"/additionalItems",d.additionalItems),l(x+"/properties",d.properties),a(x+"/additionalProperties",d.additionalProperties),l(x+"/definitions",d.definitions),l(x+"/patternProperties",d.patternProperties),l(x+"/dependencies",d.dependencies),u(x+"/disallow",d.disallow),u(x+"/allOf",d.allOf),u(x+"/anyOf",d.anyOf),u(x+"/oneOf",d.oneOf),a(x+"/not",d.not)}function u(m,d){if(Array.isArray(d))for(var g=0;g<d.length;g++)a(m+"/"+g,d[g])}function l(m,d){if(!(!d||typeof d!="object"))for(var g in d)a(m+"/"+g,d[g])}var f={},p={};return a(i,s),new t(f,p)},da}var xc,wv;function AN(){if(wv)return xc;wv=1;var e=ON(),t=qn(),r=Qc().scan,i=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,u=t.SchemaContext,l="/",f=function d(){this.customFormats=Object.create(d.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(g,y){var x=this;if(!g)return null;var h=r(y||l,g),w=y||g.$id||g.id;for(var v in h.id)this.schemas[v]=h.id[v];for(var v in h.ref)this.unresolvedRefs.push(v);return this.unresolvedRefs=this.unresolvedRefs.filter(function(S){return typeof x.schemas[S]>"u"}),this.schemas[w]},f.prototype.addSubSchemaArray=function(g,y){if(Array.isArray(y))for(var x=0;x<y.length;x++)this.addSubSchema(g,y[x])},f.prototype.addSubSchemaObject=function(g,y){if(!(!y||typeof y!="object"))for(var x in y)this.addSubSchema(g,y[x])},f.prototype.setSchemas=function(g){this.schemas=g},f.prototype.getSchema=function(g){return this.schemas[g]},f.prototype.validate=function(g,y,x,h){if(typeof y!="boolean"&&typeof y!="object"||y===null)throw new a("Expected `schema` to be an object or boolean");x||(x={});var w=y.$id||y.id;let v=t.resolveUrl(x.base,w||"");if(!h){h=new u(y,x,[],v,Object.create(this.schemas)),h.schemas[v]||(h.schemas[v]=y);var S=r(v,y);for(var E in S.id){var R=S.id[E];h.schemas[E]=R}}if(x.required&&g===void 0){var T=new i(g,y,x,h);return T.addError("is required, but is undefined"),T}var T=this.validateSchema(g,y,x,h);if(T){if(x.throwAll&&T.errors.length)throw new s(T)}else throw new Error("Result undefined");return T};function p(d){var g=typeof d=="string"?d:d.$ref;return typeof g=="string"?g:!1}f.prototype.validateSchema=function(g,y,x,h){var w=new i(g,y,x,h);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 v={schema:y,ctx:h};y.extends.forEach(this.schemaTraverser.bind(this,v)),y=v.schema,v.schema=null,v.ctx=null,v=null}else y=t.deepMerge(y,this.superResolve(y.extends,h));var S=p(y);if(S){var E=this.resolve(y,S,h),R=new u(E.subschema,x,h.path,E.switchSchema,h.schemas);return this.validateSchema(g,E.subschema,x,R)}var T=x&&x.skipAttributes||[];for(var C in y)if(!e.ignoreProperties[C]&&T.indexOf(C)<0){var W=null,N=this.attributes[C];if(N)W=N.call(this,g,y,x,h);else if(x.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+C,y);W&&w.importErrors(W)}if(typeof x.rewrite=="function"){var F=x.rewrite.call(this,g,y,x,h);w.instance=F}return w},f.prototype.schemaTraverser=function(g,y){g.schema=t.deepMerge(g.schema,this.superResolve(y,g.ctx))},f.prototype.superResolve=function(g,y){var x=p(g);return x?this.resolve(g,x,y).subschema:g},f.prototype.resolve=function(g,y,x){if(y=x.resolve(y),x.schemas[y])return{subschema:x.schemas[y],switchSchema:y};let w=new URL(y,"thismessage::/").hash;var v=w&&w.length&&y.substr(0,y.length-w.length);if(!v||!x.schemas[v])throw new a("no such schema <"+y+">",g);var S=t.objectGetPath(x.schemas[v],w.substr(1));if(S===void 0)throw new a("no such schema "+w+" located in <"+v+">",g);return{subschema:S,switchSchema:y}},f.prototype.testType=function(g,y,x,h,w){if(w!==void 0){if(w===null)throw new a('Unexpected null in "type" keyword');if(typeof this.types[w]=="function")return this.types[w].call(this,g);if(w&&typeof w=="object"){var v=this.validateSchema(g,w,x,h);return v===void 0||!(v&&v.errors.length)}return!0}};var m=f.prototype.types={};return m.string=function(g){return typeof g=="string"},m.number=function(g){return typeof g=="number"&&isFinite(g)},m.integer=function(g){return typeof g=="number"&&g%1===0},m.boolean=function(g){return typeof g=="boolean"},m.array=function(g){return Array.isArray(g)},m.null=function(g){return g===null},m.date=function(g){return g instanceof Date},m.any=function(g){return!0},m.object=function(g){return g&&typeof g=="object"&&!Array.isArray(g)&&!(g instanceof Date)},xc=f,xc}var xv;function RN(){if(xv)return Ar;xv=1;var e=Ar.Validator=AN();return Ar.ValidatorResult=qn().ValidatorResult,Ar.ValidatorResultError=qn().ValidatorResultError,Ar.ValidationError=qn().ValidationError,Ar.SchemaError=qn().SchemaError,Ar.SchemaScanResult=Qc().SchemaScanResult,Ar.scan=Qc().scan,Ar.validate=function(t,r,i){var s=new e;return s.validate(t,r,i)},Ar}var PN=RN();const Go="/$shared",CN={"**/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 Bb(e){const t=Object.entries(CN).find(([r])=>xt(e,r));return t==null?void 0:t[1]}function uu(e){var i;const t=(i=Bb(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Go}/`,"Shared/");ad({name:r,content:t,asText:typeof t=="string"})}async function kN(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await We(`${Go}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){Wb(r)&&uu(`${Go}/${t}`)}}function es({path:e,createIfNotExists:t=!1}){const r=`${Go}/${e}`;return We(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const s=Bb(e);let a=i;if(!s)return a;if(typeof a=="string")try{switch(s.parser){case"json":a=JSON.parse(a);break;default:break}}catch{throw new Error("Cannot parse")}if(s.schema&&!new PN.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(i=>{if(Wb(i)&&t){const s=IN(i,e);Wf.next({message:s,kind:"warning"}),uu(r)}throw i})}function Wb(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 IN(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 $N(e){return We(Qo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function LN(e){return We(Qo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const Hb=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Vf.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function MN(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const s=await We(lt,{method:"POST",body:JSON.stringify({verb:Cn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(s.rendererPath)return s.rendererPath;const u=`http://${e}:${s.webServerHTTPPort}`,l=`https://${e}:${s.webServerHTTPSPort}`;return s.webServerHTTPPort&&s.webServerHTTPSPort?i?l:u:s.webServerHTTPPort?u:l})();return{projectOpened:s.webServerHTTPSPort>0||s.webServerHTTPPort>0,remoteDebuggerMode:s.remoteDebuggerMode,baseUrl:a,qodly:typeof s.qodly>"u"?!0:s.qodly,urls:{renderer:s.rendererPath||`${a}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:s.isRESTActive}}catch(s){return console.error(s),Hb()}}async function Ub(e){return await We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function DN(...e){return(await Promise.all(e.map(i=>Ub({root:i,verb:Cn.GET_FOLDER})))).map(({children:i})=>i.map(({name:s,date:a,type:u})=>({name:s,type:u,date:a,path:`${u}/${s}`}))).flat()}function NN(e,t={}){const{sanitize:r=!0}=t;return We(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const s=new Map;return{...i,components:Ie.entries(i.components).map(([a,u])=>{const l=a,{resolvedName:f}=u.type;if(f==="WebformLoader"){const p=On.generate();s.set(a,p),a=p}return[a,u,l]}).reduce((a,[u,l,f])=>{var p;return l.nodes&&(l.nodes=l.nodes.map(m=>s.get(m)||m)),l.linkedNodes&&(l.linkedNodes=Ie.entries(l.linkedNodes).reduce((m,[d,g])=>({...m,[d]:s.get(g)||g}),{})),(p=l.props)!=null&&p.events&&(l.props.events=l.props.events.map(m=>(m.type==="navigation"&&m.loader&&(m.loader=s.get(m.loader)||m.loader),m))),{...a,[u]:{...l,props:{...l.props,__originalID:f}}}},{})}})}function FN(e){return We(lt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[ke.METHOD,ke.CLASS].includes(t.type)?iu(t.content):t.content}))}function jN(e){return e.type==="folder"?We(Qo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function zN(e){return e.type==="folder"?(await We(Qo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function BN(e){return We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function WN(e){return We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function HN(e){return(await We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function UN(...e){return await We(lt,{method:"POST",body:JSON.stringify({verb:Cn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function qN(e){const t=await We("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function GN(){return await We("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function ZN(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:s}=JSON.parse(i);return s}catch{return[]}}async function VN({name:e,path:t="",root:r="root",asText:i=!1}){return We(lt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function KN(e={}){try{return{...await es({path:"shared_datasources.json",...e}),...ja}}catch{return{...ja}}}async function YN(e={}){try{return await es({path:"shared_app_events.json",...e})}catch{return[]}}async function XN(e={}){try{return await es({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function JN(e={}){try{return await es({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function QN(){try{return await We("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function eF(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const tF=ed(),rF=async e=>{const t={verb:Cn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Ie.omit(e,Ie.keys(ja))};return tF(()=>We(lt,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},nF=ed(),iF=async e=>{const t={verb:Cn.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return nF(()=>We(lt,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},ad=async e=>{const t=await We(lt,{method:"POST",body:JSON.stringify({...e,verb:Cn.SET_FILE_CONTENT,root:Zf.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Qf(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},oF=async e=>await ad({name:"crafted_components.json",path:wr.WEBFORMS,content:e});function sF(e){return We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function aF(e){return We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function uF(e){return We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function lF(e){return We(lt,{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)?iu(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&&uu(e.path),t})}function cF(e){return We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function fF(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function dF(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 pF(e){const t=fF(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),u=s.split(":")[1].trim();return{name:a,type:u}}),r=dF(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function hF(e,t){const i=e.split(".").pop();try{const s=await We(lt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});s.content=iu(s.content);const{params:a,result:u}=pF(s.parameters);return{...s,params:a,returns:u}}catch(s){return console.error(s),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var qb=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(qb||{});function gF(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function mF(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}const vF={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},yF={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}},Gb=M.createContext(void 0),bF=M.memo(({children:e,isInsideStudio:t,isStandaloneEditor:r})=>{const i=M.useMemo(()=>({isInsideStudio:t,isStandaloneEditor:r}),[t,r]);return I.jsx(Gb.Provider,{value:i,children:e})});function wF(){const e=M.useContext(Gb);return e===void 0?{isInsideStudio:!1,isStandaloneEditor:!1}:e}const Zb=M.createContext(null),xF=5e3,SF={top:"top-4",bottom:"bottom-4"};function EF({children:e}){const[t,r]=M.useState([]),i=M.useRef(0),s=M.useCallback(l=>{r(f=>f.filter(p=>p.id!==l))},[]),a=M.useCallback((l,f)=>{const p=++i.current,m={id:p,containerStyle:f==null?void 0:f.containerStyle,duration:l.duration??xF,position:l.position??"bottom",render:l.render};return r(d=>[...d,m]),p},[]);M.useEffect(()=>{const l=Wf.subscribe(f=>{a({position:"bottom",render:({onClose:p})=>I.jsx(Gv,{...f,onClose:p})})});return()=>{l.unsubscribe()}},[a]);const u=M.useMemo(()=>({pushToast:a,removeToast:s}),[a,s]);return I.jsxs(Zb.Provider,{value:u,children:[e,typeof document<"u"?Qn.createPortal(I.jsx(I.Fragment,{children:["top","bottom"].map(l=>{const f=t.filter(p=>p.position===l);return f.length===0?null:I.jsx("div",{className:`pointer-events-none fixed inset-x-4 z-[2147483647] flex flex-col items-center gap-3 ${SF[l]}`,children:f.map(p=>I.jsx(_F,{toast:p,onClose:()=>s(p.id)},p.id))},l)})}),document.body):null]})}function _F({toast:e,onClose:t}){return M.useEffect(()=>{if(e.duration===null)return;const r=window.setTimeout(t,e.duration);return()=>window.clearTimeout(r)},[t,e.duration]),I.jsx("div",{className:"pointer-events-auto",style:e.containerStyle,children:e.render({onClose:t})})}function TF(e){const t=M.useContext(Zb);if(!t)throw new Error("useToast must be used within a ToastProvider");return M.useCallback(r=>t.pushToast(r,e),[t,e])}exports.API_PREFIX=lt;exports.AppLoader=i$;exports.BaseCheckboxIcon=m0;exports.Checkbox=P$;exports.ControlledSwitch=Vy;exports.DATASOURCE_THEMES=vF;exports.DatasourcesActions=L0;exports.DebuggerActions=N0;exports.DefaultCheckboxIcon=v0;exports.DesignerRequestVerb=Cn;exports.Dialog=jA;exports.DialogBody=Dv;exports.EActivity=qb;exports.ECustomStylePropsViewMode=Ib;exports.EDITOR=yF;exports.EDisplayMode=od;exports.EIDENTIFIERS=Lb;exports.EPermissionType=ze;exports.ERROR_CODES=Mb;exports.ESetting=Cb;exports.ESubPermissionType=Ke;exports.ETooltipBehavior=kb;exports.EWebFormStyleClassScope=Pb;exports.EXT_API_PREFIX=Qo;exports.FileFolderType=ke;exports.FloatingTooltip=T$;exports.FolderRootPath=wr;exports.FolderRootType=Zf;exports.Grid=$$;exports.GridItem=L$;exports.HTTPError=Jc;exports.HTTP_HANDLERS_TAB_PATH=Xf;exports.IPreemptive=qo;exports.IPublished=vb;exports.IPublishedRestScope=rd;exports.IdentityProvider=eL;exports.Image=y0;exports.Incase=va;exports.IndentLines=Xv;exports.InvalidJsonError=I$;exports.LOCALIZATION_TAB_PATH=Jf;exports.LOCATION_DATASOURCE_ID=hb;exports.LogoSVG=l0;exports.LspActions=D0;exports.MAX_FILE_NAME_LENGTH=Hf;exports.MODEL_TAB_PATH=rb;exports.Modal=u$;exports.ModalCloseReason=Ei;exports.ModalColor=Vn;exports.ModalIcons=Fc;exports.ModalType=$f;exports.Mutex=ob;exports.NameError=Uf;exports.Overlay=Mv;exports.PANEL_COLLAPSED_HEIGHT=Pr;exports.PANEL_INITIAL_OPEN_RATIO=p0;exports.PANEL_MAX_RATIO=h0;exports.PERMISSIONS=nd;exports.Panel=R$;exports.PopperTooltip=u0;exports.Portal=_v;exports.PublishOptions=MD;exports.QODLY_NAMESPACE=ko;exports.ROLES_TAB_PATH=Kf;exports.ROOT_WEBFORM_STATE=Db;exports.RemoteDebuggerMode=Vf;exports.SETTINGS_TAB_PATH=Yf;exports.SHARED_API_PREFIX=Go;exports.SHARED_USER_NAMESPACE=ja;exports.SearchInput=k$;exports.SimpleGrid=M$;exports.SourceCodeDescriptor=$b;exports.StudioContextProvider=bF;exports.Switcher=Jv;exports.THEME_CLASSES=lN;exports.TITLE_DATASOURCE_ID=mb;exports.TabEventsActions=M0;exports.Tip=Dy;exports.TipsProvider=fk;exports.Toast=Gv;exports.ToastProvider=EF;exports.ToolbarIcon=C$;exports.Tooltip=r$;exports.Tree=lP;exports.TreeIcon=Zv;exports.TreeNode=ff;exports.USER_LANGUAGE_DATASOURCE_ID=gb;exports.WT_FLAGS_KEYS=uN;exports.WebformActions=$0;exports.WebformEventsActions=Uo;exports.ZoomComponent=f$;exports.ZoomLevel=f0;exports._isArrayDatasource=PD;exports._isObjectDatasource=CD;exports.actionsToPrivs=Eb;exports.addAttributesToContent=ND;exports.addFolder=BN;exports.addItem=xN;exports.addPermission=XD;exports.addPrivilegeIn=HD;exports.allowed=BD;exports.by=sb;exports.byId=fD;exports.byPath=dD;exports.callAll=zb;exports.callAllHandlers=gN;exports.callServerSideParser=TN;exports.checkUpdates=$N;exports.children=Ba;exports.createFolder=sF;exports.createPrivilege=qD;exports.createRole=nN;exports.dataAttr=mN;exports.datasourcesSubject=zL;exports.debuggerSubject=UL;exports.deepDeleteCondition=Fb;exports.deepSanitizeCondition=jb;exports.dropFile=zN;exports.dropFolder=HN;exports.editors=nb;exports.exists=pD;exports.extractWebformName=sD;exports.filterBySeriousError=Rb;exports.focus=vN;exports.formatErrorsAsBulletToast=aN;exports.generateUUID=Xc;exports.getAppSettings=MN;exports.getCashedPrefrences=hD;exports.getCatalog=GN;exports.getDatasourceId=gD;exports.getDefaultAppSettings=Hb;exports.getDefaultContent=dN;exports.getDictByName=Tb;exports.getDisplayableFeedbackErrors=sN;exports.getEditors=oD;exports.getErrorListFromPayload=Ab;exports.getFile=FN;exports.getFileContent=VN;exports.getFileExtentionFromType=ib;exports.getFilePath=hN;exports.getFilenameAndTypeFromPath=iD;exports.getFilenameFromType=aD;exports.getFilesInfo=UN;exports.getFolder=Ub;exports.getFolders=DN;exports.getFunctionContent=hF;exports.getGraphData=YD;exports.getInheritedResources=Ob;exports.getMonacoTheme=eF;exports.getNodeInfo=lF;exports.getNormalizedDataType=vD;exports.getPrivilegeById=rn;exports.getPromotions=rN;exports.getResourceFromType=id;exports.getSavedConditions=JN;exports.getSharedAppEvents=YN;exports.getSharedCSS=XN;exports.getSharedDatasources=KN;exports.getSharedResource=es;exports.getSupportedLanguages=ZN;exports.getTypeFromExtension=Qf;exports.getUserPrivileges=QN;exports.getWebForm=NN;exports.hasAttributesString=bb;exports.http=We;exports.i18nSubject=GL;exports.initializeDefaultProjectFiles=kN;exports.installUpdates=LN;exports.isArrayDatasource=fb;exports.isBaseState=cN;exports.isDataClassMethod=xD;exports.isDataStoreMethod=wD;exports.isDateDatasource=kD;exports.isEntity=AD;exports.isEntityDatasource=_D;exports.isEntityMethod=SD;exports.isEntitySelection=RD;exports.isEntitySelectionDatasource=TD;exports.isEntitySelectionMethod=ED;exports.isInputEvent=SN;exports.isObjectAttribute=yD;exports.isObjectDatasource=db;exports.isRelatedAttribute=bD;exports.isRelatedEntitiesAttribute=lb;exports.isRelatedEntityAttribute=cb;exports.isSameNamespace=ID;exports.isScalarDatasource=pb;exports.isSimpleAttribute=ub;exports.isSimpleDatasource=OD;exports.loadDS=$D;exports.loadI18n=LD;exports.localeCompare=ab;exports.log=gF;exports.login=qN;exports.lspSubject=HL;exports.mergeRefs=yN;exports.moveItem=uF;exports.outBy=lD;exports.outById=cD;exports.parents=au;exports.parseAttributes=DD;exports.parseCatalog=FD;exports.populateShallow=ZD;exports.queue=ed;exports.refactorConditions=sd;exports.refactorWebform=fN;exports.removeAttributesString=wb;exports.removeItem=aF;exports.removeMultiplePermissions=QD;exports.removePermission=JD;exports.removePrivilege=WD;exports.removePrivilegeFrom=UD;exports.removeRole=iN;exports.renameFile=jN;exports.renameFolder=WN;exports.renamePrivilege=GD;exports.resetResources=eN;exports.rolesToAPI=KD;exports.sanitizeContent=iu;exports.sanitizeNameCY=jD;exports.sanitizePermissions=_b;exports.sanitizePrivileges=xb;exports.sanitizeRoles=VD;exports.saveContent=cF;exports.saveRole=oN;exports.selectorEqualityFn=pN;exports.setCraftedComponents=oF;exports.setFileContent=ad;exports.setSharedAppEvents=iF;exports.setSharedSources=rF;exports.sortPrivileges=Sb;exports.splitDatasourceID=td;exports.stopEvent=EN;exports.stringifyAttributes=yb;exports.tabEventsSubject=WL;exports.tasksManagerSubject=qL;exports.toastSubject=Wf;exports.togglePermission=tN;exports.trackEvent=mF;exports.transformDates=_N;exports.tryCreateSharedResource=uu;exports.uniquePush=lr;exports.updateDsCondition=Nb;exports.useBoolean=SL;exports.useCallbackRef=EL;exports.useControllableProp=R0;exports.useControllableState=_L;exports.useDidMountEffect=D$;exports.useDoubleClick=iL;exports.useDsChangeRenderer=xL;exports.useDsRendererAdapter=wL;exports.useEnhancedState=bL;exports.useFeatureFlags=Q$;exports.useFormControlProps=AL;exports.useForwardedRef=J$;exports.useHotkeys=V$;exports.useIdentity=tL;exports.useOutsideClick=K$;exports.usePrevious=Y$;exports.useSafeLayoutEffect=TL;exports.useStateObject=rL;exports.useStateRef=X$;exports.useStudioContext=wF;exports.useTip=My;exports.useToast=TF;exports.useUpdateEffect=OL;exports.validateName=nu;exports.validateServerSide=ZL;exports.validateValue=VL;exports.visuallyHiddenStyle=wN;exports.warn=bN;exports.webformEventsSubject=Na;exports.webformSubject=BL;
250
+ `)+ue+`return __p
251
+ }`;var Me=nm(function(){return Ve(C,xe+"return "+ue).apply(r,z)});if(Me.source=ue,Sd(Me))throw Me;return Me}function PA(i){return Ze(i).toLowerCase()}function NA(i){return Ze(i).toUpperCase()}function MA(i,a,f){if(i=Ze(i),i&&(f||a===r))return dg(i);if(!i||!(a=wr(a)))return i;var E=qr(i),O=qr(a),C=fg(E,O),z=pg(E,O)+1;return ro(E,C,z).join("")}function DA(i,a,f){if(i=Ze(i),i&&(f||a===r))return i.slice(0,gg(i)+1);if(!i||!(a=wr(a)))return i;var E=qr(i),O=pg(E,qr(a))+1;return ro(E,0,O).join("")}function LA(i,a,f){if(i=Ze(i),i&&(f||a===r))return i.replace(os,"");if(!i||!(a=wr(a)))return i;var E=qr(i),O=fg(E,qr(a));return ro(E,O).join("")}function zA(i,a){var f=$,E=D;if(yt(a)){var O="separator"in a?a.separator:O;f="length"in a?Ne(a.length):f,E="omission"in a?wr(a.omission):E}i=Ze(i);var C=i.length;if(ni(i)){var z=qr(i);C=z.length}if(f>=C)return i;var B=f-oi(E);if(B<1)return E;var G=z?ro(z,0,B).join(""):i.slice(0,B);if(O===r)return G+E;if(z&&(B+=G.length-B),Ed(O)){if(i.slice(B).search(O)){var se,ae=G;for(O.global||(O=ju(O.source,Ze(Ha.exec(O))+"g")),O.lastIndex=0;se=O.exec(ae);)var ue=se.index;G=G.slice(0,ue===r?B:ue)}}else if(i.indexOf(wr(O),B)!=B){var ve=G.lastIndexOf(O);ve>-1&&(G=G.slice(0,ve))}return G+E}function $A(i){return i=Ze(i),i&&za.test(i)?i.replace(Ji,h_):i}var jA=di(function(i,a,f){return i+(f?" ":"")+a.toUpperCase()}),Td=nv("toUpperCase");function rm(i,a,f){return i=Ze(i),a=f?r:a,a===r?c_(i)?m_(i):e_(i):i.match(a)||[]}var nm=Le(function(i,a){try{return mr(i,r,a)}catch(f){return Sd(f)?f:new Re(f)}}),FA=In(function(i,a){return br(a,function(f){f=Zr(f),ln(i,f,wd(i[f],i))}),i});function BA(i){var a=i==null?0:i.length,f=Oe();return i=a?vt(i,function(E){if(typeof E[1]!="function")throw new Ir(l);return[f(E[0]),E[1]]}):[],Le(function(E){for(var O=-1;++O<a;){var C=i[O];if(mr(C[0],this,E))return mr(C[1],this,E)}})}function HA(i){return hk(Nr(i,h))}function Ad(i){return function(){return i}}function WA(i,a){return i==null||i!==i?a:i}var VA=iv(),UA=iv(!0);function lr(i){return i}function Rd(i){return Dg(typeof i=="function"?i:Nr(i,h))}function qA(i){return zg(Nr(i,h))}function GA(i,a){return $g(i,Nr(a,h))}var ZA=Le(function(i,a){return function(f){return hs(f,i,a)}}),YA=Le(function(i,a){return function(f){return hs(i,f,a)}});function Cd(i,a,f){var E=Lt(a),O=cl(a,E);f==null&&!(yt(a)&&(O.length||!E.length))&&(f=a,a=i,i=this,O=cl(a,Lt(a)));var C=!(yt(f)&&"chain"in f)||!!f.chain,z=Nn(i);return br(O,function(B){var G=a[B];i[B]=G,z&&(i.prototype[B]=function(){var se=this.__chain__;if(C||se){var ae=i(this.__wrapped__),ue=ae.__actions__=ir(this.__actions__);return ue.push({func:G,args:arguments,thisArg:i}),ae.__chain__=se,ae}return G.apply(i,Kn([this.value()],arguments))})}),i}function KA(){return Ft._===this&&(Ft._=E_),this}function Id(){}function XA(i){return i=Ne(i),Le(function(a){return jg(a,i)})}var JA=ad(vt),QA=ad(sg),e5=ad(Pu);function om(i){return hd(i)?Nu(Zr(i)):Ik(i)}function t5(i){return function(a){return i==null?r:Io(i,a)}}var r5=av(),n5=av(!0);function Pd(){return[]}function Nd(){return!1}function o5(){return{}}function i5(){return""}function s5(){return!0}function a5(i,a){if(i=Ne(i),i<1||i>ge)return[];var f=J,E=Zt(i,J);a=Oe(a),i-=J;for(var O=Lu(E,a);++f<i;)a(f);return O}function l5(i){return Ie(i)?vt(i,Zr):xr(i)?[i]:ir(Ev(Ze(i)))}function c5(i){var a=++x_;return Ze(i)+a}var u5=gl(function(i,a){return i+a},0),d5=ld("ceil"),f5=gl(function(i,a){return i/a},1),p5=ld("floor");function h5(i){return i&&i.length?ll(i,lr,Gu):r}function g5(i,a){return i&&i.length?ll(i,Oe(a,2),Gu):r}function v5(i){return cg(i,lr)}function m5(i,a){return cg(i,Oe(a,2))}function b5(i){return i&&i.length?ll(i,lr,Xu):r}function y5(i,a){return i&&i.length?ll(i,Oe(a,2),Xu):r}var w5=gl(function(i,a){return i*a},1),x5=ld("round"),S5=gl(function(i,a){return i-a},0);function E5(i){return i&&i.length?Du(i,lr):0}function _5(i,a){return i&&i.length?Du(i,Oe(a,2)):0}return A.after=G2,A.ary=Mv,A.assign=MT,A.assignIn=Zv,A.assignInWith=Yv,A.assignWith=_d,A.at=DT,A.before=Dv,A.bind=wd,A.bindAll=FA,A.bindKey=Lv,A.castArray=iT,A.chain=Iv,A.chunk=hO,A.compact=gO,A.concat=vO,A.cond=BA,A.conforms=HA,A.constant=Ad,A.countBy=_2,A.create=LT,A.curry=zv,A.curryRight=$v,A.debounce=jv,A.defaults=zT,A.defaultsDeep=$T,A.defer=Z2,A.delay=Y2,A.difference=mO,A.differenceBy=bO,A.differenceWith=yO,A.drop=wO,A.dropRight=xO,A.dropRightWhile=SO,A.dropWhile=EO,A.fill=_O,A.filter=O2,A.flatMap=R2,A.flatMapDeep=C2,A.flatMapDepth=I2,A.flatten=Tv,A.flattenDeep=kO,A.flattenDepth=OO,A.flip=K2,A.flow=VA,A.flowRight=UA,A.fromPairs=TO,A.functions=UT,A.functionsIn=qT,A.groupBy=P2,A.initial=RO,A.intersection=CO,A.intersectionBy=IO,A.intersectionWith=PO,A.invert=ZT,A.invertBy=YT,A.invokeMap=M2,A.iteratee=Rd,A.keyBy=D2,A.keys=Lt,A.keysIn=ar,A.map=Sl,A.mapKeys=XT,A.mapValues=JT,A.matches=qA,A.matchesProperty=GA,A.memoize=_l,A.merge=QT,A.mergeWith=Kv,A.method=ZA,A.methodOf=YA,A.mixin=Cd,A.negate=kl,A.nthArg=XA,A.omit=eA,A.omitBy=tA,A.once=X2,A.orderBy=L2,A.over=JA,A.overArgs=J2,A.overEvery=QA,A.overSome=e5,A.partial=xd,A.partialRight=Fv,A.partition=z2,A.pick=rA,A.pickBy=Xv,A.property=om,A.propertyOf=t5,A.pull=LO,A.pullAll=Rv,A.pullAllBy=zO,A.pullAllWith=$O,A.pullAt=jO,A.range=r5,A.rangeRight=n5,A.rearg=Q2,A.reject=F2,A.remove=FO,A.rest=eT,A.reverse=bd,A.sampleSize=H2,A.set=oA,A.setWith=iA,A.shuffle=W2,A.slice=BO,A.sortBy=q2,A.sortedUniq=ZO,A.sortedUniqBy=YO,A.split=AA,A.spread=tT,A.tail=KO,A.take=XO,A.takeRight=JO,A.takeRightWhile=QO,A.takeWhile=e2,A.tap=g2,A.throttle=rT,A.thru=xl,A.toArray=Uv,A.toPairs=Jv,A.toPairsIn=Qv,A.toPath=l5,A.toPlainObject=Gv,A.transform=sA,A.unary=nT,A.union=t2,A.unionBy=r2,A.unionWith=n2,A.uniq=o2,A.uniqBy=i2,A.uniqWith=s2,A.unset=aA,A.unzip=yd,A.unzipWith=Cv,A.update=lA,A.updateWith=cA,A.values=hi,A.valuesIn=uA,A.without=a2,A.words=rm,A.wrap=oT,A.xor=l2,A.xorBy=c2,A.xorWith=u2,A.zip=d2,A.zipObject=f2,A.zipObjectDeep=p2,A.zipWith=h2,A.entries=Jv,A.entriesIn=Qv,A.extend=Zv,A.extendWith=Yv,Cd(A,A),A.add=u5,A.attempt=nm,A.camelCase=hA,A.capitalize=em,A.ceil=d5,A.clamp=dA,A.clone=sT,A.cloneDeep=lT,A.cloneDeepWith=cT,A.cloneWith=aT,A.conformsTo=uT,A.deburr=tm,A.defaultTo=WA,A.divide=f5,A.endsWith=gA,A.eq=Yr,A.escape=vA,A.escapeRegExp=mA,A.every=k2,A.find=T2,A.findIndex=kv,A.findKey=jT,A.findLast=A2,A.findLastIndex=Ov,A.findLastKey=FT,A.floor=p5,A.forEach=Pv,A.forEachRight=Nv,A.forIn=BT,A.forInRight=HT,A.forOwn=WT,A.forOwnRight=VT,A.get=kd,A.gt=dT,A.gte=fT,A.has=GT,A.hasIn=Od,A.head=Av,A.identity=lr,A.includes=N2,A.indexOf=AO,A.inRange=fA,A.invoke=KT,A.isArguments=Mo,A.isArray=Ie,A.isArrayBuffer=pT,A.isArrayLike=sr,A.isArrayLikeObject=_t,A.isBoolean=hT,A.isBuffer=no,A.isDate=gT,A.isElement=vT,A.isEmpty=mT,A.isEqual=bT,A.isEqualWith=yT,A.isError=Sd,A.isFinite=wT,A.isFunction=Nn,A.isInteger=Bv,A.isLength=Ol,A.isMap=Hv,A.isMatch=xT,A.isMatchWith=ST,A.isNaN=ET,A.isNative=_T,A.isNil=OT,A.isNull=kT,A.isNumber=Wv,A.isObject=yt,A.isObjectLike=Et,A.isPlainObject=ws,A.isRegExp=Ed,A.isSafeInteger=TT,A.isSet=Vv,A.isString=Tl,A.isSymbol=xr,A.isTypedArray=pi,A.isUndefined=AT,A.isWeakMap=RT,A.isWeakSet=CT,A.join=NO,A.kebabCase=bA,A.last=Dr,A.lastIndexOf=MO,A.lowerCase=yA,A.lowerFirst=wA,A.lt=IT,A.lte=PT,A.max=h5,A.maxBy=g5,A.mean=v5,A.meanBy=m5,A.min=b5,A.minBy=y5,A.stubArray=Pd,A.stubFalse=Nd,A.stubObject=o5,A.stubString=i5,A.stubTrue=s5,A.multiply=w5,A.nth=DO,A.noConflict=KA,A.noop=Id,A.now=El,A.pad=xA,A.padEnd=SA,A.padStart=EA,A.parseInt=_A,A.random=pA,A.reduce=$2,A.reduceRight=j2,A.repeat=kA,A.replace=OA,A.result=nA,A.round=x5,A.runInContext=q,A.sample=B2,A.size=V2,A.snakeCase=TA,A.some=U2,A.sortedIndex=HO,A.sortedIndexBy=WO,A.sortedIndexOf=VO,A.sortedLastIndex=UO,A.sortedLastIndexBy=qO,A.sortedLastIndexOf=GO,A.startCase=RA,A.startsWith=CA,A.subtract=S5,A.sum=E5,A.sumBy=_5,A.template=IA,A.times=a5,A.toFinite=Mn,A.toInteger=Ne,A.toLength=qv,A.toLower=PA,A.toNumber=Lr,A.toSafeInteger=NT,A.toString=Ze,A.toUpper=NA,A.trim=MA,A.trimEnd=DA,A.trimStart=LA,A.truncate=zA,A.unescape=$A,A.uniqueId=c5,A.upperCase=jA,A.upperFirst=Td,A.each=Pv,A.eachRight=Nv,A.first=Av,Cd(A,(function(){var i={};return cn(A,function(a,f){Ge.call(A.prototype,f)||(i[f]=a)}),i})(),{chain:!1}),A.VERSION=n,br(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){A[i].placeholder=A}),br(["drop","take"],function(i,a){Fe.prototype[i]=function(f){f=f===r?1:Pt(Ne(f),0);var E=this.__filtered__&&!a?new Fe(this):this.clone();return E.__filtered__?E.__takeCount__=Zt(f,E.__takeCount__):E.__views__.push({size:Zt(f,J),type:i+(E.__dir__<0?"Right":"")}),E},Fe.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),br(["filter","map","takeWhile"],function(i,a){var f=a+1,E=f==N||f==ee;Fe.prototype[i]=function(O){var C=this.clone();return C.__iteratees__.push({iteratee:Oe(O,3),type:f}),C.__filtered__=C.__filtered__||E,C}}),br(["head","last"],function(i,a){var f="take"+(a?"Right":"");Fe.prototype[i]=function(){return this[f](1).value()[0]}}),br(["initial","tail"],function(i,a){var f="drop"+(a?"":"Right");Fe.prototype[i]=function(){return this.__filtered__?new Fe(this):this[f](1)}}),Fe.prototype.compact=function(){return this.filter(lr)},Fe.prototype.find=function(i){return this.filter(i).head()},Fe.prototype.findLast=function(i){return this.reverse().find(i)},Fe.prototype.invokeMap=Le(function(i,a){return typeof i=="function"?new Fe(this):this.map(function(f){return hs(f,i,a)})}),Fe.prototype.reject=function(i){return this.filter(kl(Oe(i)))},Fe.prototype.slice=function(i,a){i=Ne(i);var f=this;return f.__filtered__&&(i>0||a<0)?new Fe(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),a!==r&&(a=Ne(a),f=a<0?f.dropRight(-a):f.take(a-i)),f)},Fe.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Fe.prototype.toArray=function(){return this.take(J)},cn(Fe.prototype,function(i,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),E=/^(?:head|last)$/.test(a),O=A[E?"take"+(a=="last"?"Right":""):a],C=E||/^find/.test(a);O&&(A.prototype[a]=function(){var z=this.__wrapped__,B=E?[1]:arguments,G=z instanceof Fe,se=B[0],ae=G||Ie(z),ue=function($e){var Be=O.apply(A,Kn([$e],B));return E&&ve?Be[0]:Be};ae&&f&&typeof se=="function"&&se.length!=1&&(G=ae=!1);var ve=this.__chain__,xe=!!this.__actions__.length,Te=C&&!ve,Me=G&&!xe;if(!C&&ae){z=Me?z:new Fe(this);var ke=i.apply(z,B);return ke.__actions__.push({func:xl,args:[ue],thisArg:r}),new Pr(ke,ve)}return Te&&Me?i.apply(this,B):(ke=this.thru(ue),Te?E?ke.value()[0]:ke.value():ke)})}),br(["pop","push","shift","sort","splice","unshift"],function(i){var a=Ga[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",E=/^(?:pop|shift)$/.test(i);A.prototype[i]=function(){var O=arguments;if(E&&!this.__chain__){var C=this.value();return a.apply(Ie(C)?C:[],O)}return this[f](function(z){return a.apply(Ie(z)?z:[],O)})}}),cn(Fe.prototype,function(i,a){var f=A[a];if(f){var E=f.name+"";Ge.call(li,E)||(li[E]=[]),li[E].push({name:a,func:f})}}),li[hl(r,w).name]=[{name:"wrapper",func:r}],Fe.prototype.clone=j_,Fe.prototype.reverse=F_,Fe.prototype.value=B_,A.prototype.at=v2,A.prototype.chain=m2,A.prototype.commit=b2,A.prototype.next=y2,A.prototype.plant=x2,A.prototype.reverse=S2,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=E2,A.prototype.first=A.prototype.head,as&&(A.prototype[as]=w2),A}),ii=b_();Oo?((Oo.exports=ii)._=ii,Au._=ii):Ft._=ii}).call(XL)})(Qs,Qs.exports)),Qs.exports}var We=JL();const ip={FdSave:XR,FdWarningDanger:Cp,FdInfoCircle:VR,FdInfoBold:Bf};var ih=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(ih||{}),Pi=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Pi||{}),Ai=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Ai||{});const QL={[Pi.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Pi.DANGER]:{icon:"red-500",button:"primary-dark"},[Pi.WARNING]:{icon:"yellow-400",button:"primary-dark"}},ez=({name:e,color:t=Pi.PRIMARY,className:r="w-8 h-8"})=>{const n=ip[e]||ip.FdInfoCircle,o=`text-${QL[t].icon}`;return T.jsx(n,{className:dt(r,o)})},tz=({id:e,title:t,message:r,icon:n,type:o,color:s,zIndex:l=3e3,views:c,width:u=520,hasOverlay:d=!0,container:g,onClose:p,onEdit:h})=>{const b=y=>{p({id:e,reason:y})};M.useEffect(()=>{function y(m){m.key==="Escape"&&b(Ai.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const S=We.merge(We.values(c==null?void 0:c.toggles).flatMap(y=>y.value?y.warnings||[]:[]),c==null?void 0:c.tips),v=(y,m)=>{var x;if(!(c!=null&&c.toggles))return;const w=We.cloneDeep(c);(x=w.toggles)!=null&&x[y]&&(w.toggles[y].value=m),h({id:e,views:w})};return nn.createPortal(T.jsx(Bc,{appear:!0,show:!0,as:M.Fragment,children:T.jsx("div",{className:dt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black/80":d}),style:{zIndex:l},onClick:()=>b(Ai.CANCELED),children:T.jsx(Bc.Child,{as:M.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:T.jsx(yo,{depth:3,borderType:"light","data-cy":"confirmation-modal-cy",className:"relative rounded-md border",style:{width:u},onClick:y=>y.stopPropagation(),children:T.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[n?T.jsx("div",{className:"flex items-center justify-center",children:T.jsx(ez,{name:n,color:s,className:"w-6 h-6"})}):null,T.jsx(rz,{condition:t,children:T.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-center",children:t})}),T.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium",children:r}),T.jsx("div",{className:"text-xs",children:We.values(c==null?void 0:c.toggles).map(y=>T.jsx("div",{children:T.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[T.jsx(jw,{size:"sm",checked:y.value,onChange:m=>v(y.key,m)}),T.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),T.jsx(nz,{warnings:S}),T.jsx("div",{className:"flex items-center gap-4",children:o===ih.CONFIRM?T.jsxs(T.Fragment,{children:[T.jsx(En,{autoFocus:!0,color:"primary",onClick:()=>b(Ai.CONFIRMED),children:"Confirm"}),T.jsx(En,{color:"white",variant:"outline",onClick:()=>b(Ai.CANCELED),children:"Cancel"})]}):T.jsx(En,{autoFocus:!0,onClick:()=>b(),children:"OK"})})]})})})})}),g||document.body)},rz=e=>e.condition?T.jsx(T.Fragment,{children:e.children}):null,nz=e=>e.warnings?T.jsx(Bc,{appear:!0,show:!!e.warnings.length,as:M.Fragment,children:T.jsx(yo,{depth:1,className:"flex flex-col gap-1 rounded-sm p-2 text-xs",children:e.warnings.map((t,r)=>T.jsx(Bc.Child,{as:M.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:T.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[T.jsx(Cp,{className:dt({"h-3 w-3":!0,"text-warning-text":t.type==="warning","text-negative-text":t.type==="error","text-primary":t.type==="info"},"mr-3")}),T.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var j1=(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))(j1||{});const oz=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:n,handleZoomOut:o})=>T.jsxs(yo,{depth:4,className:"flex items-center rounded p-1",children:[T.jsx(UR,{onClick:o,className:dt("h-5 w-5 p-1",{"text-inactive-text":e<=t,"cursor-pointer rounded hover:bg-primary-hover":e>t})}),T.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),T.jsx(qR,{onClick:n,className:dt("h-5 w-5 p-1",{"text-inactive-text":e>=r,"cursor-pointer rounded hover:bg-primary-hover":e<r})})]}),vn=30,F1=.3,B1=.6,iz=()=>typeof window>"u"?400:Math.round(window.innerHeight*F1),H1=()=>typeof window>"u"?600:Math.round(window.innerHeight*B1),fy=e=>{const t=H1();return Math.min(Math.max(e,vn),t)},sz=e=>{const[t,r]=M.useState(vn),n=M.useRef(),o=M.useRef(null),s=H1(),l=iz(),c=t>vn;M.useEffect(()=>{r(e.isOpen?l:vn)},[e.isOpen,l]),M.useEffect(()=>{const d=()=>{r(g=>g<=vn?vn:fy(g))};return window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d),o.current&&cancelAnimationFrame(o.current)}},[]);const u=()=>{if(c){r(vn),e.onClose();return}r(l),e.onOpen()};return T.jsx(zw,{enable:{top:!0},className:"relative w-full select-none border-t isolate",style:{zIndex:49},size:{height:t,width:"100%"},maxHeight:s,minHeight:vn,onResizeStart:()=>{n.current&&Date.now()-n.current<200?r(c?vn:l):n.current=Date.now()},onResize:(d,g,p)=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{var h;(h=e.onResize)==null||h.call(e),o.current=null})},onResizeStop:(d,g,p,h)=>{r(b=>fy(b+h.height))},handleComponent:{top:T.jsx($w,{})},depth:1,children:T.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${We.kebabCase(e.path)}`,children:[T.jsxs("div",{className:dt("flex justify-between items-center px-3 py-0.5",{"flex-1":!c}),children:[T.jsxs("div",{className:"group flex items-center justify-start",children:[T.jsx("span",{className:"mr-2 text-sm",children:"Contextual panel"}),e.tipKey?T.jsx(h1,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,T.jsx(En,{variant:"ghost",color:"white","data-cy":`contextualPanel-toggle-button-${c?"close":"open"}`,onClick:u,children:c?T.jsx(HR,{className:"h-4 w-4"}):T.jsx(WR,{className:"h-4 w-4"})})]}),e.headerRightSide]}),T.jsxs(wc,{of:c,children:[T.jsx(wc,{of:e.render,children:e.render}),T.jsx(wc,{of:!e.render,children:e.children})]})]})})},az=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:n,onReset:o,resetButtonLabel:s="Reset Page"})=>T.jsx("div",{className:"flex h-full w-full items-center justify-center",children:T.jsxs(yo,{depth:4,borderType:"light",className:"flex flex-col items-center rounded px-10 py-6 text-center shadow-md",children:[T.jsxs("div",{className:"relative",children:[T.jsx(YR,{className:"relative z-20 h-12 w-12 text-negative-text rounded-full"}),T.jsx("div",{className:"size-full absolute inset-0 rounded-full z-0 bg-white"})]}),T.jsx("p",{className:"mb-2 mt-4 text-2xl text-body",children:e}),T.jsx("p",{className:"text-md mb-4 font-extralight text-muted",children:t}),T.jsxs("div",{className:"flex gap-4",children:[n&&T.jsx(En,{onClick:n,children:"Open in Text Editor"}),o&&T.jsx(En,{color:"negative",onClick:o,children:s}),r&&T.jsx(En,{color:"white",variant:"outline",onClick:r,children:"Close"})]})]})}),lz=({onChange:e,value:t,delay:r,placeholder:n,containerClassName:o,onFocusInput:s,icon:l,"data-cy":c})=>{const[u,d]=M.useState(t),g=M.useRef(null);return T.jsx(ks.Root,{className:dt("w-full",o),children:T.jsxs(ks.Group,{children:[T.jsx(ks.Icon,{children:l?T.jsx(En,{color:"white",variant:"ghost",className:"mr-1",onClick:()=>{var p;return(p=g.current)==null?void 0:p.focus()},children:T.jsx("span",{className:`text-base fa ${l}`})}):T.jsx(JR,{})}),T.jsx(ks.Field,{ref:g,"data-cy":c||"search-cy",placeholder:n||"Search",onChange:p=>{d(p.currentTarget.value);const h=We.escapeRegExp(p.target.value);if(!r)return e(h);We.debounce(e,r)(h)},value:u,onFocus:()=>s&&s(),onDrop:p=>p.preventDefault()}),t&&T.jsx(ks.Icon,{isAction:!0,onClick:()=>{e(""),d("")},children:T.jsx(Hi,{})})]})})},cz=M.forwardRef(({label:e,Icon:t,className:r="",disableHover:n=!1,iconClassname:o,...s},l)=>T.jsx(T.Fragment,{children:T.jsx(Nw,{label:e,usePortal:!0,children:T.jsx(En,{ref:l,variant:"ghost",color:"white",...s,children:T.jsx(t,{className:dt("size-4",o)})})})}));function Ri(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function uz({rowGap:e,columnGap:t,templateColumns:r,templateRows:n,height:o,width:s,style:l,...c}){return T.jsx("div",{...c,style:{display:"grid",rowGap:Ri(e),columnGap:Ri(t),gridTemplateColumns:r,gridTemplateRows:n,height:Ri(o),width:Ri(s),...l}})}function dz({colStart:e,colSpan:t,rowStart:r,rowSpan:n,sx:o,style:s,...l}){return T.jsx("div",{...l,style:{gridColumnStart:e,gridColumnEnd:t?`span ${t}`:void 0,gridRowStart:r,gridRowEnd:n?`span ${n}`:void 0,...o,...s}})}function fz({columns:e=1,spacingX:t,spacingY:r,style:n,...o}){return T.jsx("div",{...o,style:{display:"grid",gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`,columnGap:Ri(t),rowGap:Ri(r),...n}})}const W1=M.forwardRef(({fallback:e=null,onError:t,onLoad:r,src:n,style:o,...s},l)=>{const[c,u]=M.useState(!1);return M.useEffect(()=>{u(!1)},[n]),!n||c?T.jsx(T.Fragment,{children:e}):T.jsx("img",{...s,ref:l,src:n,style:o,onLoad:d=>{u(!1),r==null||r(d)},onError:d=>{u(!0),t==null||t(d)}})});W1.displayName="Image";function pz(e,t){const r=M.useRef(!1);M.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Of=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Tf(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),r)}function Ys(e,t,r,n){e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent&&e.detachEvent("on".concat(t),r)}function V1(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 U1(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 hz(e,t){const r=e.length>=t.length?e:t,n=e.length>=t.length?t:e;let o=!0;for(let s=0;s<r.length;s++)n.indexOf(r[s])===-1&&(o=!1);return o}const ba={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,"-":Of?173:189,"=":Of?61:187,";":Of?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},rn={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},ea={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Vt={16:!1,18:!1,17:!1,91:!1},xt={};for(let e=1;e<20;e++)ba["f".concat(e)]=111+e;let bt=[],ua=null,q1="all";const jn=new Map,Gi=e=>ba[e.toLowerCase()]||rn[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),gz=e=>Object.keys(ba).find(t=>ba[t]===e),vz=e=>Object.keys(rn).find(t=>rn[t]===e);function G1(e){q1=e||"all"}function ya(){return q1||"all"}function mz(){return bt.slice(0)}function bz(){return bt.map(e=>gz(e)||vz(e)||String.fromCharCode(e))}function yz(){const e=[];return Object.keys(xt).forEach(t=>{xt[t].forEach(r=>{let{key:n,scope:o,mods:s,shortcut:l}=r;e.push({scope:o,shortcut:l,mods:s,keys:n.split("+").map(c=>Gi(c))})})}),e}function wz(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 xz(e){return typeof e=="string"&&(e=Gi(e)),bt.indexOf(e)!==-1}function Sz(e,t){let r,n;e||(e=ya());for(const o in xt)if(Object.prototype.hasOwnProperty.call(xt,o))for(r=xt[o],n=0;n<r.length;)r[n].scope===e?r.splice(n,1).forEach(l=>{let{element:c}=l;return sh(c)}):n++;ya()===e&&G1(t||"all")}function Ez(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Gi(e.key));const r=bt.indexOf(t);if(r>=0&&bt.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&bt.splice(0,bt.length),(t===93||t===224)&&(t=91),t in Vt){Vt[t]=!1;for(const n in rn)rn[n]===t&&(en[n]=!1)}}function Z1(e){if(typeof e>"u")Object.keys(xt).forEach(o=>{Array.isArray(xt[o])&&xt[o].forEach(s=>oc(s)),delete xt[o]}),sh(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&oc(o)});else if(typeof e=="object")e.key&&oc(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,s]=r;typeof o=="function"&&(s=o,o=""),oc({key:e,scope:o,method:s,splitKey:"+"})}}const oc=e=>{let{key:t,scope:r,method:n,splitKey:o="+"}=e;U1(t).forEach(l=>{const c=l.split(o),u=c.length,d=c[u-1],g=d==="*"?"*":Gi(d);if(!xt[g])return;r||(r=ya());const p=u>1?V1(rn,c):[],h=[];xt[g]=xt[g].filter(b=>{const v=(n?b.method===n:!0)&&b.scope===r&&hz(b.mods,p);return v&&h.push(b.element),!v}),h.forEach(b=>sh(b))})};function py(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 s in Vt)Object.prototype.hasOwnProperty.call(Vt,s)&&(!Vt[s]&&t.mods.indexOf(+s)>-1||Vt[s]&&t.mods.indexOf(+s)===-1)&&(o=!1);(t.mods.length===0&&!Vt[16]&&!Vt[18]&&!Vt[17]&&!Vt[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(bt),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function hy(e,t){const r=xt["*"];let n=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!en.filter.call(this,e))return;if((n===93||n===224)&&(n=91),bt.indexOf(n)===-1&&n!==229&&bt.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const u=ea[c];e[c]&&bt.indexOf(u)===-1?bt.push(u):!e[c]&&bt.indexOf(u)>-1?bt.splice(bt.indexOf(u),1):c==="metaKey"&&e[c]&&(bt=bt.filter(d=>d in ea||d===n))}),n in Vt){Vt[n]=!0;for(const c in rn)if(Object.prototype.hasOwnProperty.call(rn,c)){const u=ea[rn[c]];en[c]=e[u]}if(!r)return}for(const c in Vt)Object.prototype.hasOwnProperty.call(Vt,c)&&(Vt[c]=e[ea[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(bt.indexOf(17)===-1&&bt.push(17),bt.indexOf(18)===-1&&bt.push(18),Vt[17]=!0,Vt[18]=!0);const o=ya();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)&&py(e,r[c],o,t);if(!(n in xt))return;const s=xt[n],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 u=s[c],{splitKey:d}=u,g=u.key.split(d),p=[];for(let h=0;h<g.length;h++)p.push(Gi(g[h]));p.sort().join("")===bt.sort().join("")&&py(e,u,o,t)}}function en(e,t,r){bt=[];const n=U1(e);let o=[],s="all",l=document,c=0,u=!1,d=!0,g="+",p=!1,h=!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&&(u=t.keyup),t.keydown!==void 0&&(d=t.keydown),t.capture!==void 0&&(p=t.capture),typeof t.splitKey=="string"&&(g=t.splitKey),t.single===!0&&(h=!0)),typeof t=="string"&&(s=t),h&&Z1(e,s);c<n.length;c++)e=n[c].split(g),o=[],e.length>1&&(o=V1(rn,e)),e=e[e.length-1],e=e==="*"?"*":Gi(e),e in xt||(xt[e]=[]),xt[e].push({keyup:u,keydown:d,scope:s,mods:o,shortcut:n[c],method:r,key:n[c],splitKey:g,element:l});if(typeof l<"u"&&window){if(!jn.has(l)){const b=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return hy(v,l)},S=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;hy(v,l),Ez(v)};jn.set(l,{keydownListener:b,keyupListenr:S,capture:p}),Tf(l,"keydown",b,p),Tf(l,"keyup",S,p)}if(!ua){const b=()=>{bt=[]};ua={listener:b,capture:p},Tf(window,"focus",b,p)}}}function _z(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(xt).forEach(r=>{xt[r].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function sh(e){const t=Object.values(xt).flat();if(t.findIndex(n=>{let{element:o}=n;return o===e})<0){const{keydownListener:n,keyupListenr:o,capture:s}=jn.get(e)||{};n&&o&&(Ys(e,"keyup",o,s),Ys(e,"keydown",n,s),jn.delete(e))}if((t.length<=0||jn.size<=0)&&(Object.keys(jn).forEach(o=>{const{keydownListener:s,keyupListenr:l,capture:c}=jn.get(o)||{};s&&l&&(Ys(o,"keyup",l,c),Ys(o,"keydown",s,c),jn.delete(o))}),jn.clear(),Object.keys(xt).forEach(o=>delete xt[o]),ua)){const{listener:o,capture:s}=ua;Ys(window,"focus",o,s),ua=null}}const Af={getPressedKeyString:bz,setScope:G1,getScope:ya,deleteScope:Sz,getPressedKeyCodes:mz,getAllKeyCodes:yz,isPressed:xz,filter:wz,trigger:_z,unbind:Z1,keyMap:ba,modifier:rn,modifierMap:ea};for(const e in Af)Object.prototype.hasOwnProperty.call(Af,e)&&(en[e]=Af[e]);if(typeof window<"u"){const e=window.hotkeys;en.noConflict=t=>(t&&window.hotkeys===en&&(window.hotkeys=e),en),window.hotkeys=en}en.filter=()=>!0;function kz(e,t,r,n){r instanceof Array&&(n=r,r=void 0),n=n||[],r=r||{};const{preventDefault:o=!0}=r,s=M.useCallback((c,u)=>{o&&c.preventDefault(),setTimeout(()=>t(c,u))},n),l=()=>{en.unbind(e,s)};M.useEffect(()=>(en(e,r,s),l),[e,r,s])}const Oz=(e,t="click")=>{const r=M.useRef(null),n=M.useRef(e);return n.current=e,M.useEffect(()=>{const o=s=>{r.current&&!r.current.contains(s.target)&&n.current(s)};return document.addEventListener(t,o,!0),()=>{document.removeEventListener(t,o,!0)}},[e,t]),r};function Tz(e){const t=M.useRef();return M.useEffect(()=>{t.current=e},[e]),t.current}function Az(e){const t=M.useRef(e);return M.useEffect(()=>{t.current=e},[e]),t}function Rz(e){const t=M.useRef(null);return M.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function Cz(e){const[t,r]=M.useState(e),n=(s,l)=>{r(c=>({...c,features:{...c.features,[s]:{enabled:l}}}))},o=M.useCallback((...s)=>s.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:n,isFeatureEnabled:o}}const Y1=M.createContext(""),Iz=e=>T.jsx(Y1.Provider,{value:e.value,children:e.children}),Pz=()=>{const e=M.useContext(Y1);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function Nz(e){const[t,r]=M.useState(e),n=M.useMemo(()=>Mz(t,r),[]);return{state:t,actions:{...n,set:o=>{r(typeof o=="function"?o:s=>({...s,...o}))}}}}function Mz(e,t=()=>{}){return Object.keys(e).reduce((n,o)=>({...n,[`set${We.upperFirst(o)}`]:s=>t(l=>({...l,[o]:s}))}),{})}const Dz=(e,t,r={})=>{r={timeout:200,...r};const n=M.useRef(),o=()=>{n.current&&(clearTimeout(n.current),n.current=null)};return M.useCallback((s,...l)=>{o(),t&&s.detail===1&&(n.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...l)},[t,e,r.timeout])};function Ut(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=Hz[e],s=o?typeof o=="function"?o.apply(null,r):o:"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 Fi(e){return!!e&&!!e[Ar]}function Yo(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[Sy]||!!(!((t=e.constructor)===null||t===void 0)&&t[Sy])||ah(e)||lh(e))}function wa(e,t,r){r===void 0&&(r=!1),Zi(e)===0?(r?Object.keys:fh)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,o){return t(o,n,e)}))}function Zi(e){var t=e[Ar];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ah(e)?2:lh(e)?3:0}function sp(e,t){return Zi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Lz(e,t){return Zi(e)===2?e.get(t):e[t]}function K1(e,t,r){var n=Zi(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function zz(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ah(e){return Fz&&e instanceof Map}function lh(e){return Bz&&e instanceof Set}function jo(e){return e.o||e.t}function ch(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Vz(e);delete t[Ar];for(var r=fh(t),n=0;n<r.length;n++){var o=r[n],s=t[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function xa(e,t){return t===void 0&&(t=!1),uh(e)||Fi(e)||!Yo(e)||(Zi(e)>1&&(e.set=e.add=e.clear=e.delete=$z),Object.freeze(e),t&&wa(e,(function(r,n){return xa(n,!0)}),!0)),e}function $z(){Ut(2)}function uh(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function _n(e){var t=Uz[e];return t||Ut(18,e),t}function gy(){return process.env.NODE_ENV==="production"||Bi||Ut(0),Bi}function Rf(e,t){t&&(_n("Patches"),e.u=[],e.s=[],e.v=t)}function Hc(e){ap(e),e.p.forEach(jz),e.p=null}function ap(e){e===Bi&&(Bi=e.l)}function vy(e){return Bi={p:[],l:Bi,h:e,m:!0,_:0}}function jz(e){var t=e[Ar];t.i===0||t.i===1?t.j():t.g=!0}function Cf(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||_n("ES5").S(t,e,n),n?(r[Ar].P&&(Hc(t),Ut(4)),Yo(e)&&(e=Wc(t,e),t.l||Vc(t,e)),t.u&&_n("Patches").M(r[Ar].t,e,t.u,t.s)):e=Wc(t,r,[]),Hc(t),t.u&&t.v(t.u,t.s),e!==J1?e:void 0}function Wc(e,t,r){if(uh(t))return t;var n=t[Ar];if(!n)return wa(t,(function(c,u){return my(e,n,t,c,u,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return Vc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=ch(n.k):n.o,s=o,l=!1;n.i===3&&(s=new Set(o),o.clear(),l=!0),wa(s,(function(c,u){return my(e,n,o,c,u,r,l)})),Vc(e,o,!1),r&&e.u&&_n("Patches").N(n,r,e.u,e.s)}return n.o}function my(e,t,r,n,o,s,l){if(process.env.NODE_ENV!=="production"&&o===r&&Ut(5),Fi(o)){var c=Wc(e,o,s&&t&&t.i!==3&&!sp(t.R,n)?s.concat(n):void 0);if(K1(r,n,c),!Fi(c))return;e.m=!1}else l&&r.add(o);if(Yo(o)&&!uh(o)){if(!e.h.D&&e._<1)return;Wc(e,o),t&&t.A.l||Vc(e,o)}}function Vc(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&xa(t,r)}function If(e,t){var r=e[Ar];return(r?jo(r):e)[t]}function by(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 lp(e){e.P||(e.P=!0,e.l&&lp(e.l))}function Pf(e){e.o||(e.o=ch(e.t))}function cp(e,t,r){var n=ah(t)?_n("MapSet").F(t,r):lh(t)?_n("MapSet").T(t,r):e.O?(function(o,s){var l=Array.isArray(o),c={i:l?1:0,A:s?s.A:gy(),P:!1,I:!1,R:{},l:s,t:o,k:null,o:null,j:null,C:!1},u=c,d=up;l&&(u=[c],d=ta);var g=Proxy.revocable(u,d),p=g.revoke,h=g.proxy;return c.k=h,c.j=p,h})(t,r):_n("ES5").J(t,r);return(r?r.A:gy()).p.push(n),n}function X1(e){return Fi(e)||Ut(22,e),(function t(r){if(!Yo(r))return r;var n,o=r[Ar],s=Zi(r);if(o){if(!o.P&&(o.i<4||!_n("ES5").K(o)))return o.t;o.I=!0,n=yy(r,s),o.I=!1}else n=yy(r,s);return wa(n,(function(l,c){o&&Lz(o.t,l)===c||K1(n,l,t(c))})),s===3?new Set(n):n})(e)}function yy(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ch(e)}var wy,Bi,dh=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Fz=typeof Map<"u",Bz=typeof Set<"u",xy=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",J1=dh?Symbol.for("immer-nothing"):((wy={})["immer-nothing"]=!0,wy),Sy=dh?Symbol.for("immer-draftable"):"__$immer_draftable",Ar=dh?Symbol.for("immer-state"):"__$immer_state",Hz={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,fh=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Vz=Object.getOwnPropertyDescriptors||function(e){var t={};return fh(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Uz={},up={get:function(e,t){if(t===Ar)return e;var r=jo(e);if(!sp(r,t))return(function(o,s,l){var c,u=by(s,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||!Yo(n)?n:n===If(e.t,t)?(Pf(e),e.o[t]=cp(e.A.h,n,e)):n},has:function(e,t){return t in jo(e)},ownKeys:function(e){return Reflect.ownKeys(jo(e))},set:function(e,t,r){var n=by(jo(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=If(jo(e),t),s=o==null?void 0:o[Ar];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(zz(r,o)&&(r!==void 0||sp(e.t,t)))return!0;Pf(e),lp(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 If(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Pf(e),lp(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=jo(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Ut(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ut(12)}},ta={};wa(up,(function(e,t){ta[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ta.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Ut(13),ta.set.call(this,e,t,void 0)},ta.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Ut(14),up.set.call(this,e[0],t,r,e[0])};var qz=(function(){function e(r){var n=this;this.O=xy,this.D=!0,this.produce=function(o,s,l){if(typeof o=="function"&&typeof s!="function"){var c=s;s=o;var u=n;return function(v){var y=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 _;return(_=s).call.apply(_,[y,k].concat(w))}))}}var d;if(typeof s!="function"&&Ut(6),l!==void 0&&typeof l!="function"&&Ut(7),Yo(o)){var g=vy(n),p=cp(n,o,void 0),h=!0;try{d=s(p),h=!1}finally{h?Hc(g):ap(g)}return typeof Promise<"u"&&d instanceof Promise?d.then((function(v){return Rf(g,l),Cf(v,g)}),(function(v){throw Hc(g),v})):(Rf(g,l),Cf(d,g))}if(!o||typeof o!="object"){if((d=s(o))===void 0&&(d=o),d===J1&&(d=void 0),n.D&&xa(d,!0),l){var b=[],S=[];_n("Patches").M(o,d,b,S),l(b,S)}return d}Ut(21,o)},this.produceWithPatches=function(o,s){if(typeof o=="function")return function(d){for(var g=arguments.length,p=Array(g>1?g-1:0),h=1;h<g;h++)p[h-1]=arguments[h];return n.produceWithPatches(d,(function(b){return o.apply(void 0,[b].concat(p))}))};var l,c,u=n.produce(o,s,(function(d,g){l=d,c=g}));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){Yo(r)||Ut(8),Fi(r)&&(r=X1(r));var n=vy(this),o=cp(this,r,void 0);return o[Ar].C=!0,ap(n),o},t.finishDraft=function(r,n){var o=r&&r[Ar];process.env.NODE_ENV!=="production"&&(o&&o.C||Ut(9),o.I&&Ut(10));var s=o.A;return Rf(s,n),Cf(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!xy&&Ut(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var s=n[o];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}o>-1&&(n=n.slice(o+1));var l=_n("Patches").$;return Fi(r)?l(r,n):this.produce(r,(function(c){return l(c,n)}))},e})(),Rr=new qz,Gz=Rr.produce;Rr.produceWithPatches.bind(Rr);Rr.setAutoFreeze.bind(Rr);Rr.setUseProxies.bind(Rr);Rr.applyPatches.bind(Rr);Rr.createDraft.bind(Rr);Rr.finishDraft.bind(Rr);function Zz(e){var t=M.useState(function(){return xa(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],M.useCallback(function(n){r(typeof n=="function"?Gz(n):xa(n))},[])]}const Yz=process.env.NODE_ENV==="development",Nf=Yz&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,Kz=(e,t,r)=>{const[n,o]=Zz(e),s=M.useRef(null);M.useEffect(()=>{var u;return r&&(s.current=Nf==null?void 0:Nf.connect({name:r,trace:!0}),(u=s.current)==null||u.init(e)),()=>{var d,g;(g=(d=s.current)==null?void 0:d.disconnect)==null||g.call(d)}},[]);const l=t&&typeof t=="object"?t:{},c=M.useMemo(()=>Object.keys(l).reduce((u,d)=>({...u,[d]:g=>(o(p=>{var h;l[d](p,g),(h=s.current)==null||h.send({type:l[d].name},X1(p))}),c)}),{}),[o]);return{state:n,dispatch:c}},Xz=e=>{const t=Oh(e),r=()=>{const{id:n,namespace:o}=t,s=window.DataSource.spaces[o];if(s&&s.sources)return s.sources[n]};return{actions:{setProperty:(n,o)=>{try{const s=r();s&&s.setValue(n,o)}catch{}},getValue:()=>r()}}},Jz=({datasourceId:e,isDsBuild:t=!1,onChange:r})=>{const{id:n,namespace:o}=Oh(e),[s,l]=M.useState(!1),c=M.useCallback(()=>{try{return window.DataSource.getSource(n,o)}catch{return}},[o,n]),u=(p,h)=>{const b=c();b&&b.setValue(p,h)},d=async()=>{const p=c();if(!p)return;const h=await(p==null?void 0:p.getValue());r==null||r(h)},g=p=>{const{id:h}=p;!s&&h&&h.startsWith(n)&&l(!0)};return M.useEffect(()=>{if(s){const p=c();return p?(p==null||p.addListener("changed",d),()=>p==null?void 0:p.removeListener("changed",d)):void 0}},[s]),M.useEffect(()=>{if(t)return window.addEventListener("datasource:created",g),()=>window.removeEventListener("datasource:created",g)},[t]),{loaded:s,setCurrentSource:u}};function Qz(e=!1){const[t,r]=M.useState(e),n=M.useMemo(()=>({on:()=>r(!0),off:()=>r(!1),toggle:()=>r(o=>!o)}),[]);return[t,n]}function e6(e){const t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useCallback((...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Q1(e,t){const r=e!==void 0;return[r,r?e:t]}function t6({value:e,defaultValue:t,onChange:r}){const[n,o]=M.useState(t),[s,l]=Q1(e,n),c=M.useCallback(u=>{const d=typeof u=="function"?u(l):u;s||o(d),d!==l&&(r==null||r(d))},[l,s,r]);return[l,c]}const r6=typeof window<"u"?M.useLayoutEffect:M.useEffect;function n6(e,t){const r=M.useRef(!1);M.useEffect(()=>{if(!r.current){r.current=!0;return}return e()},t)}function o6(e){return{...e,isDisabled:e.isDisabled??e.disabled,isReadOnly:e.isReadOnly??e.readOnly,isRequired:e.isRequired??e.required}}function Wn(e){return typeof e=="function"}function eS(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 Mf=eS(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
252
+ `+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
253
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function dp(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var uu=(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,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=Yf(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 g=this.initialTeardown;if(Wn(g))try{g()}catch(v){s=v instanceof Mf?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=Yf(p),b=h.next();!b.done;b=h.next()){var S=b.value;try{Ey(S)}catch(v){s=s??[],v instanceof Mf?s=Lc(Lc([],Kf(s)),Kf(v.errors)):s.push(v)}}}catch(v){n={error:v}}finally{try{b&&!b.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(s)throw new Mf(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Ey(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)&&dp(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&dp(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),tS=uu.EMPTY;function rS(e){return e instanceof uu||e&&"closed"in e&&Wn(e.remove)&&Wn(e.add)&&Wn(e.unsubscribe)}function Ey(e){Wn(e)?e():e.unsubscribe()}var i6={Promise:void 0},s6={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Lc([e,t],Kf(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function a6(e){s6.setTimeout(function(){throw e})}function _y(){}function kc(e){e()}var nS=(function(e){nu(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,rS(r)&&r.add(n)):n.destination=u6,n}return t.create=function(r,n,o){return new fp(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})(uu),l6=(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){ic(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){ic(n)}else ic(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ic(r)}},e})(),fp=(function(e){nu(t,e);function t(r,n,o){var s=e.call(this)||this,l;return Wn(r)||!r?l={next:r??void 0,error:n??void 0,complete:o??void 0}:l=r,s.destination=new l6(l),s}return t})(nS);function ic(e){a6(e)}function c6(e){throw e}var u6={closed:!0,next:_y,error:c6,complete:_y},d6=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function f6(e){return e}function p6(e){return e.length===0?f6:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var ky=(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,s=g6(t)?t:new fp(t,r,n);return kc(function(){var l=o,c=l.operator,u=l.source;s.add(c?c.call(s,u):u?o._subscribe(s):o._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 n=this;return r=Oy(r),new r(function(o,s){var l=new fp({next:function(c){try{t(c)}catch(u){s(u),l.unsubscribe()}},error:s,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[d6]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return p6(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Oy(t),new t(function(n,o){var s;r.subscribe(function(l){return s=l},function(l){return o(l)},function(){return n(s)})})},e.create=function(t){return new e(t)},e})();function Oy(e){var t;return(t=e??i6.Promise)!==null&&t!==void 0?t:Promise}function h6(e){return e&&Wn(e.next)&&Wn(e.error)&&Wn(e.complete)}function g6(e){return e&&e instanceof nS||h6(e)&&rS(e)}var v6=eS(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),On=(function(e){nu(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 Ty(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new v6},t.prototype.next=function(r){var n=this;kc(function(){var o,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var l=Yf(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&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;kc(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;kc(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,s=o.hasError,l=o.isStopped,c=o.observers;return s||l?tS:(this.currentObservers=null,c.push(r),new uu(function(){n.currentObservers=null,dp(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,s=n.thrownError,l=n.isStopped;o?r.error(s):l&&r.complete()},t.prototype.asObservable=function(){var r=new ky;return r.source=this,r},t.create=function(r,n){return new Ty(r,n)},t})(ky),Ty=(function(e){nu(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:tS},t})(On),oS=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(oS||{}),iS=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(iS||{});const m6=new On,b6=new On,ph=new On;var sS=(e=>(e.SAVE_ALL="save-all",e))(sS||{});const y6=new On;var aS=(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))(aS||{});const w6=new On;var lS=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(lS||{});const x6=new On,S6=new On;var Sa=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(Sa||{});const Uc=new On,E6=new On,hh=255;var gh=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${hh} 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))(gh||{});function du(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>hh)throw new Error(gh.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 _6(e){if(!e)return null;if(typeof e=="string")try{du(e)}catch(t){return t.message}}function k6(e,t){let r="";if(["array","object"].includes(t))try{const n=JSON.parse(e);t==="array"&&(!Array.isArray(n)||!We.isObject(n))&&(r=`Invalid value for type ${t}`),t==="object"&&(!We.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 O6(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function fu(e){const{PLACEHOLDER_PREFIX:t,counter:r}=O6();let n=r;const o=[],s="@!",l=g=>(o.push(g),`${t}${n++}${s}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(g,p,h)=>p+l(h)),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 g=0;g<o.length;g++){const h=`${t}${g}${s}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),b=new RegExp(h,"g");d=d.replace(b,o[g])}return d}const cS=(e,t,r)=>{const n=e instanceof RegExp?Ay(e,r):e,o=t instanceof RegExp?Ay(t,r):t,s=n!==null&&o!=null&&T6(n,o,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+o.length)}},Ay=(e,t)=>{const r=t.match(e);return r?r[0]:null},T6=(e,t,r)=>{let n,o,s,l,c,u=r.indexOf(e),d=r.indexOf(t,u+1),g=u;if(u>=0&&d>0){if(e===t)return[u,d];for(n=[],s=r.length;g>=0&&!c;){if(g===u)n.push(g),u=r.indexOf(e,g+1);else if(n.length===1){const p=n.pop();p!==void 0&&(c=[p,d])}else o=n.pop(),o!==void 0&&o<s&&(s=o,l=d),d=r.indexOf(t,g+1);g=u<d&&u>=0?u:d}n.length&&l!==void 0&&(c=[s,l])}return c},uS="\0SLASH"+Math.random()+"\0",dS="\0OPEN"+Math.random()+"\0",vh="\0CLOSE"+Math.random()+"\0",fS="\0COMMA"+Math.random()+"\0",pS="\0PERIOD"+Math.random()+"\0",A6=new RegExp(uS,"g"),R6=new RegExp(dS,"g"),C6=new RegExp(vh,"g"),I6=new RegExp(fS,"g"),P6=new RegExp(pS,"g"),N6=/\\\\/g,M6=/\\{/g,D6=/\\}/g,L6=/\\,/g,z6=/\\\./g,$6=1e5;function Df(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function j6(e){return e.replace(N6,uS).replace(M6,dS).replace(D6,vh).replace(L6,fS).replace(z6,pS)}function F6(e){return e.replace(A6,"\\").replace(R6,"{").replace(C6,"}").replace(I6,",").replace(P6,".")}function hS(e){if(!e)return[""];const t=[],r=cS("{","}",e);if(!r)return e.split(",");const{pre:n,body:o,post:s}=r,l=n.split(",");l[l.length-1]+="{"+o+"}";const c=hS(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function B6(e,t={}){if(!e)return[];const{max:r=$6}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),ra(j6(e),r,!0).map(F6)}function H6(e){return"{"+e+"}"}function W6(e){return/^-?0\d/.test(e)}function V6(e,t){return e<=t}function U6(e,t){return e>=t}function ra(e,t,r){const n=[],o=cS("{","}",e);if(!o)return[e];const s=o.pre,l=o.post.length?ra(o.post,t,!1):[""];if(/\$$/.test(o.pre))for(let c=0;c<l.length&&c<t;c++){const u=s+"{"+o.body+"}"+l[c];n.push(u)}else{const c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),d=c||u,g=o.body.indexOf(",")>=0;if(!d&&!g)return o.post.match(/,(?!,).*\}/)?(e=o.pre+"{"+o.body+vh+o.post,ra(e,t,!0)):[e];let p;if(d)p=o.body.split(/\.\./);else if(p=hS(o.body),p.length===1&&p[0]!==void 0&&(p=ra(p[0],t,!1).map(H6),p.length===1))return l.map(b=>o.pre+p[0]+b);let h;if(d&&p[0]!==void 0&&p[1]!==void 0){const b=Df(p[0]),S=Df(p[1]),v=Math.max(p[0].length,p[1].length);let y=p.length===3&&p[2]!==void 0?Math.max(Math.abs(Df(p[2])),1):1,m=V6;S<b&&(y*=-1,m=U6);const x=p.some(W6);h=[];for(let k=b;m(k,S);k+=y){let _;if(u)_=String.fromCharCode(k),_==="\\"&&(_="");else if(_=String(k),x){const R=v-_.length;if(R>0){const j=new Array(R+1).join("0");k<0?_="-"+j+_.slice(1):_=j+_}}h.push(_)}}else{h=[];for(let b=0;b<p.length;b++)h.push.apply(h,ra(p[b],t,!1))}for(let b=0;b<h.length;b++)for(let S=0;S<l.length&&n.length<t;S++){const v=s+h[b]+l[S];(!r||d||v)&&n.push(v)}}return n}const q6=1024*64,qc=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>q6)throw new TypeError("pattern is too long")},G6={"[: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]},Ks=e=>e.replace(/[[\]\\-]/g,"\\$&"),Z6=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ry=e=>e.join(""),Y6=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],o=[];let s=r+1,l=!1,c=!1,u=!1,d=!1,g=r,p="";e:for(;s<e.length;){const v=e.charAt(s);if((v==="!"||v==="^")&&s===r+1){d=!0,s++;continue}if(v==="]"&&l&&!u){g=s+1;break}if(l=!0,v==="\\"&&!u){u=!0,s++;continue}if(v==="["&&!u){for(const[y,[m,w,x]]of Object.entries(G6))if(e.startsWith(y,s)){if(p)return["$.",!1,e.length-r,!0];s+=y.length,x?o.push(m):n.push(m),c=c||w;continue e}}if(u=!1,p){v>p?n.push(Ks(p)+"-"+Ks(v)):v===p&&n.push(Ks(v)),p="",s++;continue}if(e.startsWith("-]",s+1)){n.push(Ks(v+"-")),s+=2;continue}if(e.startsWith("-",s+1)){p=v,s+=2;continue}n.push(Ks(v)),s++}if(g<s)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[Z6(v),!1,g-r,!1]}const h="["+(d?"^":"")+Ry(n)+"]",b="["+(d?"":"^")+Ry(o)+"]";return[n.length&&o.length?"("+h+"|"+b+")":n.length?h:b,c,g-r,!0]},na=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var ur;const K6=new Set(["!","?","+","*","@"]),pp=e=>K6.has(e),Cy=e=>pp(e.type),X6=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),J6=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Q6=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Iy=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),e$="(?!(?:^|/)\\.\\.?(?:$|/))",sc="(?!\\.)",t$=new Set(["[","."]),r$=new Set(["..","."]),n$=new Set("().*{}+?[]^$\\!"),o$=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),mh="[^/]",Py=mh+"*?",Ny=mh+"+?";let i$=0;var At,zt,Bn,Ce,mt,po,Ho,ho,mn,bn,Ni,Ue,gS,vo,Oc,vS,hp,Tc,mS,gp,bS,yS,wS,Ac,vp,xS;class pu{constructor(t,r,n={}){Ht(this,Ue);Ae(this,"type");Ht(this,At);Ht(this,zt);Ht(this,Bn,!1);Ht(this,Ce,[]);Ht(this,mt);Ht(this,po);Ht(this,Ho);Ht(this,ho,!1);Ht(this,mn);Ht(this,bn);Ht(this,Ni,!1);Ae(this,"id",++i$);this.type=t,t&&rt(this,zt,!0),rt(this,mt,r),rt(this,At,le(this,mt)?le(le(this,mt),At):this),rt(this,mn,le(this,At)===this?n:le(le(this,At),mn)),rt(this,Ho,le(this,At)===this?[]:le(le(this,At),Ho)),t==="!"&&!le(le(this,At),ho)&&le(this,Ho).push(this),rt(this,po,le(this,mt)?le(le(this,mt),Ce).length:0)}get depth(){var t;return(((t=le(this,mt))==null?void 0:t.depth)??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){var t;return{"@@type":"AST",id:this.id,type:this.type,root:le(this,At).id,parent:(t=le(this,mt))==null?void 0:t.id,depth:this.depth,partsLength:le(this,Ce).length,parts:le(this,Ce)}}get hasMagic(){if(le(this,zt)!==void 0)return le(this,zt);for(const t of le(this,Ce))if(typeof t!="string"&&(t.type||t.hasMagic))return rt(this,zt,!0);return le(this,zt)}toString(){return le(this,bn)!==void 0?le(this,bn):this.type?rt(this,bn,this.type+"("+le(this,Ce).map(t=>String(t)).join("|")+")"):rt(this,bn,le(this,Ce).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof ur&&le(r,mt)===this))throw new Error("invalid part: "+r);le(this,Ce).push(r)}}toJSON(){var r;const t=this.type===null?le(this,Ce).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...le(this,Ce).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===le(this,At)||le(le(this,At),ho)&&((r=le(this,mt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(le(this,At)===this)return!0;if(!((r=le(this,mt))!=null&&r.isStart()))return!1;if(le(this,po)===0)return!0;const t=le(this,mt);for(let n=0;n<le(this,po);n++){const o=le(t,Ce)[n];if(!(o instanceof ur&&o.type==="!"))return!1}return!0}isEnd(){var r,n,o;if(le(this,At)===this||((r=le(this,mt))==null?void 0:r.type)==="!")return!0;if(!((n=le(this,mt))!=null&&n.isEnd()))return!1;if(!this.type)return(o=le(this,mt))==null?void 0:o.isEnd();const t=le(this,mt)?le(le(this,mt),Ce).length:0;return le(this,po)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new ur(this.type,t);for(const n of le(this,Ce))r.copyIn(n);return r}static fromGlob(t,r={}){var o;const n=new ur(null,void 0,r);return Ee(o=ur,vo,Oc).call(o,t,n,0,r,0),n}toMMPattern(){if(this!==le(this,At))return le(this,At).toMMPattern();const t=this.toString(),[r,n,o,s]=this.toRegExpSource();if(!(o||le(this,zt)||le(this,mn).nocase&&!le(this,mn).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const c=(le(this,mn).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return le(this,mn)}toRegExpSource(t){var u;const r=t??!!le(this,mn).dot;if(le(this,At)===this&&(Ee(this,Ue,Ac).call(this),Ee(this,Ue,gS).call(this)),!Cy(this)){const d=this.isStart()&&this.isEnd()&&!le(this,Ce).some(S=>typeof S!="string"),g=le(this,Ce).map(S=>{var x;const[v,y,m,w]=typeof S=="string"?Ee(x=ur,vo,xS).call(x,S,le(this,zt),d):S.toRegExpSource(t);return rt(this,zt,le(this,zt)||m),rt(this,Bn,le(this,Bn)||w),v}).join("");let p="";if(this.isStart()&&typeof le(this,Ce)[0]=="string"&&!(le(this,Ce).length===1&&r$.has(le(this,Ce)[0]))){const v=t$,y=r&&v.has(g.charAt(0))||g.startsWith("\\.")&&v.has(g.charAt(2))||g.startsWith("\\.\\.")&&v.has(g.charAt(4)),m=!r&&!t&&v.has(g.charAt(0));p=y?e$:m?sc:""}let h="";return this.isEnd()&&le(le(this,At),ho)&&((u=le(this,mt))==null?void 0:u.type)==="!"&&(h="(?:$|\\/)"),[p+g+h,na(g),rt(this,zt,!!le(this,zt)),le(this,Bn)]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let s=Ee(this,Ue,vp).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const d=this.toString(),g=this;return rt(g,Ce,[d]),g.type=null,rt(g,zt,void 0),[d,na(this.toString()),!1,!1]}let l=!n||t||r||!sc?"":Ee(this,Ue,vp).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let c="";if(this.type==="!"&&le(this,Ni))c=(this.isStart()&&!r?sc:"")+Ny;else{const d=this.type==="!"?"))"+(this.isStart()&&!r&&!t?sc:"")+Py+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=o+s+d}return[c,na(s),rt(this,zt,!!le(this,zt)),le(this,Bn)]}}At=new WeakMap,zt=new WeakMap,Bn=new WeakMap,Ce=new WeakMap,mt=new WeakMap,po=new WeakMap,Ho=new WeakMap,ho=new WeakMap,mn=new WeakMap,bn=new WeakMap,Ni=new WeakMap,Ue=new WeakSet,gS=function(){if(this!==le(this,At))throw new Error("should only call on root");if(le(this,ho))return this;this.toString(),rt(this,ho,!0);let t;for(;t=le(this,Ho).pop();){if(t.type!=="!")continue;let r=t,n=le(r,mt);for(;n;){for(let o=le(r,po)+1;!n.type&&o<le(n,Ce).length;o++)for(const s of le(t,Ce)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(le(n,Ce)[o])}r=n,n=le(r,mt)}}return this},vo=new WeakSet,Oc=function(t,r,n,o,s){var v,y,m,w;const l=o.maxExtglobRecursion??2;let c=!1,u=!1,d=-1,g=!1;if(r.type===null){let x=n,k="";for(;x<t.length;){const _=t.charAt(x++);if(c||_==="\\"){c=!c,k+=_;continue}if(u){x===d+1?(_==="^"||_==="!")&&(g=!0):_==="]"&&!(x===d+2&&g)&&(u=!1),k+=_;continue}else if(_==="["){u=!0,d=x,g=!1,k+=_;continue}if(!o.noext&&pp(_)&&t.charAt(x)==="("&&s<=l){r.push(k),k="";const j=new ur(_,r);x=Ee(v=ur,vo,Oc).call(v,t,j,x,o,s+1),r.push(j);continue}k+=_}return r.push(k),x}let p=n+1,h=new ur(null,r);const b=[];let S="";for(;p<t.length;){const x=t.charAt(p++);if(c||x==="\\"){c=!c,S+=x;continue}if(u){p===d+1?(x==="^"||x==="!")&&(g=!0):x==="]"&&!(p===d+2&&g)&&(u=!1),S+=x;continue}else if(x==="["){u=!0,d=p,g=!1,S+=x;continue}if(!o.noext&&pp(x)&&t.charAt(p)==="("&&(s<=l||r&&Ee(y=r,Ue,Tc).call(y,x))){const _=r&&Ee(m=r,Ue,Tc).call(m,x)?0:1;h.push(S),S="";const R=new ur(x,h);h.push(R),p=Ee(w=ur,vo,Oc).call(w,t,R,p,o,s+_);continue}if(x==="|"){h.push(S),S="",b.push(h),h=new ur(null,r);continue}if(x===")")return S===""&&le(r,Ce).length===0&&rt(r,Ni,!0),h.push(S),S="",r.push(...b,h),p;S+=x}return r.type=null,rt(r,zt,void 0),rt(r,Ce,[t.substring(n-1)]),p},vS=function(t){return Ee(this,Ue,hp).call(this,t,J6)},hp=function(t,r=X6){if(!t||typeof t!="object"||t.type!==null||le(t,Ce).length!==1||this.type===null)return!1;const n=le(t,Ce)[0];return!n||typeof n!="object"||n.type===null?!1:Ee(this,Ue,Tc).call(this,n.type,r)},Tc=function(t,r=Q6){var n;return!!((n=r.get(this.type))!=null&&n.includes(t))},mS=function(t,r){const n=le(t,Ce)[0],o=new ur(null,n,this.options);le(o,Ce).push(""),n.push(o),Ee(this,Ue,gp).call(this,t,r)},gp=function(t,r){const n=le(t,Ce)[0];le(this,Ce).splice(r,1,...le(n,Ce));for(const o of le(n,Ce))typeof o=="object"&&rt(o,mt,this);rt(this,bn,void 0)},bS=function(t){const r=Iy.get(this.type);return!!(r!=null&&r.has(t))},yS=function(t){if(!t||typeof t!="object"||t.type!==null||le(t,Ce).length!==1||this.type===null||le(this,Ce).length!==1)return!1;const r=le(t,Ce)[0];return!r||typeof r!="object"||r.type===null?!1:Ee(this,Ue,bS).call(this,r.type)},wS=function(t){const r=Iy.get(this.type),n=le(t,Ce)[0],o=r==null?void 0:r.get(n.type);if(!o)return!1;rt(this,Ce,le(n,Ce));for(const s of le(this,Ce))typeof s=="object"&&rt(s,mt,this);this.type=o,rt(this,bn,void 0),rt(this,Ni,!1)},Ac=function(){var t,r;if(Cy(this)){let n=0,o=!1;do{o=!0;for(let s=0;s<le(this,Ce).length;s++){const l=le(this,Ce)[s];typeof l=="object"&&(Ee(r=l,Ue,Ac).call(r),Ee(this,Ue,hp).call(this,l)?(o=!1,Ee(this,Ue,gp).call(this,l,s)):Ee(this,Ue,vS).call(this,l)?(o=!1,Ee(this,Ue,mS).call(this,l,s)):Ee(this,Ue,yS).call(this,l)&&(o=!1,Ee(this,Ue,wS).call(this,l)))}}while(!o&&++n<10)}else for(const n of le(this,Ce))typeof n=="object"&&Ee(t=n,Ue,Ac).call(t);rt(this,bn,void 0)},vp=function(t){return le(this,Ce).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,o,s,l]=r.toRegExpSource(t);return rt(this,Bn,le(this,Bn)||l),n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},xS=function(t,r,n=!1){let o=!1,s="",l=!1,c=!1;for(let u=0;u<t.length;u++){const d=t.charAt(u);if(o){o=!1,s+=(n$.has(d)?"\\":"")+d;continue}if(d==="*"){if(c)continue;c=!0,s+=n&&/^[*]+$/.test(t)?Ny:Py,r=!0;continue}else c=!1;if(d==="\\"){u===t.length-1?s+="\\\\":o=!0;continue}if(d==="["){const[g,p,h,b]=Y6(t,u);if(h){s+=g,l=l||p,u+=h-1,r=r||b;continue}}if(d==="?"){s+=mh,r=!0;continue}s+=o$(d)}return[s,na(t),!!r,l]},Ht(pu,vo);ur=pu;const s$=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),qt=(e,t,r={})=>(qc(t),!r.nocomment&&t.charAt(0)==="#"?!1:new hu(t,r).match(e)),a$=/^\*+([^+@!?*[(]*)$/,l$=e=>t=>!t.startsWith(".")&&t.endsWith(e),c$=e=>t=>t.endsWith(e),u$=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),d$=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),f$=/^\*+\.\*+$/,p$=e=>!e.startsWith(".")&&e.includes("."),h$=e=>e!=="."&&e!==".."&&e.includes("."),g$=/^\.\*+$/,v$=e=>e!=="."&&e!==".."&&e.startsWith("."),m$=/^\*+$/,b$=e=>e.length!==0&&!e.startsWith("."),y$=e=>e.length!==0&&e!=="."&&e!=="..",w$=/^\?+([^+@!?*[(]*)?$/,x$=([e,t=""])=>{const r=SS([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},S$=([e,t=""])=>{const r=ES([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},E$=([e,t=""])=>{const r=ES([e]);return t?n=>r(n)&&n.endsWith(t):r},_$=([e,t=""])=>{const r=SS([e]);return t?n=>r(n)&&n.endsWith(t):r},SS=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},ES=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},_S=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",My={win32:{sep:"\\"},posix:{sep:"/"}},k$=_S==="win32"?My.win32.sep:My.posix.sep;qt.sep=k$;const Kt=Symbol("globstar **");qt.GLOBSTAR=Kt;const O$="[^/]",T$=O$+"*?",A$="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",R$="(?:(?!(?:\\/|^)\\.).)*?",C$=(e,t={})=>r=>qt(r,e,t);qt.filter=C$;const zr=(e,t={})=>Object.assign({},e,t),I$=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return qt;const t=qt;return Object.assign((n,o,s={})=>t(n,o,zr(e,s)),{Minimatch:class extends t.Minimatch{constructor(o,s={}){super(o,zr(e,s))}static defaults(o){return t.defaults(zr(e,o)).Minimatch}},AST:class extends t.AST{constructor(o,s,l={}){super(o,s,zr(e,l))}static fromGlob(o,s={}){return t.AST.fromGlob(o,zr(e,s))}},unescape:(n,o={})=>t.unescape(n,zr(e,o)),escape:(n,o={})=>t.escape(n,zr(e,o)),filter:(n,o={})=>t.filter(n,zr(e,o)),defaults:n=>t.defaults(zr(e,n)),makeRe:(n,o={})=>t.makeRe(n,zr(e,o)),braceExpand:(n,o={})=>t.braceExpand(n,zr(e,o)),match:(n,o,s={})=>t.match(n,o,zr(e,s)),sep:t.sep,GLOBSTAR:Kt})};qt.defaults=I$;const kS=(e,t={})=>(qc(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:B6(e,{max:t.braceExpandMax}));qt.braceExpand=kS;const P$=(e,t={})=>new hu(e,t).makeRe();qt.makeRe=P$;const N$=(e,t,r={})=>{const n=new hu(t,r);return e=e.filter(o=>n.match(o)),n.options.nonull&&!e.length&&e.push(t),e};qt.match=N$;const Dy=/[?*]|[+@!]\(.*?\)|\[|\]/,M$=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var Or,OS,mp,ki;class hu{constructor(t,r={}){Ht(this,Or);Ae(this,"options");Ae(this,"set");Ae(this,"pattern");Ae(this,"windowsPathsNoEscape");Ae(this,"nonegate");Ae(this,"negate");Ae(this,"comment");Ae(this,"empty");Ae(this,"preserveMultipleSlashes");Ae(this,"partial");Ae(this,"globSet");Ae(this,"globParts");Ae(this,"nocase");Ae(this,"isWindows");Ae(this,"platform");Ae(this,"windowsNoMagicRoot");Ae(this,"maxGlobstarRecursion");Ae(this,"regexp");qc(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||_S,this.isWindows=this.platform==="win32";const n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!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 n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let o=this.globParts.map((s,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const u=s[0]===""&&s[1]===""&&(s[2]==="?"||!Dy.test(s[2]))&&!Dy.test(s[3]),d=/^[a-z]:/i.test(s[0]);if(u)return[...s.slice(0,4),...s.slice(4).map(g=>this.parse(g))];if(d)return[s[0],...s.slice(1).map(g=>this.parse(g))]}return s.map(u=>this.parse(u))});if(this.debug(this.pattern,o),this.set=o.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(const n of t)for(let o=0;o<n.length;o++)n[o]==="**"&&(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 s=n[n.length-1];return o==="**"&&s==="**"?n:o===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(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 s=t[o];o===1&&s===""&&t[0]===""||(s==="."||s==="")&&(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!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(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 g=n.slice(0);g[o]="**",t.push(g),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 s=0;for(;(s=n.indexOf("..",s+1))!==-1;){const l=n[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const u=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...u),n.length===0&&n.push(""),s-=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,s=0,l=[],c="";for(;o<t.length&&s<r.length;)if(t[o]===r[s])l.push(c==="b"?r[s]:t[o]),o++,s++;else if(n&&t[o]==="**"&&r[s]===t[o+1])l.push(t[o]),o++;else if(n&&r[s]==="**"&&t[o]===r[s+1])l.push(r[s]),s++;else if(t[o]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",l.push(t[o]),o++,s++}else if(r[s]==="*"&&t[o]&&(this.options.dot||!t[o].startsWith("."))&&t[o]!=="**"){if(c==="a")return!1;c="b",l.push(r[s]),o++,s++}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){let o=0,s=0;if(this.isWindows){const c=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),u=!c&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),d=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),g=!d&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),p=u?3:c?0:void 0,h=g?3:d?0:void 0;if(typeof p=="number"&&typeof h=="number"){const[b,S]=[t[p],r[h]];b.toLowerCase()===S.toLowerCase()&&(r[h]=b,s=h,o=p)}}const{optimizationLevel:l=1}=this.options;return l>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(Kt)?Ee(this,Or,OS).call(this,t,r,n,o,s):Ee(this,Or,ki).call(this,t,r,n,o,s)}braceExpand(){return kS(this.pattern,this.options)}parse(t){qc(t);const r=this.options;if(t==="**")return Kt;if(t==="")return"";let n,o=null;(n=t.match(m$))?o=r.dot?y$:b$:(n=t.match(a$))?o=(r.nocase?r.dot?d$:u$:r.dot?c$:l$)(n[1]):(n=t.match(w$))?o=(r.nocase?r.dot?S$:x$:r.dot?E$:_$)(n):(n=t.match(f$))?o=r.dot?h$:p$:(n=t.match(g$))&&(o=v$);const s=pu.fromGlob(t,this.options).toMMPattern();return o&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:o}),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,n=r.noglobstar?T$:r.dot?A$:R$,o=new Set(r.nocase?["i"]:[]);let s=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"?M$(p):p===Kt?Kt:p._src});d.forEach((p,h)=>{const b=d[h+1],S=d[h-1];p!==Kt||S===Kt||(S===void 0?b!==void 0&&b!==Kt?d[h+1]="(?:\\/|"+n+"\\/)?"+b:d[h]=n:b===void 0?d[h-1]=S+"(?:\\/|\\/"+n+")?":b!==Kt&&(d[h-1]=S+"(?:\\/|\\/"+n+"\\/)"+b,d[h+1]=Kt))});const g=d.filter(p=>p!==Kt);if(this.partial&&g.length>=1){const p=[];for(let h=1;h<=g.length;h++)p.push(g.slice(0,h).join("/"));return"(?:"+p.join("|")+")"}return g.join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+c+"$",this.partial&&(s="^(?:\\/|"+l+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...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 s=this.set;this.debug(this.pattern,"set",s);let l=o[o.length-1];if(!l)for(let c=o.length-2;!l&&c>=0;c--)l=o[c];for(const c of s){let u=o;if(n.matchBase&&c.length===1&&(u=[l]),this.matchOne(u,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return qt.defaults(t).Minimatch}}Or=new WeakSet,OS=function(t,r,n,o,s){const l=r.indexOf(Kt,s),c=r.lastIndexOf(Kt),[u,d,g]=n?[r.slice(s,l),r.slice(l+1),[]]:[r.slice(s,l),r.slice(l+1,c),r.slice(c+1)];if(u.length){const w=t.slice(o,o+u.length);if(!Ee(this,Or,ki).call(this,w,u,n,0,0))return!1;o+=u.length,s+=u.length}let p=0;if(g.length){if(g.length+o>t.length)return!1;let w=t.length-g.length;if(Ee(this,Or,ki).call(this,t,g,n,w,0))p=g.length;else{if(t[t.length-1]!==""||o+g.length===t.length||(w--,!Ee(this,Or,ki).call(this,t,g,n,w,0)))return!1;p=g.length+1}}if(!d.length){let w=!!p;for(let x=o;x<t.length-p;x++){const k=String(t[x]);if(w=!0,k==="."||k===".."||!this.options.dot&&k.startsWith("."))return!1}return n||w}const h=[[[],0]];let b=h[0],S=0;const v=[0];for(const w of d)w===Kt?(v.push(S),b=[[],0],h.push(b)):(b[0].push(w),S++);let y=h.length-1;const m=t.length-p;for(const w of h)w[1]=m-(v[y--]+w[0].length);return!!Ee(this,Or,mp).call(this,t,h,o,0,n,0,!!p)},mp=function(t,r,n,o,s,l,c){const u=r[o];if(!u){for(let p=n;p<t.length;p++){c=!0;const h=t[p];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return c}const[d,g]=u;for(;n<=g;){if(Ee(this,Or,ki).call(this,t.slice(0,n+d.length),d,s,n,0)&&l<this.maxGlobstarRecursion){const b=Ee(this,Or,mp).call(this,t,r,n+d.length,o+1,s,l+1,c);if(b!==!1)return b}const h=t[n];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;n++}return s||null},ki=function(t,r,n,o,s){let l,c,u,d;for(l=o,c=s,d=t.length,u=r.length;l<d&&c<u;l++,c++){this.debug("matchOne loop");let g=r[c],p=t[l];if(this.debug(r,g,p),g===!1||g===Kt)return!1;let h;if(typeof g=="string"?(h=p===g,this.debug("string match",g,p,h)):(h=g.test(p),this.debug("pattern match",g,p,h)),!h)return!1}if(l===d&&c===u)return!0;if(l===d)return n;if(c===u)return l===d-1&&t[l]==="";throw new Error("wtf?")};qt.AST=pu;qt.Minimatch=hu;qt.escape=s$;qt.unescape=na;var bh=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(bh||{});const tn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var He=(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))(He||{}),wo=(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))(wo||{}),yh=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(yh||{});const wh="roles.json",xh="qodlyApp.json",TS="model.4DModel",Sh="HTTPHandlers.json",Eh="Shared/i18n.json",AS=[{pattern:xh,editor:{key:"editors:settings"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:wh,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:Sh,editor:{key:"editors:http-handlers"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:Eh,editor:{key:"editors:localization"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:TS,editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.webform",editor:{key:"editors:webforms"},supportedEditors:[{key:"editors:event-report"},{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.qodoc",editor:{key:"editors:reports"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"Methods/*.4dm",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Methods/*.4qs",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4dm",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4qs",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(json)",editor:{key:"editors:code",config:{language:"json"}}},{pattern:"**/*.+(js)",editor:{key:"editors:code",config:{language:"js"}}},{pattern:"**/*.+(css)",editor:{key:"editors:code",config:{language:"css"}}},{pattern:"**/*.+(txt)",editor:{key:"editors:code",config:{language:""}}},{pattern:"Debugger/*",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(png|jpeg|jpg|gif|svg)",editor:{key:"editors:img"}}];function D$(e){const t=_h(e);switch(t){case He.SETTINGS:return{filename:"Settings",type:t};case He.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case He.ROLES:return{filename:"Roles & Privileges",type:t};case He.LOCALIZATION:return{filename:"Localization",type:t};case He.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[n]=r[1].split(".");return{filename:n,type:t}}}}function L$(e){const t=AS.find(({pattern:r})=>qt(e,r,{nocase:!0}));return t||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function _h(e){const t=e.split("."),r=t.pop(),n=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return He.MODEL;case r==="WebForm":return He.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&n===tn.METHODS):return He.METHOD;case(["4dm","4qs","4qm"].includes(r)&&n===tn.CLASSES):return He.CLASS;case e===wh:return He.ROLES;case e===Sh:return He.HTTP_HANDLERS;case e===xh:return He.SETTINGS;case e===Eh:return He.LOCALIZATION;default:return He.TEXT}}function RS(e,t=!1){switch(e){case tn.REPORTS:case"report":return"QoDoc";case tn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case tn.CLASSES:case tn.METHODS:return t?"4qs":"4dm";default:return""}}function z$(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function $$(e,t,r){switch(t){case He.MOBILEFORM:return`${e}.MForm`;case He.WEBFORM:return`${e}.WebForm`;case He.REPORT:return`${e}.QoDoc`;case He.METHOD:case He.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class CS{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 kh(){const e=new CS;return async t=>{const r=await e.lock();try{const n=await t();return r(),n}catch(n){console.error(n),r();return}}}const j$="4DWS_PREFS",IS=We.curry((e,t,r)=>e&&We.get(r,e)===t),F$=We.curry((e,t,r)=>We.get(r,e)!==t),B$=We.curry((e,t)=>We.get(t,"id")!==e),H$=We.curry((e,t)=>We.get(t,"id")===e),W$=We.curry((e,t)=>We.get(t,"path")===e);function V$(e="id",t,r){return r.findIndex(IS(e,t))!==-1}function PS(e,t){return e==null?void 0:e.localeCompare(t,void 0,{numeric:!0})}function U$(){try{const e=localStorage.getItem(j$);return{...e?JSON.parse(e):{},"features.experimental.i18n":!0}}catch(e){console.error(e)}}function q$(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function Oh(e=""){const t=e.trim().split(":")||[];let r="",n="";return t.length>1?(r=t[1],n=t[0]):r=t[0],{id:r,namespace:n,root:r.split(".").filter(Boolean)[0],original:n?`${n}:${r}`:r,parts:t}}function NS(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}const G$={bool:"bool",string:"string",text:"string",uuid:"string",short:"number",long:"number",number:"number",long64:"number",duration:"number",object:"object",date:"date",blob:"blob",image:"image",word:"number"};function Z$(e){return e?G$[e]:void 0}function Y$(e){return e.type==="object"}function MS(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function DS(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!NS(e)}function K$(e){return MS(e)||DS(e)}function X$(e){return e.applyTo==="dataStore"}function J$(e){return e.applyTo==="dataClass"}function Q$(e){return e.applyTo==="entity"}function ej(e){return e.applyTo==="entityCollection"}function tj(e){return e.type==="entity"}function rj(e){return e.type==="entitysel"}function LS(e){return e.dataType==="array"}function zS(e){return e.dataType==="object"}function $S(e){return e.type==="scalar"}function nj(e){return LS(e)||zS(e)||$S(e)}const oj=e=>e!=null&&e.type==="entity",ij=e=>e.type==="entitysel",sj=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",aj=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",lj=e=>e.type==="scalar"&&e.dataType==="date",cj=(e,t)=>(e||"")===(t||"");function uj(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function dj(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const oa="Qodly",jS="Location",FS="UserLanguage",BS="Title",Gc={[oa]:[{id:BS,dataType:"string",type:"scalar",namespace:oa,initialValue:""},{id:jS,dataType:"object",type:"scalar",namespace:oa,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:FS,dataType:"object",type:"scalar",namespace:oa,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 Ea=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(Ea||{}),HS=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(HS||{}),Th=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Th||{});const fj={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function pj(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,...n}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:Ea.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Th.table}},...n}}function WS(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[Ea.capable,Ea.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 hj(e,t,r=!1){const n=We.isString(t)?t:WS(t);if(!r&&VS(e))return e;const o=US(e);return`//%attributes = ${n}\r
254
+ ${o}`}function VS(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function US(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const bp=()=>mo.uuid().replaceAll("-","").toUpperCase();function gj(e){var o,s;const t=new Map,r=new Map,n=new Map;return(o=e.singletons)==null||o.forEach(({methods:l=[],...c})=>{n.set(c.name,{...c,methods:l})}),(s=e.dataClasses)==null||s.forEach(({methods:l=[],...c})=>{const u={...c,methods:l};if(u.uuid||(u.uuid=bp()),u.attributes){const d=["storage","relatedEntity"];u.attributes=u.attributes.map(g=>d.includes(g.kind)&&!g.uuid?{...g,uuid:bp()}:g)}r.set(u.className,u),t.set(u.collectionName,u)}),{...e,methods:e.methods||[],dataClasses:Object.fromEntries(r.entries()),dataClassByCollectionName:Object.fromEntries(t.entries()),singletons:Object.fromEntries(n.entries())}}const vj=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var Qe=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(Qe||{}),ht=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(ht||{});const mj=[Qe.DATASTORE,Qe.DATACLASS,Qe.ATTRIBUTE,Qe.SINGLETON_METHOD,Qe.SINGLETON,Qe.METHOD,ht.DS_METHOD,ht.DATACLASS_METHOD,ht.ENTITY_METHOD,ht.ENTITY_SEL_METHOD],Ly=e=>[ht.DS_METHOD,ht.ENTITY_METHOD,ht.DATACLASS_METHOD].includes(e)?Qe.METHOD:e,Zc="guest",Ah=[{key:"read",label:"Read",canApplyTo:[Qe.DATASTORE,Qe.DATACLASS,Qe.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Qe.DATASTORE,Qe.DATACLASS,Qe.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Qe.DATASTORE,Qe.DATACLASS,Qe.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Qe.DATASTORE,Qe.DATACLASS,Qe.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[Qe.DATASTORE,Qe.DATACLASS,Qe.METHOD,ht.DS_METHOD,ht.DATACLASS_METHOD,ht.ENTITY_METHOD,ht.ENTITY_SEL_METHOD,Qe.SINGLETON,Qe.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[Qe.METHOD,ht.DS_METHOD,ht.DATACLASS_METHOD,ht.ENTITY_METHOD,ht.ENTITY_SEL_METHOD,Qe.SINGLETON_METHOD]}];function Wr(e,...t){return Array.from(new Set([...e,...t]))}function qS(e){const t={},r=new Map;e.forEach(u=>{const d=u.id||mo.generate();t[d]={...u,id:d,parents:[],includes:Wr(u.includes||[]),resources:[]},r.set(u.privilege,d)}),Object.entries(t).forEach(([u,d])=>{const g=d.includes.map(p=>{const h=r.get(p);return h?(t[h].parents=Wr(t[h].parents,h),h):""}).filter(Boolean);t[u]={...d,includes:g}});const n=GS(t),o=new Set;function s(u){o.add(u.id),u.includes=u.includes.filter(d=>!o.has(d))}if(n.forEach(s),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===Zc))return t;const c=mo.generate();return{[c]:{id:c,privilege:Zc,includes:[],parents:[],resources:[]},...t}}function GS(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function gu(e,t){const r=t[e];let n=[];return r&&r.parents.forEach(o=>{n=Wr(n,...gu(o,t),o)}),n}function Yc(e,t){const r=t[e];let n=[];return r&&r.includes.forEach(o=>{n=Wr(n,...Yc(o,t),o)}),n}function bj(e,t){const r=t[e];if(!r)return[];const n=[e,...gu(e,t),...r.includes];return Object.keys(t).filter(o=>!n.includes(o))}function yj(e,t){return t[e]?Object.keys(t).reduce((n,o)=>o===e?n:{...n,[o]:{...t[o],parents:t[o].parents.filter(s=>s!==e),includes:t[o].includes.filter(s=>s!==e)}},{}):t}function wj(e,t,r){const n=r[e],o=r[t];return!n||!o?r:{...r,[e]:{...r[e],includes:Wr(n.includes,t)},[t]:{...r[t],parents:Wr(o.parents,e)}}}function xj(e,t,r){const n=r[e],o=r[t];return!n||!o?r:{...r,[e]:{...r[e],includes:r[e].includes.filter(s=>s!==t)},[t]:{...r[t],parents:r[t].parents.filter(s=>s!==e)}}}function Sj(e,t){du(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=mo.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function Ej(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 _j(e,t){return e.map(r=>Un(r,t))}function Un(e,t){return t[e]?t[e]:null}function ZS({applyTo:e,type:t,...r}){return Object.entries(r).reduce((n,[o,s])=>{const l=We.find(Ah,["key",o]);return!l||!l.canApplyTo.includes(t)||(typeof s=="string"?s.split(","):s).forEach(u=>{n[u]=Wr(n[u]||[],o)}),n},{})}const zy=(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 Rh(e){return{permissions:Ah.filter(({canApplyTo:t})=>t.includes(e.type)).map(({key:t,label:r})=>{const n={name:t,from:[]};switch(e.type){case Qe.DATASTORE:return{...n,info:zy(r,!0)};case Qe.DATACLASS:return{...n,info:zy(r)};default:return n}}),resource:e.applyTo,type:e.type}}function YS(e,t){const r=KS(t),n={};return e.filter(({type:o})=>mj.includes(o)).forEach(o=>{const s=ZS(o);Object.entries(s).forEach(([l,c])=>{var g;const u=(g=r[l])==null?void 0:g.id;if(!u)return;n[u]=n[u]||{...t[u]};let d=We.find(n[u].resources,{resource:o.applyTo,type:o.type});d||(d=Rh(o),n[u].resources.push(d)),d.permissions=d.permissions.map(p=>({...p,checked:p.checked||c.includes(p.name)}))})}),{...t,...n}}function KS(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function kj(e){var r;if(!e)throw new Error("Invalid roles data");const t=qS(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:YS(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:n=mo.generate(),role:o,privileges:s=[]})=>({id:n,role:o,privileges:Wr(s).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 Oj(e){const t=Object.values(e.privileges).filter(({includes:n})=>n.length===0).map(({id:n})=>n),r=[...t,...t.map(n=>gu(n,e.privileges).reverse())].flat().filter((n,o,s)=>s.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:s,resource:l,type:c})=>{let u=We.find(n,{applyTo:l,type:Ly(c)});u||(u={applyTo:l,type:Ly(c)},n.push(u)),s.forEach(({name:d,checked:g})=>{g&&u&&(u[d]=u[d]||[],u[d].push(o.privilege))})}),n),[])},privileges:r.filter(({privilege:n})=>n!==Zc).map(({id:n,includes:o,privilege:s})=>({id:n,privilege:s,includes:o.map(l=>e.privileges[l].privilege)})),roles:Object.values(e.roles).map(n=>({...n,privileges:n.privileges.map(o=>{var s;return(s=e.privileges[o])==null?void 0:s.privilege}).filter(Boolean)}))}}function Tj(e,t){const r=t[e],n={children:[],links:[],parents:[],selected:e};if(!r)return n;function o(c,u,d=[]){const g=c.reduce((p,h)=>[...p,...t[h][u]],[]);return g.length===0?d:(d.push(g),o(g,u,d))}function s(c){const u=[],d=[];for(let g=c.length-1;g>=0;g-=1){const p=c[g].filter(h=>u.includes(h)?!1:(u.push(h),!0));p.length>0&&d.unshift(Wr(p))}return d}function l(c,u){const d=[];return c.reduce((g,p)=>(p.forEach(h=>{t[h][u==="parents"?"includes":"parents"].forEach(S=>{d.includes(S)&&g.push(u==="parents"?{source:h,target:S}:{source:S,target:h})}),d.push(h)}),g),[])}return n.children=o([e],"includes"),n.children=s(n.children),n.parents=o([e],"parents"),n.parents=s(n.parents),n.links=[...l([[e],...n.parents],"parents"),...l([[e],...n.children],"includes")],n}function Aj(e,t,r){const n=Un(e,r);if(!n||We.find(n.resources,{resource:t.applyTo,type:t.type}))return r;const o={...n,resources:[...n.resources,Rh(t)]};return{...r,[e]:o}}function Rj(e,t,r){const n=Un(e,r);if(!n)return r;const o={...n,resources:n.resources.filter(({resource:s,type:l})=>s!==t.applyTo||l!==t.type)};return{...r,[e]:o}}function Cj(e,t){const r=Object.entries(e).map(([n,o])=>{const s=Un(n,t);if(!s)return{[n]:t[n]};const l={...s,resources:s.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 Ij(e,t){const r=Un(e,t);if(!r)return t;const n={...r,resources:r.resources.filter(o=>o.permissions.some(s=>s.from.length)).map(o=>({...o,permissions:o.permissions.map(s=>({...s,checked:!1}))}))};return{...t,[e]:n}}function Pj(e,t,r,n){const o=Un(e,n);if(!o)return n;const l=We.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 Nj(e,t){var u;const r=XS(e,t)||[],n=((u=Un(e,t))==null?void 0:u.resources)||[],l=([...r,...n].filter(({type:d})=>[ht.DS_METHOD,ht.DATACLASS_METHOD,ht.ENTITY_METHOD,ht.ENTITY_SEL_METHOD].includes(d))||[]).map(({resource:d})=>d);return Object.entries(t).reduce((d,[g,{resources:p}])=>(p.filter(({resource:h,type:b})=>[ht.DS_METHOD,ht.DATACLASS_METHOD,ht.ENTITY_METHOD,ht.ENTITY_SEL_METHOD].includes(b)&&l.includes(h)).forEach(({permissions:h,resource:b})=>{var v;((v=h.find(({name:y})=>y==="promote"))==null?void 0:v.checked)&&(d[b]=Wr(d[b]||[],g))}),d),{})}function XS(e,t){var l;const r=Un(e,t);if(!r)return[];const n=(l=Object.values(t).find(c=>c.privilege===Zc))==null?void 0:l.id;return(n&&n!==e?Wr(Yc(e,t),n):Yc(e,t)).reduce((c,u)=>(t[u].resources.forEach(g=>{if(g.permissions.filter(({checked:b,name:S})=>b&&S!=="promote").length===0)return;const h=We.find(c,{type:g.type,resource:g.resource});if(!h){c.push({...g,permissions:g.permissions.map(b=>({...b,from:b.checked?[u]:[],checked:!1}))});return}h.permissions=h.permissions.map((b,S)=>{let{from:v=[]}=b;return g.permissions[S].checked&&!v.includes(u)&&(v=[...v,u]),{...b,from:v,checked:b.checked}})}),c),We.clone(r.resources.map(c=>({...c,permissions:c.permissions.map(({checked:u,...d})=>({...d,checked:!!u}))}))))}const Mj=(e,t,r)=>{const n={id:e,role:t,privileges:[]};return{...r,[n.id]:n}},Dj=(e,t)=>t[e]?Object.values(t).reduce((r,n)=>e===n.id||n.role===""?r:{...r,[n.id]:n},{}):t,Lj=(e,t)=>{if(du(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},{})};function JS(e){var r;if(!e||typeof e!="object")return[];const t=((r=e.__STATUS)==null?void 0:r.errors)??e.__ERRORS??e.errorStack;return Array.isArray(t)?t:[]}function QS(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function zj(e,t){const r=JS(e);return QS(r,t)}function $j(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}var eE=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(eE||{}),tE=(e=>(e.GROUP="group",e.TEXT_FIELD="textfield",e.COLOR_PICKER="colorpicker",e.LAYOUT="layout",e.RADIOGROUP="radiogroup",e.SELECT="select",e.BORDERS="borders",e.BORDER_RADIUS="borderRadius",e.DIMENSIONS="dimensions",e.COMBOBOX="combobox",e.UNITFIELD="unitfield",e.DATAGRID="datagrid",e.CHECKBOX="checkbox",e.NUMBER_FIELD="number",e.FORMAT_FIELD="format",e.DISPLAY="display",e.BOXSHADOW="boxshadow",e.CSSCLASS_SELECTOR="cssClassSelector",e.CUSTOM_STYLE_PROPS_SELECTOR="customStylePropertiesSelector",e.ICON_PICKER="iconPicker",e.ASYNC_SELECT="asyncSelect",e.DS_AUTO_SUGGEST="dsAutoSuggest",e.POSITION="position",e.BACKGROUND="background",e.SELECTBOXLENGTH="selectBoxLength",e.I18NFIELD="i18nField",e.DATE_INTERVALS="dateIntervals",e.SEARCH_MODE="searchMode",e))(tE||{}),rE=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(rE||{}),Ch=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Ch||{}),nE=(e=>(e.GRID="grid",e.COMPACT="compact",e))(nE||{}),oE=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(oE||{}),iE=(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))(iE||{});const jj={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"};var sE=(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))(sE||{});const aE={label:"Base",id:"root"},Fj=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],Bj=e=>e.id===aE.id,Ih=(e,t,r="")=>t?e.type==="currentState"&&e.value===t?{...e,value:r}:e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(n=>Ih(n,t,r))}:e:e;function Hj(e,t){const{id:r,label:n}=t;return{...e,components:Object.entries(e.components||{}).reduce((o,[s,l])=>({...o,[s]:{...l,custom:Object.entries(l.custom).reduce((c,[u,d])=>u===`states:${r}`?c:{...c,[u]:d},{}),props:Object.entries(l.props).reduce((c,[u,d])=>{let g=d;return u==="events"&&(g=g.map(p=>{var h,b;return p.type==="simple-action"?{...p,state:{...p.state,states:(b=(h=p.state)==null?void 0:h.states)==null?void 0:b.filter(S=>S!==r)}}:p})),{...c,[u]:g}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(o=>(o==null?void 0:o.id)!==r).map(o=>o.conditions?{...o,conditions:Ih(o.conditions,n)}:o)}}}const lE=(e,t,r)=>{switch(e.type){case"datasource":return{...e,path:e.path===t?r:e.path,value:e.valueType==="datasource"&&e.value===t?r:e.value,compareValue:e.compareValueType==="datasource"&&e.compareValue===t?r:e.compareValue};case"privilege":case"currentState":case"parentState":if(e.valueType==="datasource")return{...e,value:e.value===t?r:e.value};break;case"combination":return{...e,conditions:(e.conditions||[]).map(n=>lE(n,t,r))}}return e},cE=(e,t)=>{if(e.id===t||e.type==="reference"&&e.ref===t)return null;if(e.type==="combination"&&e.conditions){const r=e.conditions.map(n=>cE(n,t)).filter(Boolean);return r.length===1?{...r[0],id:e.id}:{...e,conditions:r}}return e},uE=e=>e.id?e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(uE)}:e:{...e,id:mo.generate()};function Wj(e,t={}){switch(e){case He.WEBFORM:case He.WEBFORMS:{const r={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white w-full px-6",classNames:[],events:[]},displayName:"Page",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return t["webforms.display-mode"]===Ch.AIRY&&(r.components.ROOT.props.airyMode=!0),r}case He.REPORT:return{metadata:{v:"1.0",datasources:[],styles:[]},pages:[{name:"doc",id:"index",components:{ROOT:{type:{resolvedName:"Document"},isCanvas:!0,props:{classNames:[],events:[],airyMode:!1,className:"bg-white w-full px-6"},displayName:"Document",custom:{},parent:"",hidden:!1,nodes:[],linkedNodes:{}}}}]};case He.METHOD:case He.METHODS:return`//%attributes = {}
255
+ `;case He.HTTP_HANDLERS:return[];case He.LOCALIZATION:case He.SETTINGS:return{};case He.ROLES:return{permissions:{allowed:[]},privileges:[],roles:[]};default:return""}}function Vj(e,t){return We.isEqual(e,t)}function Uj(e,t){const{qodly:r=!0,withExtension:n=!0}=t||{},o=RS(e.type,r);let s="";switch(e.type){case He.WEBFORM:s=`${tn.WEBFORMS}/${e.name}`;break;case He.METHOD:s=`${tn.METHODS}/${e.name}`;break;case He.CLASS:s=`${tn.CLASSES}/${e.name}`;break;default:return""}return`${s}${n?`.${o}`:""}`}function dE(...e){return(...t)=>{e.forEach(r=>r==null?void 0:r(...t))}}const qj=dE;function Gj(e){return e?"":void 0}function Zj(e,t){if(!e)return;const r=()=>{e.focus(t)};if(t!=null&&t.nextTick){requestAnimationFrame(r);return}r()}function Yj(...e){return t=>{e.forEach(r=>{if(r){if(typeof r=="function"){r(t);return}r.current=t}})}}function Kj({condition:e,message:t}){!e||process.env.NODE_ENV==="production"||console.warn(t)}const Xj={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Jj(e,t){return e.some(r=>String(r)===String(t))?e:[...e,t]}function Qj(e){return typeof e=="object"&&e!==null&&"target"in e&&typeof e.target=="object"}function e8(e){e.preventDefault(),e.stopPropagation()}const Kc={studio:{},abyss:{"--vscode-editor-background":"#000c18","--vscode-editor-foreground":"#6688cc","--vscode-editor-lineHighlightBackground":"#082050","--vscode-editor-selectionBackground":"#770811","--vscode-editorCursor-foreground":"#ddbb88","--vscode-editorLineNumber-foreground":"#2c3e50","--vscode-editorLineNumber-activeForeground":"#6688cc","--vscode-button-background":"#2B3C5D","--vscode-button-foreground":"#ffffff","--vscode-button-hoverBackground":"#1D4A87","--vscode-input-background":"#181f2f","--vscode-input-foreground":"#6688cc","--vscode-input-border":"#2b2b4a","--vscode-dropdown-background":"#181f2f","--vscode-dropdown-foreground":"#6688cc","--vscode-checkbox-background":"#181f2f","--vscode-checkbox-border":"#2b2b4a","--vscode-sideBar-background":"#060621","--vscode-sideBar-foreground":"#6688cc","--vscode-sideBarSectionHeader-background":"#10192c","--vscode-panel-background":"#000c18","--vscode-panel-border":"#2b2b4a","--vscode-activityBar-background":"#051336","--vscode-activityBar-foreground":"#6688cc","--vscode-statusBar-background":"#10192c","--vscode-statusBar-foreground":"#6688cc","--vscode-focusBorder":"#1D4A87","--vscode-widget-shadow":"#00000080","--vscode-list-activeSelectionBackground":"#08286b","--vscode-list-activeSelectionForeground":"#ffffff","--vscode-list-hoverBackground":"#061940","--vscode-list-focusBackground":"#061940","--vscode-editorError-foreground":"#ff6666","--vscode-editorWarning-foreground":"#ffbb66","--vscode-editorInfo-foreground":"#6688cc","--vscode-descriptionForeground":"#6688cc88","--vscode-errorForeground":"#ff6666","--vscode-tab-activeBackground":"#060621","--vscode-tab-activeForeground":"#6688cc","--vscode-tab-inactiveBackground":"#000c18","--vscode-tab-border":"#2b2b4a","--vscode-editorGroupHeader-tabsBackground":"#060621","--vscode-tab-hoverBackground":"#06194d","--vscode-tab-activeBorderTop":"#6688cc","--vscode-editorWidget-background":"#000c18"},dracula:{"--vscode-editor-background":"#282a36","--vscode-editor-foreground":"#f8f8f2","--vscode-editor-lineHighlightBackground":"#44475a","--vscode-editor-selectionBackground":"#44475a","--vscode-editorCursor-foreground":"#f8f8f0","--vscode-editorLineNumber-foreground":"#6272a4","--vscode-editorLineNumber-activeForeground":"#f8f8f2","--vscode-button-background":"#44475a","--vscode-button-foreground":"#f8f8f2","--vscode-button-hoverBackground":"#6272a4","--vscode-input-background":"#282a36","--vscode-input-foreground":"#f8f8f2","--vscode-input-border":"#bd93f9","--vscode-dropdown-background":"#44475a","--vscode-dropdown-foreground":"#f8f8f2","--vscode-checkbox-background":"#44475a","--vscode-checkbox-border":"#bd93f9","--vscode-sideBar-background":"#21222c","--vscode-sideBar-foreground":"#f8f8f2","--vscode-sideBarSectionHeader-background":"#282a36","--vscode-panel-background":"#282a36","--vscode-panel-border":"#6272a4","--vscode-activityBar-background":"#282a36","--vscode-activityBar-foreground":"#f8f8f2","--vscode-statusBar-background":"#191a21","--vscode-statusBar-foreground":"#f8f8f2","--vscode-focusBorder":"#6272a4","--vscode-widget-shadow":"#000000","--vscode-list-activeSelectionBackground":"#44475a","--vscode-list-activeSelectionForeground":"#f8f8f2","--vscode-list-hoverBackground":"#44475a75","--vscode-list-focusBackground":"#44475a75","--vscode-editorError-foreground":"#ff5555","--vscode-editorWarning-foreground":"#ffb86c","--vscode-editorInfo-foreground":"#8be9fd","--vscode-descriptionForeground":"#6272a4","--vscode-errorForeground":"#ff5555","--vscode-tab-activeBackground":"#282a36","--vscode-tab-activeForeground":"#f8f8f2","--vscode-tab-inactiveBackground":"#21222c","--vscode-tab-border":"#191a21","--vscode-editorGroupHeader-tabsBackground":"#191a21","--vscode-tab-hoverBackground":"#343746","--vscode-tab-activeBorderTop":"#ff79c6","--vscode-editorWidget-background":"#21222c"},oneDarkPro:{"--vscode-editor-background":"#282c34","--vscode-editor-foreground":"#abb2bf","--vscode-editor-lineHighlightBackground":"#2c313c","--vscode-editor-selectionBackground":"#67769660","--vscode-editorCursor-foreground":"#528bff","--vscode-editorLineNumber-foreground":"#495162","--vscode-editorLineNumber-activeForeground":"#abb2bf","--vscode-button-background":"#404754","--vscode-button-foreground":"#d7dae0","--vscode-button-hoverBackground":"#4b5363","--vscode-input-background":"#1d1f23","--vscode-input-foreground":"#abb2bf","--vscode-input-border":"#181a1f","--vscode-dropdown-background":"#1d1f23","--vscode-dropdown-foreground":"#abb2bf","--vscode-checkbox-background":"#1d1f23","--vscode-checkbox-border":"#181a1f","--vscode-sideBar-background":"#21252b","--vscode-sideBar-foreground":"#abb2bf","--vscode-sideBarSectionHeader-background":"#282c34","--vscode-panel-background":"#282c34","--vscode-panel-border":"#282c34","--vscode-activityBar-background":"#282c34","--vscode-activityBar-foreground":"#d7dae0","--vscode-statusBar-background":"#21252b","--vscode-statusBar-foreground":"#9da5b4","--vscode-focusBorder":"#528bff","--vscode-widget-shadow":"#00000088","--vscode-list-activeSelectionBackground":"#2c313a","--vscode-list-activeSelectionForeground":"#d7dae0","--vscode-list-hoverBackground":"#2c313c","--vscode-list-focusBackground":"#2c313c","--vscode-editorError-foreground":"#f44747","--vscode-editorWarning-foreground":"#d19a66","--vscode-editorInfo-foreground":"#4b91f1","--vscode-descriptionForeground":"#636b78","--vscode-errorForeground":"#f44747","--vscode-tab-activeBackground":"#282c34","--vscode-tab-activeForeground":"#d7dae0","--vscode-tab-inactiveBackground":"#21252b","--vscode-tab-border":"#181a1f","--vscode-editorGroupHeader-tabsBackground":"#21252b","--vscode-tab-hoverBackground":"#323842","--vscode-tab-activeBorderTop":"#528bff","--vscode-editorWidget-background":"#21252b"},tokyoNight:{"--vscode-editor-background":"#1a1b26","--vscode-editor-foreground":"#a9b1d6","--vscode-editor-lineHighlightBackground":"#292e42","--vscode-editor-selectionBackground":"#515c7e40","--vscode-editorCursor-foreground":"#c0caf5","--vscode-editorLineNumber-foreground":"#3b4261","--vscode-editorLineNumber-activeForeground":"#737aa2","--vscode-button-background":"#7aa2f7","--vscode-button-foreground":"#1a1b26","--vscode-button-hoverBackground":"#6690e0","--vscode-input-background":"#1a1b26","--vscode-input-foreground":"#a9b1d6","--vscode-input-border":"#292e42","--vscode-dropdown-background":"#1a1b26","--vscode-dropdown-foreground":"#a9b1d6","--vscode-checkbox-background":"#1a1b26","--vscode-checkbox-border":"#292e42","--vscode-sideBar-background":"#16161e","--vscode-sideBar-foreground":"#a9b1d6","--vscode-sideBarSectionHeader-background":"#1a1b26","--vscode-panel-background":"#1a1b26","--vscode-panel-border":"#292e42","--vscode-activityBar-background":"#16161e","--vscode-activityBar-foreground":"#7aa2f7","--vscode-statusBar-background":"#16161e","--vscode-statusBar-foreground":"#7982a9","--vscode-focusBorder":"#7aa2f7","--vscode-widget-shadow":"#00000080","--vscode-list-activeSelectionBackground":"#292e42","--vscode-list-activeSelectionForeground":"#c0caf5","--vscode-list-hoverBackground":"#1e202e","--vscode-list-focusBackground":"#1e202e","--vscode-editorError-foreground":"#f7768e","--vscode-editorWarning-foreground":"#e0af68","--vscode-editorInfo-foreground":"#7aa2f7","--vscode-descriptionForeground":"#565f89","--vscode-errorForeground":"#f7768e","--vscode-tab-activeBackground":"#1a1b26","--vscode-tab-activeForeground":"#c0caf5","--vscode-tab-inactiveBackground":"#16161e","--vscode-tab-border":"#16161e","--vscode-editorGroupHeader-tabsBackground":"#16161e","--vscode-tab-hoverBackground":"#1e202e","--vscode-tab-activeBorderTop":"#7aa2f7","--vscode-editorWidget-background":"#16161e"},catppuccinMocha:{"--vscode-editor-background":"#1e1e2e","--vscode-editor-foreground":"#cdd6f4","--vscode-editor-lineHighlightBackground":"#313244","--vscode-editor-selectionBackground":"#585b7066","--vscode-editorCursor-foreground":"#f5e0dc","--vscode-editorLineNumber-foreground":"#6c7086","--vscode-editorLineNumber-activeForeground":"#cdd6f4","--vscode-button-background":"#cba6f7","--vscode-button-foreground":"#1e1e2e","--vscode-button-hoverBackground":"#b4a0e5","--vscode-input-background":"#313244","--vscode-input-foreground":"#cdd6f4","--vscode-input-border":"#45475a","--vscode-dropdown-background":"#313244","--vscode-dropdown-foreground":"#cdd6f4","--vscode-checkbox-background":"#313244","--vscode-checkbox-border":"#45475a","--vscode-sideBar-background":"#181825","--vscode-sideBar-foreground":"#cdd6f4","--vscode-sideBarSectionHeader-background":"#1e1e2e","--vscode-panel-background":"#1e1e2e","--vscode-panel-border":"#313244","--vscode-activityBar-background":"#181825","--vscode-activityBar-foreground":"#cba6f7","--vscode-statusBar-background":"#181825","--vscode-statusBar-foreground":"#bac2de","--vscode-focusBorder":"#cba6f7","--vscode-widget-shadow":"#00000080","--vscode-list-activeSelectionBackground":"#45475a","--vscode-list-activeSelectionForeground":"#cdd6f4","--vscode-list-hoverBackground":"#313244","--vscode-list-focusBackground":"#313244","--vscode-editorError-foreground":"#f38ba8","--vscode-editorWarning-foreground":"#fab387","--vscode-editorInfo-foreground":"#89b4fa","--vscode-descriptionForeground":"#6c7086","--vscode-errorForeground":"#f38ba8","--vscode-tab-activeBackground":"#1e1e2e","--vscode-tab-activeForeground":"#cdd6f4","--vscode-tab-inactiveBackground":"#181825","--vscode-tab-border":"#181825","--vscode-editorGroupHeader-tabsBackground":"#181825","--vscode-tab-hoverBackground":"#313244","--vscode-tab-activeBorderTop":"#cba6f7","--vscode-editorWidget-background":"#181825"},gruvboxDark:{"--vscode-editor-background":"#282828","--vscode-editor-foreground":"#ebdbb2","--vscode-editor-lineHighlightBackground":"#32302f","--vscode-editor-selectionBackground":"#504945","--vscode-editorCursor-foreground":"#ebdbb2","--vscode-editorLineNumber-foreground":"#665c54","--vscode-editorLineNumber-activeForeground":"#ebdbb2","--vscode-button-background":"#d65d0e","--vscode-button-foreground":"#282828","--vscode-button-hoverBackground":"#fe8019","--vscode-input-background":"#3c3836","--vscode-input-foreground":"#ebdbb2","--vscode-input-border":"#504945","--vscode-dropdown-background":"#3c3836","--vscode-dropdown-foreground":"#ebdbb2","--vscode-checkbox-background":"#3c3836","--vscode-checkbox-border":"#504945","--vscode-sideBar-background":"#282828","--vscode-sideBar-foreground":"#ebdbb2","--vscode-sideBarSectionHeader-background":"#3c3836","--vscode-panel-background":"#282828","--vscode-panel-border":"#504945","--vscode-activityBar-background":"#282828","--vscode-activityBar-foreground":"#ebdbb2","--vscode-statusBar-background":"#32302f","--vscode-statusBar-foreground":"#ebdbb2","--vscode-focusBorder":"#d65d0e","--vscode-widget-shadow":"#00000080","--vscode-list-activeSelectionBackground":"#504945","--vscode-list-activeSelectionForeground":"#ebdbb2","--vscode-list-hoverBackground":"#3c3836","--vscode-list-focusBackground":"#3c3836","--vscode-editorError-foreground":"#fb4934","--vscode-editorWarning-foreground":"#fabd2f","--vscode-editorInfo-foreground":"#83a598","--vscode-descriptionForeground":"#a89984","--vscode-errorForeground":"#fb4934","--vscode-tab-activeBackground":"#282828","--vscode-tab-activeForeground":"#ebdbb2","--vscode-tab-inactiveBackground":"#1d2021","--vscode-tab-border":"#1d2021","--vscode-editorGroupHeader-tabsBackground":"#282828","--vscode-tab-hoverBackground":"#3c3836","--vscode-tab-activeBorderTop":"#d65d0e","--vscode-editorWidget-background":"#3c3836"},cobalt2:{"--vscode-editor-background":"#193549","--vscode-editor-foreground":"#e1efff","--vscode-editor-lineHighlightBackground":"#1f4662","--vscode-editor-selectionBackground":"#0d3a58","--vscode-editorCursor-foreground":"#ffc600","--vscode-editorLineNumber-foreground":"#6a7e93","--vscode-editorLineNumber-activeForeground":"#c8d8e8","--vscode-button-background":"#ffc600","--vscode-button-foreground":"#193549","--vscode-button-hoverBackground":"#e6b000","--vscode-input-background":"#0e293f","--vscode-input-foreground":"#e1efff","--vscode-input-border":"#24506a","--vscode-dropdown-background":"#0e293f","--vscode-dropdown-foreground":"#e1efff","--vscode-checkbox-background":"#0e293f","--vscode-checkbox-border":"#24506a","--vscode-sideBar-background":"#15232d","--vscode-sideBar-foreground":"#e1efff","--vscode-sideBarSectionHeader-background":"#193549","--vscode-panel-background":"#193549","--vscode-panel-border":"#24506a","--vscode-activityBar-background":"#0e293f","--vscode-activityBar-foreground":"#e1efff","--vscode-statusBar-background":"#0e293f","--vscode-statusBar-foreground":"#e1efff","--vscode-focusBorder":"#ffc600","--vscode-widget-shadow":"#00000080","--vscode-list-activeSelectionBackground":"#1f4662","--vscode-list-activeSelectionForeground":"#ffffff","--vscode-list-hoverBackground":"#1a3a4f","--vscode-list-focusBackground":"#1a3a4f","--vscode-editorError-foreground":"#ff628c","--vscode-editorWarning-foreground":"#ffc600","--vscode-editorInfo-foreground":"#80a4c2","--vscode-descriptionForeground":"#6a7e93","--vscode-errorForeground":"#ff628c","--vscode-tab-activeBackground":"#193549","--vscode-tab-activeForeground":"#e1efff","--vscode-tab-inactiveBackground":"#15232d","--vscode-tab-border":"#0e293f","--vscode-editorGroupHeader-tabsBackground":"#15232d","--vscode-tab-hoverBackground":"#1a3a4f","--vscode-tab-activeBorderTop":"#ffc600","--vscode-editorWidget-background":"#15232d"},synthwave84:{"--vscode-editor-background":"#262335","--vscode-editor-foreground":"#ffffff","--vscode-editor-lineHighlightBackground":"#34294f","--vscode-editor-selectionBackground":"#463465","--vscode-editorCursor-foreground":"#72f1b8","--vscode-editorLineNumber-foreground":"#495495","--vscode-editorLineNumber-activeForeground":"#f97e72","--vscode-button-background":"#ff7edb","--vscode-button-foreground":"#262335","--vscode-button-hoverBackground":"#e66cc5","--vscode-input-background":"#1a1427","--vscode-input-foreground":"#ffffff","--vscode-input-border":"#463465","--vscode-dropdown-background":"#1a1427","--vscode-dropdown-foreground":"#ffffff","--vscode-checkbox-background":"#1a1427","--vscode-checkbox-border":"#463465","--vscode-sideBar-background":"#1a1427","--vscode-sideBar-foreground":"#ffffff","--vscode-sideBarSectionHeader-background":"#262335","--vscode-panel-background":"#262335","--vscode-panel-border":"#463465","--vscode-activityBar-background":"#1a1427","--vscode-activityBar-foreground":"#ff7edb","--vscode-statusBar-background":"#1a1427","--vscode-statusBar-foreground":"#ff7edb","--vscode-focusBorder":"#ff7edb","--vscode-widget-shadow":"#00000080","--vscode-list-activeSelectionBackground":"#34294f","--vscode-list-activeSelectionForeground":"#ffffff","--vscode-list-hoverBackground":"#2a2040","--vscode-list-focusBackground":"#2a2040","--vscode-editorError-foreground":"#f97e72","--vscode-editorWarning-foreground":"#fede5d","--vscode-editorInfo-foreground":"#72f1b8","--vscode-descriptionForeground":"#848bbd","--vscode-errorForeground":"#f97e72","--vscode-tab-activeBackground":"#262335","--vscode-tab-activeForeground":"#ffffff","--vscode-tab-inactiveBackground":"#1a1427","--vscode-tab-border":"#1a1427","--vscode-editorGroupHeader-tabsBackground":"#1a1427","--vscode-tab-hoverBackground":"#2a2040","--vscode-tab-activeBorderTop":"#ff7edb","--vscode-editorWidget-background":"#1a1427"},solarizedLight:{"--vscode-editor-background":"#fdf6e3","--vscode-editor-foreground":"#657b83","--vscode-editor-lineHighlightBackground":"#eee8d5","--vscode-editor-selectionBackground":"#eee8d5","--vscode-editorCursor-foreground":"#657b83","--vscode-editorLineNumber-foreground":"#93a1a1","--vscode-editorLineNumber-activeForeground":"#586e75","--vscode-button-background":"#268bd2","--vscode-button-foreground":"#fdf6e3","--vscode-button-hoverBackground":"#2aa198","--vscode-input-background":"#eee8d5","--vscode-input-foreground":"#586e75","--vscode-input-border":"#93a1a1","--vscode-dropdown-background":"#eee8d5","--vscode-dropdown-foreground":"#586e75","--vscode-checkbox-background":"#eee8d5","--vscode-checkbox-border":"#93a1a1","--vscode-sideBar-background":"#eee8d5","--vscode-sideBar-foreground":"#586e75","--vscode-sideBarSectionHeader-background":"#fdf6e3","--vscode-panel-background":"#fdf6e3","--vscode-panel-border":"#93a1a1","--vscode-activityBar-background":"#ddd6c1","--vscode-activityBar-foreground":"#657b83","--vscode-statusBar-background":"#eee8d5","--vscode-statusBar-foreground":"#586e75","--vscode-focusBorder":"#268bd2","--vscode-widget-shadow":"#00000029","--vscode-list-activeSelectionBackground":"#268bd2","--vscode-list-activeSelectionForeground":"#fdf6e3","--vscode-list-hoverBackground":"#e6dfca","--vscode-list-focusBackground":"#e6dfca","--vscode-editorError-foreground":"#dc322f","--vscode-editorWarning-foreground":"#b58900","--vscode-editorInfo-foreground":"#268bd2","--vscode-descriptionForeground":"#93a1a1","--vscode-errorForeground":"#dc322f","--vscode-tab-activeBackground":"#fdf6e3","--vscode-tab-activeForeground":"#586e75","--vscode-tab-inactiveBackground":"#eee8d5","--vscode-tab-border":"#ddd6c1","--vscode-editorGroupHeader-tabsBackground":"#eee8d5","--vscode-tab-hoverBackground":"#e6dfca","--vscode-tab-activeBorderTop":"#268bd2","--vscode-editorWidget-background":"#eee8d5"},githubLight:{"--vscode-editor-background":"#ffffff","--vscode-editor-foreground":"#24292e","--vscode-editor-lineHighlightBackground":"#f6f8fa","--vscode-editor-selectionBackground":"#c8e1ff","--vscode-editorCursor-foreground":"#044289","--vscode-editorLineNumber-foreground":"#959da5","--vscode-editorLineNumber-activeForeground":"#24292e","--vscode-button-background":"#2ea44f","--vscode-button-foreground":"#ffffff","--vscode-button-hoverBackground":"#2c974b","--vscode-input-background":"#ffffff","--vscode-input-foreground":"#24292e","--vscode-input-border":"#e1e4e8","--vscode-dropdown-background":"#ffffff","--vscode-dropdown-foreground":"#24292e","--vscode-checkbox-background":"#ffffff","--vscode-checkbox-border":"#e1e4e8","--vscode-sideBar-background":"#f6f8fa","--vscode-sideBar-foreground":"#24292e","--vscode-sideBarSectionHeader-background":"#ffffff","--vscode-panel-background":"#ffffff","--vscode-panel-border":"#e1e4e8","--vscode-activityBar-background":"#ffffff","--vscode-activityBar-foreground":"#24292e","--vscode-statusBar-background":"#ffffff","--vscode-statusBar-foreground":"#586069","--vscode-focusBorder":"#005cc5","--vscode-widget-shadow":"#00000029","--vscode-list-activeSelectionBackground":"#e2e5e9","--vscode-list-activeSelectionForeground":"#24292e","--vscode-list-hoverBackground":"#f6f8fa","--vscode-list-focusBackground":"#f6f8fa","--vscode-editorError-foreground":"#cb2431","--vscode-editorWarning-foreground":"#f9c513","--vscode-editorInfo-foreground":"#005cc5","--vscode-descriptionForeground":"#586069","--vscode-errorForeground":"#cb2431","--vscode-tab-activeBackground":"#ffffff","--vscode-tab-activeForeground":"#24292e","--vscode-tab-inactiveBackground":"#f6f8fa","--vscode-tab-border":"#e1e4e8","--vscode-editorGroupHeader-tabsBackground":"#f6f8fa","--vscode-tab-hoverBackground":"#f0f2f5","--vscode-tab-activeBorderTop":"#f9826c","--vscode-editorWidget-background":"#f6f8fa"},nordLight:{"--vscode-editor-background":"#eceff4","--vscode-editor-foreground":"#2e3440","--vscode-editor-lineHighlightBackground":"#e5e9f0","--vscode-editor-selectionBackground":"#d8dee9","--vscode-editorCursor-foreground":"#2e3440","--vscode-editorLineNumber-foreground":"#9ba5b0","--vscode-editorLineNumber-activeForeground":"#2e3440","--vscode-button-background":"#5e81ac","--vscode-button-foreground":"#eceff4","--vscode-button-hoverBackground":"#81a1c1","--vscode-input-background":"#e5e9f0","--vscode-input-foreground":"#2e3440","--vscode-input-border":"#d8dee9","--vscode-dropdown-background":"#e5e9f0","--vscode-dropdown-foreground":"#2e3440","--vscode-checkbox-background":"#e5e9f0","--vscode-checkbox-border":"#d8dee9","--vscode-sideBar-background":"#e5e9f0","--vscode-sideBar-foreground":"#2e3440","--vscode-sideBarSectionHeader-background":"#eceff4","--vscode-panel-background":"#eceff4","--vscode-panel-border":"#d8dee9","--vscode-activityBar-background":"#d8dee9","--vscode-activityBar-foreground":"#5e81ac","--vscode-statusBar-background":"#d8dee9","--vscode-statusBar-foreground":"#434c5e","--vscode-focusBorder":"#5e81ac","--vscode-widget-shadow":"#00000029","--vscode-list-activeSelectionBackground":"#88c0d0","--vscode-list-activeSelectionForeground":"#2e3440","--vscode-list-hoverBackground":"#e5e9f0","--vscode-list-focusBackground":"#e5e9f0","--vscode-editorError-foreground":"#bf616a","--vscode-editorWarning-foreground":"#ebcb8b","--vscode-editorInfo-foreground":"#5e81ac","--vscode-descriptionForeground":"#4c566a","--vscode-errorForeground":"#bf616a","--vscode-tab-activeBackground":"#eceff4","--vscode-tab-activeForeground":"#2e3440","--vscode-tab-inactiveBackground":"#e5e9f0","--vscode-tab-border":"#d8dee9","--vscode-editorGroupHeader-tabsBackground":"#e5e9f0","--vscode-tab-hoverBackground":"#d8dee9","--vscode-tab-activeBorderTop":"#5e81ac","--vscode-editorWidget-background":"#e5e9f0"},gruvboxLight:{"--vscode-editor-background":"#fbf1c7","--vscode-editor-foreground":"#3c3836","--vscode-editor-lineHighlightBackground":"#f2e5bc","--vscode-editor-selectionBackground":"#d5c4a1","--vscode-editorCursor-foreground":"#3c3836","--vscode-editorLineNumber-foreground":"#a89984","--vscode-editorLineNumber-activeForeground":"#504945","--vscode-button-background":"#af3a03","--vscode-button-foreground":"#fbf1c7","--vscode-button-hoverBackground":"#d65d0e","--vscode-input-background":"#ebdbb2","--vscode-input-foreground":"#3c3836","--vscode-input-border":"#d5c4a1","--vscode-dropdown-background":"#ebdbb2","--vscode-dropdown-foreground":"#3c3836","--vscode-checkbox-background":"#ebdbb2","--vscode-checkbox-border":"#d5c4a1","--vscode-sideBar-background":"#f2e5bc","--vscode-sideBar-foreground":"#3c3836","--vscode-sideBarSectionHeader-background":"#fbf1c7","--vscode-panel-background":"#fbf1c7","--vscode-panel-border":"#d5c4a1","--vscode-activityBar-background":"#ebdbb2","--vscode-activityBar-foreground":"#3c3836","--vscode-statusBar-background":"#ebdbb2","--vscode-statusBar-foreground":"#504945","--vscode-focusBorder":"#af3a03","--vscode-widget-shadow":"#00000029","--vscode-list-activeSelectionBackground":"#d5c4a1","--vscode-list-activeSelectionForeground":"#3c3836","--vscode-list-hoverBackground":"#f2e5bc","--vscode-list-focusBackground":"#f2e5bc","--vscode-editorError-foreground":"#cc241d","--vscode-editorWarning-foreground":"#d79921","--vscode-editorInfo-foreground":"#458588","--vscode-descriptionForeground":"#928374","--vscode-errorForeground":"#cc241d","--vscode-tab-activeBackground":"#fbf1c7","--vscode-tab-activeForeground":"#3c3836","--vscode-tab-inactiveBackground":"#f2e5bc","--vscode-tab-border":"#d5c4a1","--vscode-editorGroupHeader-tabsBackground":"#f2e5bc","--vscode-tab-hoverBackground":"#ebdbb2","--vscode-tab-activeBorderTop":"#af3a03","--vscode-editorWidget-background":"#f2e5bc"},nightOwl:{"--vscode-editor-background":"#011627","--vscode-editor-foreground":"#d6deeb","--vscode-editor-lineHighlightBackground":"#00000030","--vscode-editor-selectionBackground":"#1d3b53","--vscode-editorCursor-foreground":"#80a4c2","--vscode-editorLineNumber-foreground":"#4b6479","--vscode-editorLineNumber-activeForeground":"#c5e478","--vscode-button-background":"#82aaff","--vscode-button-foreground":"#011627","--vscode-button-hoverBackground":"#82aaffcc","--vscode-input-background":"#0b2942","--vscode-input-foreground":"#d6deeb","--vscode-input-border":"#5f7e97","--vscode-sideBar-background":"#011627","--vscode-sideBar-foreground":"#d6deeb","--vscode-panel-background":"#011627","--vscode-panel-border":"#5f7e97","--vscode-activityBar-background":"#011627","--vscode-activityBar-foreground":"#82aaff","--vscode-statusBar-background":"#011627","--vscode-statusBar-foreground":"#d6deeb","--vscode-focusBorder":"#5f7e97","--vscode-list-activeSelectionBackground":"#234d70","--vscode-list-activeSelectionForeground":"#ffffff","--vscode-tab-activeBackground":"#0b2942","--vscode-tab-activeForeground":"#d6deeb","--vscode-tab-inactiveBackground":"#011627","--vscode-tab-border":"#011627","--vscode-editorGroupHeader-tabsBackground":"#011627","--vscode-tab-activeBorder":"#82aaff","--vscode-editorWidget-background":"#011627"},githubDark:{"--vscode-editor-background":"#24292e","--vscode-editor-foreground":"#d1d5da","--vscode-editor-lineHighlightBackground":"#444d56","--vscode-editor-selectionBackground":"#39414a","--vscode-button-background":"#2ea44f","--vscode-button-foreground":"#ffffff","--vscode-button-hoverBackground":"#2c974b","--vscode-sideBar-background":"#1f2428","--vscode-sideBar-foreground":"#e1e4e8","--vscode-panel-background":"#1f2428","--vscode-panel-border":"#444d56","--vscode-activityBar-background":"#24292e","--vscode-activityBar-foreground":"#e1e4e8","--vscode-statusBar-background":"#24292e","--vscode-statusBar-foreground":"#e1e4e8","--vscode-focusBorder":"#005cc5","--vscode-list-activeSelectionBackground":"#282e34","--vscode-list-activeSelectionForeground":"#e1e4e8","--vscode-tab-activeBackground":"#24292e","--vscode-tab-activeForeground":"#e1e4e8","--vscode-tab-inactiveBackground":"#1f2428","--vscode-editorGroupHeader-tabsBackground":"#1f2428","--vscode-tab-activeBorderTop":"#f9826c","--vscode-editorWidget-background":"#1f2428"},quietLight:{"--vscode-editor-background":"#f5f5f5","--vscode-editor-foreground":"#333333","--vscode-button-background":"#705697","--vscode-button-foreground":"#ffffff","--vscode-button-hoverBackground":"#5e4a7e","--vscode-input-background":"#ffffff","--vscode-input-foreground":"#333333","--vscode-input-border":"#adafb7","--vscode-sideBar-background":"#f2f2f2","--vscode-sideBar-foreground":"#333333","--vscode-activityBar-background":"#ededf5","--vscode-activityBar-foreground":"#705697","--vscode-statusBar-background":"#705697","--vscode-statusBar-foreground":"#ffffff","--vscode-focusBorder":"#9769dc","--vscode-tab-activeBackground":"#f5f5f5","--vscode-tab-activeForeground":"#333333","--vscode-tab-inactiveBackground":"#e8e8e8","--vscode-tab-border":"#e0e0e0","--vscode-editorGroupHeader-tabsBackground":"#e8e8e8","--vscode-panel-background":"#f5f5f5","--vscode-editorWidget-background":"#f5f5f5"},monokai:{"--vscode-editor-background":"#272822","--vscode-editor-foreground":"#f8f8f2","--vscode-editor-lineHighlightBackground":"#3e3d32","--vscode-editor-selectionBackground":"#49483e","--vscode-editorCursor-foreground":"#f8f8f0","--vscode-editorLineNumber-foreground":"#90908a","--vscode-editorLineNumber-activeForeground":"#f8f8f2","--vscode-button-background":"#75715e","--vscode-button-foreground":"#f8f8f2","--vscode-button-hoverBackground":"#3e3d32","--vscode-sideBar-background":"#272822","--vscode-sideBar-foreground":"#f8f8f2","--vscode-panel-background":"#272822","--vscode-focusBorder":"#75715e","--vscode-list-activeSelectionBackground":"#75715e","--vscode-list-activeSelectionForeground":"#f8f8f2","--vscode-tab-activeBackground":"#272822","--vscode-tab-activeForeground":"#f8f8f2","--vscode-tab-inactiveBackground":"#34352f","--vscode-editorGroupHeader-tabsBackground":"#272822","--vscode-editorWidget-background":"#272822"},vscodeDark:{"--vscode-editor-background":"#1e1e1e","--vscode-editor-foreground":"#d4d4d4","--vscode-button-background":"#0e639c","--vscode-button-foreground":"#ffffff","--vscode-button-hoverBackground":"#1177bb","--vscode-list-activeSelectionBackground":"#094771","--vscode-list-activeSelectionForeground":"#ffffff","--vscode-tab-activeBackground":"#1e1e1e","--vscode-tab-activeForeground":"#ffffff","--vscode-tab-inactiveBackground":"#2d2d2d","--vscode-tab-border":"#252526","--vscode-editorGroupHeader-tabsBackground":"#252526","--vscode-panel-background":"#1e1e1e","--vscode-editorWidget-background":"#252526"},vscodeLight:{"--vscode-editor-background":"#ffffff","--vscode-editor-foreground":"#000000","--vscode-button-background":"#007acc","--vscode-button-foreground":"#ffffff","--vscode-button-hoverBackground":"#005a9e","--vscode-list-activeSelectionBackground":"#0060c0","--vscode-list-activeSelectionForeground":"#ffffff","--vscode-tab-activeBackground":"#ffffff","--vscode-tab-activeForeground":"#000000","--vscode-tab-inactiveBackground":"#ececec","--vscode-tab-border":"#f3f3f3","--vscode-editorGroupHeader-tabsBackground":"#f3f3f3","--vscode-panel-background":"#ffffff","--vscode-editorWidget-background":"#f3f3f3"},copilot:{"--vscode-editor-background":"#232a2f","--vscode-editor-foreground":"#939da5","--vscode-button-background":"#ffea6b","--vscode-button-foreground":"#1a2023","--vscode-button-hoverBackground":"#ffd93d","--vscode-sideBar-background":"#1a2023","--vscode-focusBorder":"#707a84","--vscode-tab-activeBackground":"#232a2f","--vscode-tab-inactiveBackground":"#1a2023","--vscode-editorGroupHeader-tabsBackground":"#1a2023","--vscode-panel-background":"#232a2f","--vscode-editorWidget-background":"#232a2f"}},t8=Object.keys(Kc),Ph="studio.vscode-theme";function fE(){try{const e=localStorage.getItem(Ph);return pE(e||"")}catch(e){return console.error(e),"studio"}}function pE(e){if(!e)return"studio";const t=e.toLowerCase().replace(/[^a-z0-9]/g,"");return t.includes("abyss")?"abyss":t.includes("solarized")&&t.includes("light")?"solarizedLight":t.includes("quiet")&&t.includes("light")?"quietLight":t.includes("copilot")||t.includes("github")&&t.includes("copilot")?"copilot":t.includes("dracula")?"dracula":t.includes("night")&&t.includes("owl")?"nightOwl":t.includes("monokai")?"monokai":t.includes("onedark")?"oneDarkPro":t.includes("tokyo")&&t.includes("night")?"tokyoNight":t.includes("catppuccin")&&t.includes("mocha")?"catppuccinMocha":t.includes("nord")&&t.includes("light")?"nordLight":t.includes("gruvbox")&&t.includes("dark")?"gruvboxDark":t.includes("gruvbox")&&t.includes("light")?"gruvboxLight":t.includes("cobalt")?"cobalt2":t.includes("synthwave")?"synthwave84":t.includes("github")&&t.includes("light")?"githubLight":t.includes("github")&&t.includes("dark")?"githubDark":t==="vscodedark"||t==="darkplus"||t==="vscode"?"vscodeDark":t==="vscodelight"||t==="lightplus"?"vscodeLight":"studio"}function yp(e){const t=pE(e),r=Kc[t];if(!r){console.warn(`Theme '${e}' not found. Falling back to default.`);return}const n=document.documentElement,o=new Set;Object.values(Kc).forEach(s=>Object.keys(s).forEach(l=>o.add(l))),o.forEach(s=>n.style.removeProperty(s)),Object.entries(r).forEach(([s,l])=>{n.style.setProperty(s,l)});try{localStorage.setItem(Ph,t)}catch(s){console.error(s)}}const hE=e=>e.toLowerCase().endsWith("light"),r8=e=>hE(e)?"Default Light+":"Default Dark+";function n8(){window.setVSCodeTheme=yp,yp(fE())}const Ct="/rest/$designer",Na="/rest/$designer-ext";function o8(...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 wp 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 et(e,t){var o;Uc.next({action:Sa.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();((o=l==null?void 0:l.__ERROR)==null?void 0:o.some(u=>u.errCode===1651))&&Uc.next({action:Sa.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),s=new wp(e,r,l)}catch{s=new wp(e,r)}throw s.log(),s}return await r.json()}function i8(e){return Uc.next({action:Sa.REQUEST_SENT}),e}var pn={},Wt={},$y;function Bo(){if($y)return Wt;$y=1;var e=Wt.ValidationError=function(v,y,m,w,x,k){if(Array.isArray(w)?(this.path=w,this.property=w.reduce(function(R,j){return R+c(j)},"instance")):w!==void 0&&(this.property=w),v&&(this.message=v),m){var _=m.$id||m.id;this.schema=_||m}y!==void 0&&(this.instance=y),this.name=x,this.argument=k,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=Wt.ValidatorResult=function(v,y,m,w){this.instance=v,this.schema=y,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 y;if(typeof v=="string")y=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");y=new e(v.message,this.instance,this.schema,this.path,v.name,v.argument)}if(this.errors.push(y),this.throwFirst)throw new n(this);if(this.throwError)throw y;return y},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()+`
256
+ `}t.prototype.toString=function(v){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),Wt.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=Wt.SchemaError=function S(v,y){this.message=v,this.schema=y,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 s=Wt.SchemaContext=function(v,y,m,w,x){this.schema=v,this.options=y,Array.isArray(m)?(this.path=m,this.propertyPath=m.reduce(function(k,_){return k+c(_)},"instance")):this.propertyPath=m,this.base=w,this.schemas=x};s.prototype.resolve=function(v){return b(this.base,v)},s.prototype.makeChild=function(v,y){var m=y===void 0?this.path:this.path.concat([y]),w=v.$id||v.id;let x=b(this.base,w||"");var k=new s(v,this.options,m,x,Object.create(this.schemas));return w&&!k.schemas[x]&&(k.schemas[x]=v),k};var l=Wt.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"],Wt.isFormat=function(v,y,m){if(typeof v=="string"&&l[y]!==void 0){if(l[y]instanceof RegExp)return l[y].test(v);if(typeof l[y]=="function")return l[y](v)}else if(m&&m.customFormats&&typeof m.customFormats[y]=="function")return m.customFormats[y](v);return!0};var c=Wt.makeSuffix=function(v){return v=v.toString(),!v.match(/[.\s\[\]]/)&&!v.match(/^[\d]/)?"."+v:v.match(/^\d+$/)?"["+v+"]":"["+JSON.stringify(v)+"]"};Wt.deepCompareStrict=function S(v,y){if(typeof v!=typeof y)return!1;if(Array.isArray(v))return!Array.isArray(y)||v.length!==y.length?!1:v.every(function(x,k){return S(v[k],y[k])});if(typeof v=="object"){if(!v||!y)return v===y;var m=Object.keys(v),w=Object.keys(y);return m.length!==w.length?!1:m.every(function(x){return S(v[x],y[x])})}return v===y};function u(S,v,y,m){typeof y=="object"?v[m]=p(S[m],y):S.indexOf(y)===-1&&v.push(y)}function d(S,v,y){v[y]=S[y]}function g(S,v,y,m){typeof v[m]!="object"||!v[m]?y[m]=v[m]:S[m]?y[m]=p(S[m],v[m]):y[m]=v[m]}function p(S,v){var y=Array.isArray(v),m=y&&[]||{};return y?(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(g.bind(null,S,v,m))),m}Wt.deepMerge=p,Wt.objectGetPath=function(v,y){for(var m=y.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 h(S){return"/"+encodeURIComponent(S).replace(/~/g,"%7E")}Wt.encodePath=function(v){return v.map(h).join("")},Wt.getDecimalPlaces=function(v){var y=0;if(isNaN(v))return y;typeof v!="number"&&(v=Number(v));var m=v.toString().split("e");if(m.length===2){if(m[1][0]!=="-")return y;y=Number(m[1].slice(1))}var w=m[0].split(".");return w.length===2&&(y+=w[1].length),y},Wt.isSchema=function(v){return typeof v=="object"&&v||typeof v=="boolean"};var b=Wt.resolveUrl=function(v,y){const m=new URL(y,new URL(v,"resolve://"));if(m.protocol==="resolve:"){const{pathname:w,search:x,hash:k}=m;return w+x+k}return m.toString()};return Wt}var Lf,jy;function s8(){if(jy)return Lf;jy=1;var e=Bo(),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(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S),y=Array.isArray(h.type)?h.type:[h.type];if(!y.some(this.testType.bind(this,p,h,b,S))){var m=y.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 s(g,p,h,b,S){var v=p.throwError,y=p.throwAll;p.throwError=!1,p.throwAll=!1;var m=this.validateSchema(g,S,p,h);return p.throwError=v,p.throwAll=y,!m.valid&&b instanceof Function&&b(m),m.valid}o.anyOf=function(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S),y=new t(p,h,b,S);if(!Array.isArray(h.anyOf))throw new r("anyOf must be an array");if(!h.anyOf.some(s.bind(this,p,b,S,function(w){y.importErrors(w)}))){var m=h.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+"]"});b.nestedErrors&&v.importErrors(y),v.addError({name:"anyOf",argument:m,message:"is not any of "+m.join(",")})}return v},o.allOf=function(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.allOf))throw new r("allOf must be an array");var v=new t(p,h,b,S),y=this;return h.allOf.forEach(function(m,w){var x=y.validateSchema(p,m,b,S);if(!x.valid){var k=m.$id||m.id,_=k||m.title&&JSON.stringify(m.title)||m.$ref&&"<"+m.$ref+">"||"[subschema "+w+"]";v.addError({name:"allOf",argument:{id:_,length:x.errors.length,valid:x},message:"does not match allOf schema "+_+" with "+x.errors.length+" error[s]:"}),v.importErrors(x)}}),v},o.oneOf=function(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.oneOf))throw new r("oneOf must be an array");var v=new t(p,h,b,S),y=new t(p,h,b,S),m=h.oneOf.filter(s.bind(this,p,b,S,function(x){y.importErrors(x)})).length,w=h.oneOf.map(function(x,k){var _=x.$id||x.id;return _||x.title&&JSON.stringify(x.title)||x.$ref&&"<"+x.$ref+">"||"[subschema "+k+"]"});return m!==1&&(b.nestedErrors&&v.importErrors(y),v.addError({name:"oneOf",argument:w,message:"is not exactly one from "+w.join(",")})),v},o.if=function(p,h,b,S){if(p===void 0)return null;if(!e.isSchema(h.if))throw new Error('Expected "if" keyword to be a schema');var v=s.call(this,p,b,S,null,h.if),y=new t(p,h,b,S),m;if(v){if(h.then===void 0)return;if(!e.isSchema(h.then))throw new Error('Expected "then" keyword to be a schema');m=this.validateSchema(p,h.then,b,S.makeChild(h.then)),y.importErrors(m)}else{if(h.else===void 0)return;if(!e.isSchema(h.else))throw new Error('Expected "else" keyword to be a schema');m=this.validateSchema(p,h.else,b,S.makeChild(h.else)),y.importErrors(m)}return y};function l(g,p){if(Object.hasOwnProperty.call(g,p))return g[p];if(p in g){for(;g=Object.getPrototypeOf(g);)if(Object.propertyIsEnumerable.call(g,p))return g[p]}}o.propertyNames=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.propertyNames!==void 0?h.propertyNames:{};if(!e.isSchema(y))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var m in p)if(l(p,m)!==void 0){var w=this.validateSchema(m,y,b,S.makeChild(y));v.importErrors(w)}return v}},o.properties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.properties||{};for(var m in y){var w=y[m];if(w!==void 0){if(w===null)throw new r('Unexpected null, expected schema in "properties"');typeof b.preValidateProperty=="function"&&b.preValidateProperty(p,m,w,b,S);var x=l(p,m),k=this.validateSchema(x,w,b,S.makeChild(w,m));k.instance!==v.instance[m]&&(v.instance[m]=k.instance),v.importErrors(k)}}return v}};function c(g,p,h,b,S,v){if(this.types.object(g)&&!(p.properties&&p.properties[S]!==void 0))if(p.additionalProperties===!1)v.addError({name:"additionalProperties",argument:S,message:"is not allowed to have the additional property "+JSON.stringify(S)});else{var y=p.additionalProperties||{};typeof h.preValidateProperty=="function"&&h.preValidateProperty(g,S,y,h,b);var m=this.validateSchema(g[S],y,h,b.makeChild(y,S));m.instance!==v.instance[S]&&(v.instance[S]=m.instance),v.importErrors(m)}}o.patternProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.patternProperties||{};for(var m in p){var w=!0;for(var x in y){var k=y[x];if(k!==void 0){if(k===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var _=new RegExp(x,"u")}catch{_=new RegExp(x)}if(_.test(m)){w=!1,typeof b.preValidateProperty=="function"&&b.preValidateProperty(p,m,k,b,S);var R=this.validateSchema(p[m],k,b,S.makeChild(k,m));R.instance!==v.instance[m]&&(v.instance[m]=R.instance),v.importErrors(R)}}}w&&c.call(this,p,h,b,S,m,v)}return v}},o.additionalProperties=function(p,h,b,S){if(this.types.object(p)){if(h.patternProperties)return null;var v=new t(p,h,b,S);for(var y in p)c.call(this,p,h,b,S,y,v);return v}},o.minProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=Object.keys(p);return y.length>=h.minProperties||v.addError({name:"minProperties",argument:h.minProperties,message:"does not meet minimum property length of "+h.minProperties}),v}},o.maxProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=Object.keys(p);return y.length<=h.maxProperties||v.addError({name:"maxProperties",argument:h.maxProperties,message:"does not meet maximum property length of "+h.maxProperties}),v}},o.items=function(p,h,b,S){var v=this;if(this.types.array(p)&&h.items!==void 0){var y=new t(p,h,b,S);return p.every(function(m,w){if(Array.isArray(h.items))var x=h.items[w]===void 0?h.additionalItems:h.items[w];else var x=h.items;if(x===void 0)return!0;if(x===!1)return y.addError({name:"items",message:"additionalItems not permitted"}),!1;var k=v.validateSchema(m,x,b,S.makeChild(x,w));return k.instance!==y.instance[w]&&(y.instance[w]=k.instance),y.importErrors(k),!0}),y}},o.contains=function(p,h,b,S){var v=this;if(this.types.array(p)&&h.contains!==void 0){if(!e.isSchema(h.contains))throw new Error('Expected "contains" keyword to be a schema');var y=new t(p,h,b,S),m=p.some(function(w,x){var k=v.validateSchema(w,h.contains,b,S.makeChild(h.contains,x));return k.errors.length===0});return m===!1&&y.addError({name:"contains",argument:h.contains,message:"must contain an item matching given schema"}),y}},o.minimum=function(p,h,b,S){if(this.types.number(p)){var v=new t(p,h,b,S);return h.exclusiveMinimum&&h.exclusiveMinimum===!0?p>h.minimum||v.addError({name:"minimum",argument:h.minimum,message:"must be greater than "+h.minimum}):p>=h.minimum||v.addError({name:"minimum",argument:h.minimum,message:"must be greater than or equal to "+h.minimum}),v}},o.maximum=function(p,h,b,S){if(this.types.number(p)){var v=new t(p,h,b,S);return h.exclusiveMaximum&&h.exclusiveMaximum===!0?p<h.maximum||v.addError({name:"maximum",argument:h.maximum,message:"must be less than "+h.maximum}):p<=h.maximum||v.addError({name:"maximum",argument:h.maximum,message:"must be less than or equal to "+h.maximum}),v}},o.exclusiveMinimum=function(p,h,b,S){if(typeof h.exclusiveMinimum!="boolean"&&this.types.number(p)){var v=new t(p,h,b,S),y=p>h.exclusiveMinimum;return y||v.addError({name:"exclusiveMinimum",argument:h.exclusiveMinimum,message:"must be strictly greater than "+h.exclusiveMinimum}),v}},o.exclusiveMaximum=function(p,h,b,S){if(typeof h.exclusiveMaximum!="boolean"&&this.types.number(p)){var v=new t(p,h,b,S),y=p<h.exclusiveMaximum;return y||v.addError({name:"exclusiveMaximum",argument:h.exclusiveMaximum,message:"must be strictly less than "+h.exclusiveMaximum}),v}};var u=function(p,h,b,S,v,y){if(this.types.number(p)){var m=h[v];if(m==0)throw new r(v+" cannot be zero");var w=new t(p,h,b,S),x=e.getDecimalPlaces(p),k=e.getDecimalPlaces(m),_=Math.max(x,k),R=Math.pow(10,_);return Math.round(p*R)%Math.round(m*R)!==0&&w.addError({name:v,argument:m,message:y+JSON.stringify(m)}),w}};o.multipleOf=function(p,h,b,S){return u.call(this,p,h,b,S,"multipleOf","is not a multiple of (divisible by) ")},o.divisibleBy=function(p,h,b,S){return u.call(this,p,h,b,S,"divisibleBy","is not divisible by (multiple of) ")},o.required=function(p,h,b,S){var v=new t(p,h,b,S);return p===void 0&&h.required===!0?v.addError({name:"required",message:"is required"}):this.types.object(p)&&Array.isArray(h.required)&&h.required.forEach(function(y){l(p,y)===void 0&&v.addError({name:"required",argument:y,message:"requires property "+JSON.stringify(y)})}),v},o.pattern=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=h.pattern;try{var m=new RegExp(y,"u")}catch{m=new RegExp(y)}return p.match(m)||v.addError({name:"pattern",argument:h.pattern,message:"does not match pattern "+JSON.stringify(h.pattern.toString())}),v}},o.format=function(p,h,b,S){if(p!==void 0){var v=new t(p,h,b,S);return!v.disableFormat&&!e.isFormat(p,h.format,this)&&v.addError({name:"format",argument:h.format,message:"does not conform to the "+JSON.stringify(h.format)+" format"}),v}},o.minLength=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=p.match(/[\uDC00-\uDFFF]/g),m=p.length-(y?y.length:0);return m>=h.minLength||v.addError({name:"minLength",argument:h.minLength,message:"does not meet minimum length of "+h.minLength}),v}},o.maxLength=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=p.match(/[\uDC00-\uDFFF]/g),m=p.length-(y?y.length:0);return m<=h.maxLength||v.addError({name:"maxLength",argument:h.maxLength,message:"does not meet maximum length of "+h.maxLength}),v}},o.minItems=function(p,h,b,S){if(this.types.array(p)){var v=new t(p,h,b,S);return p.length>=h.minItems||v.addError({name:"minItems",argument:h.minItems,message:"does not meet minimum length of "+h.minItems}),v}},o.maxItems=function(p,h,b,S){if(this.types.array(p)){var v=new t(p,h,b,S);return p.length<=h.maxItems||v.addError({name:"maxItems",argument:h.maxItems,message:"does not meet maximum length of "+h.maxItems}),v}};function d(g,p,h){var b,S=h.length;for(b=p+1,S;b<S;b++)if(e.deepCompareStrict(g,h[b]))return!1;return!0}return o.uniqueItems=function(p,h,b,S){if(h.uniqueItems===!0&&this.types.array(p)){var v=new t(p,h,b,S);return p.every(d)||v.addError({name:"uniqueItems",message:"contains duplicate item"}),v}},o.dependencies=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S);for(var y in h.dependencies)if(p[y]!==void 0){var m=h.dependencies[y],w=S.makeChild(m,y);if(typeof m=="string"&&(m=[m]),Array.isArray(m))m.forEach(function(k){p[k]===void 0&&v.addError({name:"dependencies",argument:w.propertyPath,message:"property "+k+" not found, required by "+w.propertyPath})});else{var x=this.validateSchema(p,m,b,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(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.enum))throw new r("enum expects an array",h);var v=new t(p,h,b,S);return h.enum.some(e.deepCompareStrict.bind(null,p))||v.addError({name:"enum",argument:h.enum,message:"is not one of enum values: "+h.enum.map(String).join(",")}),v},o.const=function(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S);return e.deepCompareStrict(h.const,p)||v.addError({name:"const",argument:h.const,message:"does not exactly match expected constant: "+h.const}),v},o.not=o.disallow=function(p,h,b,S){var v=this;if(p===void 0)return null;var y=new t(p,h,b,S),m=h.not||h.disallow;return m?(Array.isArray(m)||(m=[m]),m.forEach(function(w){if(v.testType(p,h,b,S,w)){var x=w&&(w.$id||w.id),k=x||w;y.addError({name:"not",argument:k,message:"is of prohibited type "+k})}}),y):null},Lf=n,Lf}var ac={},Fy;function xp(){if(Fy)return ac;Fy=1;var e=Bo();ac.SchemaScanResult=t;function t(r,n){this.id=r,this.ref=n}return ac.scan=function(n,o){function s(g,p){if(!p||typeof p!="object")return;if(p.$ref){let v=e.resolveUrl(g,p.$ref);d[v]=d[v]?d[v]+1:0;return}var h=p.$id||p.id;let b=e.resolveUrl(g,h);var S=h?b:g;if(S){if(S.indexOf("#")<0&&(S+="#"),u[S]){if(!e.deepCompareStrict(u[S],p))throw new Error("Schema <"+S+"> already exists with different definition");return u[S]}u[S]=p,S[S.length-1]=="#"&&(u[S.substring(0,S.length-1)]=p)}l(S+"/items",Array.isArray(p.items)?p.items:[p.items]),l(S+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),s(S+"/additionalItems",p.additionalItems),c(S+"/properties",p.properties),s(S+"/additionalProperties",p.additionalProperties),c(S+"/definitions",p.definitions),c(S+"/patternProperties",p.patternProperties),c(S+"/dependencies",p.dependencies),l(S+"/disallow",p.disallow),l(S+"/allOf",p.allOf),l(S+"/anyOf",p.anyOf),l(S+"/oneOf",p.oneOf),s(S+"/not",p.not)}function l(g,p){if(Array.isArray(p))for(var h=0;h<p.length;h++)s(g+"/"+h,p[h])}function c(g,p){if(!(!p||typeof p!="object"))for(var h in p)s(g+"/"+h,p[h])}var u={},d={};return s(n,o),new t(u,d)},ac}var zf,By;function a8(){if(By)return zf;By=1;var e=s8(),t=Bo(),r=xp().scan,n=t.ValidatorResult,o=t.ValidatorResultError,s=t.SchemaError,l=t.SchemaContext,c="/",u=function p(){this.customFormats=Object.create(p.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(g),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(h,b){var S=this;if(!h)return null;var v=r(b||c,h),y=b||h.$id||h.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[y]},u.prototype.addSubSchemaArray=function(h,b){if(Array.isArray(b))for(var S=0;S<b.length;S++)this.addSubSchema(h,b[S])},u.prototype.addSubSchemaObject=function(h,b){if(!(!b||typeof b!="object"))for(var S in b)this.addSubSchema(h,b[S])},u.prototype.setSchemas=function(h){this.schemas=h},u.prototype.getSchema=function(h){return this.schemas[h]},u.prototype.validate=function(h,b,S,v){if(typeof b!="boolean"&&typeof b!="object"||b===null)throw new s("Expected `schema` to be an object or boolean");S||(S={});var y=b.$id||b.id;let m=t.resolveUrl(S.base,y||"");if(!v){v=new l(b,S,[],m,Object.create(this.schemas)),v.schemas[m]||(v.schemas[m]=b);var w=r(m,b);for(var x in w.id){var k=w.id[x];v.schemas[x]=k}}if(S.required&&h===void 0){var _=new n(h,b,S,v);return _.addError("is required, but is undefined"),_}var _=this.validateSchema(h,b,S,v);if(_){if(S.throwAll&&_.errors.length)throw new o(_)}else throw new Error("Result undefined");return _};function d(p){var h=typeof p=="string"?p:p.$ref;return typeof h=="string"?h:!1}u.prototype.validateSchema=function(h,b,S,v){var y=new n(h,b,S,v);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 m={schema:b,ctx:v};b.extends.forEach(this.schemaTraverser.bind(this,m)),b=m.schema,m.schema=null,m.ctx=null,m=null}else b=t.deepMerge(b,this.superResolve(b.extends,v));var w=d(b);if(w){var x=this.resolve(b,w,v),k=new l(x.subschema,S,v.path,x.switchSchema,v.schemas);return this.validateSchema(h,x.subschema,S,k)}var _=S&&S.skipAttributes||[];for(var R in b)if(!e.ignoreProperties[R]&&_.indexOf(R)<0){var j=null,I=this.attributes[R];if(I)j=I.call(this,h,b,S,v);else if(S.allowUnknownAttributes===!1)throw new s("Unsupported attribute: "+R,b);j&&y.importErrors(j)}if(typeof S.rewrite=="function"){var L=S.rewrite.call(this,h,b,S,v);y.instance=L}return y},u.prototype.schemaTraverser=function(h,b){h.schema=t.deepMerge(h.schema,this.superResolve(b,h.ctx))},u.prototype.superResolve=function(h,b){var S=d(h);return S?this.resolve(h,S,b).subschema:h},u.prototype.resolve=function(h,b,S){if(b=S.resolve(b),S.schemas[b])return{subschema:S.schemas[b],switchSchema:b};let y=new URL(b,"thismessage::/").hash;var m=y&&y.length&&b.substr(0,b.length-y.length);if(!m||!S.schemas[m])throw new s("no such schema <"+b+">",h);var w=t.objectGetPath(S.schemas[m],y.substr(1));if(w===void 0)throw new s("no such schema "+y+" located in <"+m+">",h);return{subschema:w,switchSchema:b}},u.prototype.testType=function(h,b,S,v,y){if(y!==void 0){if(y===null)throw new s('Unexpected null in "type" keyword');if(typeof this.types[y]=="function")return this.types[y].call(this,h);if(y&&typeof y=="object"){var m=this.validateSchema(h,y,S,v);return m===void 0||!(m&&m.errors.length)}return!0}};var g=u.prototype.types={};return g.string=function(h){return typeof h=="string"},g.number=function(h){return typeof h=="number"&&isFinite(h)},g.integer=function(h){return typeof h=="number"&&h%1===0},g.boolean=function(h){return typeof h=="boolean"},g.array=function(h){return Array.isArray(h)},g.null=function(h){return h===null},g.date=function(h){return h instanceof Date},g.any=function(h){return!0},g.object=function(h){return h&&typeof h=="object"&&!Array.isArray(h)&&!(h instanceof Date)},zf=u,zf}var Hy;function l8(){if(Hy)return pn;Hy=1;var e=pn.Validator=a8();return pn.ValidatorResult=Bo().ValidatorResult,pn.ValidatorResultError=Bo().ValidatorResultError,pn.ValidationError=Bo().ValidationError,pn.SchemaError=Bo().SchemaError,pn.SchemaScanResult=xp().SchemaScanResult,pn.scan=xp().scan,pn.validate=function(t,r,n){var o=new e;return o.validate(t,r,n)},pn}var c8=l8();const _a="/$shared",u8={"**/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 gE(e){const t=Object.entries(u8).find(([r])=>qt(e,r));return t==null?void 0:t[1]}function vu(e){var n;const t=(n=gE(e))==null?void 0:n.content;if(!t)return;const r=e.replace(`${_a}/`,"Shared/");Nh({name:r,content:t,asText:typeof t=="string"})}async function d8(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await et(`${_a}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){vE(r)&&vu(`${_a}/${t}`)}}function Ma({path:e,createIfNotExists:t=!1}){const r=`${_a}/${e}`;return et(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(n=>{const o=gE(e);let s=n;if(!o)return s;if(typeof s=="string")try{switch(o.parser){case"json":s=JSON.parse(s);break;default:break}}catch{throw new Error("Cannot parse")}if(o.schema&&!new c8.Validator().validate(s,o.schema).valid)throw new Error("Invalid Schema");return s}).catch(n=>{if(vE(n)&&t){const o=f8(n,e);ph.next({message:o,kind:"warning"}),vu(r)}throw n})}function vE(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 f8(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 p8(e){return et(Na,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function h8(e){return et(Na,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const mE=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:yh.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function g8(){const{hostname:e,host:t,protocol:r}=window.location,n=r==="https:";try{const o=await et(Ct,{method:"POST",body:JSON.stringify({verb:wo.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{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:s,qodly:typeof o.qodly>"u"?!0:o.qodly,urls:{renderer:o.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${n?"s":""}://${t}/remoteDebugger`,lsp:`ws${n?"s":""}://${t}/LSP`},isRestActive:o.isRESTActive}}catch(o){return console.error(o),mE()}}async function bE(e){return await et(Ct,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function v8(...e){return(await Promise.all(e.map(n=>bE({root:n,verb:wo.GET_FOLDER})))).map(({children:n})=>n.map(({name:o,date:s,type:l})=>({name:o,type:l,date:s,path:`${l}/${o}`}))).flat()}function m8(e,t={}){const{sanitize:r=!0}=t;return et(`/rest/$getWebForm/${e}`,{method:"GET"}).then(n=>{if(!(n!=null&&n.components)||!r)return n;const o=new Map;return{...n,components:We.entries(n.components).map(([s,l])=>{const c=s,{resolvedName:u}=l.type;if(u==="WebformLoader"){const d=mo.generate();o.set(s,d),s=d}return[s,l,c]}).reduce((s,[l,c,u])=>{var d;return c.nodes&&(c.nodes=c.nodes.map(g=>o.get(g)||g)),c.linkedNodes&&(c.linkedNodes=We.entries(c.linkedNodes).reduce((g,[p,h])=>({...g,[p]:o.get(h)||h}),{})),(d=c.props)!=null&&d.events&&(c.props.events=c.props.events.map(g=>(g.type==="navigation"&&g.loader&&(g.loader=o.get(g.loader)||g.loader),g))),{...s,[l]:{...c,props:{...c.props,__originalID:u}}}},{})}})}function b8(e){return et(Ct,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[He.METHOD,He.CLASS].includes(t.type)?fu(t.content):t.content}))}function y8(e){return e.type==="folder"?et(Na,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):et(Ct,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function w8(e){return e.type==="folder"?(await et(Na,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await et(Ct,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function x8(e){return et(Ct,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function S8(e){return et(Ct,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function E8(e){return(await et(Ct,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function _8(...e){return await et(Ct,{method:"POST",body:JSON.stringify({verb:wo.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function k8(e){const t=await et("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function O8(){return await et("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function T8(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 A8({name:e,path:t="",root:r="root",asText:n=!1}){return et(Ct,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:n}),headers:new Headers({"Content-Type":"application/json"})})}async function R8(e={}){try{return{...await Ma({path:"shared_datasources.json",...e}),...Gc}}catch{return{...Gc}}}async function C8(e={}){try{return await Ma({path:"shared_app_events.json",...e})}catch{return[]}}async function I8(e={}){try{return await Ma({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function P8(e={}){try{return await Ma({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function N8(){try{return await et("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function M8(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const D8=kh(),L8=async e=>{const t={verb:wo.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:We.omit(e,We.keys(Gc))};return D8(()=>et(Ct,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},z8=kh(),$8=async e=>{const t={verb:wo.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return z8(()=>et(Ct,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},Nh=async e=>{const t=await et(Ct,{method:"POST",body:JSON.stringify({...e,verb:wo.SET_FILE_CONTENT,root:bh.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=_h(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},j8=async e=>await Nh({name:"crafted_components.json",path:tn.WEBFORMS,content:e});function F8(e){return et(Ct,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function B8(e){return et(Ct,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function H8(e){return et(Ct,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function W8(e){return et(Ct,{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)?fu(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&&vu(e.path),t})}function V8(e){return et(Ct,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function U8(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function q8(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 G8(e){const t=U8(e).split(/[;,]/g).filter(Boolean).map(o=>{const s=o.split(":")[0].trim(),l=o.split(":")[1].trim();return{name:s,type:l}}),r=q8(e),n=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:n}}async function Z8(e,t){const n=e.split(".").pop();try{const o=await et(Ct,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:n}),headers:new Headers({"Content-Type":"application/json"})});o.content=fu(o.content);const{params:s,result:l}=G8(o.parameters);return{...o,params:s,returns:l}}catch(o){return console.error(o),{className:t,functionName:n,filePath:e,content:"",params:[]}}}var yE=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(yE||{});function Y8(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function K8(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}const X8={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},J8={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}},wE=M.createContext(void 0),Q8=M.memo(({children:e,isInsideStudio:t,isStandaloneEditor:r})=>{const n=M.useMemo(()=>({isInsideStudio:t,isStandaloneEditor:r}),[t,r]);return T.jsx(wE.Provider,{value:n,children:e})});function eF(){const e=M.useContext(wE);return e===void 0?{isInsideStudio:!1,isStandaloneEditor:!1}:e}const xE=M.createContext(null),tF=5e3,rF={top:"top-4",bottom:"bottom-4"};function nF({children:e}){const[t,r]=M.useState([]),n=M.useRef(0),o=M.useCallback(c=>{r(u=>u.filter(d=>d.id!==c))},[]),s=M.useCallback((c,u)=>{const d=++n.current,g={id:d,containerStyle:u==null?void 0:u.containerStyle,duration:c.duration??tF,position:c.position??"bottom",render:c.render};return r(p=>[...p,g]),d},[]);M.useEffect(()=>{const c=ph.subscribe(u=>{s({position:"bottom",render:({onClose:d})=>T.jsx(Ax,{...u,onClose:d})})});return()=>{c.unsubscribe()}},[s]);const l=M.useMemo(()=>({pushToast:s,removeToast:o}),[s,o]);return T.jsxs(xE.Provider,{value:l,children:[e,typeof document<"u"?nn.createPortal(T.jsx(T.Fragment,{children:["top","bottom"].map(c=>{const u=t.filter(d=>d.position===c);return u.length===0?null:T.jsx("div",{className:`pointer-events-none fixed inset-x-4 z-2147483647 flex flex-col items-center gap-3 ${rF[c]}`,children:u.map(d=>T.jsx(oF,{toast:d,onClose:()=>o(d.id)},d.id))},c)})}),document.body):null]})}function oF({toast:e,onClose:t}){return M.useEffect(()=>{if(e.duration===null)return;const r=window.setTimeout(t,e.duration);return()=>window.clearTimeout(r)},[t,e.duration]),T.jsx("div",{className:"pointer-events-auto",style:e.containerStyle,children:e.render({onClose:t})})}function iF(e){const t=M.useContext(xE);if(!t)throw new Error("useToast must be used within a ToastProvider");return M.useCallback(r=>t.pushToast(r,e),[t,e])}exports.API_PREFIX=Ct;exports.AppLoader=OL;exports.DATASOURCE_THEMES=X8;exports.DatasourcesActions=iS;exports.DebuggerActions=lS;exports.DesignerRequestVerb=wo;exports.Dialog=$R;exports.DialogBody=nw;exports.EActivity=yE;exports.ECustomStylePropsViewMode=nE;exports.EDITOR=J8;exports.EDisplayMode=Ch;exports.EIDENTIFIERS=iE;exports.EPermissionType=Qe;exports.ERROR_CODES=sE;exports.ESetting=tE;exports.ESubPermissionType=ht;exports.ETooltipBehavior=rE;exports.EWebFormStyleClassScope=eE;exports.EXT_API_PREFIX=Na;exports.FileFolderType=He;exports.FolderRootPath=tn;exports.FolderRootType=bh;exports.Grid=uz;exports.GridItem=dz;exports.HTTPError=wp;exports.HTTP_HANDLERS_TAB_PATH=Sh;exports.IPreemptive=Ea;exports.IPublished=HS;exports.IPublishedRestScope=Th;exports.IdentityProvider=Iz;exports.Image=W1;exports.Incase=wc;exports.IndentLines=Nx;exports.InvalidJsonError=az;exports.LOCALIZATION_TAB_PATH=Eh;exports.LOCATION_DATASOURCE_ID=jS;exports.LogoSVG=A1;exports.LspActions=aS;exports.MAX_FILE_NAME_LENGTH=hh;exports.MODEL_TAB_PATH=TS;exports.Modal=tz;exports.ModalCloseReason=Ai;exports.ModalColor=Pi;exports.ModalIcons=ip;exports.ModalType=ih;exports.Mutex=CS;exports.NameError=gh;exports.Overlay=rw;exports.PANEL_COLLAPSED_HEIGHT=vn;exports.PANEL_INITIAL_OPEN_RATIO=F1;exports.PANEL_MAX_RATIO=B1;exports.PERMISSIONS=Ah;exports.Panel=sz;exports.PopperTooltip=_L;exports.Portal=Uy;exports.PublishOptions=fj;exports.QODLY_NAMESPACE=oa;exports.ROLES_TAB_PATH=wh;exports.ROOT_WEBFORM_STATE=aE;exports.RemoteDebuggerMode=yh;exports.SETTINGS_TAB_PATH=xh;exports.SHARED_API_PREFIX=_a;exports.SHARED_USER_NAMESPACE=Gc;exports.SearchInput=lz;exports.SimpleGrid=fz;exports.SourceCodeDescriptor=oE;exports.StudioContextProvider=Q8;exports.Switcher=Mx;exports.THEME_CLASSES=Fj;exports.TITLE_DATASOURCE_ID=BS;exports.TabEventsActions=sS;exports.Tip=h1;exports.TipsProvider=AD;exports.Toast=Ax;exports.ToastProvider=nF;exports.ToolbarIcon=cz;exports.Tooltip=EL;exports.Tree=b4;exports.TreeIcon=Rx;exports.TreeNode=Wp;exports.USER_LANGUAGE_DATASOURCE_ID=FS;exports.VSCODE_THEME_STORAGE_KEY=Ph;exports.WT_FLAGS_KEYS=jj;exports.WebformActions=oS;exports.WebformEventsActions=Sa;exports.ZoomComponent=oz;exports.ZoomLevel=j1;exports._isArrayDatasource=sj;exports._isObjectDatasource=aj;exports.actionsToPrivs=ZS;exports.addAttributesToContent=hj;exports.addFolder=x8;exports.addItem=Jj;exports.addPermission=Aj;exports.addPrivilegeIn=wj;exports.allowed=bj;exports.by=IS;exports.byId=H$;exports.byPath=W$;exports.callAll=dE;exports.callAllHandlers=qj;exports.callServerSideParser=i8;exports.checkUpdates=p8;exports.children=Yc;exports.createFolder=F8;exports.createPrivilege=Sj;exports.createRole=Mj;exports.dataAttr=Gj;exports.datasourcesSubject=m6;exports.debuggerSubject=x6;exports.deepDeleteCondition=cE;exports.deepSanitizeCondition=uE;exports.dropFile=w8;exports.dropFolder=E8;exports.editors=AS;exports.exists=V$;exports.extractWebformName=z$;exports.filterBySeriousError=QS;exports.focus=Zj;exports.formatErrorsAsBulletToast=$j;exports.generateUUID=bp;exports.getAppSettings=g8;exports.getCashedPrefrences=U$;exports.getCatalog=O8;exports.getDatasourceId=q$;exports.getDefaultAppSettings=mE;exports.getDefaultContent=Wj;exports.getDictByName=KS;exports.getDisplayableFeedbackErrors=zj;exports.getEditors=L$;exports.getErrorListFromPayload=JS;exports.getFile=b8;exports.getFileContent=A8;exports.getFileExtentionFromType=RS;exports.getFilePath=Uj;exports.getFilenameAndTypeFromPath=D$;exports.getFilenameFromType=$$;exports.getFilesInfo=_8;exports.getFolder=bE;exports.getFolders=v8;exports.getFunctionContent=Z8;exports.getGraphData=Tj;exports.getInheritedResources=XS;exports.getMonacoTheme=M8;exports.getNodeInfo=W8;exports.getNormalizedDataType=Z$;exports.getPrivilegeById=Un;exports.getPromotions=Nj;exports.getResourceFromType=Rh;exports.getSavedConditions=P8;exports.getSharedAppEvents=C8;exports.getSharedCSS=I8;exports.getSharedDatasources=R8;exports.getSharedResource=Ma;exports.getStoredVSCodeTheme=fE;exports.getSupportedLanguages=T8;exports.getTypeFromExtension=_h;exports.getUserPrivileges=N8;exports.getWebForm=m8;exports.hasAttributesString=VS;exports.http=et;exports.i18nSubject=E6;exports.initVSCodeTheme=n8;exports.initializeDefaultProjectFiles=d8;exports.installUpdates=h8;exports.isArrayDatasource=LS;exports.isBaseState=Bj;exports.isDataClassMethod=J$;exports.isDataStoreMethod=X$;exports.isDateDatasource=lj;exports.isEntity=oj;exports.isEntityDatasource=tj;exports.isEntityMethod=Q$;exports.isEntitySelection=ij;exports.isEntitySelectionDatasource=rj;exports.isEntitySelectionMethod=ej;exports.isInputEvent=Qj;exports.isLightTheme=hE;exports.isObjectAttribute=Y$;exports.isObjectDatasource=zS;exports.isRelatedAttribute=K$;exports.isRelatedEntitiesAttribute=MS;exports.isRelatedEntityAttribute=DS;exports.isSameNamespace=cj;exports.isScalarDatasource=$S;exports.isSimpleAttribute=NS;exports.isSimpleDatasource=nj;exports.loadDS=uj;exports.loadI18n=dj;exports.localeCompare=PS;exports.log=Y8;exports.login=k8;exports.lspSubject=w6;exports.mergeRefs=Yj;exports.moveItem=H8;exports.outBy=F$;exports.outById=B$;exports.parents=gu;exports.parseAttributes=pj;exports.parseCatalog=gj;exports.populateShallow=_j;exports.queue=kh;exports.refactorConditions=Ih;exports.refactorWebform=Hj;exports.removeAttributesString=US;exports.removeItem=B8;exports.removeMultiplePermissions=Cj;exports.removePermission=Rj;exports.removePrivilege=yj;exports.removePrivilegeFrom=xj;exports.removeRole=Dj;exports.renameFile=y8;exports.renameFolder=S8;exports.renamePrivilege=Ej;exports.resetResources=Ij;exports.resolveMonacoTheme=r8;exports.rolesToAPI=Oj;exports.sanitizeContent=fu;exports.sanitizeNameCY=vj;exports.sanitizePermissions=YS;exports.sanitizePrivileges=qS;exports.sanitizeRoles=kj;exports.saveContent=V8;exports.saveRole=Lj;exports.selectorEqualityFn=Vj;exports.setCraftedComponents=j8;exports.setFileContent=Nh;exports.setSharedAppEvents=$8;exports.setSharedSources=L8;exports.setVSCodeTheme=yp;exports.sortPrivileges=GS;exports.splitDatasourceID=Oh;exports.stopEvent=e8;exports.stringifyAttributes=WS;exports.tabEventsSubject=y6;exports.tasksManagerSubject=S6;exports.themeKeys=t8;exports.themes=Kc;exports.toastSubject=ph;exports.togglePermission=Pj;exports.trackEvent=K8;exports.transformDates=o8;exports.tryCreateSharedResource=vu;exports.uniquePush=Wr;exports.updateDsCondition=lE;exports.useBoolean=Qz;exports.useCallbackRef=e6;exports.useControllableProp=Q1;exports.useControllableState=t6;exports.useDidMountEffect=pz;exports.useDoubleClick=Dz;exports.useDsChangeRenderer=Jz;exports.useDsRendererAdapter=Xz;exports.useEnhancedState=Kz;exports.useFeatureFlags=Cz;exports.useFormControlProps=o6;exports.useForwardedRef=Rz;exports.useHotkeys=kz;exports.useIdentity=Pz;exports.useOutsideClick=Oz;exports.usePrevious=Tz;exports.useSafeLayoutEffect=r6;exports.useStateObject=Nz;exports.useStateRef=Az;exports.useStudioContext=eF;exports.useTip=p1;exports.useToast=iF;exports.useUpdateEffect=n6;exports.validateName=du;exports.validateServerSide=_6;exports.validateValue=k6;exports.visuallyHiddenStyle=Xj;exports.warn=Kj;exports.webformEventsSubject=Uc;exports.webformSubject=b6;
207
257
  //# sourceMappingURL=index.cjs.js.map